:root {
  --bg: #f3efe7;
  --paper: #fffdf8;
  --ink: #1a1f1d;
  --muted: #5d655f;
  --line: rgba(26, 31, 29, 0.1);
  --brand: #be5c2b;
  --brand-deep: #7e3414;
  --accent: #23463f;
  --accent-soft: #dfe9e5;
  --sand: #ead8bf;
  --shadow: 0 24px 60px rgba(30, 28, 24, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(190, 92, 43, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(35, 70, 63, 0.12), transparent 26%),
    linear-gradient(180deg, #f6f2eb 0%, #f2eee7 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.topbar,
.nav-shell,
.section,
.footer-grid,
.footer-bottom,
.hero-inner,
.stats,
.cta-band,
.page-shell,
.thankyou-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  padding-top: 16px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  backdrop-filter: blur(10px);
}

.topbar p,
.topbar a {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.topbar a {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(126, 52, 20, 0.22);
}

.topbar a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(126, 52, 20, 0.28);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 150px;
}

.brand strong {
  display: block;
  font-family: "Merriweather", serif;
  font-size: 1.2rem;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.site-nav a,
.header-cta,
.button,
.ghost-button {
  border-radius: 999px;
  transition: 0.25s ease;
}

.site-nav > a,
.nav-dropdown > a {
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 600;
}

.site-nav > a:hover,
.site-nav > a.is-active,
.nav-dropdown > a:hover,
.nav-dropdown > a.is-active {
  background: rgba(35, 70, 63, 0.1);
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow);
  z-index: 10;
}

.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  background: rgba(35, 70, 63, 0.08);
  color: var(--accent);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  display: block;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(126, 52, 20, 0.2);
}

.header-cta:hover,
.button:hover {
  background: var(--brand-deep);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 700;
}

.ghost-button.dark {
  border-color: rgba(26, 31, 29, 0.14);
  color: var(--ink);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  padding: 12px 0 32px;
}

.hero-card,
.page-hero,
.content-card,
.service-card,
.panel,
.gallery-card,
.cta-band,
.flash,
.thankyou-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  min-height: 640px;
  background:
    linear-gradient(110deg, rgba(14, 21, 18, 0.88) 0%, rgba(14, 21, 18, 0.72) 42%, rgba(14, 21, 18, 0.32) 100%),
    url("../upload/banner/1405019881banner_1.jpg") center/cover no-repeat;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
  min-height: 640px;
  padding: 72px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.thankyou-card h1 {
  margin: 0 0 18px;
  font-family: "Merriweather", serif;
  line-height: 1.15;
}

.hero h1 {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
}

.hero-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-highlights {
  display: grid;
  gap: 16px;
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.14);
  backdrop-filter: blur(10px);
  color: #fff;
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}

.trust-strip {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.trust-card {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.trust-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Merriweather", serif;
  color: var(--accent);
  font-size: 1rem;
}

.trust-card span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.trust-card-accent {
  background: linear-gradient(135deg, rgba(35, 70, 63, 0.98), rgba(44, 93, 83, 0.98));
  border-color: rgba(35, 70, 63, 0.16);
}

.trust-card-accent strong,
.trust-card-accent span {
  color: #fff;
}

.stat {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 1.8rem;
  font-family: "Merriweather", serif;
}

.stat span {
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: 74px 0 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
  max-width: 620px;
}

.cards-3,
.cards-4,
.gallery-grid,
.footer-grid,
.service-grid,
.project-grid,
.testimonial-grid {
  display: grid;
  gap: 24px;
}

.cards-3,
.gallery-grid,
.project-grid,
.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-4,
.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.gallery-card,
.content-card,
.panel,
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
}

.service-card img,
.gallery-card img,
.panel > img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-card-body,
.gallery-card-body,
.panel-body {
  padding: 24px;
}

.service-card h3,
.gallery-card h3,
.panel h3,
.content-card h3 {
  margin: 0 0 12px;
  font-family: "Merriweather", serif;
  font-size: 1.35rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--brand-deep);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 28px;
}

.content-card {
  padding: 34px;
}

.rich-content h1,
.rich-content h2,
.rich-content h3 {
  margin: 0 0 16px;
  font-family: "Merriweather", serif;
  color: var(--ink);
}

.rich-content ul {
  margin: 0 0 1rem;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.rich-content td,
.rich-content th {
  padding: 14px 16px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.rich-content xmp {
  white-space: pre-wrap;
}

.checklist,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist li,
.chip-list li {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.page-hero {
  position: relative;
  min-height: 420px;
  margin-top: 12px;
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(14, 21, 18, 0.88), rgba(14, 21, 18, 0.38));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 72px 0 52px;
  color: #fff;
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.page-shell {
  padding: 32px 0 0;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 74px;
  padding: 34px;
  background: linear-gradient(135deg, var(--accent), #2c5d53);
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer {
  margin-top: 88px;
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.footer-logo {
  width: 150px;
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 10px;
  color: var(--muted);
}

.footer-bottom {
  padding-top: 24px;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(26, 31, 29, 0.14);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto;
  padding: 0;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

#project_state[readonly] {
  background: #edf0f2;
  color: #5f6762;
  cursor: not-allowed;
}

.estimate-layout {
  display: grid;
  gap: 22px;
}

.estimate-sidebar,
.estimate-card {
  position: relative;
}

.estimate-sidebar h2 {
  margin: 0 0 14px;
  font-family: "Merriweather", serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.eyebrow-dark {
  background: rgba(35, 70, 63, 0.12);
  color: var(--accent);
}

.field-note {
  padding: 0 0 2px;
}

.field-note label {
  margin-bottom: 4px;
  font-family: "Merriweather", serif;
  font-size: 1rem;
}

.field-note p {
  margin: 0;
  font-size: 0.95rem;
}

.captcha-box {
  display: inline-flex;
  padding: 14px;
  border: 1px solid rgba(26, 31, 29, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(243, 239, 231, 0.92));
}

.captcha-box img {
  border-radius: 10px;
}

.estimate-sidebar .panel-body {
  padding: 20px 24px;
}

.estimate-sidebar p {
  margin-bottom: 0;
}

.estimate-card {
  padding: 40px;
}

.flash {
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.flash.success {
  border-color: rgba(35, 102, 76, 0.22);
  background: #edf9f2;
  color: #21533e;
}

.flash.error {
  border-color: rgba(146, 42, 42, 0.22);
  background: #fff2ef;
  color: #7b2f2f;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 24px;
}

.detail-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.map-frame iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: var(--radius-md);
}

.thankyou-shell {
  padding: 48px 0 0;
}

.thankyou-card {
  padding: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}

.thankyou-card h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.area-links a {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.area-links a:hover {
  background: rgba(35, 70, 63, 0.16);
}

.testimonial-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.testimonial-card h3 {
  margin: 0 0 6px;
  font-family: "Merriweather", serif;
}

.testimonial-card .testimonial-area {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--brand-deep);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.testimonial-card .stars {
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.mobile-call-fab {
  position: fixed;
  right: 16px;
  bottom: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 34px rgba(126, 52, 20, 0.28);
  z-index: 30;
  animation: mobileCallPulse 1.8s ease-in-out infinite;
}

@keyframes mobileCallPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 1080px) {
  .hero-inner,
  .split,
  .cards-4,
  .service-grid,
  .footer-grid,
  .form-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-3,
  .gallery-grid,
  .project-grid,
  .stats,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .nav-shell,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .nav-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 6px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-menu a {
    padding-left: 18px;
  }

  .hero-card,
  .page-hero {
    min-height: auto;
  }

  .hero-inner,
  .page-hero-content {
    padding-top: 48px;
    padding-bottom: 42px;
  }

  .cards-3,
  .gallery-grid,
  .project-grid,
  .stats,
  .testimonial-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .content-card,
  .panel-body,
  .service-card-body,
  .gallery-card-body,
  .thankyou-card {
    padding: 24px;
  }
}

@media (max-width: 1024px) {
  .mobile-call-fab {
    display: inline-flex;
  }
}
