/* ─────────────────────────────────────────────────────────────────
   COLLINS AVE — Stylesheet
   Palette: Warm white · Charcoal · Deep navy · Muted sand · Black
   Type:    Cormorant Garamond (display) · DM Sans (body/labels)
───────────────────────────────────────────────────────────────── */

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

:root {
  --cream:        #F5F2EC;
  --warm-white:   #FAF8F4;
  --sand:         #D9D2C5;
  --sand-mid:     #C4BAA8;
  --charcoal:     #2C2C2A;
  --navy:         #1A1F2E;
  --black:        #0F0F0E;
  --ink:          #3A3835;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-width:    1100px;
  --gutter:       clamp(1.5rem, 5vw, 4rem);

  --ease-calm:    cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── FADE-IN ANIMATION ────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner > * {
  animation: fadeUp 1.4s var(--ease-calm) both;
}
.hero-inner .wordmark      { animation-delay: 0.1s; }
.hero-inner .subline       { animation-delay: 0.45s; }
.hero-inner .tagline       { animation-delay: 0.65s; }
.scroll-hint               { animation: fadeUp 1.6s var(--ease-calm) 1.1s both; }

/* ── CONTAINER ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── SECTION SPACING ──────────────────────────────────────────── */
.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

/* ── NAVIGATION ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem var(--gutter);
  background: transparent;
  mix-blend-mode: normal;
}

.nav-wordmark-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 18px;
  width: auto;
  display: block;
  /* The logo has warm tones from the sunset — on cream bg it reads beautifully */
  opacity: 0.92;
  transition: opacity 0.3s var(--ease-calm);
}

.nav-logo:hover {
  opacity: 1;
}

.nav-contact {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease-calm), color 0.3s var(--ease-calm);
}

.nav-contact:hover {
  color: var(--black);
  border-color: var(--charcoal);
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--cream);
  overflow: hidden;
}

/* Subtle architectural texture overlay */
.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212, 203, 188, 0.22) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: cover, 200px 200px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: var(--gutter);
}

.wordmark {
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.wordmark-img {
  display: block;
  width: clamp(280px, 62vw, 820px);
  height: auto;
  margin-inline: auto;
}

.subline {
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--sand-mid);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--sand-mid));
}

/* ── ABOUT ────────────────────────────────────────────────────── */
.about {
  background-color: var(--warm-white);
}

.about-body {
  max-width: 640px;
}

.about-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--charcoal);
  margin-bottom: 1.6rem;
}

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

.about-coda {
  font-style: italic;
  color: var(--sand-mid);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin-top: 0.6rem;
}

/* ── RULE ─────────────────────────────────────────────────────── */
.rule-wrap {
  background-color: var(--warm-white);
}

.rule {
  border: none;
  border-top: 1px solid var(--sand);
}

/* ── APPROACH ─────────────────────────────────────────────────── */
.approach {
  background-color: var(--warm-white);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand-mid);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin-bottom: 1.1rem;
}

.pillar-body {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.8;
  max-width: 28ch;
}

/* ── CONTACT ──────────────────────────────────────────────────── */
.contact {
  background-color: var(--warm-white);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand-mid);
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  display: inline-block;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.35s var(--ease-calm), border-color 0.35s var(--ease-calm);
}

.contact-email:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  background-color: var(--charcoal);
  padding-block: 2.2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 16px;
  width: auto;
  display: block;
  /* Invert to white/light on the dark charcoal footer */
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--sand-mid);
  opacity: 0.6;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav {
    padding: 1.4rem var(--gutter);
  }

  .wordmark {
    line-height: 0.88;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pillar-body {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .about-body {
    max-width: 100%;
  }

  .contact-email {
    word-break: break-all;
  }
}

/* ── REDUCED MOTION ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-inner > *,
  .scroll-hint {
    animation: none;
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
