:root {
  /* ========================================================
     EXACT PALETTE SAMPLED FROM APPROVED LOGO (logo.jpg)
     ======================================================== */
  --logo-bg: #171F26;            /* Exact background hex of logo.jpg */
  --midnight-base: #11181F;      /* Main Page Body Background */
  --midnight-dark: #0B1015;      /* Deepest Ground (Inputs & Sub-footer) */
  --card-bg: #1A242D;            /* Elevated Card Surface */
  
  --gold-primary: #D5A853;       /* Warm Metallic Gold from "PARADISE" */
  --gold-light: #E8C983;         /* Soft Champagne Gold Highlight */
  --gold-dark: #A67C2E;          /* Deep Burnished Gold */
  
  --teal-primary: #5A9CA4;       /* Coastal Seafoam Teal from Shield */
  --teal-glow: #74BDC6;          /* Brighter Teal for Icons & Hover */
  
  --card-border: rgba(213, 168, 83, 0.25);
  --text-light: #FFFFFF;
  --text-muted: #A9B6C2;

  /* Geometric Sans-Serif matching the approved logo */
  --font-brand: 'Montserrat', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--midnight-base);
  color: var(--text-light);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========================================================
   HEADER & SEAMLESS APPROVED LOGO INTEGRATION
   ======================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--logo-bg);
  border-bottom: 1px solid var(--card-border);
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  background-color: transparent;
  height: 76px;
  width: auto;
  max-width: 280px;
  flex-shrink: 0;
  padding: 2px 0;
}

/* Displays the complete logo in full view (top to bottom) preserving aspect ratio */
.brand-logo-img {
  height: 100%;
  max-height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.brand-container:hover .brand-logo-img {
  transform: scale(1.03);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-primary);
  background: rgba(213, 168, 83, 0.12);
}

.nav-btn {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--midnight-dark) !important;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: 25px;
  margin-left: 0.4rem;
}

.nav-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  transform: translateY(-1px);
}

/* ========================================================
   MAIN LAYOUT & HERO
   ======================================================== */
.page-container {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: radial-gradient(circle at center, rgba(90, 156, 164, 0.18) 0%, rgba(26, 36, 45, 0.6) 75%);
  border-radius: 14px;
  margin-bottom: 3.5rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  border-radius: 25px;
  background: rgba(213, 168, 83, 0.14);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 span,
.hero h2 span {
  color: var(--gold-primary);
}

.hero p {
  max-width: 820px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--midnight-dark);
  border: none;
  padding: 0.9rem 2.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(213, 168, 83, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--teal-primary);
  color: var(--teal-glow);
  padding: 0.9rem 2.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: rgba(90, 156, 164, 0.15);
  border-color: var(--teal-glow);
  transform: translateY(-2px);
}

/* ========================================================
   SECTIONS, GRIDS & CARDS
   ======================================================== */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2.2rem;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 28px rgba(90, 156, 164, 0.18);
}

.card-icon {
  font-size: 2.2rem;
  color: var(--teal-glow);
  margin-bottom: 1.25rem;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.card ul {
  list-style: none;
}

.card ul li {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card ul li i {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

/* ========================================================
   PEDIGREE & CALLOUT RIBBON
   ======================================================== */
.heritage-ribbon {
  background: linear-gradient(135deg, var(--logo-bg), var(--card-bg));
  border: 1px solid var(--gold-primary);
  border-radius: 14px;
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.heritage-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.heritage-header i {
  font-size: 2.6rem;
  color: var(--gold-primary);
}

.heritage-header h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.heritage-header p {
  color: var(--teal-glow);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.heritage-ribbon > p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.heritage-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.badge-pill {
  background: var(--midnight-base);
  border: 1px solid rgba(213, 168, 83, 0.45);
  padding: 0.45rem 1rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-pill i {
  color: var(--gold-primary);
}

/* ========================================================
   QUOTE FORM & INTERACTIVE CALCULATOR
   ======================================================== */
.quote-box {
  background: var(--card-bg);
  border: 1px solid var(--gold-primary);
  border-radius: 14px;
  padding: 2.5rem;
  max-width: 820px;
  margin: 0 auto 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--midnight-base);
  border: 1px solid rgba(213, 168, 83, 0.35);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal-glow);
  box-shadow: 0 0 8px rgba(116, 189, 198, 0.35);
}

.autocomplete-items {
  position: absolute;
  border: 1px solid var(--gold-primary);
  border-top: none;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--midnight-dark);
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
}

.autocomplete-items div {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.autocomplete-items div:hover {
  background-color: var(--card-bg);
  color: var(--gold-primary);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.addon-item {
  background: var(--midnight-base);
  border: 1px solid rgba(213, 168, 83, 0.25);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

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

.addon-item input[type="checkbox"] {
  accent-color: var(--gold-primary);
  width: 18px;
  height: 18px;
}

.addon-label {
  font-size: 0.86rem;
  font-weight: 600;
}

.price-display {
  background: var(--midnight-dark);
  border: 1px dashed var(--gold-primary);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--gold-primary);
  font-weight: 800;
}

.price-val {
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 1.25rem;
}

/* ========================================================
   PAYMENT MODAL
   ======================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--gold-primary);
  border-radius: 14px;
  max-width: 500px;
  width: 92%;
  padding: 2.2rem;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

.modal-card h3 {
  font-family: var(--font-heading);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.modal-card > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ========================================================
   FOOTER
   ======================================================== */
footer {
  background: var(--logo-bg);
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 2rem 1.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: auto;
  max-width: 260px;
  margin: 0 auto 0.75rem;
  padding: 2px 0;
}

/* Displays complete footer logo in full view top-to-bottom */
.footer-logo-img {
  height: 100%;
  max-height: 74px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.footer-logo-container:hover .footer-logo-img {
  transform: scale(1.03);
}

.footer-locations {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.25rem;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 0.6rem;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.footer-phone:hover {
  color: var(--gold-light);
  transform: scale(1.02);
}

.footer-phone-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.footer-badge-call, .footer-badge-text {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-badge-call {
  background: rgba(213, 168, 83, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.footer-badge-call:hover {
  background: var(--gold-primary);
  color: var(--midnight-dark);
}

.footer-badge-text {
  background: rgba(90, 156, 164, 0.2);
  color: var(--teal-glow);
  border: 1px solid var(--teal-primary);
}

.footer-badge-text:hover {
  background: var(--teal-primary);
  color: #ffffff;
}

.sms-disclaimer {
  max-width: 720px;
  margin: 0.85rem auto 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #7d8d9c;
  text-align: center;
}

/* Retainer Modal Options */
.payment-option-card {
  background: rgba(26, 36, 45, 0.85);
  border: 1px solid rgba(213, 168, 83, 0.25);
  border-radius: 10px;
  padding: 1.1rem;
  margin-bottom: 1rem;
  text-align: left;
  transition: border-color 0.2s ease;
}

.payment-option-card:hover {
  border-color: var(--gold-primary);
}

.payment-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.payment-option-title {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-option-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  background: rgba(213, 168, 83, 0.2);
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.payment-option-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.payment-info-box {
  background: var(--midnight-dark);
  border: 1px dashed var(--gold-primary);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  margin-top: 0.6rem;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--gold-light);
  word-break: break-all;
}

/* Quote Form Enhancements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.quote-success-box {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(26, 36, 45, 0.9);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
}

.quote-success-icon {
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 1rem;
}

/* Mobile Navigation Hamburger Button */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: rgba(213, 168, 83, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 7px;
  z-index: 1002;
  transition: all 0.25s ease;
}

.mobile-nav-toggle:hover {
  background: rgba(213, 168, 83, 0.2);
  border-color: var(--gold-primary);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--gold-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-nav-toggle.active {
  background: rgba(213, 168, 83, 0.25);
  border-color: var(--gold-primary);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (max-width: 1100px) {
  header {
    padding: 0.6rem 1.25rem;
  }
  .nav-link {
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 992px) {
  header {
    padding: 0.6rem 1.25rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  nav#mainNav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(17, 24, 31, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 2px solid var(--card-border);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.5rem 2rem;
    gap: 0.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    z-index: 999;
  }

  nav#mainNav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav#mainNav .nav-link {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
  }

  nav#mainNav .nav-link:hover,
  nav#mainNav .nav-link.active {
    background: rgba(213, 168, 83, 0.15);
    border-color: rgba(213, 168, 83, 0.3);
  }

  nav#mainNav .nav-btn {
    margin-top: 0.75rem;
    margin-left: 0;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }

  .hero h1,
  .hero h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 600px) {
  header {
    padding: 0.5rem 1rem;
  }
  nav#mainNav {
    top: 64px;
    max-height: calc(100vh - 64px);
  }
  .brand-container {
    width: auto;
    max-width: 200px;
    height: 56px;
  }
  .brand-logo-img {
    max-height: 50px;
  }
  .footer-logo-container {
    height: 64px;
    max-width: 220px;
  }
  .footer-logo-img {
    max-height: 58px;
  }
  .page-container {
    padding: 2rem 1.25rem;
  }
  .heritage-header {
    flex-direction: column;
    text-align: center;
  }
}
