/* ============================================================
   VIVIAN SCOTT CHEW — vivianscottchew.com
   Stylesheet: styles.css
   Colors:
     --bg-a:      #FFFAE6  (light cream)
     --bg-b:      #DBB68E  (warm tan)
     --primary:   #954B00  (deep brown)
     --secondary: #707070  (gray)
   Fonts: Cormorant Garamond (display), Lato (body)
============================================================ */

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: #3a2a1a;
  background-color: #FFFAE6;
  overflow-x: hidden;
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --bg-a: #FFFAE6;
  --bg-b: #DBB68E;
  --primary: #954B00;
  --secondary: #707070;
  --dark-text: #3a2a1a;
  --light-text: #FFFAE6;
  --transition-fast: 0.3s ease;
  --transition-med: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad: clamp(60px, 8vw, 110px);
  --max-width: 1200px;
}

/* ─── Typography ────────────────────────────────────────── */
.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

.section-label.light {
  color: rgba(255, 250, 230, 0.75);
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-heading.light {
  color: var(--light-text);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--secondary);
  max-width: 55ch;
  line-height: 1.8;
}

/* ─── Layout Helpers ────────────────────────────────────── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
}

/* ─── Scroll Reveal Animations ──────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Support per-element stagger delay via CSS custom property */
.reveal-up    { transform: translateY(40px); transition-delay: var(--reveal-delay, 0ms); }
.reveal-left  { transform: translateX(-50px); transition-delay: var(--reveal-delay, 0ms); }
.reveal-right { transform: translateX(50px);  transition-delay: var(--reveal-delay, 0ms); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered card delays (news grid) */
.news-card.reveal-up        { transition-delay: var(--card-delay, 0ms); }
.news-video-feature.reveal-up { transition-delay: var(--card-delay, 0ms); }

/* ============================================================
   HEADER / NAVIGATION
   — Always solid background (#FFFAE6), no transparent state.
   — Box-shadow appears on scroll via .scrolled class.
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background-color: var(--bg-a);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(149, 75, 0, 0.12);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo — always dark (primary color) */
.header-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-logo:hover {
  opacity: 0.75;
}

/* Nav links — always primary color */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.site-nav a {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  transition: opacity var(--transition-fast);
  position: relative;
  padding-bottom: 3px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition-fast);
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  width: 100%;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   — Max height capped at 900px (image natural height)
============================================================ */
.hero {
  position: relative;
  min-height: clamp(500px, 90vh, 900px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(115deg, var(--bg-a) 0%, var(--bg-a) 45%, var(--bg-b) 100%);
}

/* Left: Image */
.hero-image-wrap {
  position: relative;
  width: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 70px; /* header clearance */
  overflow: visible;
}

.hero-image {
  width: auto;
  height: 90%;
  max-height: 820px;
  object-fit: contain;
  object-position: bottom left;
  filter: drop-shadow(0 20px 60px rgba(149, 75, 0, 0.18));
  position: absolute;
  bottom: 0;
  right: clamp(20px, 3vw, 40px);
}

/* Right: Content */
.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px clamp(40px, 5vw, 80px) 60px clamp(40px, 5vw, 80px);
}

.hero-content-inner {
  max-width: 580px;
  width: 100%;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 0.95;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.hero-name span {
  font-size: clamp(3.5rem, 7vw, 6rem);
  display: block;
}

.hero-name span:nth-child(2) {
  color: rgba(149, 75, 0, 0.65);
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--secondary);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--bg-b);
  padding-left: 14px;
}

.hero-cta {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-a);
  background: var(--primary);
  padding: 14px 32px;
  border: 2px solid var(--primary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.hero-cta:hover,
.hero-cta:focus {
  background: transparent;
  color: var(--primary);
}

/* Scroll chevron */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  color: var(--primary);
  opacity: 0.5;
  animation: bounce 2.5s ease-in-out infinite;
  transition: opacity var(--transition-fast);
}

.hero-scroll-hint:hover { opacity: 0.9; }
.hero-scroll-hint svg { width: 100%; height: 100%; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Hero load animations */
.hero-animate-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: heroSlideLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-animate-right {
  opacity: 0;
  transform: translateX(40px);
  animation: heroSlideRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes heroSlideLeft {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroSlideRight {
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   BIO SECTION
   — Float layout: image floats RIGHT, all bio text wraps around it
============================================================ */
.bio {
  background-color: var(--bg-b);
  position: relative;
}

/* Single-column container; overflow:hidden acts as clearfix */
.bio-content {
  overflow: hidden;
}

/* Image floats right — first in DOM so text wraps from the top */
.bio-image-wrap {
  float: right;
  margin: 4px 0 clamp(16px, 2.5vw, 28px) clamp(28px, 4vw, 52px);
  max-width: clamp(240px, 34%, 400px);
}

.bio-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(100, 50, 0, 0.2));
}

.bio-content .section-heading {
  margin-bottom: 1.5rem;
}

.bio-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: #3a2a1a;
  margin-bottom: 1.25rem;
}

.bio-body p:last-child { margin-bottom: 0; }

/* ============================================================
   CHEW ENTERTAINMENT SECTION
   — Float layout: image floats LEFT, all Chew Entertainment text wraps around it
============================================================ */
.chew-entertainment {
  background-color: var(--bg-a);
  position: relative;
}

/* Single-column container; overflow:hidden acts as clearfix */
.chew-entertainment-content {
  overflow: hidden;
}

/* Image floats left — first in DOM so text wraps from the top */
.chew-entertainment-image-wrap {
  float: left;
  margin: 4px clamp(28px, 4vw, 70px) clamp(16px, 2.5vw, 28px) 0;
  max-width: clamp(240px, 38%, 400px);
}

.chew-entertainment-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(100, 50, 0, 0.2));
}

.chew-entertainment-content .section-heading {
  margin-bottom: 1.5rem;
}

.chew-entertainment-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: #3a2a1a;
  margin-bottom: 1.25rem;
}

/* ============================================================
   FOUNDATION SECTION
   — Float layout: image floats RIGHT, all foundation text wraps around it
============================================================ */
.foundation {
  background-color: var(--bg-b);
  position: relative;
}

/* Single-column container; overflow:hidden acts as clearfix */
.foundation-content {
  overflow: hidden;
}

/* Image floats left — first in DOM so text wraps from the top */
.foundation-image-wrap {
  float: right;
  margin: 4px 0 clamp(16px, 2.5vw, 28px) clamp(28px, 4vw, 52px);
  max-width: clamp(240px, 38%, 400px);
}

.foundation-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(100, 50, 0, 0.2));
}

.foundation-content .section-heading {
  margin-bottom: 1.5rem;
}

.foundation-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: #3a2a1a;
  margin-bottom: 1.25rem;
}

/* ============================================================
   IN THE NEWS SECTION
============================================================ */
.news {
  background-color: var(--bg-a);
}

.section-header-block {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-header-block .section-label {
  display: block;
  text-align: center;
}

.section-header-block .section-heading {
  text-align: center;
}

.section-header-block .section-intro {
  margin: 0 auto;
  text-align: center;
  max-width: 55ch;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(50px, 6vw, 80px);
}

/* News Card */
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(149, 75, 0, 0.1);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease,
              opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              translate 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(149, 75, 0, 0.14);
}

/* Card image area */
.news-card-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-b);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image {
  transform: scale(1.04);
}

/* No image fallback */
.news-card-image-wrap.no-image {
  background: linear-gradient(135deg, var(--bg-b) 0%, #c99a6e 100%);
}

.news-card-publication {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-a);
  background: var(--primary);
  padding: 4px 10px;
  border-radius: 2px;
}

/* Card body */
.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.news-card-summary {
  font-size: 0.9rem;
  color: var(--secondary);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
}

.news-card-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1.5px solid var(--bg-b);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.news-card-link:hover,
.news-card-link:focus {
  color: #6b3500;
  border-color: var(--primary);
}

/* ── Video Feature ──────────────────────────────────────── */
.news-video-feature {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  padding: clamp(30px, 4vw, 50px);
  background: var(--bg-b);
  border-radius: 2px;
}

.video-feature-label .section-label {
  margin-bottom: 0.5rem;
}

.video-feature-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.video-feature-desc {
  font-size: 0.95rem;
  color: #3a2a1a;
  line-height: 1.8;
}

.video-feature-btn {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--bg-a);
  padding: 10px 22px;
  border: 2px solid var(--bg-a);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.video-feature-btn:hover,
.video-feature-btn:focus {
  background: transparent;
  color: var(--bg-a);
}

.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(100, 50, 0, 0.2);
}

.video-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   CONTACT SECTION
   — Compact layout; social icons in left column under text
============================================================ */
.contact {
  background-color: var(--primary);
  position: relative;
}

/* Tighter section padding for contact */
.contact .section-inner {
  padding-top: clamp(40px, 5vw, 65px);
  padding-bottom: 0;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(24px, 3vw, 36px);
}

.contact-header {
  text-align: center;
  padding-top: 0;
}

.contact-header .section-heading {
  color: var(--light-text);
  margin-bottom: 0.75rem;
}

.contact-intro {
  font-size: 0.95rem;
  color: rgba(255, 250, 230, 0.75);
  line-height: 1.75;
  margin-bottom: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  padding-top: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255, 250, 230, 0.35);
  border-radius: 50%;
  color: rgba(255, 250, 230, 0.7);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.social-link:hover,
.social-link:focus {
  color: var(--bg-a);
  border-color: var(--bg-a);
  background: rgba(255, 250, 230, 0.12);
}

.social-link svg {
  width: 15px;
  height: 15px;
}

/* Contact details (email + phone) */
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--light-text);
  letter-spacing: 0.02em;
  transition: opacity var(--transition-fast);
}

.contact-detail-link:hover { opacity: 0.75; }
.contact-detail-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Site footer */
.site-footer {
  text-align: center;
  padding: 16px clamp(20px, 5vw, 60px) 20px;
  font-size: 0.78rem;
  color: rgba(255, 250, 230, 0.45);
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255, 250, 230, 0.12);
  margin-top: 16px;
}

/* ============================================================
   RESPONSIVE — Tablet (≤900px)
============================================================ */
@media (max-width: 900px) {

  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-a);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, box-shadow 0.3s ease;
    box-shadow: none;
  }

  .site-nav.open {
    max-height: 300px;
    box-shadow: 0 8px 20px rgba(149, 75, 0, 0.1);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0 20px;
  }

  .site-nav a {
    display: block;
    padding: 12px clamp(20px, 5vw, 60px);
    font-size: 0.9rem;
  }

  .site-nav a::after { display: none; }

  /* Bio: reduce image float size at tablet */
  .bio-image-wrap {
    max-width: clamp(200px, 34%, 300px);
  }

  /* Chew Entertainment: reduce image size at tablet */
  .chew-entertainment-image-wrap {
    max-width: clamp(200px, 34%, 300px);
  }

  /* Foundation: reduce image size at tablet */
  .foundation-image-wrap {
    max-width: clamp(200px, 34%, 300px);
  }

  /* News: 2 cols */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Video feature: stack */
  .news-video-feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤600px)
============================================================ */
@media (max-width: 600px) {

  /* Hero: stack */
  .hero {
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 100%);
    padding-top: 70px;
  }

  .hero-image-wrap {
    width: 100%;
    height: 95vw;
    max-height: 95vw;
    flex-shrink: 0;
  }

  .hero-image {
    height: 100%;
    max-height: unset;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
  }

  .hero-content {
    padding: 24px 24px 40px;
    justify-content: center;
  }

  .hero-content-inner {
    text-align: center;
    max-width: 100%;
  }

  .hero-name {
    align-items: center;
  }

  .hero-tagline {
    border-left: none;
    padding-left: 0;
    text-align: center;
    border-bottom: 2px solid var(--bg-b);
    padding-bottom: 12px;
    width: fit-content;
    margin: 0 auto 2rem;
  }

  /* Bio: clear float on mobile — image centers above text */
  .bio-image-wrap {
    float: none;
    max-width: 240px;
    margin: 0 auto clamp(20px, 4vw, 28px);
    display: block;
  }

  /* Chew Entertainment: clear float on mobile — image centers above text */
  .chew-entertainment-image-wrap {
    float: none;
    max-width: 240px;
    margin: 0 auto clamp(20px, 4vw, 28px);
    display: block;
  }

  /* Foundation: clear float on mobile — image centers above text */
  .foundation-image-wrap {
    float: none;
    max-width: 240px;
    margin: 0 auto clamp(20px, 4vw, 28px);
    display: block;
  }

  /* News: 1 col */
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOCUS / ACCESSIBILITY
============================================================ */
:focus-visible {
  outline: 3px solid var(--bg-b);
  outline-offset: 3px;
}

/* ============================================================
   PRINT
============================================================ */
@media print {
  .site-header,
  .hero-scroll-hint,
  .nav-toggle { display: none; }
  .hero { min-height: auto; }
  section { page-break-inside: avoid; }
}
