/* ============================================================
   AGFBuild — Light Sandstone Theme
   Sand-cream body, deep ink text, golden sandstone accents
   ============================================================ */

:root {
  --bg: #FAF4EC;
  --ink: #2B2118;
  --sand: #C79B5F;
  --sand-strong: #96682F;
  --sand-deep: #7E5424;
  --pale: #EFE0C8;
  --line: #E2D2B6;
  --hairline: #C6AE84;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2B2118;
  background-color: #FAF4EC;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #2B2118;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: #96682F;
  text-decoration: none;
}

a:hover {
  color: #7E5424;
}

img {
  max-width: 100%;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn-primary {
  background: #C79B5F;
  color: #2B2118;
}

.btn-primary:hover {
  background: #B9894C;
  color: #2B2118;
}

.btn-outline {
  background: transparent;
  color: #2B2118;
  border: 2px solid #2B2118;
}

.btn-outline:hover {
  background: #2B2118;
  color: #FAF4EC;
}

.btn-ink {
  background: #2B2118;
  color: #FAF4EC;
}

.btn-ink:hover {
  background: #40301F;
  color: #FAF4EC;
}

/* ---------- Right Vertical Rail Navigation ---------- */

.menu-toggle {
  display: none;
}

.nav-scrim {
  display: none;
}

.rail-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 90px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: #FAF4EC;
  border-left: 1px solid #C79B5F;
  padding: 30px 0;
}

.rail-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #2B2118;
  font-size: 13px;
  letter-spacing: 7px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.rail-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #2B2118;
}

.rail-link::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #C79B5F;
  display: inline-block;
  flex: none;
}

.rail-link:hover {
  color: #7E5424;
}

.rail-link.active {
  color: #7E5424;
}

.rail-link.active::before {
  width: 3px;
  height: 16px;
  background: #C79B5F;
}

/* ---------- Layout shell ---------- */

.main-shell {
  padding-right: 90px;
}

/* ---------- Centered Stack Hero ---------- */

.center-stack-hero {
  background: #FAF4EC;
  padding: 96px 40px 80px;
  text-align: center;
}

.eyebrow-chip {
  display: inline-block;
  background: #C79B5F;
  color: #2B2118;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 9px 20px;
}

.center-stack-hero h1 {
  font-size: 54px;
  line-height: 1.12;
  max-width: 880px;
  margin: 30px auto 0;
  color: #2B2118;
}

.hero-subcopy {
  max-width: 740px;
  margin: 26px auto 0;
  font-size: 18px;
  color: #2B2118;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Building block graphic ---------- */

.block-stack {
  margin-top: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.block {
  background: #C79B5F;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-top {
  width: 130px;
  height: 46px;
}

.block-mid {
  width: 214px;
  height: 54px;
}

.block-low {
  width: 298px;
  height: 62px;
}

.win {
  width: 14px;
  height: 14px;
  background: #2B2118;
}

/* ---------- Shared section heads ---------- */

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 52px;
}

.kicker {
  color: #96682F;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: 40px;
  margin-top: 14px;
}

.section-head h1 {
  font-size: 46px;
  margin-top: 16px;
}

.section-lead {
  margin-top: 18px;
  font-size: 17px;
  color: #2B2118;
}

/* ---------- Card grid section ---------- */

.card-grid-section {
  background: #EFE0C8;
  padding: 88px 40px;
}

.card-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-card {
  background: #FAF4EC;
  border-top: 5px solid #C79B5F;
  padding: 36px 32px;
}

.card-icon {
  width: 34px;
  height: 34px;
  background: #C79B5F;
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.card-icon::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 11px;
  width: 12px;
  height: 12px;
  background: #2B2118;
}

.info-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.info-card p {
  color: #2B2118;
}

.founding-note {
  max-width: 860px;
  margin: 54px auto 0;
  text-align: center;
  font-size: 17px;
  color: #2B2118;
}

/* ---------- Metric band ---------- */

.metric-band {
  background: #EFE0C8;
  margin: 40px 0 0;
  padding: 58px 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.metric {
  flex: 1;
  min-width: 180px;
  max-width: 250px;
  text-align: center;
  padding: 0 26px;
  border-left: 1px solid #C6AE84;
}

.metric:first-child {
  border-left: none;
}

.metric-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 700;
  color: #96682F;
  display: block;
  line-height: 1.1;
}

.metric-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2B2118;
  display: block;
  margin-top: 8px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: #C79B5F;
  color: #2B2118;
  text-align: center;
  padding: 90px 40px;
}

.cta-band h2 {
  color: #2B2118;
  font-size: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-band p {
  max-width: 660px;
  margin: 18px auto 0;
  font-size: 17px;
  color: #2B2118;
}

.cta-band .btn {
  margin-top: 32px;
}

/* ---------- Single row footer ---------- */

.single-row-footer {
  background: #C79B5F;
  color: #2B2118;
  text-align: center;
  padding: 24px 130px 24px 40px;
}

.single-row-footer p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.9;
}

.single-row-footer a {
  color: #2B2118;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-row-footer a:hover {
  color: #2B2118;
}

/* ---------- Sub pages (services, contact) ---------- */

.sub-hero {
  background: #FAF4EC;
  padding: 88px 40px 64px;
  text-align: center;
}

.service-list {
  padding: 16px 40px 40px;
}

.service-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 34px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
  padding: 46px 0;
  border-top: 1px solid #E2D2B6;
}

.service-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
  color: #96682F;
}

.service-block h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.service-block p {
  max-width: 780px;
}

/* ---------- Process section ---------- */

.process-section {
  background: #EFE0C8;
  padding: 88px 40px;
}

.process-grid {
  max-width: 1080px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: #FAF4EC;
  border-top: 4px solid #C79B5F;
  padding: 28px 24px;
}

.step-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: #96682F;
}

.step-card h3 {
  font-size: 20px;
  margin: 8px 0 10px;
}

.step-card p {
  font-size: 15px;
  color: #2B2118;
}

/* ---------- Contact page ---------- */

.contact-section {
  background: #FAF4EC;
}

.contact-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 40px 76px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap {
  background: #EFE0C8;
  border-top: 5px solid #C79B5F;
  padding: 36px;
}

.contact-form-wrap h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.contact-form-wrap > p {
  font-size: 15px;
  margin-bottom: 24px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 2px solid #D8C49C;
  background: #FAF4EC;
  color: #2B2118;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #C79B5F;
}

.form-status {
  margin-top: 14px;
  font-weight: 700;
  min-height: 22px;
}

.form-status.ok {
  color: #2B2118;
}

.form-status.error {
  color: #8A1F1F;
}

.contact-details h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.contact-details > p {
  margin-bottom: 8px;
}

.detail-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #E2D2B6;
}

.detail-mark {
  width: 30px;
  height: 30px;
  background: #C79B5F;
  position: relative;
  flex: none;
  margin-top: 3px;
}

.detail-mark::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 11px;
  width: 8px;
  height: 8px;
  background: #2B2118;
}

.detail-row strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.detail-row p {
  margin-top: 2px;
  font-size: 16px;
}

.hours-list {
  list-style: none;
  margin-top: 4px;
}

.hours-list li {
  padding: 4px 0;
}

/* ---------- FAQ accordion ---------- */

.faq-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px 88px;
}

.faq-wrap h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.faq-wrap .faq-intro {
  margin-bottom: 24px;
}

.faq-item {
  border-top: 1px solid #D8C49C;
}

.faq-item:last-child {
  border-bottom: 1px solid #D8C49C;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  color: #2B2118;
  padding: 20px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  color: #96682F;
}

.faq-item.open .faq-question::after {
  content: "\2013";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-answer p {
  padding: 0 4px 22px;
}

/* ---------- Scroll reveal ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 300;
    width: 46px;
    height: 46px;
    background: #C79B5F;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: #2B2118;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-scrim {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2B2118;
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }

  .nav-scrim.open {
    pointer-events: auto;
  }

  .rail-nav {
    width: 250px;
    transform: translateX(100%);
    transition: transform .3s ease;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 84px 28px 40px;
  }

  .rail-nav.open {
    transform: none;
  }

  .rail-brand {
    writing-mode: horizontal-tb;
    letter-spacing: 5px;
    margin-bottom: 38px;
  }

  .rail-links {
    gap: 20px;
  }

  .main-shell {
    padding-right: 0;
  }

  .center-stack-hero h1 {
    font-size: 38px;
  }

  .section-head h1 {
    font-size: 36px;
  }

  .section-head h2,
  .cta-band h2 {
    font-size: 32px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    width: 50%;
    flex: none;
    max-width: none;
    border-left: none;
  }

  .metric:nth-child(odd) {
    border-left: none;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .single-row-footer {
    padding: 22px 24px;
  }

  .center-stack-hero,
  .card-grid-section,
  .metric-band,
  .cta-band,
  .sub-hero,
  .service-list,
  .process-section,
  .contact-layout,
  .faq-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .metric {
    width: 100%;
  }
}
