/* ============================================================
   Elite Pool Concepts — Main Stylesheet
   Colors: Navy #002D72 | Deep Navy #001F4D | Pool Blue #0078D4
           Silver #B8BDC7 | White #FFFFFF | Charcoal #333333
   Fonts:  Playfair Display (headings) | Montserrat (body)
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #333333;
  background: #ffffff;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: #002D72;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: #444; }
p:last-child { margin-bottom: 0; }

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0078D4;
  margin-bottom: 0.75rem;
}

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #0078D4;
  color: #ffffff;
  border-color: #0078D4;
}
.btn-primary:hover {
  background: #005fa3;
  border-color: #005fa3;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-secondary:hover {
  background: #ffffff;
  color: #002D72;
}

.btn-outline {
  background: transparent;
  color: #002D72;
  border-color: #002D72;
}
.btn-outline:hover {
  background: #002D72;
  color: #ffffff;
}

.btn-navy {
  background: #001F4D; /* darker for stronger contrast */
  color: #ffffff;
  border-color: #001F4D;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
  text-shadow: none;
}
.btn-navy:hover {
  background: #001333;
  border-color: #001333;
  transform: translateY(-1px);
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e8eaf0;
  transition: box-shadow 0.2s;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,45,114,0.12); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo img { height: 90px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #002D72;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #0078D4;
  transition: width 0.2s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

/* Ensure nav CTA anchors keep white text and high contrast */
.nav-links a.btn-navy {
  color: #ffffff;
  background: #001F4D;
  border-color: #001F4D;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem 1.25rem; /* tighter horizontal padding for header */
  min-height: 40px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #002D72;
  transition: all 0.2s;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #001F4D 0%, #002D72 40%, #003d9e 70%, #0055b3 100%);
  z-index: 0;
  /* show user-provided hero image */
  background-image: url('assets/images/hero-pool-photo.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* subtle dark overlay to keep white text readable */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50));
  z-index: 1;
}

/* Pool water shimmer effect */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 60%, rgba(0,120,212,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0,200,255,0.15) 0%, transparent 50%);
}

.hero-photo-placeholder { display: none; }

.photo-label {
  background: rgba(255,255,255,0.1);
  border: 1px dashed rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.6);
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-content .section-label { color: rgba(255,255,255,0.7); }

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 520px;
}

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

.hero-badge {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-badge-item {
  text-align: center;
  color: rgba(255,255,255,0.85);
}
.hero-badge-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-badge-item span {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Value Props ── */
.value-props { background: #f8f9fc; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.value-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 2rem;
  border-top: 3px solid #0078D4;
  box-shadow: 0 2px 20px rgba(0,45,114,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,45,114,0.12);
}

.value-icon {
  width: 48px; height: 48px;
  background: #e8f0fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.value-icon svg {
  width: 24px; height: 24px;
  stroke: #0078D4;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.value-card p { font-size: 0.92rem; margin: 0; }

/* ── Gallery / Pool Concepts ── */
.gallery-section { background: #ffffff; }

.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.pool-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,45,114,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,45,114,0.15);
}

.pool-card-img {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.pool-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pool-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pool-placeholder-icon {
  width: 48px; height: 48px;
  opacity: 0.5;
}

.pool-1 { background: linear-gradient(160deg, #002D72, #0055b3); }
.pool-2 { background: linear-gradient(160deg, #003d8a, #006ab5); }
.pool-3 { background: linear-gradient(160deg, #001F4D, #003d8a); }
.pool-4 { background: linear-gradient(160deg, #004a99, #0078D4); }
.pool-5 { background: linear-gradient(160deg, #002D72, #0078D4); }
.pool-6 { background: linear-gradient(160deg, #001F4D, #004a99); }

.pool-card-body { padding: 1.25rem 1.5rem; background: #fff; }
.pool-card-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.pool-card-body p { font-size: 0.88rem; color: #666; margin: 0; }

/* ── Process ── */
.process-section { background: #f8f9fc; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% / 4);
  right: calc(50% / 4);
  height: 2px;
  background: linear-gradient(to right, #0078D4, #002D72);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 64px; height: 64px;
  background: #002D72;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,45,114,0.3);
}

.step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.88rem; color: #666; }

/* ── Why Fiberglass ── */
.why-section {
  background: #002D72;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(0,120,212,0.15);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-content .section-label { color: rgba(255,255,255,0.6); }
.why-content h2 { color: #ffffff; margin-bottom: 1.25rem; }
.why-content p { color: rgba(255,255,255,0.8); }

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.why-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.why-check {
  width: 24px; height: 24px;
  background: #0078D4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-check svg {
  width: 12px; height: 12px;
  stroke: #ffffff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-list-item p {
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-size: 0.95rem;
}

.why-visual {
  position: relative;
}

.why-img-placeholder {
  height: 420px;
  border-radius: 8px;
  background: linear-gradient(160deg, #001F4D, #0055b3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.about-photo,
.service-area-map {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ── Testimonials ── */
.testimonials-section { background: #ffffff; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #f8f9fc;
  border-radius: 6px;
  padding: 2rem;
  border-left: 4px solid #0078D4;
}

.testimonial-stars {
  color: #f0b429;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-style: italic;
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.88rem;
  color: #002D72;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.testimonial-location {
  font-size: 0.82rem;
  color: #888;
  margin-top: 2px;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #002D72 0%, #001F4D 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(0,120,212,0.2), transparent);
}

.cta-banner .container { position: relative; z-index: 1; }
.cta-banner .section-label { color: rgba(255,255,255,0.6); }
.cta-banner h2 { color: #ffffff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 2rem; }

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Contact Form ── */
.contact-section { background: #f8f9fc; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  width: 40px; height: 40px;
  background: #e8f0fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px; height: 18px;
  stroke: #0078D4;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #002D72; }
.contact-detail span { font-size: 0.95rem; color: #555; }

.contact-form {
  background: #ffffff;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(0,45,114,0.1);
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #002D72;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d0d5e8;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0078D4;
  box-shadow: 0 0 0 3px rgba(0,120,212,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select { cursor: pointer; }

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 0.88rem;
  border: none;
}

/* ── About Page ── */
.about-hero {
  background: linear-gradient(135deg, #001F4D 0%, #002D72 100%);
  padding: 10rem 0 5rem;
  color: #ffffff;
}
.about-hero .section-label { color: rgba(255,255,255,0.6); }
.about-hero h1 { color: #ffffff; margin-bottom: 1rem; }
.about-hero p { color: rgba(255,255,255,0.8); max-width: 580px; font-size: 1.05rem; }

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-placeholder {
  height: 400px;
  border-radius: 8px;
  background: linear-gradient(160deg, #002D72, #0078D4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  border: 1px dashed rgba(0,45,114,0.2);
}

/* ── Page Inner Hero (sub-pages) ── */
.page-hero {
  background: linear-gradient(135deg, #001F4D 0%, #002D72 60%, #003d9e 100%);
  padding: 9rem 0 4rem;
  color: white;
}
.page-hero .section-label { color: rgba(255,255,255,0.6); }
.page-hero h1 { color: white; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 560px; font-size: 1.05rem; margin: 0; }

/* ── Footer ── */
.site-footer {
  background: #001F4D;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 260px;
}

.footer-logo { height: 44px; width: auto; margin-bottom: 0.5rem; }

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #ffffff; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.footer-contact svg {
  width: 16px; height: 16px;
  stroke: #0078D4;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Accordion (FAQ) ── */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }

.accordion-toggle {
  background: transparent;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 1rem 0;
  cursor: pointer;
  color: #002D72;
  transition: color 0.2s;
}
.accordion-toggle:hover { color: #0078D4; }

.accordion-panel {
  display: none;
  overflow: hidden;
  font-size: 0.9rem;
  color: #555;
  padding: 0 1rem 1rem;
}

.accordion-panel.open {
  display: block;
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-navy { color: #002D72; }
.bg-light { background: #f8f9fc; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .why-inner,
  .contact-inner,
  .about-story { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
}

@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 110px; left: 0; right: 0;
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e8eaf0;
    gap: 1.25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .nav-toggle { display: flex; }
  .hero-badge { flex-wrap: wrap; gap: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}
