/* ============================================================
   TERRN WEBSITE — main.css
   ============================================================ */

/* ------------------------------------------------------------
   FONTS
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Mona Sans';
  src: url('../fonts/MonaSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

/* ------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --color-subtle-nod:        #F3F3F3;
  --color-obvious-nod:       #303434;
  --color-heavy-black:       #0B0C0C;
  --color-studio-white:      #FFFFFF;
  --color-emphasized-red:    #E42C00;
  --color-divider:           #E0E0E0;

  /* Typography */
  --font-sans:       'Geist', sans-serif;
  --font-mono:       'Geist Mono', monospace;
  --font-display:    'Mona Sans', sans-serif;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   32px;
  --space-xl:   64px;
  --space-2xl:  128px;
}

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

html {
  /* Scale smoothly: 12px at 1280px wide → 16px at 3840px (4K) */
  font-size: clamp(12px, 0.417vw + 6.67px, 18px);
  -webkit-font-smoothing: antialiased;
  overflow-y: scroll; /* ensure page scrolls so footer is reachable on mobile */
}

body {
  background: var(--color-subtle-nod);
  color: var(--color-obvious-nod);
  font-family: var(--font-sans);
  line-height: 1.5;
}

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

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

/* ------------------------------------------------------------
   NAVBAR
   ------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-subtle-nod);
  border-bottom: 1px solid var(--color-divider);
  height: 3.125rem;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 0 0 0.67rem;
}

.site-nav__logo img {
  height: 1.6875rem;
  display: block;
  /* Recolor SVG from Heavy Black (#0B0C0C) to Obvious Nod (#303434) */
  filter: brightness(0) saturate(100%) invert(20%) sepia(8%) saturate(400%) hue-rotate(135deg) brightness(95%);
}

.site-nav__right {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav__link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-obvious-nod);
  transition: color 0.15s ease;
}

.site-nav__link:hover {
  color: var(--color-emphasized-red);
}

.site-nav__inquire {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-obvious-nod);
  color: var(--color-studio-white);
  padding: 0 1.5rem;
  height: 3.125rem;
  display: flex;
  align-items: center;
  border-radius: 0;
  border: none;
  margin-left: var(--space-lg);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.site-nav__inquire:hover {
  background: var(--color-emphasized-red);
}

/* Chevron toggle button — hidden on desktop */
.site-nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  color: var(--color-obvious-nod);
}

.site-nav__burger-icon {
  width: 1rem;
  height: 0.625rem;
  transition: transform 0.2s ease;
}

.site-nav__burger.is-open .site-nav__burger-icon {
  transform: rotate(180deg);
}

/* Mobile drawer */
.site-nav__drawer {
  display: none;
  flex-direction: column;
  background: var(--color-subtle-nod);
  border-top: 1px solid var(--color-divider);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.site-nav__drawer.is-open {
  max-height: 20rem;
}

.site-nav__drawer-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-obvious-nod);
  padding: 1rem 1.44rem;
  border-bottom: 1px solid var(--color-divider);
  transition: color 0.15s ease;
}

.site-nav__drawer-link:hover {
  color: var(--color-emphasized-red);
}

.site-nav__drawer-inquire {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-studio-white);
  background: var(--color-obvious-nod);
  padding: 1rem 1.44rem;
  transition: background 0.15s ease;
}

.site-nav__drawer-inquire:hover {
  background: var(--color-emphasized-red);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-lg);
  font-size: 0.9rem; /* 0.72 × 1.25 */
  color: var(--color-obvious-nod);
  opacity: 0.5;
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.home-hero {
  width: 100%;
  line-height: 0;
  animation: hero-fade-in 0.8s ease forwards;
}

.home-hero picture {
  display: block;
  width: 100%;
}

.home-hero__svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ------------------------------------------------------------
   STATEMENTS / MISSION
   ------------------------------------------------------------ */
.home-statements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  min-height: 20rem;
}

.home-statements__cell {
  border-right: 1px solid var(--color-divider);
  padding: 5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-statements__cell:last-child {
  border-right: none;
}

.home-statements__cell-inner {
  max-width: 480px;
  width: 100%;
}

.home-statements__eyebrow {
  font-family: var(--font-mono);
  font-size: 1.006rem; /* 0.875 × 1.15 */
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-obvious-nod);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.home-statements__text {
  font-family: var(--font-sans);
  font-size: 1.4375rem; /* 1.25 × 1.15 */
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-obvious-nod);
}

/* ------------------------------------------------------------
   ABOUT PAGE
   ------------------------------------------------------------ */
.about-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.about-section {
  margin-bottom: var(--space-xl);
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-heading {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.about-heading-the {
  font-family: var(--font-sans);
  font-weight: 300;
}

.about-heading-word {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}

.about-body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-obvious-nod);
}

.about-image {
  width: 100%;
  line-height: 0;
  margin-top: var(--space-xl);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* ------------------------------------------------------------
   CONTACT PAGE
   ------------------------------------------------------------ */
.contact-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.contact-section {
  margin-bottom: 0;
}

.contact-text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-obvious-nod);
}

.contact-email {
  color: inherit;
  text-decoration: underline;
}

.contact-email:hover {
  text-decoration: none;
}

/* ------------------------------------------------------------
   PLACEHOLDER PAGES
   ------------------------------------------------------------ */
.placeholder-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 3.75rem);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .home-statements {
    grid-template-columns: 1fr;
  }

  .home-statements__cell {
    border-right: none;
    border-bottom: 1px solid var(--color-divider);
    padding: 3rem 1.5rem;
  }

  .home-statements__cell-inner {
    padding-left: 1.25rem;
  }

  .home-statements__cell:last-child {
    border-bottom: none;
  }

  .site-nav__inner {
    padding: 0 0.67rem;
  }

  .site-nav__right {
    display: none;
  }

  .site-nav__burger {
    display: flex;
  }

  .site-nav__drawer {
    display: flex;
  }

  .site-footer {
    display: block;
    min-height: 1px; /* ensure footer participates in layout */
  }

  .about-page,
  .contact-page {
    padding: var(--space-lg) 2.5rem;
  }
}
