/* ============================================================
   Sunshine Coast Pool Safety Certificates — Main Stylesheet
   ============================================================ */

:root {
  --blue:       #0057a8;
  --blue-dark:  #003d7a;
  --blue-light: #e6f2fb;
  --orange:     #ff6b00;
  --orange-dk:  #cc5500;
  --white:      #ffffff;
  --grey-light: #f5f7fa;
  --grey:       #666;
  --text:       #222;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(0,0,0,.12);
  --max:        1160px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary   { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dk); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: var(--blue); color: var(--white); }
.btn-white  { background: var(--white); color: var(--blue-dark); }
.btn-white:hover { background: var(--blue-light); }

/* ── TOP BAR ── */
.top-bar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: .85rem;
  padding: 8px 0;
  text-align: center;
}
.top-bar a { color: #aad4ff; }

/* ── HEADER ── */
header {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
}
.logo {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: #aad4ff; font-size: .85em; display: block; font-weight: 400; }
.logo:hover { text-decoration: none; }

nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
nav a {
  color: #cce4ff;
  font-size: .9rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: background .2s;
}
nav a:hover { background: rgba(255,255,255,.15); text-decoration: none; color: #fff; }

.header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.header-phone {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
}
.header-phone:hover { color: #aad4ff; text-decoration: none; }

/* ── HAMBURGER ── */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ── FLOATING PHONE ── */
.float-phone {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--orange);
  color: var(--white);
  border-radius: 50px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(255,107,0,.5);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  animation: pulse 2.5s infinite;
}
.float-phone:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(255,107,0,.7);
  text-decoration: none;
  color: var(--white);
}
.float-phone svg { width: 20px; height: 20px; flex-shrink: 0; }
@keyframes pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(255,107,0,.5); }
  50%      { box-shadow: 0 4px 28px rgba(255,107,0,.85); }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #0077cc 100%);
  color: var(--white);
  padding: 60px 20px 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #cce8ff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 em { color: #7dd3fc; font-style: normal; }
.hero-sub {
  font-size: 1.1rem;
  color: #cce4ff;
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.trust-chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #e0f0ff;
  font-size: .82rem;
  padding: 6px 14px;
  border-radius: 50px;
}

/* ── HERO FORM ── */
.hero-form-wrap {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.hero-form-wrap h3 {
  color: var(--blue-dark);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.hero-form-wrap p { color: var(--grey); font-size: .85rem; margin-bottom: 16px; }

.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #d0dce8;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color .2s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 70px; }
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s;
}
.form-submit:hover { background: var(--orange-dk); }
.form-note { font-size: .75rem; color: var(--grey); text-align: center; margin-top: 8px; }

/* ── SECTION HEADERS ── */
.section-label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-sub { color: var(--grey); max-width: 600px; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--blue-dark);
  color: var(--white);
  padding: 20px 0;
}
.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}
.trust-item svg { width: 22px; height: 22px; color: #7dd3fc; flex-shrink: 0; }

/* ── SERVICES ── */
.section { padding: 64px 0; }
.section-alt { background: var(--grey-light); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.15); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 28px; height: 28px; color: var(--blue); }
.card h3 { font-size: 1.1rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 8px; }
.card p  { font-size: .9rem; color: var(--grey); margin-bottom: 16px; }
.card a  { font-size: .9rem; font-weight: 700; color: var(--orange); }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.price-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid #dde8f4;
}
.price-card.featured {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}
.price-card.featured .price-amount { color: #7dd3fc; }
.price-card.featured .price-label  { color: #cce4ff; }
.price-card.featured p { color: #cce4ff; }
.price-label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.price-amount sup { font-size: 1.2rem; vertical-align: super; }
.price-card p { font-size: .85rem; color: var(--grey); margin-top: 8px; }
.price-note {
  text-align: center;
  margin-top: 20px;
  font-size: .85rem;
  color: var(--grey);
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.step { text-align: center; }
.step-num {
  width: 60px; height: 60px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 8px; }
.step p  { font-size: .88rem; color: var(--grey); }

/* ── FAQ ── */
.faq-list { margin-top: 40px; max-width: 780px; margin-left: auto; margin-right: auto; }
details {
  border: 1px solid #d8e8f4;
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
details[open] { border-color: var(--blue); }
summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  color: var(--blue-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform .2s;
}
details[open] summary::after { content: '−'; }
details p {
  padding: 0 20px 16px;
  font-size: .9rem;
  color: var(--grey);
  background: var(--white);
}

/* ── AREAS ── */
.suburb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.suburb-pill {
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
  border: 1px solid #c0d8ef;
}
.suburb-pill:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  border-color: var(--blue);
}

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  padding: 64px 20px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem,3vw,2rem); font-weight: 900; margin-bottom: 12px; }
.cta-band p  { color: #cce4ff; margin-bottom: 28px; font-size: 1rem; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── LOCATION PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 48px 20px;
}
.page-hero h1 { font-size: clamp(1.5rem,3.5vw,2.4rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p  { color: #cce4ff; max-width: 640px; font-size: 1rem; }
.breadcrumb {
  font-size: .8rem;
  color: #8ab8e0;
  margin-bottom: 12px;
}
.breadcrumb a { color: #8ab8e0; }
.breadcrumb a:hover { color: #fff; }

/* ── CONTENT COLUMNS ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  padding: 48px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.content-body h2 { font-size: 1.4rem; font-weight: 800; color: var(--blue-dark); margin: 28px 0 10px; }
.content-body h2:first-child { margin-top: 0; }
.content-body p  { margin-bottom: 14px; font-size: .95rem; color: #444; }
.content-body ul { margin: 0 0 14px 20px; }
.content-body li { font-size: .95rem; color: #444; margin-bottom: 6px; }

.sidebar-widget {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  margin-bottom: 24px;
}
.sidebar-widget h3 { font-size: 1rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 16px; }

/* ── NEARBY SUBURBS ── */
.nearby { display: flex; flex-wrap: wrap; gap: 6px; }
.nearby a {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid #c0d8ef;
}
.nearby a:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ── FOOTER ── */
footer {
  background: var(--blue-dark);
  color: #aac8e8;
  padding: 48px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto 40px;
}
.footer-brand { color: var(--white); font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
footer p, footer li { font-size: .85rem; line-height: 1.7; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 4px; }
footer a { color: #7ab8e0; font-size: .85rem; }
footer a:hover { color: #fff; text-decoration: none; }
footer h4 { color: var(--white); font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .78rem;
  max-width: var(--max);
  margin: 0 auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form-wrap { max-width: 500px; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; width: 100%; background: var(--blue-dark); padding: 12px 0; }
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  .header-phone { font-size: 1.1rem; }
  .float-phone .phone-label { display: none; }
  .float-phone { padding: 14px 16px; border-radius: 50%; bottom: 20px; right: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 16px; justify-content: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

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