/* ==========================================================================
   Raojee Realty — main stylesheet
   Editorial, boutique real-estate design system.

   Palette
     --camel     #C2976C  (primary accent — CTAs, underlines, icons)
     --cream     #FAF7F2  (page background)
     --charcoal  #2B2724  (text + dark sections)
     --olive     #3B4A3A  (deep green, occasional contrast)
     --hairline  #E4DACE  (rules & borders)

   Type
     Headlines : "Cormorant Garamond", serif
     Body / UI : "Inter", sans-serif
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens & reset
   -------------------------------------------------------------------------- */
:root {
  --camel: #C2976C;
  --camel-deep: #A87E52;      /* darker camel for text-on-cream contrast */
  --cream: #FAF7F2;
  --cream-soft: #F3EDE3;
  --charcoal: #2B2724;
  --charcoal-soft: #4A443E;
  --olive: #3B4A3A;
  --hairline: #E4DACE;
  --white: #FFFFFF;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* fluid type scale */
  --text-display: clamp(2.6rem, 6.5vw, 5.25rem);
  --text-h1: clamp(2.4rem, 5vw, 4rem);
  --text-h2: clamp(1.9rem, 3.6vw, 2.9rem);
  --text-h3: clamp(1.35rem, 2.2vw, 1.75rem);
  --text-body: 1.0625rem;
  --text-small: 0.875rem;
  --text-eyebrow: 0.75rem;

  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --space-gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 82.5rem; /* 1320px */
  --container-narrow: 50rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* Respect users who prefer less motion: disable transforms & smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   2. Typography helpers
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

/* Letter-spaced small-caps label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--camel-deep);
  margin-bottom: 1.25rem;
}

.eyebrow--light { color: var(--camel); }

.lede {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.65;
  color: var(--charcoal-soft);
  max-width: 40em;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }

.section--dark {
  background-color: var(--charcoal);
  color: var(--cream);
}

.section--tinted { background-color: var(--cream-soft); }

/* Horizontal hairline rule used between editorial blocks */
.rule {
  border: none;
  border-top: 1px solid var(--hairline);
}

.section--dark .rule { border-color: rgba(250, 247, 242, 0.15); }

/* Section heading block: eyebrow + heading + optional intro, centred or left */
.section-head { max-width: 46em; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.25rem; color: var(--charcoal-soft); }
.section--dark .section-head p { color: rgba(250, 247, 242, 0.75); }

/* --------------------------------------------------------------------------
   4. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease-out),
              color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
}

.btn--primary {
  background-color: var(--camel);
  color: var(--charcoal); /* dark text on camel keeps AA contrast */
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--charcoal);
  color: var(--cream);
}

.btn--ghost {
  border-color: currentColor;
  color: var(--charcoal);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background-color: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}

.btn--ghost-light { border-color: rgba(250, 247, 242, 0.5); color: var(--cream); }
.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background-color: var(--cream);
  border-color: var(--cream);
  color: var(--charcoal);
}

/* Understated text link with animated camel underline */
.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
}

.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--camel);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.link-line:hover::after,
.link-line:focus-visible::after {
  transform: scaleX(0.35);
}

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

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.2rem;
  transition: padding 0.4s var(--ease-out);
}

/* Solid state once the page is scrolled (class toggled in main.js) */
.site-header.is-solid {
  background-color: rgba(250, 247, 242, 0.96);
  box-shadow: 0 1px 0 var(--hairline);
}

.site-header.is-solid .site-header__inner { padding-block: 0.85rem; }

/* Logo: serif wordmark with a camel accent dot */
.logo {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--charcoal);
}

.logo span { color: var(--camel-deep); }

.logo small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-top: 0.3rem;
}

/* Over the hero (transparent header) the logo & links invert to cream.
   The open mobile menu and its toggle are excluded — they sit on a cream
   overlay and must stay charcoal. */
.site-header:not(.is-solid).site-header--overlay .logo,
.site-header:not(.is-solid).site-header--overlay .nav:not(.is-open) .nav__link,
.site-header:not(.is-solid).site-header--overlay .nav-toggle[aria-expanded="false"] {
  color: var(--cream);
}
.site-header:not(.is-solid).site-header--overlay .logo small { color: rgba(250,247,242,0.7); }

.nav { display: flex; align-items: center; gap: 2.4rem; }

.nav__link {
  position: relative;
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-block: 0.4rem;
  color: var(--charcoal);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--camel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav .btn { padding: 0.7rem 1.5rem; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  color: var(--charcoal);
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  margin-inline: auto;
  background-color: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] { color: var(--charcoal); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 47.99em) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background-color: var(--cream);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease-out), visibility 0s 0.5s;
  }

  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.5s var(--ease-out);
  }

  .nav__link { font-size: 1.05rem; color: var(--charcoal); }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero--short { min-height: 62vh; }

.hero__media {
  position: absolute;
  inset: -12% 0; /* over-scan so the parallax shift never reveals edges */
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gentle charcoal wash so cream text always passes contrast on any image */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(24, 20, 17, 0.78) 0%,
    rgba(24, 20, 17, 0.35) 45%,
    rgba(24, 20, 17, 0.25) 100%
  );
}

.hero__content {
  padding-block: clamp(4rem, 9vw, 7rem);
  max-width: 46em;
}

.hero__title {
  font-size: var(--text-display);
  font-weight: 500;
  line-height: 1.06;
  margin-block: 1.4rem 1.8rem;
}

.hero__title em {
  font-style: italic;
  color: var(--camel);
}

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(250, 247, 242, 0.85);
  max-width: 34em;
  margin-bottom: 2.4rem;
}

/* Slim scroll cue */
.hero__scroll {
  position: absolute;
  right: var(--space-gutter);
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.75);
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 3.4rem;
  background-color: var(--camel);
  animation: scroll-cue 2.4s var(--ease-out) infinite;
}

@keyframes scroll-cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 47.99em) {
  .hero__scroll { display: none; }
}

/* --------------------------------------------------------------------------
   7. Editorial intro (two-column brand statement)
   -------------------------------------------------------------------------- */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.editorial__title { max-width: 12em; }

.editorial__body p + p { margin-top: 1.4rem; }
.editorial__body p { color: var(--charcoal-soft); }

.editorial__body .drop {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--charcoal);
}

.editorial__signoff {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--text-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--camel-deep);
}

@media (max-width: 47.99em) {
  .editorial { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   8. Project cards
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
}

/* First card spans full width for editorial rhythm on the homepage */
.projects-grid--feature > :first-child { grid-column: 1 / -1; }

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--charcoal);
  color: var(--cream);
}

.project-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.projects-grid--feature > :first-child .project-card__media { aspect-ratio: 21 / 9; }

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), opacity 1.1s var(--ease-out);
  opacity: 0.92;
}

.project-card:hover .project-card__media img,
.project-card:focus-visible .project-card__media img {
  transform: scale(1.05);
  opacity: 0.75;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: linear-gradient(to top, rgba(24, 20, 17, 0.75), transparent 55%);
}

.project-card__status {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(250, 247, 242, 0.45);
  margin-bottom: 1rem;
}

.project-card__status--ongoing   { border-color: var(--camel); color: var(--camel); }
.project-card__status--completed { border-color: rgba(250,247,242,0.6); }
.project-card__status--upcoming  { border-color: #9DB09B; color: #C9D6C7; }

.project-card__name {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  font-size: var(--text-small);
  color: rgba(250, 247, 242, 0.8);
}

/* "View" affordance slides in on hover */
.project-card__view {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--camel);
  opacity: 0;
  transform: translateX(-0.6rem);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.project-card:hover .project-card__view,
.project-card:focus-visible .project-card__view {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 47.99em) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card__view { opacity: 1; transform: none; } /* touch devices */
}

/* --------------------------------------------------------------------------
   9. Value pillars ("Why Raojee")
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3rem);
}

.pillar {
  padding-top: 1.8rem;
  border-top: 1px solid var(--hairline);
}

.pillar__icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--camel-deep);
  margin-bottom: 1.4rem;
}

.pillar__icon svg { width: 100%; height: 100%; }

.pillar h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }

.pillar p { font-size: var(--text-small); line-height: 1.75; color: var(--charcoal-soft); }

@media (max-width: 63.99em) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 35.99em)  { .pillars { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   10. Numbers / credibility strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat__value {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--camel);
}

.stat__value sup {
  font-size: 0.45em;
  vertical-align: super;
}

.stat__label {
  margin-top: 0.9rem;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.65);
}

@media (max-width: 47.99em) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }

/* --------------------------------------------------------------------------
   11. Vision band (full-width image + overlaid text)
   -------------------------------------------------------------------------- */
.vision-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78vh;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.vision-band__media {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
}

.vision-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vision-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(28, 34, 27, 0.82) 20%, rgba(28, 34, 27, 0.3) 70%);
}

.vision-band__content { max-width: 36em; padding-block: var(--space-section); }

.vision-band__content h2 { margin-bottom: 1.4rem; }

.vision-band__content p {
  color: rgba(250, 247, 242, 0.85);
  margin-bottom: 1.2rem;
}

.vision-band__content .btn { margin-top: 1.2rem; }

/* --------------------------------------------------------------------------
   12. Testimonials carousel
   -------------------------------------------------------------------------- */
.testimonials { text-align: center; }

.testimonials__viewport {
  position: relative;
  max-width: 46em;
  margin-inline: auto;
  min-height: 16rem;
}

.testimonial {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease-out), visibility 0s 0.8s;
}

.testimonial.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s var(--ease-out);
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
}

.testimonial blockquote::before { content: "\201C"; color: var(--camel); }
.testimonial blockquote::after  { content: "\201D"; color: var(--camel); }

.testimonial figcaption {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

.testimonials__dot {
  width: 2.2rem;
  height: 2px;
  padding: 0;
  background-color: var(--hairline);
  transition: background-color 0.35s;
}

.testimonials__dot.is-active,
.testimonials__dot:hover { background-color: var(--camel); }

/* --------------------------------------------------------------------------
   13. Enquiry form
   -------------------------------------------------------------------------- */
.enquiry {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.enquiry__intro p { color: var(--charcoal-soft); margin-top: 1.2rem; max-width: 26em; }

.enquiry__contact {
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 1.1rem;
  font-size: var(--text-small);
}

.enquiry__contact a { color: var(--camel-deep); }
.enquiry__contact a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.8rem; }

.form__field { display: flex; flex-direction: column; gap: 0.5rem; }
.form__field--full { grid-column: 1 / -1; }

.form label {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--charcoal);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.7rem 0.1rem;
  border-radius: 0;
  transition: border-color 0.3s;
  width: 100%;
}

.form select { appearance: none; cursor: pointer; }

.form__select-wrap { position: relative; }
.form__select-wrap::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--camel-deep);
  border-bottom: 1.5px solid var(--camel-deep);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--camel);
}

.form textarea { resize: vertical; min-height: 7rem; }

.form__submit { grid-column: 1 / -1; margin-top: 0.6rem; }

.form__note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
}

/* Honeypot field — visually removed, still in the DOM for bots */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status { margin-top: 1.2rem; font-size: var(--text-small); }
.form__status--ok { color: var(--olive); }
.form__status--error { color: #A04A3A; }

@media (max-width: 63.99em) {
  .enquiry { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--charcoal);
  color: rgba(250, 247, 242, 0.75);
  font-size: var(--text-small);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 3rem;
}

.site-footer .logo { color: var(--cream); }
.site-footer .logo small { color: rgba(250, 247, 242, 0.55); }

.site-footer__tagline {
  margin-top: 1.4rem;
  max-width: 22em;
  line-height: 1.8;
}

.site-footer h4 {
  font-family: var(--font-sans);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--camel);
  margin-bottom: 1.3rem;
}

.site-footer li + li { margin-top: 0.7rem; }

.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: var(--camel); }

.site-footer address { font-style: normal; line-height: 1.9; }

.site-footer__social { display: flex; gap: 1rem; margin-top: 1.6rem; }

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(250, 247, 242, 0.25);
  border-radius: 50%;
  transition: border-color 0.3s, color 0.3s;
}

.site-footer__social a:hover { border-color: var(--camel); color: var(--camel); }

.site-footer__social svg { width: 1rem; height: 1rem; }

.site-footer__legal {
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.5);
}

@media (max-width: 63.99em) { .site-footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 35.99em)  { .site-footer__main { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   15. Scroll reveals (elements start hidden, main.js reveals them)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* If JS is unavailable, never hide content */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   16. Page-specific helpers
   -------------------------------------------------------------------------- */
/* Inner-page hero (About / Vision / Projects / Contact) */
.page-hero {
  padding-top: clamp(9rem, 16vw, 13rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-hero h1 { max-width: 14em; }
.page-hero .lede { margin-top: 1.6rem; }

/* Simple filter row on the Projects page */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.filter-btn {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--hairline);
  color: var(--charcoal-soft);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}

.filter-btn:hover { border-color: var(--camel); color: var(--camel-deep); }

.filter-btn.is-active {
  background-color: var(--camel);
  border-color: var(--camel);
  color: var(--charcoal);
}

/* Alternating image/text story rows (About & Vision pages) */
.story-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.story-row + .story-row { margin-top: var(--space-section); }

.story-row:nth-child(even) .story-row__media { order: 2; }

.story-row__media { overflow: hidden; }

.story-row__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-row__text h2 { margin-bottom: 1.2rem; max-width: 14em; }
.story-row__text p { color: var(--charcoal-soft); }
.story-row__text p + p { margin-top: 1.2rem; }

@media (max-width: 63.99em) {
  .story-row { grid-template-columns: 1fr; }
  .story-row:nth-child(even) .story-row__media { order: 0; }
}

/* Quiet full-width CTA band used at the foot of inner pages */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18em; margin-inline: auto; }
.cta-band .btn { margin-top: 2.2rem; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background-color: var(--charcoal);
  color: var(--cream);
  padding: 0.8rem 1.4rem;
  font-size: var(--text-small);
}

.skip-link:focus { top: 1rem; }
