/* ============================================
   Highland Pools — Main Stylesheet
   Colors: Navy #0a1628 | Gold #c9a84c | White #fff
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1628;
  --navy-light: #132040;
  --gold: #c9a84c;
  --gold-light: #e0c774;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e2e4e8;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--gray-600); }

.section-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10,22,40,0.3);
}

/* ---- Header / Nav ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(10,22,40,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 16px;
}
.logo span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; gap: 8px; margin-left: 12px; }
.nav-cta .btn { padding: 8px 16px; font-size: 0.8rem; white-space: nowrap; }

/* Mobile nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 25px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

@media (max-width: 968px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    border-bottom: 2px solid var(--gold);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-cta { display: none; }
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  min-width: 220px;
  padding: 12px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 100;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
}
.dropdown a::after { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.5) 50%, rgba(10,22,40,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}
.hero-content h1 { color: var(--white); font-size: clamp(2.5rem, 6vw, 4rem); }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 100px 0; }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-gray { background: var(--gray-50); }
.section-center { text-align: center; }

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.service-card-img {
  height: 240px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-body {
  padding: 28px;
}
.service-card-body h3 { margin-bottom: 12px; }
.service-card-body p { font-size: 0.95rem; margin-bottom: 16px; }
.service-card-body .btn { padding: 10px 24px; font-size: 0.85rem; }

/* ---- Why Choose Us ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.feature-item { text-align: center; }
.feature-icon {
  width: 70px; height: 70px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 36px;
  border: 1px solid rgba(201,168,76,0.15);
}

.testimonial-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-text {
  font-style: italic;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-author { color: var(--gold); font-weight: 600; }
.testimonial-location { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ---- Service Area / Towns ---- */
.towns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.town-link {
  display: block;
  padding: 14px 20px;
  background: var(--gray-50);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.town-link:hover {
  background: var(--white);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ---- Quote Funnel ---- */
.quote-form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.form-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.progress-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: all var(--transition);
}
.progress-dot.active { background: var(--gold); transform: scale(1.3); }
.progress-dot.completed { background: var(--navy); }

.form-step {
  display: none;
  animation: fadeInUp 0.4s ease;
}
.form-step.active { display: block; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
  text-align: center;
  margin-bottom: 8px;
}
.form-step .step-subtitle {
  text-align: center;
  color: var(--gray-400);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.option-card {
  padding: 20px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
  color: var(--gray-600);
}
.option-card:hover { border-color: var(--gold); color: var(--navy); }
.option-card.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  color: var(--navy);
}
.option-card .option-icon { font-size: 1.8rem; margin-bottom: 8px; }

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  margin-bottom: 16px;
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--white);
  cursor: pointer;
  margin-bottom: 16px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 32px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 32px;
  border-top: 2px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-phone {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

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

/* ---- Interior Page Hero ---- */
.page-hero {
  background: var(--navy);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.page-hero h1 { color: var(--white); position: relative; z-index: 2; }
.page-hero p { color: rgba(255,255,255,0.7); position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.page-hero .breadcrumb {
  position: relative; z-index: 2;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.page-hero .breadcrumb a { color: var(--gold); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.5); }

/* ---- Content Sections ---- */
.content-section { padding: 80px 0; }

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

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

.content-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.content-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ---- Contact Page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 48px; height: 48px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item h4 { font-family: var(--font-body); margin-bottom: 4px; font-size: 1rem; }
.contact-info-item p { margin: 0; font-size: 0.95rem; }

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

/* ---- Town Page Specific ---- */
.town-services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.town-service-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.town-service-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ---- About Page ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.value-card {
  padding: 32px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border-top: 3px solid var(--gold);
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }


/* ---- Dual CTA System ---- */
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10,22,40,0.2);
}

/* Secondary on dark backgrounds */
.section-dark .btn-secondary,
.cta-banner .btn-secondary,
.hero .btn-secondary,
.bottom-cta .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}
.section-dark .btn-secondary:hover,
.cta-banner .btn-secondary:hover,
.hero .btn-secondary:hover,
.bottom-cta .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

/* Header dual CTAs */
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-cta .btn {
  padding: 10px 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.nav-cta .btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  padding: 10px 20px;
  font-size: 0.8rem;
}
.nav-cta .btn-secondary:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

/* Mid-page CTA */
.mid-page-cta {
  background: linear-gradient(135deg, #f0e6c8 0%, #f8f3e6 50%, #e8dbb8 100%);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mid-page-cta::before {
  content: '';
  position: absolute;
  top: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.mid-page-cta h2 { color: var(--navy); margin-bottom: 12px; position: relative; z-index: 2; }
.mid-page-cta p { color: var(--gray-600); max-width: 550px; margin: 0 auto 28px; position: relative; z-index: 2; }
.mid-page-cta .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* Bottom CTA */
.bottom-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bottom-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.bottom-cta h2 { color: var(--white); margin-bottom: 16px; position: relative; z-index: 2; }
.bottom-cta p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 32px; position: relative; z-index: 2; }
.bottom-cta .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--navy);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  border-top: 1px solid rgba(201,168,76,0.3);
}
.mobile-sticky-cta .cta-buttons {
  display: flex;
  gap: 10px;
}
.mobile-sticky-cta .btn {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.mobile-sticky-cta .btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.mobile-sticky-cta .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

@media (max-width: 768px) {
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 70px; }
}

@media (max-width: 968px) {
  .nav-cta { display: none; }
}

/* Schedule page styles */
.schedule-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.schedule-service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border-top: 3px solid var(--gold);
  transition: all var(--transition);
}
.schedule-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.schedule-service-card .service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.schedule-service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.schedule-service-card p {
  font-size: 0.9rem;
  margin: 0;
}

.calendar-placeholder {
  max-width: 700px;
  margin: 48px auto 0;
  padding: 48px;
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  text-align: center;
}
.calendar-placeholder .placeholder-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.calendar-placeholder h3 {
  margin-bottom: 12px;
}
.calendar-placeholder p {
  max-width: 480px;
  margin: 0 auto 24px;
}
