/* Greco Media — base styles (warm cream studio theme) */

/* ============================================================
   THEME — the one place to change the site's look.
   Every color on every page (home, services, work, about,
   contact) is drawn from these variables. Edit a value here
   once and it updates across the whole site.

   Want a single page to look different? Don't edit these —
   see "Per-page theme overrides" just below this block.
   ============================================================ */
:root {
  /* Backgrounds — warm cream palette carried over from the original one-pager */
  --bg: #faf7f0;                                                  /* page base (cream) */
  --bg-grad: radial-gradient(circle at 50% -10%, #fffdf8 0%, #faf7f0 55%); /* soft body glow */
  --bg-alt: #f3ecdf;                                              /* alt section band (sand) */
  --bg-card: #fffdf8;                                             /* cards / panels (near-white) */

  /* Text */
  --ink: #1c1c1c;                                                 /* headings */
  --ink-soft: #5a554c;                                            /* body copy */
  --muted: #8a8276;                                               /* secondary / labels */

  /* Accents (used for links, buttons, highlights, gradients) */
  --accent: #b04a2f;      /* terracotta */
  --accent-2: #2fb0a0;    /* teal */
  --on-accent: #ffffff;   /* text/icons that sit ON the accent (buttons, art) */

  /* Lines & layout */
  --rule: #e4dccc;                                                /* borders / dividers */
  --max: 1080px;                                                  /* content width */
}

/* ------------------------------------------------------------
   Per-page theme overrides
   Give one page a different palette WITHOUT touching the rest:
   add a theme class to that page's <body>, e.g.
     <body class="theme-warm">
   Only the variables you list here change; everything else
   falls back to the :root values above. Duplicate this block,
   rename it, and tweak whichever tokens you like to add more.
   ------------------------------------------------------------ */
body.theme-warm {
  --accent: #f0a074;   /* warm amber */
  --accent-2: #e76e9d; /* rose */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--ink-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; color: var(--ink-soft); }

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-2); }

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.3rem 0;
  position: sticky;
  top: 0;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--ink); }
.brand .accent { color: var(--accent); }

nav ul {
  display: flex;
  gap: 1.7rem;
  list-style: none;
}

nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover, nav a.active { color: var(--accent); }

/* Hero — dark graphic band (carried from the original one-pager) */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  color: #f7f1e8;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 130% at 74% 16%, rgba(176, 74, 47, 0.42), transparent 58%),
    radial-gradient(120% 120% at 10% 92%, rgba(47, 176, 160, 0.20), transparent 55%),
    linear-gradient(158deg, #2b241d 0%, #1a1512 60%, #120e0c 100%);
}

.hero-logo {
  position: absolute;
  z-index: 0;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 520px);
  opacity: 0.18;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e7c6b7;
  margin-bottom: 1rem;
}

.hero h1 {
  color: #fdfbf7;
  font-size: clamp(2.6rem, 5.6vw, 4.7rem);
  margin-bottom: 0;
}

.hero .lead {
  font-size: 1.28rem;
  color: rgba(255, 255, 255, 0.86);
  margin: 1.1rem 0 0;
  max-width: 40ch;
}

.hero .btn-row {
  justify-content: flex-start;
  margin-top: 1.8rem;
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.hero .btn-ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

/* Hero waveform */
.wavediv {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 52px;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}
.wavediv i {
  width: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  height: 22%;
}
.wavediv i.on { background: #f0a074; }
.wavediv i.t { background: var(--accent-2); }

/* Equalizer accent */
.eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 40px;
  margin: 0 auto 2.2rem;
}
.eq span {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  animation: bounce 1.2s ease-in-out infinite;
}
.eq span:nth-child(1) { animation-delay: -1.1s; }
.eq span:nth-child(2) { animation-delay: -0.9s; }
.eq span:nth-child(3) { animation-delay: -0.7s; }
.eq span:nth-child(4) { animation-delay: -0.5s; }
.eq span:nth-child(5) { animation-delay: -0.3s; }
.eq span:nth-child(6) { animation-delay: -0.6s; }
.eq span:nth-child(7) { animation-delay: -0.2s; }
@keyframes bounce {
  0%, 100% { height: 7px; opacity: 0.6; }
  50% { height: 40px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .eq span { animation: none; height: 22px; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  padding: 0.9rem 1.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(176, 74, 47, 0.22);
}

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: 0.85rem 1.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 3.5rem 0; }

.section-title { text-align: center; margin-bottom: 2.8rem; }

.section-title .eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* Cards grid (home services preview / hub) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block;
  color: var(--ink-soft);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  color: var(--ink-soft);
}

.card .num {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.card h3 { color: var(--ink); margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* Services detail list */
.service-list { max-width: 760px; margin: 0 auto; }

.service-block {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.service-block:last-child { border-bottom: none; }

.service-block .icon {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.service-block h3 { font-size: 1.4rem; }
.service-block p { margin-bottom: 0.5rem; }
.service-block .note { font-size: 0.9rem; color: var(--muted); margin-bottom: 0; }

/* Work / portfolio */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.work-item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.work-item:hover { transform: translateY(-4px); border-color: var(--accent); }

.work-art {
  height: 160px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--on-accent);
  text-align: center;
  padding: 1rem;
}
.work-art.alt2 { background: linear-gradient(135deg, #b06ee7, #4a9dff); }
.work-art.alt3 { background: linear-gradient(135deg, #e7a96e, #e76e9d); }
.work-art.alt4 { background: linear-gradient(135deg, #6ee79d, #6ee7c7); }
.work-art.alt5 { background: linear-gradient(135deg, #4a9dff, #6e7ee7); }
.work-art.alt6 { background: linear-gradient(135deg, #e76e6e, #e7a96e); }

.work-body { padding: 1.4rem 1.5rem; }
.work-body .meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.work-body h3 { color: var(--ink); font-size: 1.2rem; margin-bottom: 0.4rem; }
.work-body p { font-size: 0.92rem; margin-bottom: 0; color: var(--muted); }

/* Work feature (single-project spotlight) */
.work-feature { max-width: 820px; margin: 0 auto; }

.work-feature .credit {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.work-feature h2 { margin-bottom: 0.8rem; }
.work-feature .media { margin: 1.7rem 0; display: grid; gap: 1.4rem; }

/* Responsive 16:9 video embed (e.g. YouTube) */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-figure { margin: 0; }
.video-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* Page header — compact dark band, echoing the hero */
.page-header {
  position: relative;
  padding: 4.5rem 0 3rem;
  text-align: center;
  color: #f7f1e8;
  background:
    radial-gradient(120% 140% at 78% 20%, rgba(176, 74, 47, 0.38), transparent 60%),
    radial-gradient(120% 130% at 12% 95%, rgba(47, 176, 160, 0.18), transparent 58%),
    linear-gradient(158deg, #2b241d 0%, #1a1512 60%, #120e0c 100%);
}

.page-header .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #e7c6b7;
  margin-bottom: 0.9rem;
}

.page-header h1 { color: #fdfbf7; }

.page-header .lead {
  max-width: 600px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

/* Content prose */
.content { max-width: 700px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.content p { font-size: 1.08rem; margin-bottom: 1.3rem; }
.content h2 { margin-top: 2rem; }

/* About portrait */
.portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: cover;
  object-position: 60% 35%;
  border: 2px solid var(--rule);
}

/* Stats strip */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: center;
}
.stat .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Listen / Spotify */
.listen-card { max-width: 760px; margin: 0 auto; }

.listen-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.listen-head h3 { color: var(--ink); }
.listen-head p { margin-bottom: 0; color: var(--muted); }

.spotify-embed {
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  min-height: 80px;
}
.spotify-embed iframe { display: block; width: 100%; }

/* CTA band */
.cta {
  text-align: center;
  padding: 4rem 0;
}
.cta h2 { margin-bottom: 1rem; }
.cta p { max-width: 520px; margin: 0 auto 2rem; }

/* Contact */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact-card p { font-size: 1.08rem; }

/* Footer — dark band (site-wide bookend) */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(158deg, #1a1512 0%, #120e0c 100%);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.site-footer a { color: rgba(255, 255, 255, 0.82); }
.site-footer a:hover { color: var(--accent-2); }

.site-footer nav ul { gap: 1.2rem; }

/* Mobile */
@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  nav ul { gap: 1.1rem; flex-wrap: wrap; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .service-block { grid-template-columns: 1fr; gap: 0.6rem; }
  .stats { gap: 2rem; }
}
