/* =================================================================
   AMANAH HOMES — SHARED DESIGN SYSTEM v1.0
   Used by every page on the site.
   Brand: Forest Green / Sage / Camel / Cream
   Type: Cormorant Garamond (display) + Inter (body)
   ================================================================= */

/* ----- Brand tokens ----- */
:root {
  --green:      #1F3A24;
  --green-2:    #2A4D31;
  --sage:       #7B8B5C;
  --camel:      #B8946C;
  --camel-2:    #C9A47B;
  --cream:      #F4ECD2;
  --cream-tint: #FBF7E8;
  --hairline:   #D9CFB1;
  --charcoal:   #2A2A2A;
  --white:      #FFFFFF;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius:   6px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(31, 58, 36, 0.06);
  --shadow-md: 0 6px 24px rgba(31, 58, 36, 0.10);
  --shadow-lg: 0 12px 40px rgba(31, 58, 36, 0.14);

  --max: 1200px;
  --gutter: 24px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream-tint);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--sage); }
button { font-family: inherit; cursor: pointer; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--green);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: clamp(22px, 2.5vw, 28px); }
h4 { font-size: 20px; }
p  { margin: 0 0 16px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--camel);
  margin-bottom: 12px;
  display: inline-block;
}
.tagline-italic {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage);
}

/* ----- Layout ----- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green); color: var(--cream); }
.section-green h1, .section-green h2, .section-green h3 { color: var(--cream); }

.grid       { display: grid; gap: 32px; }
.grid-2     { grid-template-columns: repeat(2, 1fr); }
.grid-3     { grid-template-columns: repeat(3, 1fr); }
.grid-4     { grid-template-columns: repeat(4, 1fr); }
.grid-auto  { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 232, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); max-width: var(--max); margin: 0 auto;
}
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .name {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--green);
}
.wordmark .sub {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.35em; color: var(--sage); margin-top: 2px;
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--charcoal);
  position: relative;
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); font-weight: 600; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: -16px;
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 12px;
  min-width: 240px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 10px 14px; font-size: 14px;
  border-radius: var(--radius); color: var(--charcoal);
}
.dropdown a:hover { background: var(--cream); color: var(--green); }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: transparent; border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 8px 12px;
  color: var(--green); font-weight: 600;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 14px 28px; border-radius: var(--radius);
  border: none; cursor: pointer; text-decoration: none;
  letter-spacing: 0.02em; transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-2); color: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--camel); color: var(--white); }
.btn-secondary:hover { background: var(--camel-2); color: var(--white); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--green);
  border: 1px solid var(--green);
}
.btn-ghost:hover { background: var(--green); color: var(--cream); }
.btn-lg { padding: 18px 36px; font-size: 15px; }

/* ----- Hero ----- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse at top right, rgba(184, 148, 108, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(123, 139, 92, 0.10), transparent 60%),
    var(--cream-tint);
  border-bottom: 1px solid var(--hairline);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px; align-items: center;
}
.hero h1 { margin-bottom: 12px; }
.hero .sub {
  font-size: 19px; color: var(--charcoal);
  margin-bottom: 32px; max-width: 540px; line-height: 1.55;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.trust-strip {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--sage); font-weight: 500;
}
.trust-strip span { display: flex; align-items: center; gap: 6px; }
.hero-visual {
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(184, 148, 108, 0.20), transparent 50%);
}
.hero-visual .seal {
  position: relative; z-index: 1;
  font-family: var(--serif); font-style: italic;
  color: var(--cream); font-size: 26px; text-align: center;
  padding: 0 32px; line-height: 1.4;
}

/* ----- Cards ----- */
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--cream); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: #555; font-size: 15px; margin-bottom: 0; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--green);
}
.card .card-link::after { content: "→"; transition: transform 0.2s; }
.card .card-link:hover::after { transform: translateX(4px); }

/* Service card variant */
.service-card {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.25s ease;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card .swatch {
  aspect-ratio: 16/9; background: var(--green);
  position: relative; overflow: hidden;
}
.service-card .swatch::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(184, 148, 108, 0.30), transparent 60%);
}
.service-card .swatch.outdoor    { background: linear-gradient(135deg, #2A4D31 0%, #7B8B5C 100%); }
.service-card .swatch.interior   { background: linear-gradient(135deg, #1F3A24 0%, #B8946C 100%); }
.service-card .swatch.additions  { background: linear-gradient(135deg, #2A2A2A 0%, #1F3A24 100%); }
.service-card .swatch.custom     { background: linear-gradient(135deg, #1F3A24 0%, #2A4D31 100%); }
.service-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 8px; }
.service-card p  { color: #555; font-size: 15px; flex: 1; }
.service-card .card-link { margin-top: 16px; }

/* ----- Forms ----- */
.field {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px;
}
.field label {
  font-size: 13px; font-weight: 600; color: var(--green);
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 58, 36, 0.10);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-help { font-size: 12px; color: var(--sage); }

/* Toggle pill */
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--white);
  font-size: 13px; font-weight: 500; color: var(--charcoal);
  cursor: pointer; transition: all 0.15s ease;
}
.pill:hover { border-color: var(--green); }
.pill.active {
  background: var(--green); color: var(--cream);
  border-color: var(--green);
}

/* Material card */
.mat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.mat {
  border: 2px solid var(--hairline); background: var(--white);
  border-radius: var(--radius); padding: 14px 12px;
  text-align: center; cursor: pointer; transition: all 0.15s ease;
}
.mat:hover { border-color: var(--sage); }
.mat.active { border-color: var(--green); background: var(--cream); }
.mat .mat-name { font-weight: 600; color: var(--green); font-size: 14px; margin-bottom: 4px; }
.mat .mat-price { font-size: 12px; color: var(--sage); }

/* Calculator output */
.calc-output {
  background: var(--green); color: var(--cream);
  border-radius: var(--radius-lg); padding: 32px;
  position: sticky; top: 100px;
}
.calc-output .label {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--camel); font-weight: 600; margin-bottom: 10px;
}
.calc-output .range {
  font-family: var(--serif); font-size: 36px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.1;
}
.calc-output .mid {
  font-size: 13px; opacity: 0.85; margin-top: 8px;
}
.calc-output .breakdown {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(244, 236, 210, 0.18);
  font-size: 13px;
}
.calc-output .breakdown .line {
  display: flex; justify-content: space-between; padding: 4px 0;
  color: rgba(244, 236, 210, 0.92);
}
.calc-output .cta-block { margin-top: 24px; }
.calc-output .cta-block .btn {
  display: block; text-align: center; background: var(--camel); color: var(--white);
}
.calc-output .cta-block .btn:hover { background: var(--camel-2); }

/* ----- Process / Step ----- */
.steps { display: grid; gap: 32px; }
.step {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px;
  align-items: flex-start;
}
.step-num {
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--cream); color: var(--green);
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { margin-bottom: 4px; }
.step p  { color: #555; font-size: 15px; margin: 0; }

/* ----- FAQ ----- */
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}
.faq summary {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--green); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--camel); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: #444; }

/* ----- Footer ----- */
.site-footer {
  background: var(--green); color: var(--cream); padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.site-footer h4 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--camel); margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { padding: 6px 0; font-size: 14px; }
.site-footer ul li a { color: var(--cream); opacity: 0.85; }
.site-footer ul li a:hover { opacity: 1; color: var(--camel); }
.site-footer .wordmark .name { color: var(--cream); }
.site-footer .wordmark .sub  { color: var(--camel); }
.site-footer .tagline {
  font-family: var(--serif); font-style: italic;
  color: var(--camel); margin-top: 14px; font-size: 16px;
}
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(244, 236, 210, 0.18);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(244, 236, 210, 0.7);
  flex-wrap: wrap; gap: 16px;
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 64px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--camel);
}

.divider { height: 1px; background: var(--hairline); margin: 32px 0; }

/* ----- Modal ----- */
.modal {
  position: fixed; inset: 0; background: rgba(31, 58, 36, 0.65);
  display: none; align-items: center; justify-content: center; z-index: 200;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-card {
  background: var(--cream-tint); max-width: 480px; width: 100%;
  border-radius: var(--radius-lg); padding: 40px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.modal-card h3 { margin-bottom: 12px; }
.modal-card .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 32px;
}
.modal-card p { color: #444; margin-bottom: 24px; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; margin: 0 auto; aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream-tint); padding: 20px 24px;
    gap: 16px; align-items: flex-start;
    border-bottom: 1px solid var(--hairline);
  }
  .calc-output { position: static; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .step { grid-template-columns: 1fr; }
}
