/* ─────────────────────────────────────────────────────────────────
   FRANKLIN ROW — Stylesheet v3
   Palette derived from logo v3:
     Deep slate-charcoal letterforms · Warm amber-gold horizon glow
     Twilight sky blue-grey · Rich dark bark · Warm off-white ground
   Typography: Cormorant Garamond (display) · DM Sans (body/labels)
───────────────────────────────────────────────────────────────── */

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

:root {
  /* ── Logo-derived palette ──────────────────────────────────────
     Source: the bold FRANKLIN ROW letterforms filled with a
     dramatic dusk sky — deep slate letters, amber-gold horizon,
     warm road perspective fading to white at the base.
  ─────────────────────────────────────────────────────────────── */

  /* Page backgrounds — warm off-white, like the road's vanishing point */
  --ground:       #F0EBE2;      /* hero bg — warm ground tone */
  --ground-lt:    #F5F1EA;      /* about/approach bg — slightly lighter */

  /* Primary text — deep slate-charcoal from the letter bodies */
  --slate:        #26232A;      /* deepest dark — footer bg, strong type */
  --charcoal:     #3D3540;      /* primary body text */
  --ink:          #5A5060;      /* secondary text, softer */

  /* Accent — amber gold from the clock tower horizon glow */
  --amber:        #E38D39;      /* primary accent */
  --amber-lt:     #C8A070;      /* muted amber — tagline, labels */
  --amber-dim:    #9A7050;      /* very muted — dividers, subtle elements */

  /* Sky — the blue-grey twilight tone from the upper letter fills */
  --sky:          #5F606B;      /* cool counterpoint to warm amber */
  --sky-lt:       #8A8C98;      /* lighter sky for muted elements */

  --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(--ground);
  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(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-inner > * { animation: fadeUp 1.5s var(--ease-calm) both; }
.hero-inner .wordmark  { animation-delay: 0.1s; }
.hero-inner .subline   { animation-delay: 0.5s; }
.hero-inner .tagline   { animation-delay: 0.72s; }
.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.6rem var(--gutter);
  /* Subtle gradient so nav reads on the warm bg without a hard bar */
  background: linear-gradient(to bottom,
    rgba(240, 235, 226, 0.92) 0%,
    rgba(240, 235, 226, 0) 100%);
  backdrop-filter: blur(0px);
}

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

.nav-logo {
  height: 20px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease-calm);
}
.nav-logo:hover { opacity: 1; }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Warm ground with a dramatic amber-gold radial at center —
     mirrors the horizon glow in the logo */
  background-color: var(--ground);
  background-image:
    radial-gradient(ellipse 65% 50% at 50% 52%,
      rgba(227, 141, 57, 0.10) 0%,
      rgba(200, 160, 112, 0.06) 35%,
      transparent 68%),
    radial-gradient(ellipse 100% 40% at 50% 100%,
      rgba(38, 35, 42, 0.04) 0%,
      transparent 60%);
  overflow: hidden;
}

/* Fine grain — like aged paper or a film still */
.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}

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

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

.wordmark-img {
  display: block;
  width: clamp(300px, 65vw, 860px);
  height: auto;
  margin-inline: auto;
}

.subline {
  font-family: var(--font-body);
  font-size: clamp(0.66rem, 1.05vw, 0.8rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.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;
  /* Amber-lit — echoes the horizon glow */
  color: var(--amber-lt);
}

/* 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: 56px;
  /* Gradient from transparent to amber — like the horizon line */
  background: linear-gradient(to bottom,
    transparent,
    rgba(227, 141, 57, 0.6));
}

/* ── ABOUT ────────────────────────────────────────────────────── */
.about {
  background-color: var(--ground-lt);
  /* Subtle top border in amber tone to separate from hero */
  border-top: 1px solid rgba(200, 160, 112, 0.2);
}

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

.about-text {
  font-family: var(--font-display);
  /* Larger, bolder weight to match the logo's confident letterforms */
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

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

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

.rule {
  border: none;
  border-top: 1px solid rgba(154, 112, 80, 0.25);
}

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

.section-label {
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  /* Amber accent — the same gold as the clock tower light */
  color: var(--amber);
  opacity: 0.85;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

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

/* Thin amber top-rule on each pillar — like a horizon line */
.pillar {
  border-top: 1px solid rgba(227, 141, 57, 0.3);
  padding-top: 1.6rem;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  /* Medium weight — confident but not heavy */
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--slate);
  margin-bottom: 1rem;
}

.pillar-body {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  font-weight: 300;
  line-height: 1.85;
  /* Sky-grey — the cool tone from the upper letter fills */
  color: var(--sky);
  max-width: 26ch;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  /* Deep slate — the darkest tone from the letter shadows */
  background-color: var(--slate);
  /* Subtle amber top border — the horizon line at the very bottom */
  border-top: 1px solid rgba(227, 141, 57, 0.15);
  padding-block: 2.4rem;
}

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

.footer-logo {
  height: 17px;
  width: auto;
  display: block;
  /* Render white/ghosted on dark footer */
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.3s var(--ease-calm);
}
.footer-logo:hover { opacity: 0.65; }

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  /* Muted amber — warm but quiet */
  color: var(--amber-lt);
  opacity: 0.5;
}

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

  .wordmark { margin-bottom: clamp(1.8rem, 4vw, 3rem); }

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

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

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

@media (max-width: 480px) {
  .about-body { max-width: 100%; }
  .wordmark-img { width: clamp(260px, 88vw, 480px); }
}

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

/* ── CONTACT SECTION ──────────────────────────────────────────── */
.contact {
  background: var(--ground-lt);
}

.contact-inner {
  max-width: 680px;
}

.contact-intro {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.form-input,
.form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--amber-dim);
  border-radius: 0;
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.25s var(--ease-calm);
  width: 100%;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--sky-lt);
  font-weight: 300;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--amber);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.form-footer {
  padding-top: 0.5rem;
}

.form-submit {
  background: transparent;
  border: 1px solid var(--amber-dim);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 2.4rem;
  cursor: pointer;
  transition: background 0.25s var(--ease-calm),
              color 0.25s var(--ease-calm),
              border-color 0.25s var(--ease-calm);
}

.form-submit:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ground);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
