/* ============================================================
   ESTUARY STUDIO — style.css
   ============================================================ */

/* ------------------------------------------------------------
   FONTS
   ------------------------------------------------------------ */
@font-face {
  font-family: 'BallardSmallCaps';
  src: url('fonts/BallardSmallCaps.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'PanamaIranic';
  src: url('fonts/Panama_Iranic.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'PanamaItalic';
  src: url('fonts/Panama_Italic.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'PanamaRegular';
  src: url('fonts/Panama_Regular.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'SackersGothic';
  src: url('fonts/Sackers_Gothic_Std_Light.otf') format('opentype');
  font-display: swap;
}

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

/* ------------------------------------------------------------
   DESIGN TOKENS
   Edit these to retheme the whole site.
   ------------------------------------------------------------ */
:root {
  /* Brand palette */
  --papyrus:    #FBF8F4;
  --mineral:    #F0F0ED;
  --heron:      #687986;
  --fluff:      #E0C894;
  --salt-marsh: #E3B399;
  --cattail:    #AF7E44;
  --anemone:    #562D29;
  --kelp:       #604C10;
  --lagoon:     #BCBAA0;
  --mussel:     #A091A3;
  --mudflats:   #3B2523;
  --ink:        #1a1818;

  /* Type scale */
  --text-xs:   10px;
  --text-sm:   11px;
  --text-base: 15px;
  --text-md:   20px;
  --text-lg:   32px;

  /* Spacing */
  --gutter:    60px;
  --gutter-sm: 28px;
}

/* ------------------------------------------------------------
   BASE
   ------------------------------------------------------------ */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--papyrus);
  color: var(--ink);
  font-family: 'PanamaRegular', serif;
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ------------------------------------------------------------
   TYPOGRAPHY HELPERS
   ------------------------------------------------------------ */
.label {
  font-family: 'BallardSmallCaps', sans-serif;
  font-size: 24px;
  letter-spacing: 0.3em;
  color: var(--heron);
  margin-bottom: 32px;
  display: block;
}

.label--small {
  font-family: 'SackersGothic', sans-serif;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--heron);
}

.italic-heading {
  font-family: 'PanamaItalic', serif;
  color: var(--anemone);
  line-height: 1.25;
}

.body-text {
  font-family: 'PanamaRegular', serif;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.85;
}

/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px var(--gutter);
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
  background: rgba(251, 248, 244, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(188, 186, 160, 0.4);
}

.nav-logo {
  display: block;
  width: 60px;
}

.nav-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-links--left {
  justify-content: flex-start;
}

.nav-links--right {
  justify-content: flex-end;
}

.nav-links a {
  font-family: 'SackersGothic', sans-serif;
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.5;
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  height: 67vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(251, 248, 244, 0.85) 0%,
    rgba(251, 248, 244, 0.2) 50%,
    rgba(251, 248, 244, 0.0) 100%
  );
}

.hero-left {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 60px;
  max-width: 640px;
}

.hero-tagline {
  font-family: 'PanamaItalic', serif;
  font-size: 22px;
  line-height: 1.3;
  color: var(--anemone);
  margin-bottom: 40px;
  max-width: 380px;
}

.hero-sub {
  font-family: 'SackersGothic', sans-serif;
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--heron);
}

/* ------------------------------------------------------------
   DIVIDER
   ------------------------------------------------------------ */
.divider {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  margin: 60px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--lagoon);
}

.divider-mark {
  width: 32px;
  opacity: 0.4;
}

.divider-mark img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
ETHOS
   ------------------------------------------------------------ */
.ethos {
  padding: 20px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ethos-text {
  max-width: 520px;
}

.ethos-heading {
  font-size: var(--text-lg);
  margin-bottom: 32px;
}

.ethos-body + .ethos-body {
  margin-top: 24px;
}

.ethos-image-wrap {
  position: relative;
  height: 580px;
}

.ethos-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  border: 1px solid var(--ink);
}

.ethos-botanical {
  position: absolute;
  bottom: -60px;
  left: -50px;
  width: 180px;
  opacity: 0.18;
  pointer-events: none;
}

.ethos-botanical img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------ */
.about {
  padding: 20px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  max-width: 520px;
}

.about-heading {
  font-size: var(--text-lg);
  margin-bottom: 32px;
}

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

.about-tagline {
  margin-top: 24px;
  text-align: center;
}

.about-image-wrap {
  position: relative;
  height: 720px;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 1px solid var(--ink);
}

.about-botanical {
  position: absolute;
  bottom: -60px;
  left: -50px;
  width: 180px;
  opacity: 0.18;
  pointer-events: none;
}

.about-botanical img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
   WHAT WE DO
   ------------------------------------------------------------ */
.what-we-do {
  padding: 100px var(--gutter) 140px;
  background-color: var(--mineral);
  position: relative;
  overflow: hidden;
}

.what-we-do-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.what-intro-heading {
  font-family: 'PanamaItalic', serif;
  font-size: var(--text-md);
  color: var(--anemone);
  margin-bottom: 24px;
}

.what-we-do-heading {
  font-size: var(--text-lg);
  margin-bottom: 32px;
}

.what-we-do-body {
  margin-top: 24px;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--lagoon);
  margin-top: 60px;
}

.service-item {
  padding: 40px 50px 40px 32px;
  border-left: 1px solid var(--lagoon);
}

.service-item:first-child {
  border-left: none;
  padding-left: 0;
}

.what-bird {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 320px;
  opacity: 0.07;
  pointer-events: none;
}

.what-bird img,
.what-seal img,
.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.what-seal {
  position: absolute;
  top: 60px;
  right: 60px;
  width: 100px;
  opacity: 0.12;
  pointer-events: none;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer {
  padding: 80px var(--gutter) 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  border-top: 1px solid var(--lagoon);
}

.footer-logo {
  width: 80px;
  opacity: 0.9;
}

.footer-tagline {
  font-family: 'PanamaItalic', serif;
  font-size: 16px;
  color: var(--heron);
}

.footer-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.footer-links a {
  font-family: 'SackersGothic', sans-serif;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--heron);
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.5;
}

.footer-copy {
  font-family: 'SackersGothic', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-top: 16px;
}

/* ------------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.2s; }
.fade-up-delay-2 { animation-delay: 0.45s; }
.fade-up-delay-3 { animation-delay: 0.65s; }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  nav {
    padding: 24px var(--gutter-sm);
  }

  .nav-links {
    display: block;
    gap: 18px;
    list-style: none;
  }

  .nav-links--left {
    display: grid;
    justify-items: start;
  }

  .nav-links--right {
    display: grid;
    justify-items: end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 120svh;
  }

  .hero-left {
    padding: var(--gutter-sm) var(--gutter-sm) 60px;
    min-height: 50vh;
    justify-content: flex-end;
  }

  .hero-bg {
    min-height: 50vh;
  }

  .ethos {
    grid-template-columns: 1fr;
    padding: 0px var(--gutter-sm);
    gap: 48px;
  }

  .ethos-text {
    max-width: 520px;
  }

  .ethos-image-wrap {
    position: relative;
    height: 480px;
  }

  .ethos-image-wrap img {
    width: 100%;
    height: 100%;
    border: 1px solid var(--ink);
    order: 2;
  }

  .about {
    grid-template-columns: 1fr;
    padding: 0px var(--gutter-sm);
    gap: 48px;
  }

  .about-image-wrap {
    height: 380px;
  }

  .what-we-do {
    padding: 40px var(--gutter-sm) 100px;
  }

  .services-row {
    grid-template-columns: 1fr;
  }

  .service-item {
    border-left: none;
    border-top: 1px solid var(--lagoon);
    padding: 32px 0;
  }

  .service-item:first-child {
    border-top: none;
  }

  footer {
    padding: 60px var(--gutter-sm) 48px;
  }

  .footer-links {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .divider {
    padding: 0 var(--gutter-sm);
  }
}
