:root {
  --bg: #f5f3ef;
  --panel: #ffffff;
  --panel-alt: #efe7df;
  --primary: #d77d35;
  --primary-dark: #b56322;
  --secondary: #1d2a36;
  --secondary-soft: #324756;
  --text: #1f1f1f;
  --muted: #5f656d;
  --line: rgba(29, 42, 54, 0.12);
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
  --radius: 22px;
  --header-bg: rgba(245, 243, 239, 0.88);
  --body-font: "Inter", sans-serif;
  --heading-font: "Inter", sans-serif;
  --section-surface: linear-gradient(135deg, rgba(215, 125, 53, 0.08), rgba(29, 42, 54, 0.04));
}

body[data-theme="ember"] {
  --bg: #f5f3ef;
  --panel: #ffffff;
  --panel-alt: #efe7df;
  --primary: #d77d35;
  --primary-dark: #b56322;
  --secondary: #1d2a36;
  --secondary-soft: #324756;
  --text: #1f1f1f;
  --muted: #5f656d;
  --line: rgba(29, 42, 54, 0.12);
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
  --radius: 22px;
  --header-bg: rgba(245, 243, 239, 0.88);
  --body-font: "Inter", sans-serif;
  --heading-font: "Inter", sans-serif;
  --section-surface: linear-gradient(135deg, rgba(215, 125, 53, 0.08), rgba(29, 42, 54, 0.04));
}

body[data-theme="harbor"] {
  --bg: #ecf8f8;
  --panel: #ffffff;
  --panel-alt: #dff4f0;
  --primary: #1a9ca3;
  --primary-dark: #0f7177;
  --secondary: #123a48;
  --secondary-soft: #3c6a76;
  --text: #11272d;
  --muted: #4d6972;
  --line: rgba(18, 58, 72, 0.12);
  --shadow: 0 24px 48px rgba(14, 44, 52, 0.12);
  --radius: 26px;
  --header-bg: rgba(236, 248, 248, 0.86);
  --body-font: "Poppins", sans-serif;
  --heading-font: "Playfair Display", serif;
  --section-surface: linear-gradient(135deg, rgba(26, 156, 163, 0.09), rgba(19, 58, 72, 0.04));
}

body[data-theme="forest"] {
  --bg: #edf5ee;
  --panel: #fffefb;
  --panel-alt: #e7efe6;
  --primary: #43815d;
  --primary-dark: #2f5c40;
  --secondary: #1f3628;
  --secondary-soft: #49665a;
  --text: #1a2a20;
  --muted: #536a5a;
  --line: rgba(31, 54, 40, 0.12);
  --shadow: 0 22px 46px rgba(28, 46, 35, 0.12);
  --radius: 20px;
  --header-bg: rgba(237, 245, 238, 0.9);
  --body-font: "Merriweather", serif;
  --heading-font: "Merriweather", serif;
  --section-surface: linear-gradient(135deg, rgba(67, 129, 93, 0.08), rgba(31, 54, 40, 0.04));
}

body[data-theme="midnight"] {
  --bg: #0d1723;
  --panel: #122233;
  --panel-alt: #182d3e;
  --primary: #d9ac53;
  --primary-dark: #bd8a2b;
  --secondary: #ebf2ff;
  --secondary-soft: #bfd0ea;
  --text: #edf5ff;
  --muted: #a8bad0;
  --line: rgba(191, 208, 234, 0.14);
  --shadow: 0 22px 46px rgba(5, 10, 20, 0.3);
  --radius: 18px;
  --header-bg: rgba(13, 23, 35, 0.84);
  --body-font: "Space Grotesk", sans-serif;
  --heading-font: "Space Grotesk", sans-serif;
  --section-surface: linear-gradient(135deg, rgba(217, 172, 83, 0.09), rgba(13, 23, 35, 0.1));
}

body[data-theme="atelier"] {
  --bg: #f7f0f1;
  --panel: #fffdfd;
  --panel-alt: #f2e9eb;
  --primary: #9a5c77;
  --primary-dark: #744252;
  --secondary: #2d1d2b;
  --secondary-soft: #634c58;
  --text: #261a21;
  --muted: #6c5860;
  --line: rgba(45, 29, 43, 0.11);
  --shadow: 0 24px 48px rgba(81, 54, 66, 0.12);
  --radius: 30px;
  --header-bg: rgba(247, 240, 241, 0.88);
  --body-font: "Manrope", sans-serif;
  --heading-font: "Cormorant Garamond", serif;
  --section-surface: linear-gradient(135deg, rgba(154, 92, 119, 0.08), rgba(45, 29, 43, 0.05));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--primary);
}

.eyebrow.dark {
  color: var(--secondary-soft);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.1;
  color: var(--secondary);
  font-family: var(--heading-font);
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 14px 30px rgba(215, 125, 53, 0.24);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(29, 42, 54, 0.14);
  color: var(--secondary);
}

.btn-secondary:hover {
  border-color: var(--secondary);
}

.theme-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--secondary-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-btn .swatch {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.theme-btn[data-theme="ember"] .swatch {
  background: linear-gradient(135deg, #d77d35, #1d2a36);
}

.theme-btn[data-theme="harbor"] .swatch {
  background: linear-gradient(135deg, #1a9ca3, #123a48);
}

.theme-btn[data-theme="forest"] .swatch {
  background: linear-gradient(135deg, #43815d, #1f3628);
}

.theme-btn[data-theme="midnight"] .swatch {
  background: linear-gradient(135deg, #d9ac53, #0d1723);
}

.theme-btn[data-theme="atelier"] .swatch {
  background: linear-gradient(135deg, #9a5c77, #2d1d2b);
}

.theme-btn.active {
  background: var(--panel);
  color: var(--secondary);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

body[data-theme="harbor"] .site-header,
body[data-theme="forest"] .site-header,
body[data-theme="midnight"] .site-header,
body[data-theme="atelier"] .site-header {
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
}

body[data-theme="harbor"] .hero-grid {
  grid-template-columns: 1fr 1.1fr;
}

body[data-theme="forest"] .services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="forest"] .testimonial-grid {
  grid-template-columns: 1fr 1fr;
}

body[data-theme="midnight"] .project-grid {
  grid-template-columns: 1fr 1fr;
}

body[data-theme="midnight"] .main-nav {
  letter-spacing: 0.08em;
}

body[data-theme="atelier"] .intro-strip-inner {
  grid-template-columns: 1fr;
}

body[data-theme="atelier"] .cta-grid {
  grid-template-columns: 0.7fr 1.3fr;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  color: var(--secondary);
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #f5ad64);
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 10px 22px rgba(215, 125, 53, 0.3);
}

.brand-text {
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--secondary-soft);
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0.7rem 0.6rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--secondary);
  margin: 5px 0;
}

.hero {
  padding: 5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.lead {
  max-width: 36rem;
  font-size: 1.08rem;
  margin-top: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats strong {
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--secondary);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.image-card {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-card.large {
  width: min(90%, 440px);
  height: 520px;
  right: 40px;
  background: linear-gradient(rgba(20, 28, 32, 0.2), rgba(20, 28, 32, 0.5)),
     url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
}

.image-card.small {
  width: 220px;
  height: 250px;
  left: 10px;
  bottom: 30px;
  background: linear-gradient(rgba(20, 28, 32, 0.2), rgba(20, 28, 32, 0.4)),
     url("https://images.unsplash.com/photo-1523217582562-09d0def993a6?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
  border: 8px solid rgba(255, 255, 255, 0.7);
}

.badge-card {
  position: absolute;
  right: 1.25rem;
  bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.12);
}

.badge-card span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.badge-card strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--secondary);
  font-size: 1.8rem;
}

.intro-strip {
  background: var(--secondary);
  padding: 3.25rem 0;
}

.intro-strip-inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 2rem;
  align-items: center;
}

.intro-strip h2 {
  color: white;
}

.intro-strip p {
  color: rgba(255, 255, 255, 0.7);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(215, 125, 53, 0.12);
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.service-card p {
  margin-top: 0.8rem;
}

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

.about-visual {
  position: relative;
  min-height: 480px;
}

.about-photo {
  position: absolute;
  inset: 0 20px 40px 0;
  border-radius: 30px;
  background: linear-gradient(rgba(20, 28, 32, 0.18), rgba(20, 28, 32, 0.32)),
     url("https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.info-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.info-panel strong,
.info-panel span {
  display: block;
}

.info-panel strong {
  color: var(--secondary);
}

.info-panel span {
  color: var(--muted);
  margin-top: 0.25rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--secondary);
  font-weight: 600;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(215, 125, 53, 0.12);
  color: var(--primary-dark);
  font-size: 0.8rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  min-height: 440px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-one {
  background: linear-gradient(rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.68)),
    url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
}

.project-two {
  background: linear-gradient(rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.68)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
}

.project-three {
  background: linear-gradient(rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.68)),
    url("https://images.unsplash.com/photo-1460317442991-0ec209397118?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
}

.project-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.88) 100%);
}

.project-overlay span {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
}

.project-overlay h3 {
  color: white;
  margin: 0;
}

.testimonials {
  background: var(--panel-alt);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

blockquote {
  margin: 0;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
  color: var(--secondary);
  font-size: 1.02rem;
}

blockquote footer {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

blockquote footer span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-section {
  background: var(--section-surface);
}

.cta-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf7f4;
  padding: 0.95rem 1rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(215, 125, 53, 0.2);
  border-color: rgba(215, 125, 53, 0.35);
}

.site-footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4rem;
}

.footer-wrap,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-wrap {
  padding-bottom: 2rem;
}

.footer-links,
.footer-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a,
.footer-contact a,
.site-footer p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 2rem;
}

@media (max-width: 980px) {
  .services-grid,
  .project-grid,
  .testimonial-grid,
  .intro-strip-inner,
  .about-grid,
  .cta-grid,
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .project-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .about-grid,
  .cta-grid,
  .intro-strip-inner {
    grid-template-columns: 1fr;
  }

  .nav-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-stats,
  .field-row,
  .footer-wrap,
  .footer-bottom,
  .footer-links,
  .footer-contact {
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .hero-stats {
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .image-card.large {
    right: 10px;
    width: min(90%, 360px);
    height: 430px;
  }

  .image-card.small {
    width: 150px;
    height: 180px;
  }
}

/* ==========================================================================
   SIGNATURE TIER (PRO) ENHANCEMENTS
   ========================================================================== */

/* Hidden in standard brochure mode */
body:not(.is-premium) .estimator-section,
body:not(.is-premium) .vip-action-dock,
body:not(.is-premium) .social-toast {
  display: none !important;
}

/* Premium Foil Shimmer Heading */
body.is-premium h1,
body.is-premium .estimator-header h2 {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 45%, var(--text) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foilShimmer 8s ease infinite;
}

@keyframes foilShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 3D Card Hover Perspective in Signature Tier */
body.is-premium .service-card,
body.is-premium .project-card,
body.is-premium .testimonial-grid blockquote {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  will-change: transform;
}

/* Estimator Section */
.estimator-section {
  padding: 5rem 0;
  background: var(--section-surface);
}

.estimator-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.estimator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.estimator-tag-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.estimator-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(215, 125, 53, 0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 125, 53, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.estimator-subtag {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.estimator-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: var(--heading-font);
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.2;
}

.estimator-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-group {
  margin-bottom: 2rem;
}

.calc-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.calc-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.project-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.proj-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.proj-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.proj-btn.is-selected {
  background: rgba(215, 125, 53, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(215, 125, 53, 0.2);
}

.proj-icon {
  font-size: 1.35rem;
}

.proj-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.proj-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Range Slider */
.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Add-ons Checkboxes */
.addon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.addon-checkbox {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.addon-checkbox:hover {
  border-color: var(--primary);
}

.addon-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.addon-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.addon-checkbox input:checked ~ .addon-box {
  background: var(--primary);
  border-color: var(--primary);
}

.addon-checkbox input:checked ~ .addon-box::after {
  content: '✓';
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.addon-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  font-size: 0.88rem;
  color: var(--text);
}

.addon-fee {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

/* Summary Card */
.summary-card {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(215, 125, 53, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.summary-note {
  font-size: 0.75rem;
  color: var(--muted);
}

.summary-total-wrap {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.total-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.total-figure {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--heading-font);
  color: var(--text);
  line-height: 1.1;
  margin: 0.25rem 0;
}

.total-figure .currency {
  font-size: 1.8rem;
  margin-right: 2px;
  color: var(--primary);
}

.per-head-figure {
  font-size: 0.82rem;
  color: var(--muted);
}

.summary-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
}

.bundle-pill {
  background: rgba(215, 125, 53, 0.1);
  border: 1px solid rgba(215, 125, 53, 0.25);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  text-align: center;
}

.btn-lock-quote {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 14px rgba(215, 125, 53, 0.35);
}

.btn-lock-quote:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.summary-subtext {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* Floating VIP Action Dock */
.vip-action-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 990;
  max-width: 90%;
  animation: dockSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dockSlideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.dock-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(29, 42, 54, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.dock-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.dock-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.dock-cta {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(215, 125, 53, 0.4);
}

.dock-cta:hover {
  background: var(--primary-dark) !important;
}

.dock-ping {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* AI Concierge Drawer */
.concierge-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.concierge-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.concierge-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.concierge-panel {
  position: relative;
  width: min(440px, 100%);
  height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.concierge-drawer.is-open .concierge-panel {
  transform: translateX(0);
}

.concierge-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

.concierge-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.concierge-avatar {
  font-size: 1.6rem;
}

.concierge-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.concierge-sub {
  font-size: 0.76rem;
  color: var(--muted);
}

.concierge-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
}

.concierge-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.concierge-message {
  display: flex;
  flex-direction: column;
}

.concierge-message.bot .bubble {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 2px;
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  max-width: 90%;
}

.concierge-message.user .bubble {
  background: var(--primary);
  color: #ffffff;
  border-radius: 14px 14px 2px 14px;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-left: auto;
  max-width: 90%;
}

.concierge-prompts {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.prompts-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.prompt-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.prompt-chip:hover {
  border-color: var(--primary);
  background: rgba(215, 125, 53, 0.08);
}

.concierge-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.concierge-input-form {
  display: flex;
  gap: 0.5rem;
}

.concierge-input-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
}

.concierge-input-form input:focus {
  border-color: var(--primary);
}

.concierge-send-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Social Toast */
.social-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 980;
  display: none;
  background: rgba(29, 42, 54, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  align-items: center;
  gap: 0.75rem;
  max-width: 320px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-premium .social-toast {
  display: flex;
}

body.is-premium .social-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.4rem;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toast-sub {
  font-size: 0.82rem;
  color: #ffffff;
  line-height: 1.35;
}

.toast-dismiss {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem;
}

@media (max-width: 900px) {
  .estimator-grid {
    grid-template-columns: 1fr;
  }

  .vip-action-dock {
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .dock-pill {
    width: 100%;
    justify-content: space-around;
  }

  .dock-text {
    display: none;
  }

  .dock-item {
    padding: 0.65rem;
  }
}

