/*
Theme Name: Halloween el Gato
Theme URI: https://example.com
Author: Halloween el Gato
Author URI: https://example.com
Description: A one-page dark theme for a California-based studio producing horror-leaning film, television, and haunted attractions. The black cat — el gato — is the studio's guide between worlds.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: halloween-el-gato
*/

/* ---------------------------------------------
   Tokens
--------------------------------------------- */
:root {
  --void: #0b0908;
  --ash: #17120f;
  --ash-raised: #201811;
  --bone: #e9dfc8;
  --bone-dim: #a89d84;
  --ember: #c1440e;
  --ember-bright: #e0611f;
  --ember-dim: #5c220a;
  --moon: #c9a227;
  --line: rgba(233, 223, 200, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;

  --container: 1180px;
}

/* ---------------------------------------------
   Reset & base
--------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--bone);
  line-height: 1.1;
  margin: 0;
}

a { color: inherit; }

p { margin: 0 0 var(--space-2); color: var(--bone-dim); max-width: 62ch; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--ember-bright);
  outline-offset: 3px;
}

/* faint grain, atmosphere over the whole page */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---------------------------------------------
   Header / nav
--------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 9, 8, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--bone);
}

.brand svg { width: 26px; height: 18px; flex-shrink: 0; }

.brand em { font-style: italic; color: var(--ember-bright); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--bone-dim);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav a:focus-visible { color: var(--ember-bright); }

@media (max-width: 640px) {
  .main-nav ul { gap: var(--space-2); }
  .main-nav a { font-size: 0.85rem; }
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(4rem, 12vw, var(--space-6)) 0 var(--space-5);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 78% 18%, rgba(193, 68, 14, 0.16), transparent 60%),
    var(--void);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-4);
  align-items: end;
}

.hero-eyes {
  position: absolute;
  top: clamp(2.5rem, 8vw, 5rem);
  right: clamp(1rem, 6vw, 6rem);
  display: flex;
  gap: 1.1rem;
}

.hero-eye {
  width: clamp(14px, 2vw, 20px);
  height: clamp(28px, 4vw, 40px);
  background: var(--ember-bright);
  border-radius: 50%;
  transform: rotate(6deg);
  box-shadow: 0 0 18px 4px rgba(224, 97, 31, 0.55);
  animation: eye-glow 5s ease-in-out infinite;
}
.hero-eye:last-child { transform: rotate(-6deg); animation-delay: 0.4s; }

@keyframes eye-glow {
  0%, 100% { opacity: 0.85; box-shadow: 0 0 18px 4px rgba(224, 97, 31, 0.55); }
  50% { opacity: 1; box-shadow: 0 0 28px 8px rgba(224, 97, 31, 0.8); }
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  font-style: italic;
  font-optical-sizing: auto;
  max-width: 12ch;
}

.hero-intro {
  padding-bottom: 0.4rem;
}

.hero-intro p {
  font-size: 1.1rem;
  color: var(--bone-dim);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--ember-bright);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}

.button {
  display: inline-block;
  margin-top: var(--space-2);
  padding: 0.85rem 1.9rem;
  background: var(--ember);
  color: var(--void);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--ember);
  transition: background 0.2s ease, color 0.2s ease;
}

.button:hover, .button:focus-visible {
  background: transparent;
  color: var(--ember-bright);
}

.button-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
}
.button-ghost:hover, .button-ghost:focus-visible {
  border-color: var(--ember-bright);
  color: var(--ember-bright);
}

@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-eyes { position: static; margin-bottom: var(--space-3); }
}

/* ---------------------------------------------
   Scratch divider
--------------------------------------------- */
.scratch-divider {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  opacity: 0.5;
}
.section-divider {
  padding: var(--space-4) 0;
}

/* ---------------------------------------------
   About
--------------------------------------------- */
.about {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: center;
}

.about h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: var(--space-2);
}

.about-mark {
  justify-self: start;
}

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-mark { order: 2; }
}

/* ---------------------------------------------
   Services
--------------------------------------------- */
.services {
  padding: var(--space-5) 0;
  background: var(--ash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 16ch;
  margin-bottom: var(--space-4);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  background: var(--ash);
  padding: var(--space-3);
}

.service-mark {
  width: 16px;
  height: 26px;
  margin-bottom: var(--space-2);
}

.service h3 {
  font-size: 1.35rem;
  font-style: italic;
  margin-bottom: 0.6rem;
}

.service p { font-size: 0.96rem; }

@media (max-width: 860px) {
  .service-list { grid-template-columns: 1fr; }
}

/* ---------------------------------------------
   Work
--------------------------------------------- */
.work {
  padding: var(--space-5) 0;
}

.work h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: var(--space-1);
}

.work > .container > p { margin-bottom: var(--space-4); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.work-card {
  border: 1px solid var(--line);
  padding: var(--space-3);
  background: linear-gradient(160deg, var(--ash-raised), var(--ash));
  transition: border-color 0.2s ease;
}

.work-card:hover { border-color: var(--ember-dim); }

.work-kind {
  font-size: 0.82rem;
  color: var(--ember-bright);
  margin-bottom: 0.6rem;
  display: block;
}

.work-card h3 {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.work-card p { font-size: 0.92rem; margin-bottom: 0; }

@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------
   Contact / CTA
--------------------------------------------- */
.contact {
  padding: var(--space-6) 0;
  text-align: left;
  background:
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(193, 68, 14, 0.14), transparent 60%),
    var(--void);
  border-top: 1px solid var(--line);
}

.contact h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-style: italic;
  max-width: 16ch;
  margin-bottom: var(--space-2);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-3);
}

.contact-email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--moon);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-email:hover, .contact-email:focus-visible {
  border-bottom-color: var(--moon);
}

.contact-location {
  font-size: 0.9rem;
  color: var(--bone-dim);
  margin-top: var(--space-4);
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-3) 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--bone-dim);
}

.site-footer a { text-decoration: none; color: var(--bone-dim); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--ember-bright); }

.footer-links { display: flex; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
