/* =========================================================
   Pinnacle — INDEX (Grayscale palette)
   Palette: F8F9FA, E9ECEF, DEE2E6, CED4DA, ADB5BD,
            6C757D, 495057, 343A40, 212529
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --g-50: #f8f9fa;
  --g-100: #e9ecef;
  --g-200: #dee2e6;
  --g-300: #ced4da;
  --g-400: #adb5bd;
  --g-500: #6c757d;
  --g-600: #495057;
  --g-700: #343a40;
  --g-800: #212529;

  /* semantics */
  --c-bg: var(--g-50);
  --c-text: var(--g-800);
  --c-text-weak: var(--g-600);
  --c-accent: var(--g-600);
  --c-accent-2: var(--g-700);

  --btn-grad-1: var(--g-500);
  --btn-grad-2: var(--g-700);

  --r10: 10px;
  --r12: 12px;
  --r14: 14px;
  --r16: 16px;

  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-pop: 0 14px 32px rgba(0, 0, 0, 0.18);
}

/* ---------- Base / Resets ---------- */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
}

/* Hide scrollbars (single consolidated block) */
html,
body {
  -ms-overflow-style: none; /* IE & old Edge */
  scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, new Edge */
}

/* ---------------- Containers ---------------- */
.container,
.text-container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* =========================================================
   NAV (desktop + dropdown)
   ========================================================= */
.navigation {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100px;
  position: relative;
  z-index: 100;
  width: 100%;
  padding-right: clamp(16px, 4vw, 52px);
  padding: 10px clamp(16px, 3vw, 36px);
  padding-right: clamp(16px, 4vw, 52px);
  margin-inline: 0;
}
.logo-box {
  width: 300px;
  height: 90px;
}
.logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.menu-desktop {
  margin-left: auto;
}
.navigation nav ul.menu {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.navigation nav li {
  position: relative;
}
.navigation nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
}
.navigation > nav > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.menu .active > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

/* dropdown */
.navigation .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  color: var(--c-text);
  border: 1px solid var(--g-200);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.navigation .dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid var(--g-200);
  border-top: 1px solid var(--g-200);
}
.navigation li:hover > .dropdown,
.navigation li:focus-within > .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.navigation .dropdown a {
  display: block;
  padding: 10px 12px;
  color: var(--c-text-weak);
  font-weight: 600;
  border-radius: 8px;
}
.navigation .dropdown a:hover {
  background: var(--g-100);
  color: var(--g-800);
}
@media (max-width: 820px) {
  .navigation .dropdown {
    left: auto;
    right: 0;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero-band {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
}

/* CTA */
.btn-primary {
  padding: 14px 22px;
  text-decoration: none;
  text-transform: uppercase;
  background-size: 200% auto;
  color: #fff;
  border-radius: var(--r10);
  border: 0;
  font-weight: 700;
  background-image: linear-gradient(
    45deg,
    var(--btn-grad-1) 0%,
    var(--btn-grad-2) 51%,
    var(--btn-grad-1) 100%
  );
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transition: background-position 0.35s ease, transform 0.15s ease;
  display: inline-block;
}
.btn-primary:hover {
  background-position: right center;
}
.btn-primary:active {
  transform: scale(0.95);
}

/* Base notice (light theme) */
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r12);
  background: color-mix(in oklab, var(--c-accent) 14%, var(--c-bg));
  border: 1px solid color-mix(in oklab, var(--c-accent) 30%, transparent);
  color: var(--c-text);
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}
.notice__icon {
  width: 20px;
  height: 20px;
  fill: var(--c-accent);
  flex: 0 0 auto;
}
.notice--service-area {
  margin: 8px 0 8px;
}

/* Footer */
.site-footer {
  background: var(--g-800);
  color: var(--g-100);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0 36px;
}
.footer-brand .brand-logo {
  margin-bottom: 12px;
}
.footer-brand .brand-blurb {
  margin: 8px 0 16px;
  color: var(--g-300);
  line-height: 1.6;
}
.contact-list {
  display: grid;
  gap: 8px;
  padding-inline-start: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--g-100);
  opacity: 0.92;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.social-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.social-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.footer-col {
  position: relative;
}
.footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding-top: clamp(12px, 2vw, 18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col a {
  color: #e9ecef;
  text-decoration: none;
  font-weight: 600;
}
.footer-col a:hover {
  color: #fff;
}
.footer-col:not(:first-of-type)::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.08)
  );
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0 14px;
  color: #ced4da;
  font-size: 14px;
}
.footer-bottom .madeby {
  opacity: 0.9;
}

/* =========================================================
   MOBILE NAV (hamburger + drawer)
   ========================================================= */
#menu_checkbox {
  display: none;
}
.hamburger-btn {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 46px;
  height: 46px;
  display: none;
  z-index: 1100;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(52, 58, 64, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) inset;
  padding: 12px;
  box-sizing: border-box;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.hamburger-btn span + span {
  margin-top: 6px;
}
#menu_checkbox:checked + .hamburger-btn span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
#menu_checkbox:checked + .hamburger-btn span:nth-child(2) {
  opacity: 0;
}
#menu_checkbox:checked + .hamburger-btn span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.menu-mobile {
  --drawer-w: min(82vw, 420px);
  --t: 0.42s;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--drawer-w);
  padding: clamp(12px, 3vw, 20px);
  padding-top: calc(72px + 16px);
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(33, 37, 41, 0.96),
    rgba(52, 58, 64, 0.92)
  );
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 12px 0 30px rgba(0, 0, 0, 0.28);
  transform: translateX(-105%);
  transition: transform var(--t) cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1050;
  overflow-y: auto;
}
.menu-mobile::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--drawer-w);
  background: rgba(33, 37, 41, 0.4);
  opacity: 0;
  transition: opacity var(--t) ease;
  pointer-events: none;
  z-index: -1;
}
#menu_checkbox:checked ~ .menu-mobile {
  transform: translateX(0);
  --t: 0.68s;
}
#menu_checkbox:checked ~ .menu-mobile::before {
  opacity: 1;
}

.mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.menu-mobile a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.mobile-group details {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.mobile-group summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  color: #fff;
  list-style: none;
  position: relative;
}
.mobile-group summary::-webkit-details-marker {
  display: none;
}
.mobile-group summary::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 20px;
  opacity: 0.85;
}
.mobile-group details[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}
.mobile-group details ul {
  list-style: none;
  margin: 0;
  padding: 6px 8px 12px 10px;
}
.mobile-group details ul a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: #e9ecef;
}
.mobile-group details ul a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.menu-mobile > .mobile-list > li > a {
  display: block;
  padding: 12px 2px;
  font-size: 18px;
}

/* Breakpoints */
@media (min-width: 881px) {
  .hamburger-btn,
  .menu-mobile {
    display: none !important;
  }
  .menu-desktop {
    display: block;
  }
}
@media (max-width: 880px) {
  .navigation {
    height: 72px;
    padding: 8px clamp(14px, 4vw, 20px);
    max-width: 100%;
  }
  .logo-box {
    width: 180px;
    height: 54px;
  }
  .hamburger-btn {
    display: block;
  }
  .menu-desktop {
    display: none;
  }
  html,
  body {
    overflow-x: hidden;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0 24px;
  }
  .footer-col:not(:first-of-type)::before {
    display: none;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn-primary {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   HERO FORM (scoped + shared)
   ========================================================= */
.hero--form {
  background: var(--g-800);
}
.hero--form .quote-title {
  margin: 0 0 0.4rem;
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  color: #fff;
}
.hero--form .quote-sub {
  margin: 0 0 1rem;
  color: #cfd6dc;
}

/* Base card and fields (shared) */
.quote-card--hero {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #0f172a; /* base text inside card */
}
@media (min-width: 768px) {
  .quote-card--hero {
    padding: 1.5rem;
  }
}

/* Hero-specific card tweaks */
.hero--form .quote-card--hero {
  border: 1px solid var(--g-200);
  padding: clamp(18px, 3vw, 26px);
  box-shadow: var(--shadow-pop);
  color: var(--g-800);
}

/* Layout */
.grid-2 {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.hero--form .grid-2 {
  display: grid;
  gap: 12px 14px;
}
@media (min-width: 720px) {
  .hero--form .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field span {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}
.field em {
  font-style: normal;
  font-weight: 500;
  color: #64748b;
}
.hero--form .field {
  gap: 6px;
}
.hero--form .field > span {
  font-weight: 700;
  color: var(--g-700);
}
.hero--form .field em {
  color: var(--g-500);
}

/* Inputs & textarea (shared) */
.quote-card--hero input[type="text"],
.quote-card--hero input[type="email"],
.quote-card--hero input[type="tel"],
.quote-card--hero textarea,
.quote-card--hero select {
  width: 100%;
  font: inherit;
  line-height: 1.4;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
}
.field input::placeholder,
.field textarea::placeholder,
.quote-card--hero input::placeholder,
.quote-card--hero textarea::placeholder {
  color: #94a3b8;
}
.field input:focus,
.field textarea:focus,
.quote-card--hero input:focus,
.quote-card--hero textarea:focus,
.quote-card--hero select:focus {
  outline: none;
  border-color: #1f6aa6;
  box-shadow: 0 0 0 3px rgba(31, 106, 166, 0.18);
}

/* Radios/checkboxes */
.fieldset {
  border: 0;
  padding: 0;
  margin: 0.75rem 0 0.5rem;
}
.fieldset > legend {
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #334155;
}
.radio input {
  accent-color: #1f6aa6;
}
/* Hero radio tone */
.hero--form .fieldset {
  margin: 12px 0 6px;
}
.hero--form .fieldset > legend {
  font-weight: 800;
  color: var(--g-700);
  margin-bottom: 6px;
}
.hero--form .categories {
  gap: 8px 16px;
}
.hero--form .radio {
  gap: 8px;
  color: var(--g-700);
}
.hero--form .radio input {
  accent-color: #1f6aa6;
}

/* Details / summary */
.more-details {
  margin: 0.5rem 0 0.25rem;
}
.more-details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #334155;
  padding: 0.4rem 0;
}
.more-details summary::-webkit-details-marker {
  display: none;
}
.more-details summary::after {
  content: "▾";
  margin-left: 0.4rem;
  color: #64748b;
  transition: transform 0.2s ease;
}
.more-details[open] summary::after {
  transform: rotate(180deg);
}
/* Hero summary tone */
.hero--form .more-details {
  margin-top: 6px;
}
.hero--form .more-details > summary {
  color: var(--g-700);
}

/* Collapsible panel helper */
.q-collapse {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.more-details[open] .q-collapse {
  max-height: 1200px;
}

/* Subsections */
.subsection {
  display: none;
  margin: 0.5rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}
.subsection.is-active {
  display: block;
}
.hero--form .subsection {
  border: 0;
  padding: 0;
  margin: 10px 0 0;
}
.hero--form .subsection > legend {
  font-weight: 700;
  color: var(--g-700);
  margin-bottom: 6px;
}

/* Checks layout */
.checks {
  display: grid;
  gap: 0.45rem 0.9rem;
}
@media (min-width: 720px) {
  .checks {
    grid-template-columns: 1fr 1fr;
  }
}
.hero--form .checks {
  gap: 6px 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .hero--form .checks {
    grid-template-columns: 1fr 1fr;
  }
}

/* Actions */
.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}
.actions .tiny {
  margin: 0;
  color: #64748b;
}
.hero--form .actions {
  gap: 1rem;
  margin-top: 0.75rem;
}

/* Hide the honeypot */
#quote-form .hp {
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Native select kept for mobile; visually enhanced custom select */
.q-native-select {
  position: absolute !important;
  inset: auto auto auto -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Custom select */
.q-select {
  position: relative;
}
.q-select__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  line-height: 1.4;
  font: inherit;
  cursor: pointer;
}
.q-select__btn:focus-visible {
  outline: none;
  border-color: #1f6aa6;
  box-shadow: 0 0 0 3px rgba(31, 106, 166, 0.18);
}
.q-select__caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #64748b;
  transition: transform 0.2s ease;
}
.q-select.open .q-select__caret {
  transform: rotate(180deg);
}
.q-select__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  max-height: 260px;
  overflow: auto;
  z-index: 30;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.q-select.open .q-select__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.q-select__list {
  padding: 6px;
}
.q-optgroup {
  padding: 6px 6px 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}
.q-option {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #0f172a;
}
.q-option[aria-selected="true"] {
  background: #e6f0f7;
}
.q-option:hover,
.q-option[aria-activedescendant] {
  background: #f3f6fa;
}

.hero--form .notice {
  color: #e5eef6;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  margin: 1rem 0 1.25rem;
}
.hero--form .notice__icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.9;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .q-select__panel,
  .q-collapse {
    transition: none;
  }
}

/* Details toggle (accessible, rotating caret) */
.more-details {
  margin: 0.5rem 0 0.25rem;
}

.more-details > summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
  padding: 0.4rem 0.25rem;
  border-radius: 8px;
}

.more-details > summary::-webkit-details-marker {
  display: none;
}

/* caret */
.more-details > summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.more-details[open] > summary::after {
  transform: rotate(-135deg);
}

.more-details > summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 106, 166, 0.18);
}

.hero--form .more-details > summary {
  color: var(--g-700);
}
.hero--form .more-details > summary::after {
  border-color: var(--g-600);
}

.tel-link,
a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}
.tel-link:hover,
.tel-link:focus {
  text-decoration: underline; /* or keep none */
}
.tel-link:visited {
  color: inherit;
}
