:root {
  --bg: #f8f1de;
  --bg-soft: #fff8eb;
  --panel: rgba(255, 250, 240, 0.9);
  --line: rgba(90, 58, 22, 0.14);
  --text: #2f210f;
  --muted: #72593d;
  --accent: #d08a1d;
  --accent-deep: #8a5a13;
  --accent-2: #50752f;
  --shadow: 0 20px 60px rgba(88, 58, 21, 0.12);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #fff8eb 0%, #f8f1de 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

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

.clickable-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(88, 58, 21, 0.18);
  border-color: rgba(138, 90, 19, 0.28);
}

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

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(#8a5a13 0.5px, transparent 0.5px);
  background-size: 10px 10px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 32px;
  backdrop-filter: blur(12px);
  background: rgba(255, 248, 235, 0.88);
  border-bottom: 1px solid var(--line);
}

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

.logo-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff6e4;
  border: 1px solid var(--line);
  padding: 6px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.logo {
  font-weight: 900;
  letter-spacing: 0.12em;
}

nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover { color: var(--text); }

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: center;
  min-height: 82vh;
  padding: 54px 0;
}

.eyebrow, .section-label, .mini-label {
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.hero h1, .section h2 {
  margin: 12px 0;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  max-width: 12ch;
}

.hero-text, .section p, .bullet-list, .hero-list {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

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

.btn {
  border: 1px solid var(--line);
  padding: 14px 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  border-radius: 999px;
}

.btn.primary {
  background: var(--accent);
  color: #fffaf0;
  border-color: var(--accent);
  font-weight: 700;
}

.btn.ghost {
  background: rgba(255,255,255,0.45);
}

.btn.ghost:hover, .btn.primary:hover {
  transform: translateY(-1px);
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.hero-card {
  padding: 30px;
}

.hero-photo-card {
  overflow: hidden;
}

.hero-photo {
  width: calc(100% + 60px);
  margin: -30px -30px 20px;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.logo-hero-photo {
  object-fit: contain;
  background: linear-gradient(180deg, #fff8eb 0%, #f6edd8 100%);
  padding: 10px 14px;
}

.hero-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.service-badge {
  display: inline-block;
  background: rgba(80, 117, 47, 0.1);
  color: var(--accent-2);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.hero-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-points span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  color: var(--accent-2);
  font-size: 0.88rem;
}

.hero-list, .bullet-list {
  padding-left: 20px;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.service-card {
  padding: 0;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.service-card-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: linear-gradient(180deg, #fff8eb 0%, #f6edd8 100%);
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.service-card-copy {
  padding: 20px 20px 22px;
  display: grid;
  gap: 12px;
}

.section-intro {
  max-width: 70ch;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.package-card {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.package-card-image {
  width: calc(100% + 44px);
  margin: -22px -22px 4px;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 28px 28px 0 0;
}

.package-card h3 {
  margin: 0;
}

.package-size {
  display: inline-block;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(80, 117, 47, 0.12);
  color: var(--accent-2);
  font-size: 0.8rem;
}

.package-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.featured-package {
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.96), rgba(244, 234, 208, 0.98));
}

.package-note {
  margin-top: 18px;
  padding: 20px 24px;
}

.service-card h3,
.promise-card h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.25rem;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.promise-card {
  padding: 30px;
}

.image-promise-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.promise-photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  background: linear-gradient(180deg, #fff8eb 0%, #f6edd8 100%);
  padding: 14px;
}

.promise-copy {
  padding: 26px 28px 30px;
}

.about-section h2,
.contact-section h2,
.package-hero-detail h1 {
  max-width: 14ch;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.about-photo-card {
  padding: 0;
  overflow: hidden;
  min-height: 420px;
}

.about-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.package-hero-detail {
  padding-bottom: 36px;
}

.detail-lead {
  max-width: 72ch;
}

.detail-hero-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  border-radius: 24px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
  background: linear-gradient(180deg, #fff8eb 0%, #f6edd8 100%);
  padding: 14px;
}

.detail-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.detail-price {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  color: var(--accent-deep);
  font-weight: 700;
}

.detail-grid {
  align-items: stretch;
}

.detail-card {
  padding: 28px;
}

.warm-card {
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.96), rgba(244, 234, 208, 0.98));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.compact-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.estimate-cta-panel {
  margin-top: 24px;
  padding: 28px;
  display: grid;
  gap: 18px;
}

.estimate-hero {
  padding-bottom: 20px;
}

.estimate-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.estimate-hero-image-card {
  padding: 0;
  overflow: hidden;
  min-height: 520px;
}

.estimate-hero-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.estimate-page-section {
  padding-top: 24px;
}

.contact-card {
  padding: 20px;
}

.floating-call-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--accent);
  color: #fffaf0;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(88, 58, 21, 0.22);
  cursor: pointer;
}

.floating-call-btn:hover {
  transform: translateY(-2px);
}

.assistant-launcher {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 20;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--accent-2);
  color: #fffaf0;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(88, 58, 21, 0.22);
  cursor: pointer;
}

.assistant-panel {
  position: fixed;
  right: 20px;
  bottom: 144px;
  width: min(360px, calc(100vw - 32px));
  z-index: 21;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: var(--shadow);
  padding: 18px;
}

.hidden-assistant {
  display: none;
}

.assistant-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.assistant-panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.assistant-close {
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.assistant-panel-body {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.assistant-chat-log {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.assistant-bubble {
  padding: 10px 12px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 0.94rem;
}

.assistant-bubble-user {
  background: rgba(208, 138, 29, 0.14);
  color: var(--text);
}

.assistant-bubble-assistant {
  background: rgba(80, 117, 47, 0.1);
  color: var(--text);
}

.assistant-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.assistant-chat-input-wrap {
  display: block;
}

.assistant-chat-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.assistant-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-photo-card {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}

.contact-photo {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: linear-gradient(180deg, #fff8eb 0%, #f6edd8 100%);
  padding: 8px;
}

.restored-contact-photo-card {
  margin-top: 24px;
  margin-bottom: 28px;
}

.restored-contact-photo {
  width: 100%;
  height: 100%;
  min-height: 520px;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: linear-gradient(180deg, #fff8eb 0%, #f6edd8 100%);
  padding: 0;
  border-radius: 28px;
}

.lead-form-wrap {
  margin-top: 24px;
  padding: 26px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.lead-form-copy h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.multi-service-field {
  display: grid;
  gap: 12px;
}

.multi-service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

#service-fields {
  display: grid;
  gap: 12px;
}

.service-select-label {
  position: relative;
}

.add-service-btn,
.remove-service-btn {
  width: fit-content;
}

.remove-service-btn {
  justify-self: start;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  color: var(--accent-deep);
  cursor: pointer;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}

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

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

.hidden-field {
  display: none !important;
}

.form-submit {
  width: fit-content;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.contact-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

@media (max-width: 980px) {
  .hero, .grid-two, .service-grid, .contact-grid, .package-grid, .lead-form-wrap, .form-grid, .about-grid, .estimate-hero-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    padding: 16px 14px;
  }

  .hero {
    padding: 30px 0;
  }

  .estimate-hero-image-card,
  .estimate-hero-image {
    min-height: 340px;
  }

  .panel,
  .hero-card {
    border-radius: 22px;
  }
}
