/* ============================================================
   SUKSHEMA FAMILY TRUST — styles.css
   ============================================================ */

/* ---- Custom Properties ------------------------------------ */
:root {
  --color-cream:       #FAF6EF;
  --color-cream-deep:  #F0E8D5;
  --color-amber:       #D4833A;
  --color-stone:       #4A4035;
  --color-ink:         #1C1611;
  --color-white:       #FFFFFF;
  --color-border:      rgba(74, 64, 53, 0.15);

  --nav-height:        72px;
  --section-pad:       130px;
  --container-max:     1140px;
  --container-pad:     clamp(24px, 5vw, 80px);

  /*
   * Paper noise textures — two opacities.
   * Light: overlaid on cream backgrounds (warm grain, feels like handmade paper).
   * Dark:  overlaid on ink backgrounds (velvet-matte depth).
   * Same SVG feTurbulence, only the rect opacity differs.
   */
  --texture-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  --texture-dark:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-cream);
  color: var(--color-stone);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  opacity: 0;
  animation: page-fade-in 400ms ease 100ms forwards;
}

@keyframes page-fade-in {
  to { opacity: 1; }
}

img {
  display: block;
  max-width: 100%;
  min-height: 1px;
}

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

ul, ol {
  list-style: none;
}

/* ---- Focus Visible --------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Typography ------------------------------------------ */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--color-ink);
}

h1 {
  font-weight: 300;
  font-size: clamp(42px, 7.5vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.2;
}

h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
}

/*
 * Eyebrow labels — every instance gets a short amber rule above it.
 * This is the primary luxury editorial signal: the thin rule signals
 * that what follows is a category, not just a sentence.
 */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-amber);
  display: block;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-amber);
  opacity: 0.65;
  margin-bottom: 14px;
}

/* ---- Container ------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ---- NAV ------------------------------------------------- */
#site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--color-cream);
  background-image: var(--texture-light);
  background-size: 200px 200px;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

#site-nav.scrolled {
  box-shadow: 0 4px 24px rgba(28, 22, 17, 0.07);
}

.nav-inner {
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-img.broken {
  display: none;
}

.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--color-ink);
  display: none;
  white-space: nowrap;
}

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-stone);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: var(--color-ink);
}

.nav-link.active {
  color: var(--color-ink);
  border-bottom-color: var(--color-amber);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  display: block;
  background: var(--color-ink);
  height: 1.5px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}

.hamburger-line:nth-child(1) { width: 22px; }
.hamburger-line:nth-child(2) { width: 15px; }
.hamburger-line:nth-child(3) { width: 22px; }

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 22px;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 22px;
}

/* Mobile Drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  width: min(320px, 100vw);
  background-color: var(--color-cream);
  background-image: var(--texture-light);
  background-size: 200px 200px;
  border-left: 1px solid var(--color-border);
  padding: 48px 40px;
  z-index: 999;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
}

.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-links {
  display: flex;
  flex-direction: column;
}

.drawer-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--color-stone);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s;
}

.drawer-link:last-child {
  border-bottom: none;
}

.drawer-link:hover,
.drawer-link.active {
  color: var(--color-amber);
}

/* ---- HERO ------------------------------------------------ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  padding: calc(var(--nav-height) + 80px) var(--container-pad) 120px;
  text-align: center;
  overflow: hidden;
}

/*
 * Layer 1 — fine grain noise.
 * Slightly higher opacity than before; on a deep ink background
 * this reads as a luxurious matte texture, not digital flatness.
 */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.045;
}

/*
 * Layer 2 — warm amber bloom at centre.
 * Gives the hero a candlelit quality — the kind of warmth you feel
 * at a gathering rather than a presentation.
 */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 72% 58% at 50% 44%,
    rgba(212, 131, 58, 0.09) 0%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

#hero .eyebrow {
  margin-bottom: 28px;
}

/* The eyebrow amber rule is light-coloured on the dark hero bg */
#hero .eyebrow::before {
  opacity: 0.5;
}

#hero h1 {
  color: var(--color-white);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* CTA Buttons */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-amber);
  color: var(--color-white);
  border: 1px solid var(--color-amber);
}

.btn-primary:hover {
  background: #bf7230;
  border-color: #bf7230;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--color-white);
  transform: translateY(-1px);
}

/*
 * Scroll indicator — a thin vertical line ending in a chevron.
 * The line is the editorial device; the animation gives it life.
 * Both elements share the amber bounce animation.
 */
.scroll-indicator {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--color-amber);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: scroll-bounce 2.4s ease-in-out infinite;
}

.scroll-indicator::before {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: var(--color-amber);
  opacity: 0.45;
  margin-bottom: 6px;
}

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

/* ---- ABOUT ----------------------------------------------- */
#about {
  background-color: var(--color-cream);
  background-image: var(--texture-light);
  background-size: 200px 200px;
  padding: var(--section-pad) var(--container-pad);
}

#about .eyebrow {
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

/*
 * The opening quotation mark — a classic editorial device.
 * Rendered enormous and nearly transparent in amber, it gives
 * the pull quote a sense of depth and gravitas without crowding it.
 */
.about-quote blockquote::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(80px, 12vw, 130px);
  line-height: 0.6;
  color: var(--color-amber);
  opacity: 0.2;
  display: block;
  margin-bottom: clamp(-12px, -1.5vw, -24px);
  pointer-events: none;
  user-select: none;
}

.about-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.45;
  color: var(--color-amber);
}

.about-body p + p {
  margin-top: 20px;
}

/* ---- FOCUS AREAS ----------------------------------------- */
#focus {
  background-color: var(--color-cream-deep);
  background-image: var(--texture-light);
  background-size: 200px 200px;
  padding: var(--section-pad) var(--container-pad);
}

#focus .eyebrow {
  margin-bottom: 16px;
}

#focus h2 {
  margin-bottom: 64px;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.focus-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 40px 34px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.focus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(28, 22, 17, 0.08);
}

.focus-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 20px;
  line-height: 1;
}

.focus-card h3 {
  font-size: 22px;
  color: var(--color-ink);
  margin-bottom: 0;
}

/*
 * A short amber rule below each pillar title.
 * Acts as a category marker — quiet but intentional.
 */
.focus-card h3::after {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--color-amber);
  opacity: 0.7;
  margin-top: 12px;
  margin-bottom: 14px;
}

.focus-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-stone);
}

/* ---- CONTACT --------------------------------------------- */
#contact {
  background-color: var(--color-ink);
  background-image: var(--texture-dark);
  background-size: 200px 200px;
  padding: var(--section-pad) var(--container-pad);
}

.contact-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

#contact .eyebrow::before {
  opacity: 0.45;
}

#contact h2 {
  font-weight: 300;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--color-white);
  margin-top: 12px;
  margin-bottom: 24px;
}

.contact-body {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.contact-email {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--color-amber);
  margin-bottom: 16px;
  transition: color 0.2s;
}

.contact-email:hover {
  color: #e09550;
}

.contact-location {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* ---- FOOTER ---------------------------------------------- */
footer {
  background-color: var(--color-ink);
  background-image: var(--texture-dark);
  background-size: 200px 200px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px var(--container-pad) 44px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-diamond {
  display: flex;
  justify-content: center;
  margin: 16px 0 20px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 36px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 36px;
}

.footer-nav-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-nav-link:hover {
  color: var(--color-white);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

/* ---- RESPONSIVE: Tablet (768px+) ------------------------ */
@media (min-width: 768px) {
  .focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- RESPONSIVE: Desktop (1024px+) ---------------------- */
@media (min-width: 1024px) {
  .nav-name  { display: block; }
  .nav-links { display: flex;  }
  .hamburger { display: none;  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    align-items: start;
  }

  .focus-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
