/* Clearly The Best — shared site stylesheet */

:root {
  --navy: #0b1e3d;
  --navy-soft: #1c3157;
  --green: #158c63;
  --green-soft: #dcece4;
  --amber: #a8631f;
  --amber-soft: #f3e6d5;
  --paper: #f6f3ec;
  --card: #ffffff;
  --ink: #16233d;
  --ink-muted: #55617a;
  --rule: #dcd6c8;
  --shadow: 0 1px 2px rgba(11,30,61,0.06), 0 8px 24px rgba(11,30,61,0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sans {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--green); }

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

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--navy);
  color: #f2f4f8;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.brand {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand .tagline {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: #9fb0c8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}
nav.main-nav {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
nav.main-nav a {
  color: #d8e0ee;
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: #fff;
  border-bottom-color: var(--green);
}
.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: #12744f; }

/* ---------- Layout ---------- */
main, .hero-inner { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3.2rem 0; }
section.tight { padding: 2rem 0; }
.section-label {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
h1, h2, h3 { color: var(--ink); text-wrap: balance; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
p.lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 62ch;
}
.max-prose { max-width: 68ch; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #f2f4f8;
  padding: 4.5rem 0 4rem;
}
.hero h1 { color: #fff; }
.hero p.lede { color: #c3cfe3; }
.hero-actions { display: flex; gap: 0.9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.btn {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #12744f; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.94rem; color: var(--ink-muted); margin: 0.3rem 0; }
.card .icon { font-size: 1.6rem; margin-bottom: 0.7rem; display: block; }

.pillar-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.pillar { text-align: left; }
.pillar .num { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-weight: 700; color: var(--green); font-size: 0.8rem; letter-spacing: 0.08em; }

/* ---------- Pricing ---------- */
.tier-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1.5rem; }
.tier-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.7rem 1.5rem;
  border-top: 5px solid var(--green);
  display: flex;
  flex-direction: column;
}
.tier-card.featured { border-top-color: var(--amber); }
.tier-card .badge {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.5rem;
}
.tier-card .price {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.9rem; font-weight: 700; color: var(--ink); margin: 0.3rem 0 0.9rem;
  font-variant-numeric: tabular-nums;
}
.tier-card .price small { font-size: 0.95rem; color: var(--ink-muted); font-weight: 500; }
.tier-card ul { padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink-muted); flex-grow: 1; margin: 0 0 1.2rem; }
.tier-card li { margin-bottom: 0.5rem; }
.tier-card .btn { text-align: center; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-size: 0.92rem; }
th, td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); }
th { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); background: var(--green-soft); }
tr:last-child td { border-bottom: none; }
td.price-cell { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

/* ---------- Callouts / notes ---------- */
.note {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--card);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 1.3rem 0;
}
.note strong { color: var(--ink); }
.note.amber { border-left-color: var(--amber); background: var(--amber-soft); }

.assurance-quote {
  background: var(--navy);
  color: #f2f4f8;
  border-radius: 16px;
  padding: 2rem 2.2rem;
  font-size: 1.1rem;
  font-style: italic;
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: #b9c6de;
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
}
.footer-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
footer.site-footer a { color: #d8e0ee; text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.6rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 0.4rem; }
.footer-bottom { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); color: #7f92ad; font-size: 0.78rem; }

/* ---------- Booking widget slot ---------- */
.booking-slot {
  background: var(--card);
  border: 2px dashed var(--green);
  border-radius: 16px;
  padding: 2.2rem;
  text-align: center;
}
.booking-slot .placeholder-btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  opacity: 0.55;
  cursor: not-allowed;
}
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.5rem; }
.contact-card { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 1.6rem; text-align: center; }
.contact-card .icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.contact-card a { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.1rem; }

/* ---------- Contact form ---------- */
.contact-form {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 620px;
  margin: 1.5rem auto 0;
}
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.form-row textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { border: none; cursor: pointer; font-size: 1rem; }
.contact-form .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-status { margin-top: 1.2rem; margin-bottom: 0; }

@media (max-width: 640px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  nav.main-nav { gap: 1rem; font-size: 0.85rem; }
}

/* ---------- Dark mode (respects OS preference) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0d1420; --navy-soft: #1a2740; --green: #4fd3a4; --green-soft: #163429;
    --amber: #e2a469; --amber-soft: #2e2412; --paper: #0c1018; --card: #171d2b;
    --ink: #e7ebf2; --ink-muted: #97a2b8; --rule: #2a3244;
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.4);
  }
  .hero { background: linear-gradient(180deg, #0d1420 0%, #131b2c 100%); }
}
