/*
 * main.css — RWC Northern Corridor
 * Gravity Projex | Copyright 2026 | All Rights Reserved.
 */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --white:    #ffffff;
  --sand:     #E8E6E1;
  --clay:     #C9C4BB;
  --concrete: #A09B96;
  --grit:     #6B6762;
  --steel:    #414042;
  --charcoal: #2a2829;
  --black:    #111111;
  --yellow:   #FFE512;
  --yellow-dk:#D4BF00;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --shadow: 0 2px 16px rgba(65,64,66,.10);
  --shadow-lg: 0 8px 40px rgba(65,64,66,.18);
  --transition: .2s ease;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--steel);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── LAYOUT HELPERS ─────────────────────────────────────── */
.container       { max-width: 800px;  margin: 0 auto; padding: 0 1.5rem; }
.container-wide  { max-width: 1300px; margin: 0 auto; padding: 0 1.5rem; }
.text-center     { text-align: center; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
  color: var(--steel);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { margin-bottom: 1rem; color: var(--grit); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: .75rem;
}
.eyebrow-light { color: var(--yellow); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary          { background: var(--yellow); color: var(--steel); }
.btn-primary:hover    { background: var(--yellow-dk); }
.btn-outline          { background: transparent; color: var(--steel); border: 2px solid var(--steel); }
.btn-outline:hover    { background: var(--steel); color: var(--white); }
.btn-outline-light    { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-lg               { padding: 1rem 2.5rem; font-size: 1rem; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  box-shadow: 0 1px 8px rgba(65,64,66,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}
.site-logo img { height: 44px; width: auto; }

/* Primary nav */
.primary-nav { margin-left: auto; }
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.primary-nav li a {
  display: block;
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--steel);
  border-radius: var(--radius);
  transition: var(--transition);
}
.primary-nav li a:hover,
.primary-nav li.active > a {
  color: var(--steel);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Dropdowns */
.primary-nav .has-drop { position: relative; }
.primary-nav .drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
  z-index: 200;
}
.primary-nav .has-drop:hover .drop,
.primary-nav .has-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .drop li a {
  padding: .6rem 1rem;
  font-size: .8rem;
  border-radius: 0;
  border-bottom: 1px solid var(--sand);
}
.primary-nav .drop li:last-child a { border-bottom: none; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--steel); transition: var(--transition); border-radius: 2px; }

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  background: var(--steel);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
}
.page-hero .eyebrow { color: var(--yellow); }
.page-hero h1 { color: var(--white); margin-top: .25rem; }

/* ── PAGE BODY ───────────────────────────────────────────── */
.page-body {
  padding: 4rem 0;
  background: var(--white);
}

/* ── PROSE ───────────────────────────────────────────────── */
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 .75rem; }
.prose p  { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin: 1rem 0 1.25rem 1.5rem; }
.prose li { margin-bottom: .5rem; }
.prose a  { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--yellow-dk); }
.prose strong { font-weight: 700; color: var(--steel); }
.post-thumb { margin-bottom: 2.5rem; border-radius: var(--radius); overflow: hidden; }
.post-thumb img { width: 100%; height: auto; }

/* ── SECTION BASE ────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-light   { background: var(--white); }
.section-muted   { background: var(--sand); }
.section-dark    { background: var(--charcoal); }
.section-accent  { background: var(--steel); }

.section-title       { margin: .75rem 0 1.25rem; }
.section-title.light { color: var(--white); }
.section-sub         { font-size: 1.05rem; color: var(--grit); max-width: 600px; margin: 0 auto 2.5rem; }
.section-sub.light   { color: var(--clay); }
.section-body        { font-size: 1.05rem; line-height: 1.75; max-width: 580px; margin-bottom: 2rem; }
.section-body.light  { color: var(--clay); }

/* ── SERVICES GRID ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.service-icon { color: var(--yellow-dk); margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.service-card p  { font-size: .925rem; flex: 1; }
.card-link { display: inline-block; margin-top: 1.25rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.service-card:hover .card-link { color: var(--yellow-dk); }

/* ── SPLIT SECTION ───────────────────────────────────────── */
.split-section { max-width: 700px; padding: 0 1.5rem; }
.split-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section .section-sub { margin-bottom: 2.5rem; }

/* ── POSTS GRID ──────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.post-card { border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-card-img img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 1.5rem; }
.post-date { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--concrete); display: block; margin-bottom: .5rem; }
.post-card-body h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.post-card-body h2 a:hover { color: var(--yellow-dk); }
.post-card-body p { font-size: .9rem; }
.read-more { display: inline-block; margin-top: 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pagination { display: flex; justify-content: center; gap: .5rem; }
.pagination .page-numbers { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--sand); border-radius: var(--radius); font-weight: 700; font-size: .875rem; transition: var(--transition); }
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--steel); color: var(--white); border-color: var(--steel); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--charcoal); color: var(--clay); }
.footer-top { padding: 4rem 0 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img { margin-bottom: 1.25rem; }
.footer-tagline { font-size: .9rem; color: var(--clay); margin-bottom: 1.25rem; line-height: 1.6; }
address { font-size: .875rem; color: var(--concrete); line-height: 1.9; }
address a { color: var(--clay); transition: var(--transition); }
address a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a { color: var(--concrete); transition: var(--transition); }
.footer-social a:hover { color: var(--yellow); }
.footer-col h4 { font-family: var(--font-sans); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--concrete); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .875rem; color: var(--clay); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom { background: var(--black); padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .8rem; color: var(--grit); margin: 0; }
.footer-bottom p a { color: var(--concrete); text-decoration: underline; }
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-bottom nav a { font-size: .8rem; color: var(--grit); transition: var(--transition); }
.footer-bottom nav a:hover { color: var(--clay); }

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--sand); padding: 1rem; z-index: 99; }
  .primary-nav.open { display: block; }
  .primary-nav > ul { flex-direction: column; gap: 0; }
  .primary-nav li a { padding: .75rem 1rem; border-bottom: 1px solid var(--sand); border-radius: 0; }
  .primary-nav .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-radius: 0; background: var(--sand); }
  .primary-nav .drop li a { padding-left: 2rem; background: var(--sand); }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .btn-header { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split-btns { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container, .container-wide { padding: 0 1rem; }
  .hero-btns { flex-direction: column; }
  .btn { text-align: center; }
}

/* ── INNER PAGE EXTRAS ───────────────────────────────────── */
.page-hero--tall { padding: 6rem 0 5rem; }
.lead { font-size: 1.15rem; line-height: 1.75; color: var(--grit); margin-bottom: 1.5rem; }
.section-white  { background: var(--white); }
.section-sand   { background: var(--sand); }
.section-steel  { background: var(--steel); }
h2.light, p.light { color: var(--white); }
.eyebrow--steel { color: var(--grit); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.about-intro { display: grid; grid-template-columns: 1fr 280px; gap: 4rem; align-items: start; }
.award-badge {
  background: var(--steel);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.award-badge__inner { text-align: center; padding: 2rem; }
.award-badge__label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--concrete); margin-bottom: .5rem; }
.award-badge__title { display: block; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--yellow); line-height: 1.2; margin-bottom: .35rem; }
.award-badge__sub { display: block; font-size: .75rem; color: var(--clay); letter-spacing: .06em; }
.about-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.about-stat__num { display: block; font-family: var(--font-serif); font-size: clamp(1.6rem,3vw,2.5rem); font-weight: 700; color: var(--steel); margin-bottom: .35rem; }
.about-stat__label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--grit); }
.offices-list { display: flex; flex-direction: column; gap: 1.25rem; }
.office-card { padding: 1.25rem; border: 1px solid var(--sand); border-radius: 4px; }
.office-card h4 { font-family: var(--font-sans); font-size: .875rem; font-weight: 900; margin-bottom: .5rem; }
.office-card address { font-size: .875rem; color: var(--grit); line-height: 1.7; }
.office-card address a { color: var(--grit); text-decoration: underline; text-underline-offset: 2px; }

/* ── CONTACT PAGE ────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: start; }
.contact-form .form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grit); }
.form-group label span { color: var(--concrete); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1px solid var(--clay);
  border-radius: 4px;
  font-family: inherit; font-size: 1rem;
  color: var(--steel); background: var(--white);
  transition: .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--steel); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-feedback { margin-top: 1rem; padding: .75rem 1rem; border-radius: 4px; font-size: .875rem; display: none; }
.form-feedback--ok { display: block; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.form-feedback--err { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.contact-office { margin-bottom: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--sand); }
.contact-office:last-of-type { border-bottom: none; }
.contact-office h3 { font-family: var(--font-sans); font-size: .875rem; font-weight: 900; margin-bottom: .5rem; }
.contact-office address { font-size: .875rem; color: var(--grit); line-height: 1.9; }
.contact-office address a { color: var(--grit); text-decoration: underline; text-underline-offset: 2px; }
.contact-hours, .contact-social { margin-bottom: 1.5rem; }
.contact-hours h4, .contact-social h4 { font-family: var(--font-sans); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--concrete); margin-bottom: .6rem; }
.contact-hours p { font-size: .875rem; color: var(--grit); line-height: 1.8; }
.social-row { display: flex; gap: 1.25rem; }
.social-row a { font-size: .875rem; font-weight: 700; color: var(--steel); text-decoration: underline; text-underline-offset: 2px; }
.social-row a:hover { color: var(--yellow-dk); }

/* ── APPRAISAL PAGE ──────────────────────────────────────── */
.appraisal-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
.promise-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin: 1.5rem 0; }
.promise-list li { display: flex; gap: 1.25rem; align-items: flex-start; }
.promise-num { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; background: var(--yellow); color: var(--steel); font-size: .75rem; font-weight: 900; border-radius: 3px; }
.promise-list strong { display: block; font-size: .95rem; margin-bottom: .25rem; }
.promise-list p { font-size: .875rem; color: var(--grit); margin: 0; }
.appraisal-contact { padding: 1.5rem; background: var(--sand); border-radius: 4px; }
.appraisal-contact p { font-size: .9rem; margin-bottom: .5rem; color: var(--grit); }
.appraisal-contact a { color: var(--steel); font-weight: 700; }

/* ── RESPONSIVE INNER PAGES ──────────────────────────────── */
@media (max-width: 900px) {
  .about-intro, .contact-layout, .appraisal-layout, .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .award-badge { max-width: 220px; }
  .contact-form .form-row--2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ── FOOTER SUBSCRIBE STRIP ──────────────────────────────────────────────────── */
.footer-subscribe {
  background: var(--grit);
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-subscribe__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-subscribe__copy {
  flex: 1;
  min-width: 220px;
  font-size: .875rem;
  color: var(--clay);
  line-height: 1.5;
}
.footer-subscribe__copy strong {
  display: block;
  color: var(--white);
  font-weight: 900;
  margin-bottom: .2rem;
}
.footer-subscribe__form {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.footer-subscribe__form input {
  padding: .6rem 1rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .875rem;
  width: 160px;
  transition: .15s;
}
.footer-subscribe__form input::placeholder { color: var(--concrete); }
.footer-subscribe__form input:focus { outline: none; border-color: var(--yellow); background: rgba(255,255,255,.12); }
.footer-subscribe__form button {
  padding: .6rem 1.25rem;
  background: var(--yellow);
  color: var(--steel);
  border: none;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.footer-subscribe__form button:hover { background: var(--yellow-dk); }
.footer-subscribe__feedback {
  width: 100%;
  font-size: .8rem;
  margin: .25rem 0 0;
  min-height: 1rem;
}
@media (max-width: 768px) {
  .footer-subscribe__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-subscribe__form input { width: 140px; }
}
