:root {
  --cream: #F6F3E7;
  --sand: #F5F0E8;
  --ink: #1A202C;
  --wine: #3C101E;
  --accent: #65000B;
  --footer: #8B3F1F;
  --muted: #5B4F44;
  --rule: rgba(44, 31, 14, 0.2);
  --serif: "Radley", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
}

.skip-link:focus {
  top: 16px;
}

/* Placeholder image blocks. Replace each .ph element with an <img> once real photography is available. */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7d7060, #4f453b);
}

.ph::before {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 82px;
  padding: 0 24px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  border-bottom: 1px solid transparent;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(246, 243, 231, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--rule);
  box-shadow: 0 4px 20px rgba(26, 32, 44, 0.04);
}

.wordmark {
  grid-column: 1;
  justify-self: start;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.wordmark:hover {
  color: var(--accent);
  transform: scale(1.02);
}

.site-nav {
  grid-column: 2;
  justify-self: center;
}

.site-nav ul {
  display: flex;
  gap: 23px;
}

.site-nav a {
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: 100%;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: none;
  color: var(--accent);
}

.header-cta {
  grid-column: 3;
  justify-self: end;
}

.nav-toggle {
  display: none;
}

.mobile-nav-contact {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid transparent;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 26px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(101, 0, 11, 0.18);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-small {
  padding: 10px 20px;
  font-size: 16px;
  line-height: 22px;
}

.btn-solid {
  background: var(--accent);
  color: #fff;
}

.btn-solid:hover {
  background: var(--wine);
}

.btn-outline {
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--ink);
}

.btn-dark {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-dark:hover {
  background: var(--ink);
  color: var(--cream);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 765px;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background-color: #24201d;
}

.hero .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
  pointer-events: none;
}

.hero .ph {
  position: absolute;
  inset: 0;
}

.hero .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 5%;
}

.hero h1 {
  margin-bottom: 40px;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.045em;
  animation: heroEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero .btn,
.hero-content div {
  animation: heroEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shared type and sections */
.section {
  padding: clamp(72px, 10.4vw, 150px) 5%;
}

.section-intro {
  max-width: 880px;
}

.title {
  font-family: var(--serif);
  font-size: clamp(2rem, 2.92vw, 42px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.lead {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 30px;
}

.card-title {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}

.card-text {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.price {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 20px;
}

.meta {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.text-link::after {
  content: " →";
  display: inline-block;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--wine);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.service-card,
.package,
.team-card,
.blog-card,
.carousel-slide article {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.service-card:hover,
.package:hover,
.team-card:hover,
.blog-card:hover,
.carousel-slide article:hover {
  transform: translateY(-4px);
}

.service-card .ph,
.team-card .ph,
.blog-card .ph,
.carousel-slide .ph {
  aspect-ratio: 4 / 5;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.service-card:hover .ph,
.team-card:hover .ph,
.blog-card:hover .ph,
.carousel-slide:hover .ph {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Packages */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.package {
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  background: var(--sand);
  border: 1px solid var(--rule);
}

.package-name {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
}

.package .btn {
  align-self: flex-start;
}

.inclusions {
  flex: 1;
  margin: 24px 0 32px;
}

.inclusions li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
}

.inclusions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 32px;
  padding: 32px;
  background: var(--sand);
  border: 1px solid var(--rule);
}

.addon-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.addon .price {
  margin-top: 0;
  white-space: nowrap;
}

/* Feature split */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

.split .ph {
  aspect-ratio: 4 / 3;
}

/* Statement */
.statement {
  padding: 70px 5%;
  background: var(--wine);
  color: var(--cream);
  text-align: center;
}

.statement h2 {
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.5;
}

/* Projects carousel */
.projects {
  padding: 56px 0 48px;
  background: var(--sand);
}

.section-head {
  padding: 0 5%;
}

.carousel-track {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  padding: 0 5% 8px;
  overflow-x: auto;
  scroll-padding: 0 5%;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 min(420px, 80vw);
  scroll-snap-align: start;
}

.carousel-slide .ph {
  aspect-ratio: 4 / 5;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding: 0 5%;
}

.carousel-btn {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.carousel-btn:hover {
  background: var(--ink);
  color: var(--cream);
}

/* Survey banner */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 5%;
  background: var(--accent);
  color: #fff;
}

.banner .lead {
  max-width: 640px;
}

/* About and team */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
}

.about-grid > p {
  padding-top: 8px;
  font-size: 18px;
  line-height: 1.7;
}

.subhead {
  margin-top: 96px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.3;
}

.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.team-card .ph {
  aspect-ratio: 3 / 4;
}

.team-card .card-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
  counter-reset: step;
}

.steps li {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}

/* FAQ */
.faq-list {
  margin-top: 56px;
  border-bottom: 1px solid var(--rule);
}

.faq-list details {
  border-top: 1px solid var(--rule);
  transition: background-color 0.25s ease;
}

.faq-list details[open] {
  background-color: rgba(245, 240, 232, 0.45);
}

.faq-list summary {
  position: relative;
  padding: 24px 48px 24px 8px;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.faq-list summary:hover {
  color: var(--accent);
  padding-left: 14px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 26px;
  line-height: 1;
  transition: transform 0.25s ease, color 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "\2212";
  color: var(--accent);
  transform: translateY(-50%) rotate(180deg);
}

.faq-list details p {
  max-width: 880px;
  padding: 0 48px 24px 8px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  animation: faqOpenAnim 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes faqOpenAnim {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Form Inputs */
.contact-form input,
.contact-form textarea,
.contact-form select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(101, 0, 11, 0.12);
  background-color: #fff !important;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }

/* Blog teaser */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.blog-card .ph {
  aspect-ratio: 3 / 2;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.contact-details {
  border-top: 1px solid var(--rule);
}

.contact-details div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.contact-details dt {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details dd {
  font-family: var(--serif);
  font-size: 18px;
}

/* Footer */
.site-footer {
  padding: 60px 48px 30px;
  background: var(--footer);
  color: var(--sand);
  font-family: var(--display);
  font-size: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 309fr 257fr 257fr 386fr;
  gap: 40px;
}

.footer-wordmark {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
}

.footer-grid h2 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 600;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 240, 232, 0.25);
  font-family: var(--display);
  font-size: 13px;
  line-height: 19.5px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* Trust strip */
.trust-strip {
  padding: 44px 5%;
  background: var(--sand);
  border-bottom: 1px solid var(--rule);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  text-align: center;
}

.trust-item .num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
}

.trust-item .label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Pillars of Excellence */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.pillar-card {
  padding: 32px 24px;
  background: var(--sand);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
}

.pillar-card .pillar-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
}

.pillar-card h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.pillar-card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Estimator Widget */
.estimator-card {
  margin-top: 56px;
  padding: clamp(32px, 5vw, 48px);
  background: var(--sand);
  border: 1px solid var(--rule);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.estimator-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.estimator-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--muted);
}

.estimator-select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--rule);
  background: #fff;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
}

.estimator-result {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--rule);
  text-align: center;
}

.estimator-result .est-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.estimator-result .est-price {
  margin: 10px 0 6px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 38px);
  font-weight: 600;
  color: var(--accent);
}

.estimator-result .est-timeline {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--rule);
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
  color: var(--ink);
}

.testimonial-card footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.testimonial-card .author {
  font-weight: 600;
  font-size: 15px;
}

.testimonial-card .project-tag {
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1099px) {
  .service-grid,
  .trust-grid,
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 899px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 18px;
    background: rgba(246, 243, 231, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
  }

  .site-header.is-scrolled {
    height: 60px;
    box-shadow: 0 2px 14px rgba(26, 32, 44, 0.06);
  }

  .wordmark {
    font-size: 23px;
    letter-spacing: -0.02em;
  }

  .header-cta {
    margin-left: auto;
    margin-right: 10px;
    padding: 8px 16px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--sand);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .nav-toggle:hover {
    background: #fff;
    border-color: var(--accent);
  }

  .nav-toggle-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: background 0.2s ease;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-toggle-icon::before {
    top: -6px;
  }

  .nav-toggle-icon::after {
    top: 6px;
  }

  /* Animated Morph to 'X' */
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* Fullscreen / Sheet Mobile Navigation Drawer */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    background: var(--cream);
    padding: 24px 20px 48px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    border-top: 1px solid var(--rule);
    z-index: 19;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .site-nav li {
    border-bottom: 1px solid var(--rule);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 22px;
    font-family: var(--serif);
    color: var(--ink);
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
  }

  .site-nav a::after {
    content: "\2192";
    font-size: 18px;
    color: var(--muted);
    transition: transform 0.15s ease, color 0.15s ease;
    width: auto;
    height: auto;
    position: static;
    background: none;
  }

  .site-nav a[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
  }

  .site-nav a[aria-current="page"]::after {
    color: var(--accent);
    transform: translateX(4px);
  }

  .site-nav a:hover,
  .site-nav a:active {
    color: var(--accent);
    padding-left: 6px;
  }

  .site-nav a:hover::after,
  .site-nav a:active::after {
    color: var(--accent);
    transform: translateX(6px);
  }

  .mobile-nav-contact {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
  }

  .mobile-nav-contact .contact-phone {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
  }

  .mobile-nav-contact .contact-hours {
    font-size: 13px;
    color: var(--muted);
  }

  .mobile-nav-contact .btn {
    margin-top: 14px;
    width: 100%;
    text-align: center;
    color: #fff !important;
    background: var(--accent) !important;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    display: block;
    box-shadow: 0 4px 14px rgba(101, 0, 11, 0.25);
  }

  .mobile-nav-contact .btn::after {
    display: none !important;
  }

  .mobile-nav-contact .btn:hover {
    background: var(--wine) !important;
    color: #fff !important;
  }

  body.nav-open .ai-chat-launcher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }

  .hero {
    height: auto;
    padding: 140px 0 100px;
  }

  .package-grid,
  .split,
  .about-grid,
  .contact-grid,
  .estimator-grid,
  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 64px 5%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .site-header {
    height: 62px;
    padding: 0 14px;
  }

  .site-header.is-scrolled {
    height: 56px;
  }

  .site-nav {
    height: calc(100vh - 62px);
    height: calc(100dvh - 62px);
    padding: 18px 16px 36px;
  }

  .wordmark {
    font-size: 21px;
  }

  .header-cta {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 8px;
  }

  .hero {
    min-height: 82vh;
    padding: 110px 16px 70px;
    display: flex;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 7.8vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
  }

  .hero-content div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-content .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .section {
    padding: 56px 16px;
  }

  .title {
    font-size: clamp(1.75rem, 6.2vw, 2.25rem);
    line-height: 1.2;
  }

  .lead {
    font-size: 17px;
    line-height: 26px;
    margin-top: 14px;
  }

  .trust-strip {
    padding: 32px 16px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .trust-item .num {
    font-size: 28px;
  }

  .trust-item .label {
    font-size: 12px;
    margin-top: 4px;
  }

  .service-grid,
  .steps,
  .team,
  .blog-grid,
  .pillars-grid,
  .testimonial-grid,
  .package-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 36px;
    gap: 20px;
  }

  .steps {
    gap: 32px;
  }

  .pillar-card {
    padding: 24px 18px;
  }

  .estimator-card {
    padding: 24px 16px;
    margin-top: 32px;
  }

  .estimator-grid {
    gap: 24px;
  }

  .estimator-select {
    font-size: 15px;
    padding: 12px;
  }

  .estimator-result {
    padding: 24px 16px;
  }

  .estimator-result .est-price {
    font-size: 26px;
  }

  .statement {
    padding: 64px 20px;
  }

  .statement h2 {
    font-size: 26px;
    line-height: 1.35;
  }

  .subhead {
    margin-top: 56px;
    font-size: 28px;
  }

  .package {
    padding: 32px 20px;
  }

  .package-name {
    font-size: 28px;
  }

  .addon {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 16px;
  }

  .contact-grid {
    gap: 40px;
  }

  .contact-details div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 16px 0;
  }

  .contact-form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px !important;
    padding: 12px 14px !important;
  }

  .site-footer {
    padding: 48px 20px 24px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 36px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 16px;
  }

  .ai-chat-launcher {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .carousel-btn {
    transition: none;
  }
}

/* AI Assistant Chatbot Widget */
.ai-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--wine);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(60, 16, 30, 0.35);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ai-chat-launcher:hover {
  transform: translateY(-2px);
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(101, 0, 11, 0.4);
}

.ai-chat-launcher .icon-bubble {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.ai-chat-launcher .pulse-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.ai-chat-window {
  position: fixed;
  bottom: 86px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 110px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-chat-window.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  background: var(--wine);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-header .header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-header .header-avatar {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.ai-chat-header .header-text h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}

.ai-chat-header .header-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-chat-header .status-indicator {
  width: 6px;
  height: 6px;
  background: #22C55E;
  border-radius: 50%;
  display: inline-block;
}

.ai-chat-header .btn-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease;
}

.ai-chat-header .btn-close:hover {
  color: #fff;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cream);
}

.ai-bubble {
  max-width: 85%;
  font-size: 14px;
  line-height: 1.5;
  padding: 11px 14px;
  word-break: break-word;
}

.ai-bubble.bot {
  align-self: flex-start;
  background: var(--sand);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 12px 12px 12px 2px;
}

.ai-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-radius: 12px 12px 2px 12px;
}

.ai-bubble.typing {
  align-self: flex-start;
  background: var(--sand);
  border: 1px solid var(--rule);
  border-radius: 12px 12px 12px 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.ai-bubble.typing span {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typingBounce 1s infinite alternate;
}

.ai-bubble.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-bubble.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0% { transform: translateY(0); opacity: 0.4; }
  100% { transform: translateY(-4px); opacity: 1; }
}

.ai-chat-suggestions {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(44, 31, 14, 0.04);
  border-top: 1px solid var(--rule);
}

.ai-chat-suggestions button {
  font-family: inherit;
  font-size: 12px;
  padding: 5px 11px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ai-chat-suggestions button:hover {
  background: var(--sand);
  border-color: var(--accent);
  color: var(--accent);
}

.ai-chat-input-bar {
  display: flex;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--rule);
  gap: 8px;
}

.ai-chat-input-bar input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--sand);
}

.ai-chat-input-bar input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.ai-chat-input-bar button {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ai-chat-input-bar button:hover {
  background: var(--wine);
}

@media (max-width: 639px) {
  .ai-chat-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    border: none;
  }
}

