/* =====================================================
   CARD SYSTEM
===================================================== */

.c-choice {
  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  padding: var(--space-4);
    
  display: grid;
  align-items: center;
  justify-content: center;

  min-height: 72px;

  color: var(--text);

  cursor: pointer;

  text-align: center;

  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
    
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;

   text-wrap: balance; /* modern browsers */
}

.c-choice .package-title { font-weight: 600; }
.c-choice .price { font-weight: 600; }
.c-choice .package-description { line-height: 1.4; }

.c-choice:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.c-choice--result {
  border: 2px solid var(--accent);
  background: var(--surface-alt);
}

.c-choice--package {
  padding: var(--space-3);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;

  text-align: left;
}

.c-choice--compact {
  padding: var(--space-3);
}


.c-choice.is-selected {
  background: var(--brand-muted-third-900);
  border-color: var(--brand-muted-third-900);
  color: var(--text-inverse);
}

.c-choice--tab {
  min-height: 56px;
}

.c-choice--addon {
  background: var(--surface-lavender-light);
}

.c-choice--pill {
  min-height: 56px;
  border-radius: 999px;
}
.package-card {
  cursor: pointer;
}

.package-card.is-selected {
  transform: translateY(-2px);
  border-radius: var(--radius-lg);  
}

.package-date-card.is-selected {
  border-color: var(--accent);
}


/* =====================================================
   BUTTON SYSTEM
===================================================== */



.c-button:hover {
  transform: translateY(-1px);
}


/* =====================================================
   BUTTON VARIANTS
===================================================== */

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);

  border: 1px solid var(--border);

  font: inherit;
  font-weight: 600;

  cursor: pointer;

  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;

  background: var(--brand-muted-third-900);
  border-color: var(--brand-muted-third-900);
  color: var(--text-inverse);
}

.c-button:hover {
  transform: translateY(-1px);
}
.c-button--secondary {
  background: var(--surface);
  border-color: var(--border);
}

.c-button--ghost {
  background: transparent;
  border-color: var(--border);
}

.c-button--block {
  width: 100%;
}

.c-button--pill {
  border-radius: 999px;
}


/* =====================================================
   FORM SYSTEM
===================================================== */

.c-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.c-form-group {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-8);
}
.c-form-group--center {
  display: flex;
  justify-content: center;
  align-items: center; /* important for true centering context */
}

.result-box {
  text-align: center;
  width: fit-content;   /* key change */
  max-width: 420px;

  margin: 0 auto;       /* backup centering safety */

  display: flex;
  flex-direction: column;
  align-items: center;  /* ensures inner text block is centered as a unit */

  padding: 2rem;
}


.c-form-label {
  font-weight: 600;
  line-height: 1.4;
}

.c-form-control {
  width: 100%;
  padding: var(--space-3);

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  font: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
    
  min-height: 48px;
    
}

.c-form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 44, 255, 0.15);
}

select.c-form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

input[type="date"].c-form-control {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}
/* =====================================================
   RESULT DISPLAY
===================================================== */

.c-result {
  text-align: center;
}

.c-result__amount {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

.c-result__label {
  opacity: 0.75;
}


/* =====================================================
   PROGRESS
===================================================== */

.c-progress {
  width: 100%;
  height: 10px;

  background: var(--surface-lavender-light);

  border-radius: 999px;

  overflow: hidden;
}

.c-progress__fill {
  height: 100%;
  width: 0%;

  background:
    linear-gradient(
      90deg,
      var(--brand-muted-third-900),
      var(--accent)
    );

  transition: width 0.3s ease;
}


 /* IMAGE WRAPPER (this is CRITICAL)*/ 
.img-wrap {
  width: 100%;
  height: 100%;

  display: block;
  overflow: hidden;

  border-radius: var(--radius-md);
}


/* =====================================================
   RESPONSIVE - C-Grid
===================================================== */
.c-grid {
  display: grid;
  gap: var(--space-4);
  align-items: start;

  /* CRITICAL: prevents overflow from grid children */
  min-width: 0;
}

.c-grid > * {
  min-width: 0;
}

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

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

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

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

.c-grid--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.c-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (max-width: 768px) {

  .c-grid--6,
  .c-grid--5,
  .c-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c-grid--3,
  .c-grid--2 {
    grid-template-columns: 1fr;
  }
}
   /* a margin around the layout */
#package-estimator-layout .grid > * {
  margin: var(--space-4);
}
.grid-section-title {
  grid-column: 1 / -1;
  margin-bottom: var(--space-1);
  margin-top: var(--space-5);
}
#package-estimator-layout .c-grid {
  column-gap: var(--space-6);
  row-gap: var(--space-5);
}

.estimator-heading {
  grid-column: 1 / -1;
}
.estimator-intro {
  display: grid;
  row-gap: var(--space-3);
}
.estimator-intro h2,
.estimator-intro p {
  margin-bottom: var(--space-3);
}

.estimator-intro p:last-child {
  margin-bottom: 0;
}
.estimator-section {
  margin-block: var(--space-7);
}

.estimator-panel {
  display: none;
}

.estimator-panel.is-selected {
  display: block;
}


/* =========================================
   SITE HEADER (v2 SYSTEM)
========================================= */

.site-header {
  width: 100%;
  position: relative;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

   /* TOP BAR */
.site-header__topbar {
  width: 100%;
  background: var(--color-sage);
  padding: 10px 0;
}

 /* INNER GRID (DESKTOP LAYOUT) */
.site-header__inner {
  width: min(1400px, 92%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 220px 1fr 320px;
  gap: var(--space-5);
  align-items: center; 
}

 /* HEADER COLUMNS */
.site-header__left,
.site-header__center,
.site-header__right {
  display: flex;
  flex-direction: column;
}

 /* LOGO */
.site-header__logo {
  max-width: 200px;
  height: auto;
  display: block;
}

 /* CENTER CONTENT (TRUST + PHONE) */
.site-header__trustline {
  color: var(--text-inverse);
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-header__phone {
  color: var(--text-inverse);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

 /* RIGHT TAGLINE */
.site-header__tagline {
  color: var(--text-inverse);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
}

HERO SECTION
/*=====================================================*/

.hero.section {
  text-align: center;
}

.hero__title {
  font-size: clamp(1.15rem, 2vw, 1rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero__subtitle {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  opacity: 0.8;
}
.hero__highlight {
  margin-top: var(--space-3);
  font-size: 1.10rem;
  opacity: 0.8;
}

  /* MICRO HERO */
.micro-hero {
  padding: 6px 20px;
  gap: var(--space-3);
}

.micro-hero p {
  margin: 0;
  font-size: 14px;
}

.site-header__microhero {
  background: var(--color-sage-light);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 20px;
  color: var(--text-inverse);
}

.site-header__microtext {
  max-width: 1200px;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

/* =====================================================
   THEME HEADER
===================================================== */

.theme-title {
  margin: 0;

  font-size: var(--text-xl);
  font-weight: 600;

  color: white;
}

/* =====================================================
   NAV ROOT (STRUCTURE FIX)
===================================================== */
.site-nav {
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

 /* MAIN NAV LAYOUT (FORCE SINGLE ROW) */   
.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: nowrap; /* critical fix */
  gap: var(--space-1);

  list-style: none;   /* removes bullets */
  margin: 0;
  padding: 0;
  overflow-x: visible;
}

 /* REMOVE BULLETS (SUBNAV TOO)*/   

.site-subnav__list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  flex-wrap: nowrap;

  gap: var(--space-4);

  list-style: none;
  margin: 0;
  padding: var(--space-3) 0;
}

.site-subnav__list li {
  display: inline-flex;
  flex-shrink: 0;
}

.site-subnav__list a {
  white-space: nowrap;
}

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

 /* BASE LINK STYLE (UNIFIED PREMIUM STYLE)*/  
.site-nav__list a,
.site-subnav__list a,
.site-nav__dropdown a {
  position: relative;
  display: inline-flex;
  align-items: center;

  width: fit-content; /* ✅ THIS is the missing piece */

  gap: 6px;

  padding: var(--space-2) var(--space-3);

  background: transparent;
  border-radius: 0;

  color: var(--text-muted);
  text-decoration: none;

  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.nav__dropdown .nav__link {
  font-size: var(--text-sm);
  opacity: 0.9;
}

 /* HOVER STATE (NO BACKGROUNDS EVER)*/  
.site-nav__list a:hover,
.site-subnav__list a:hover,
.site-nav__dropdown a:hover {
  color: var(--text-strong);
  transform: translateY(-2px);
}

 /* ACTIVE STATE (NO TAB LOOK) */ 
.site-nav__list a.is-selected,
.site-subnav__list a.is-selected {
  color: var(--text-strong);
  font-weight: 500;
}

 /* PREMIUM UNDERLINE SYSTEM (REPLACES ALL TAB BACKGROUNDS */ 
.site-nav__list a::after,
.site-subnav__list a::after,
.site-nav__dropdown a::after {
  content: "";
  position: absolute;

  left: 0;
  right: 0;
  bottom: 6px;

  height: 1px;
  background: currentColor;

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 180ms ease;
  opacity: 0.7;
}


.site-nav__list a:hover::after,
.site-subnav__list a:hover::after,
.site-nav__dropdown a:hover::after,
.site-nav__list a.is-selected::after,
.site-subnav__list a.is-selected::after {
  transform: scaleX(1);
}
.site-nav__list a {
  transition:
    color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}
 /* DROPDOWN SYSTEM (CLEAN + STABLE)*/  
.site-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;

  min-width: 220px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  box-shadow: var(--shadow-md);

  padding: var(--space-2) 0;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);

  transition: 180ms ease;

  z-index: 1000;
}

.site-nav__item:hover .site-nav__dropdown,
.site-nav__item.is-open .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

  /* KEEP YOUR DOWN ARROWS (RESTORED + CLEAN) */ 
.site-nav__item.has-dropdown > .site-nav__link::before {
  content: "▾";

  font-size: 1rem; /* make it visible */
  line-height: 1;

  margin-left: 8px;

  display: inline-block;

  color: var(--text-muted);
  opacity: 0.9;

  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav__item.has-dropdown > .site-nav__link {
  gap: 10px;
}

.site-nav__item.has-dropdown > .site-nav__link::before {
  margin-left: 6px;
}


.site-nav__item:has(.nav-link):has(.site-nav__dropdown) > .nav-link::after {
  content: "▾";
  font-size: 0.75em;
  margin-left: 6px;
  color: var(--text-muted);
  display: inline-block;
}


.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.site-nav__link {
  transition: transform 0.2s ease;
}

.site-nav__link:hover {
  transform: translateY(-2px);
}
.site-nav__link.is-active::after {
  width: 100%;
}
  /* RESPONSIVE SAFETY (PREVENT BREAKING) DESKTOP ONLY */ 
@media (max-width: 900px) {
  .site-nav__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;

  gap: var(--space-5);

  white-space: nowrap;
}
}


/* =====================================================
   CLEAN FOOTER CSS MODULE (V2)
===================================================== */

  /* ROOT FOOTER */ 
.site-footer {
  width: 100%;
  background: var(--brand-muted-third-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-2);
  color: rgba(255,255,255,0.88);
  margin-top:  var(--space-2);
}

  /* GRID WRAPPER */
.site-footer__inner {
  width: min(1100px, 92%);
  margin: 0 auto;
    
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
    border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: var(--space-6);
}

  /* COLUMN BASE */ 
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  align-items: center;
}

  /* LOGO */ 
.site-footer__logo img {
  max-width: 140px;
  height: auto;
  display: block;
}

   /* ROW */
.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

  /* TEXT*/
.site-footer__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  opacity: 0.85;
}

  /* TITLES */
.site-footer__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: rgba(255,255,255,0.92);
}

  /* LISTS*/
.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__list a {
  text-decoration: none;
  color: rgba(255,255,255,0.82);

  font-size: 0.95rem;

  display: inline-block; /* required for transform to behave reliably */

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.site-footer__list a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

  /* CTA BUTTON */ 
.site-footer__cta {
  display: inline-block;
  margin-top: var(--space-2);

  padding: 12px 16px;
  border-radius: var(--radius-md);

  background: var(--brand-muted-third-900);
  color: white;

  text-decoration: none;
  font-weight: 600;

  transition: transform 0.2s ease;
}

.site-footer__cta:hover {
  transform: translateY(-2px);
}

 /* FOOTER PHONE */ 
.footer-phone {
  display: inline-block;

  color: rgba(255,255,255,0.85);

  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-phone:hover {
  color: #ffffff;
  transform: translateY(-1px);
}


  /* BOTTOM BAR */ 
.site-footer__bottom {
  margin-top: var(--space-8);
  padding: var(--space-4) 0;

  border-top: 1px solid var(--border);
  text-align: center;

  font-size: 0.85rem;
  opacity: 0.7;
}

.site-footer__columns {
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 2rem; /* gives breathing room above the line */
  margin-bottom: 2rem;  /* space below the line */
}
/* =====================================================
   FOOTER LEGAL BAR
===================================================== */

.footer-bottom {
  border-top: 1px solid var(--border);

  padding:
    var(--space-4)
    0;

  margin-top: var(--space-6);
}

.footer-legal {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  color: rgba(255,255,255,0.92);
  align-items: center;
  justify-items: center;

  gap: var(--space-4);

  max-width: 600px;
  margin: 0 auto;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.75);

  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 500;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-legal a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

/* =====================================================
   PRICING / PACKAGES PAGE
===================================================== */

.packages → .grid .grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.package {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);

  padding: var(--space-5);

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  background: var(--surface);
}

.package__title {
  font-weight: 700;
}

.package__price {
  font-size: 1.25rem;
  font-weight: 600;
}

.package__description {
  opacity: 0.8;
  line-height: 1.5;
}

/* =====================================================
   ESTIMATOR PAGE
===================================================== */
.estimator {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
}

.estimator__panel {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.estimator__results {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 2px solid var(--accent);
}

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


/* =====================================================
   IMAGE - Base image frame (the most important part)
===================================================== */
.img {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface);

  display: flex;
  align-items: center;
  justify-content: center;
}

.img--no-radius {
  border-radius: 0;
}

.img--square {
  aspect-ratio: 1 / 1;
}

.img--portrait {
  aspect-ratio: 3 / 4;
}

.img--landscape {
  aspect-ratio: 16 / 9;
}

.img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =====================================================
   FORMS
===================================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__label {
  font-weight: 600;
}

.form__input {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* =====================================================
   RESPONSIVE BEHAVIOR
===================================================== */

  /* Tablet */ 
@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

  /* Mobile*/ 
@media (max-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__cta {
    width: 100%;
    text-align: center;
  }
}

  /* Simplest possible dotted underline */


a.cta-link {
  color: var(--text);

  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;

  display: inline-block;
    
  transition:
    color 180ms ease,
    transform 180ms ease,
    text-decoration-style 180ms ease;
}

a.cta-link:hover {
  color: var(--text-strong);
  transform: translateY(-1px);

  text-decoration-style: solid;
}

/* =====================================================
   Vertical spacing utilities
===================================================== */

.space-y-sm {
  margin-block: var(--space-sm);
}

.space-y-md {
  margin-block: var(--space-md);
}

.space-y-lg {
  margin-block: var(--space-lg);
}

.space-y-xl {
  margin-block: var(--space-xl);
}

 /* CREATE VERTICALE SPACE FOR TEXT */
.text-note {
  margin: var(--space-4) 0;
  line-height: 1.5;
  opacity: 0.8;
}
