/* Island Pools and Spas — main stylesheet */

:root {
  --deep-blue: #073b4c;
  --teal: #0e7c86;
  --bright-teal: #17a2af;
  --aqua: #7fd8d1;
  --sand: #f4e9d8;
  --sand-light: #fbf6ec;
  --white: #ffffff;
  --ink: #1c2b30;
  --muted: #5c6b6e;
  --coral: #ff6b57;
  --success: #2e9e6b;
  --warning: #d98c00;
  --shadow: 0 10px 30px rgba(7, 59, 76, 0.12);
  --radius: 14px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--sand-light);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(7, 59, 76, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--deep-blue);
}

.logo .wave {
  color: var(--bright-teal);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--deep-blue);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bright-teal);
  border-color: var(--bright-teal);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover { background: #ff5138; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--deep-blue);
  border: 2px solid var(--deep-blue);
}

.btn-outline:hover { background: var(--deep-blue); color: var(--white); }

.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-block; } }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--deep-blue);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 14px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--deep-blue), var(--teal) 70%);
  color: var(--white);
  padding: 90px 24px 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--sand-light);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 8px;
  max-width: 700px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 560px;
  color: #dff3f1;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

/* Sections */
section { padding: 70px 0; }
.section-alt { background: var(--white); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: var(--deep-blue); margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.eyebrow {
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(7,59,76,0.06);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--aqua);
  color: var(--deep-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 8px; color: var(--deep-blue); }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Service detail rows */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 50px 0;
  border-bottom: 1px solid rgba(7,59,76,0.08);
}

.service-row:last-child { border-bottom: none; }

.service-row.reverse .service-text { order: 2; }
.service-row.reverse .service-visual { order: 1; }

@media (max-width: 800px) {
  .service-row, .service-row.reverse { grid-template-columns: 1fr; }
  .service-row.reverse .service-text,
  .service-row.reverse .service-visual { order: initial; }
}

.service-visual {
  background: linear-gradient(135deg, var(--aqua), var(--bright-teal));
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--white);
}

.service-text h3 { color: var(--deep-blue); font-size: 1.5rem; margin-bottom: 10px; }
.service-text ul { padding-left: 20px; color: var(--muted); }
.service-text ul li { margin-bottom: 6px; }
.duration-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(14,124,134,0.1);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.stars { color: var(--warning); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial p.quote { font-style: italic; color: var(--ink); }
.testimonial .who { margin-top: 14px; font-weight: 700; color: var(--deep-blue); }
.testimonial .who span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--deep-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 24px;
  color: var(--muted);
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-item.open .faq-question .chev { transform: rotate(180deg); }
.chev { transition: transform 0.2s; }

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--teal), var(--deep-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 2rem;
  box-shadow: var(--shadow);
}

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--deep-blue);
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #d7e3e2;
  font-size: 1rem;
  font-family: inherit;
  background: var(--sand-light);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bright-teal);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.slot-btn {
  padding: 10px 6px;
  border-radius: 8px;
  border: 1.5px solid #d7e3e2;
  background: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
}
.slot-btn:hover { border-color: var(--bright-teal); }
.slot-btn.selected { background: var(--teal); color: var(--white); border-color: var(--teal); }
.slot-btn.taken { background: #f1eee7; color: #b7b0a3; border-color: #f1eee7; cursor: not-allowed; text-decoration: line-through; }

.note-box {
  background: rgba(14,124,134,0.08);
  border-left: 4px solid var(--teal);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--deep-blue);
  margin-top: 16px;
}

.alert-success {
  background: rgba(46,158,107,0.12);
  border-left: 4px solid var(--success);
  color: #1d5c40;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.alert-error {
  background: rgba(255,107,87,0.12);
  border-left: 4px solid var(--coral);
  color: #a83b2b;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Contact / footer */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .icon-sm {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--aqua); color: var(--deep-blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.site-footer {
  background: var(--deep-blue);
  color: #cfe6e4;
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a:hover { color: var(--bright-teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-band {
  background: linear-gradient(135deg, var(--coral), #ff8a6b);
  color: var(--white);
  text-align: center;
  padding: 60px 24px;
  border-radius: var(--radius);
  margin: 0 24px;
}
.cta-band h2 { margin: 0 0 10px; }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--coral); }

.page-hero {
  background: linear-gradient(135deg, var(--deep-blue), var(--teal));
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}
.page-hero h1 { margin: 0 0 10px; }
.page-hero p { color: #dff3f1; max-width: 560px; margin: 0 auto; }

.spinner {
  width: 18px; height: 18px;
  border: 3px solid rgba(7,59,76,0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
