:root {
  --ink: #262320;
  --muted: #5b6a68;
  --forest: #566d4e;
  --forest-dark: #3f523a;
  --cedar: #9a6457;
  --cedar-dark: #7b4d43;
  --cream: #f4efe4;
  --cream-deep: #e9dfcd;
  --sage: #dfe7dc;
  --slate: #88a7c3;
  --blue: #88a7c3;
  --blue-dark: #6f8da8;
  --green-unit: #566d4e;
  --line: #d7cdbb;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(27, 36, 31, .08);
  --shadow-md: 0 16px 38px rgba(27, 36, 31, .13);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #faf7f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 9999;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 36px), 820px); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(244, 239, 228, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(189, 162, 98, .30);
}
.header-row { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.brand {
  text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; flex: 0 0 auto;
}
.brand-wordmark {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.55rem; letter-spacing: -.035em;
}
.brand-wordmark .four { color: #9c7b3c; }
.brand-wordmark .state { color: var(--forest); }
.brand-wordmark .cabins { color: var(--cedar-dark); }
.brand-wordmark .dotcom { color: var(--slate); }
.brand-sub { margin-top: 7px; font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }

.brand-image-link { display: block; flex: 0 0 auto; line-height: 0; }
.brand-lockup { width: 250px; height: auto; max-width: 31vw; }
.footer-logo-link { display: inline-block; line-height: 0; background: var(--cream); border-radius: 10px; overflow: hidden; }
.footer-lockup { width: min(360px, 100%); height: auto; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 3px; }
.main-nav a {
  text-decoration: none; font-size: .9rem; font-weight: 700; color: #39423c; padding: 11px 10px; border-radius: 8px;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active { background: var(--sage); color: var(--forest-dark); }
.header-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 9px; cursor: pointer;
}
.nav-toggle span { display: block; width: 23px; height: 2px; margin: 5px auto; background: var(--ink); transition: .2s; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 11px 17px; border-radius: 10px; border: 1px solid transparent; text-decoration: none;
  font-weight: 800; line-height: 1.1; cursor: pointer; transition: transform .15s ease, background .15s ease, border .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); }
.btn-secondary { background: var(--cream); border-color: #d4c7b1; color: var(--ink); }
.btn-secondary:hover { background: var(--cream-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-lg { min-height: 52px; padding-inline: 21px; font-size: 1rem; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .11em; font-size: .78rem;
  font-weight: 900; color: var(--forest); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--cedar); }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.09; margin: 0 0 14px; color: var(--ink); }
h1 { font-size: clamp(2.55rem, 6vw, 5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.035em; }
h3 { font-size: 1.45rem; letter-spacing: -.02em; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(1.06rem, 1.8vw, 1.28rem); color: #4e5a53; max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.hero { padding: 34px 0 58px; background: linear-gradient(180deg, #fbfaf7 0%, #f5f0e7 100%); }
.hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 34px; align-items: stretch; }
.hero-copy {
  align-self: center; padding: 34px 0 34px 2px;
}
.hero-copy h1 { max-width: 690px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin: 25px 0 24px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; color: #47524b; font-size: .9rem; font-weight: 700; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof span::before { content: "✓"; color: var(--forest); font-weight: 1000; }
.hero-media {
  min-height: 480px; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-md); background: #d7dfd7;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Desktop home hero: preserve the full panoramic three-cabin photo instead of
   stretching the image box to the height of the copy and cropping the sides. */
@media (min-width: 821px) {
  .hero-grid { align-items: center; }
  .hero-media {
    min-height: 0;
    aspect-ratio: 1800 / 1013;
    align-self: center;
  }
  .hero-media img { object-position: center center; }
}
.hero-badge {
  position: absolute; right: 18px; bottom: 18px; background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.8);
  padding: 13px 15px; border-radius: 12px; box-shadow: var(--shadow-sm); font-weight: 900;
}
.hero-badge small { display: block; font-weight: 700; color: var(--muted); margin-top: 2px; }

.section { padding: 76px 0; }
.section-soft { background: var(--cream); }
.section-sage { background: #eef3ef; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark .muted { color: #d3dbd6; }
.section-head { margin-bottom: 34px; }
.section-head.center { text-align: center; margin-inline: auto; max-width: 780px; }
.section-head.center .lead { margin-inline: auto; }

.inventory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.unit-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; min-width: 0;
}
.unit-card-media { aspect-ratio: 16/10; background: #dce2dd; overflow: hidden; position: relative; }
.unit-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
/* Keep the Homestead cabin centered vertically in wide desktop cards. */
@media (min-width: 701px) {
  .unit-card-media img[src*="homestead-exterior-hero"] { object-position: center 75%; }
}
.unit-card:hover .unit-card-media img { transform: scale(1.025); }
.status-badge {
  position: absolute; top: 13px; left: 13px; background: #fff; color: var(--forest-dark); border-radius: 999px; padding: 7px 10px;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; box-shadow: var(--shadow-sm);
}
.unit-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.unit-card-title { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.unit-card-title h3 { margin-bottom: 5px; }
.price { font-family: Georgia, "Times New Roman", serif; font-weight: 800; font-size: 1.72rem; white-space: nowrap; color: var(--forest-dark); }
.unit-meta { color: var(--muted); font-size: .92rem; font-weight: 700; margin-bottom: 15px; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.chip { background: #f2f4f1; border: 1px solid #dde3dd; border-radius: 999px; padding: 6px 9px; font-size: .78rem; font-weight: 800; color: #4c5850; }
.card-link { margin-top: auto; font-weight: 900; color: var(--forest); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { background: #fff; border: 1px solid var(--line); padding: 24px; border-radius: 14px; }
.feature-card .num { color: var(--cedar); font-weight: 900; letter-spacing: .08em; font-size: .8rem; margin-bottom: 9px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { font-size: .92rem; color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.split-card { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.split-card.accent { background: var(--forest); color: #fff; border-color: transparent; }
.split-card.accent h3 { color: #fff; }
.split-card.accent p { color: #e2ebe6; }

.callout {
  border: 1px solid #cbd8ce; background: #eef5ef; border-radius: var(--radius); padding: 26px 28px;
  display: flex; gap: 22px; align-items: center; justify-content: space-between;
}
.callout h3 { margin-bottom: 7px; }
.callout p { margin: 0; color: var(--muted); }
.callout-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }

.page-hero { padding: 56px 0 38px; background: var(--cream); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.35rem); }
.breadcrumbs { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--forest); text-decoration: none; font-weight: 800; }
.breadcrumbs a:hover { text-decoration: underline; }

.product-hero { padding: 44px 0 60px; }
.product-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: stretch; }
.product-image { border-radius: var(--radius-lg); overflow: hidden; min-height: 500px; box-shadow: var(--shadow-md); background: #dde3df; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.product-panel .status-line { color: var(--forest); font-weight: 900; text-transform: uppercase; letter-spacing: .09em; font-size: .77rem; }
.product-panel h1 { font-size: clamp(2.35rem, 4.5vw, 3.7rem); margin-top: 8px; }
.product-panel .product-price { font-family: Georgia, serif; font-size: 2.3rem; font-weight: 800; color: var(--forest-dark); margin: 3px 0 15px; }
.product-panel .summary { color: var(--muted); font-size: 1.03rem; }
.quick-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 24px; }
.quick-spec { background: #f5f5f1; border: 1px solid #e2e1da; border-radius: 10px; padding: 12px; }
.quick-spec strong { display: block; font-size: 1.02rem; }
.quick-spec span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.availability-note { margin-top: 14px; color: var(--muted); font-size: .8rem; }

.spec-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 28px; }
.spec-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-list strong { color: #39453e; }
.spec-list span { color: var(--muted); }
.spec-card { background: var(--cream); border: 1px solid #dfd5c5; border-radius: var(--radius); padding: 25px; }
.spec-card h3 { margin-bottom: 10px; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 7px 0 7px 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--forest); font-weight: 1000; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.gallery-item { border: 0; padding: 0; background: #ddd; border-radius: 12px; overflow: hidden; cursor: zoom-in; position: relative; min-height: 210px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item:nth-child(6n+1), .gallery-item:nth-child(6n+2) { grid-column: span 6; min-height: 330px; }
.gallery-item:nth-child(6n+3), .gallery-item:nth-child(6n+4), .gallery-item:nth-child(6n+5), .gallery-item:nth-child(6n+6) { grid-column: span 3; }

.lightbox { width: min(96vw, 1150px); border: 0; border-radius: 16px; padding: 0; background: #111; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lightbox::backdrop { background: rgba(0,0,0,.78); }
.lightbox-inner { position: relative; }
.lightbox img { max-height: 82vh; width: 100%; object-fit: contain; background: #111; }
.lightbox-caption { padding: 12px 18px 16px; color: #e4e4e4; font-size: .9rem; }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 999px; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 3; }

.video-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 20px; align-items: start; }
.video-card { background: #111; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.video-card video { width: 100%; background: #111; }
.video-caption { background: #fff; color: var(--ink); padding: 12px 14px; font-weight: 800; }

.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.comparison { border-collapse: collapse; width: 100%; min-width: 760px; }
.comparison th, .comparison td { padding: 15px 17px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison th { background: #f5f1e9; font-size: .86rem; text-transform: uppercase; letter-spacing: .05em; }
.comparison tr:last-child td { border-bottom: 0; }
.comparison td:first-child { font-weight: 800; color: #3d4741; width: 210px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: process; }
.process-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 23px; counter-increment: process; }
.process-card::before { content: "0" counter(process); display: block; color: var(--cedar); font-weight: 900; margin-bottom: 12px; letter-spacing: .08em; }
.process-card h3 { font-size: 1.18rem; }
.process-card p { color: var(--muted); font-size: .92rem; margin: 0; }

.faq-list { display: grid; gap: 10px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
summary { list-style: none; cursor: pointer; font-weight: 900; padding: 18px 34px 18px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 1.5rem; color: var(--forest); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding: 0 0 18px; margin: 0; }

.contact-panel { display: grid; grid-template-columns: 1fr .7fr; gap: 28px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-number { font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; color: var(--forest-dark); text-decoration: none; display: inline-block; margin: 6px 0 20px; }
.contact-number:hover { text-decoration: underline; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-tips { background: var(--cream); border: 1px solid #ded3c2; border-radius: var(--radius); padding: 28px; }

.site-footer { background: #1e2622; color: #dfe5e1; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 36px; }
.footer-brand .brand-wordmark { font-size: 1.55rem; }
.footer-brand p { color: #aeb8b2; max-width: 500px; margin-top: 14px; }
.footer-links h3 { color: #fff; font-family: Inter, sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 13px; }
.footer-links a { display: block; color: #c8d0cc; text-decoration: none; margin: 8px 0; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid #3a4540; color: #98a49d; font-size: .82rem; display: flex; justify-content: space-between; gap: 20px; }

.mobile-contact { display: none; }

.notice { font-size: .82rem; color: var(--muted); background: #f4f3ee; border: 1px solid #deddd6; border-radius: 10px; padding: 12px 14px; }

@media (max-width: 1040px) {
  .main-nav { position: fixed; inset: 77px 0 auto 0; background: #fbfaf7; padding: 16px 18px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); display: none; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 13px 12px; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { padding-bottom: 64px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .header-row { min-height: 68px; }
  .brand-wordmark { font-size: 1.3rem; }

  .brand-lockup { width: 210px; max-width: 68vw; }
  .brand-sub { display: none; }
  .main-nav { inset: 69px 0 auto 0; }
  .hero { padding-top: 22px; }
  .hero-grid, .product-grid, .split, .spec-layout, .contact-panel { grid-template-columns: 1fr; }
  .hero-copy { padding: 18px 0 4px; }
  .hero-media { min-height: 320px; order: -1; }
  .inventory-grid { grid-template-columns: 1fr; }
  .unit-card { display: grid; grid-template-columns: .92fr 1.08fr; }
  .unit-card-media { aspect-ratio: auto; min-height: 260px; }
  .price { font-size: 1.5rem; }
  .product-image { min-height: 360px; }
  .product-panel { padding: 24px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-grid-equal { grid-template-columns: 1fr; }
  .video-grid .video-card:nth-child(2) { max-width: 430px; justify-self: center; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 6; min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mobile-contact {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0; height: 64px;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(0,0,0,.1);
  }
  .mobile-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 900; }
  .mobile-contact a:first-child { background: var(--forest); color: #fff; }
  .mobile-contact a:last-child { background: var(--cream); color: var(--ink); }
}

@media (max-width: 600px) {
  h1 { font-size: 2.65rem; }
  h2 { font-size: 2.15rem; }
  .section { padding: 58px 0; }
  .hero-media { min-height: 260px; border-radius: 18px; }
  .hero-badge { left: 12px; right: auto; bottom: 12px; }
  .unit-card { display: block; }
  .unit-card-media { min-height: 230px; }
  .feature-grid, .process-grid { grid-template-columns: 1fr; }
  .callout { align-items: flex-start; flex-direction: column; }
  .quick-specs { grid-template-columns: 1fr 1fr; }
  .spec-list li { grid-template-columns: 1fr; gap: 2px; }
  .gallery { gap: 7px; }
  .gallery-item, .gallery-item:nth-child(n) { min-height: 180px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* Brand palette from the approved FourStateCabins.com artwork */
.eyebrow { color: var(--cedar); }
.status-badge { background: var(--forest); }
.hero-proof span::before { background: #bda262; }
.section-sage { background: #e7ece4; }
.section-dark { background: #262320; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #d9dfdb; }
.card-link { color: var(--forest-dark); }
.price, .product-price { color: var(--cedar); }
.video-grid-equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 820px) {
  .video-grid-equal { grid-template-columns: 1fr; }
}
