/* ==========================================================
   SHREYVIN — one-page site
   Palette: warm ivory bg / light warm grey / deep charcoal / champagne-gold accent
   Type: Cormorant Garamond (headings) + Inter (body/UI)
   ========================================================== */

:root{
  --ivory: #F7F3EC;
  --grey-bg: #F0EBE2;
  --charcoal: #2B2622;
  --charcoal-soft: #55504A;
  --gold: #B08D57;
  --gold-soft: #C9AD7F;
  --border: rgba(43,38,34,0.14);
  --border-soft: rgba(43,38,34,0.08);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1200px;
  --pad-x: 60px;
  --pad-y: 120px;

  --dur: .5s;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3{
  font-family: var(--serif);
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
}

p{ margin: 0 0 1em; color: var(--charcoal-soft); }
p:last-child{ margin-bottom: 0; }

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 12px 18px;
  z-index: 1000;
}
.skip-link:focus{ left: 12px; top: 12px; }

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

.section-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.rule{
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 22px;
}

.eyebrow{
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}

.btn{
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  background: transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover{
  background: var(--charcoal);
  color: var(--ivory);
}
.hero .btn.btn-outline{
  border-color: rgba(43,38,34,.55);
}
.hero .btn.btn-outline:hover{
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}

/* ================= NAV ================= */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled{
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 26px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .35s var(--ease);
}
.nav.scrolled .nav-inner{ padding-top: 18px; padding-bottom: 18px; }

.nav-logo{
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--charcoal);
}

.nav-menu{
  display: flex;
  gap: 40px;
}
.nav-menu a{
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right .3s var(--ease);
}
.nav-menu a:hover::after{ right: 0; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  width: 100%;
  height: 1px;
  background: var(--charcoal);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ================= HERO ================= */
.hero{
  position: relative;
  overflow: hidden;
  height: clamp(520px, 47vw, 720px);
  display: flex;
  align-items: center;
  background: var(--ivory);
}

.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--ivory) 0%,
    var(--ivory) 28%,
    rgba(247,243,236,0.82) 42%,
    rgba(247,243,236,0.4) 58%,
    rgba(247,243,236,0.06) 74%,
    rgba(247,243,236,0) 86%
  );
}

.hero-inner{
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
}
.hero-text{ max-width: 660px; }

.hero-heading{
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}

.hero-sub{
  font-size: 16px;
  color: var(--charcoal-soft);
  margin-bottom: 34px;
  max-width: 380px;
}

/* ================= SECTIONS (generic) ================= */
.section{
  padding: var(--pad-y) 0;
}
.section-heading{
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 28px;
}

/* ================= ABOUT ================= */
.about{ background: var(--ivory); }
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text p{
  font-size: 16px;
  max-width: 440px;
}
.about-text p + p{ margin-top: 18px; }
.about-media{
  overflow: hidden;
}
.about-media img{
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ================= BUSINESS ================= */
.business{ background: var(--grey-bg); }
.business-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-top: 44px;
}
.business-card{
  padding: 40px 34px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: border-color .3s var(--ease), transform .35s var(--ease), background-color .3s var(--ease);
}
.business-card:hover{
  border-color: var(--gold);
  transform: translateY(-4px);
  background: rgba(176,141,87,0.05);
}
.business-num{
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  color: var(--gold-soft);
  margin-bottom: 18px;
  line-height: 1;
}
.business-card h3{
  font-size: 22px;
  margin-bottom: 10px;
}
.business-card p{ font-size: 14.5px; }

.business-visual{
  margin-top: 64px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--pad-x);
  overflow: hidden;
}
.business-visual img{
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  display: block;
}

/* ================= CONTACT ================= */
.contact{ background: var(--ivory); }
.contact-inner{ max-width: 640px; }
.contact-inner > p{ font-size: 16px; margin-bottom: 26px; }

.contact-line{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--charcoal);
}
.contact-icon{
  display: inline-flex;
  color: var(--gold);
  flex-shrink: 0;
}
.email-link{
  border-bottom: 1px solid var(--border);
  transition: border-color .25s var(--ease), color .25s var(--ease);
  padding-bottom: 1px;
}
.email-link:hover{
  border-color: var(--charcoal);
  color: var(--gold);
}
.contact .btn{ margin-top: 30px; }

/* ================= FOOTER ================= */
.footer{
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 26px;
  background: var(--ivory);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.footer-logo{
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .1em;
}
.footer-meta{
  font-size: 13px;
  color: var(--charcoal-soft);
  letter-spacing: .03em;
}
.footer-bottom p{
  font-size: 12.5px;
  color: var(--charcoal-soft);
  margin: 0;
}

/* ================= ANIMATIONS ================= */
/* Content is visible by default (no JS / no animation support required).
   Hidden/animated pre-states only apply once `.has-js` is set on <html>,
   via a synchronous inline script in <head>. This guarantees the page
   never hides content if JavaScript fails to load or run. */

/* Page-load hero reveal */
.has-js .reveal-load{
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp var(--dur) var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.has-js .hero-media.reveal-load{
  transform: none;
  opacity: 0;
  animation-name: fadeIn;
}

@keyframes fadeUp{
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn{
  to{ opacity: 1; }
}

/* Scroll reveal */
.has-js .reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.has-js .reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.business-card.reveal:nth-child(2){ transition-delay: .08s; }
.business-card.reveal:nth-child(3){ transition-delay: .16s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal-load, .reveal{
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px){
  :root{ --pad-x: 40px; }
  .about-grid{ gap: 44px; }
}

/* Tablet: keep two-column About layout, keep hero as full-bleed banner */
@media (max-width: 900px){
  .hero{ height: clamp(460px, 58vw, 620px); }
  .about-grid{
    grid-template-columns: 1fr 0.9fr;
    gap: 32px;
  }
  .about-text p{ max-width: none; }
}

@media (max-width: 680px){
  /* Hero drops the full-bleed treatment: text on top, image stacked below */
  .hero{
    height: auto;
    display: block;
    padding: 140px 0 0;
  }
  .hero-inner{ padding: 0 24px 32px; }
  .hero-text{ max-width: none; }
  .hero-media{
    position: static;
    inset: auto;
    aspect-ratio: 16/10;
  }
  .hero-scrim{ display: none; }

  .about-grid{
    grid-template-columns: 1fr;
  }
  .about-media{ order: 1; }
  .about-text{ order: 2; }
  .about-text p{ max-width: none; }

  .business-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  :root{
    --pad-x: 24px;
    --pad-y: 80px;
  }

  .nav-inner{ padding-top: 20px; padding-bottom: 20px; }

  .nav-toggle{ display: flex; }

  .nav-menu{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ivory);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
  }
  .nav-menu.open{ max-height: 260px; }
  .nav-menu a{
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-menu a::after{ display: none; }

  .hero-heading{ font-size: clamp(32px, 9vw, 44px); }
  .hero-sub{ max-width: none; }

  .business-visual{ margin-top: 44px; }

  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
