/* One With Water - public site redesign (2026-10-23)
   STYLE ONLY: no wording is changed anywhere. Loaded after style.css by
   templates/base.html only (staff calendars and admin do not load it).
   To revert: delete the two <link> lines marked "redesign" in base.html. */

:root {
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 67, 96, .12);
  --shadow-sm: 0 4px 16px rgba(21, 67, 96, .08);
}

body { font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 1.02rem; }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }

/* Header: deeper ocean, soft shadow */
header.site-header { background: #154a6b; box-shadow: 0 2px 14px rgba(15, 44, 63, .25); }
nav.main-nav a { font-weight: 500; border-radius: 999px; padding: .25rem .45rem; }
nav.main-nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* Pill buttons */
.btn { font-family: 'Figtree', sans-serif; font-weight: 600; padding: .7rem 1.5rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); box-shadow: 0 4px 14px rgba(150, 101, 42, .35); }
.btn-primary:hover { background: #7d5521; box-shadow: 0 6px 18px rgba(150, 101, 42, .4); }
.btn-secondary { background: var(--ocean); }
.btn-secondary:hover { background: var(--reef); }
.btn-outline { border-width: 2px; }
.card .btn-outline, section:not(.hero) .btn-outline { border-color: var(--ocean); color: var(--ocean); }
.card .btn-outline:hover, section:not(.hero) .btn-outline:hover { background: var(--foam); }

/* Hero / page-head band */
.hero {
  background: linear-gradient(160deg, #1a5276, #12405c 70%);
  padding: 3.5rem 0 3.2rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(93,173,226,.28), rgba(93,173,226,0) 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--aqua); font-weight: 600; letter-spacing: .16em; }
.hero h1 { color: #fff; }
.hero p.lead { color: #dcecf7; font-size: 1.18rem; }
.hero-photo { border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0,0,0,.28); }

/* Sections and cards */
section { padding: 3.6rem 0; }
section.alt { background: linear-gradient(180deg, #ebf5fb, #e4f1fa); }
.eyebrow-dark { color: var(--gold); letter-spacing: .14em; }
.card {
  border-radius: var(--radius); border: 1px solid #e3eff8;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.grid .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h2, .card h3 { margin-bottom: .5rem; }
.card.featured { border-color: var(--gold); box-shadow: var(--shadow); }
.badge { border-radius: 999px; font-weight: 600; }
.price { font-family: 'Fraunces', Georgia, serif; font-weight: 600; }

/* FAQ accordions (if the page uses <details>) */
details { background: #fff; border: 1px solid #e3eff8; border-radius: 12px; padding: .9rem 1.2rem; margin-bottom: .75rem; box-shadow: var(--shadow-sm); }
details summary { cursor: pointer; font-weight: 600; color: var(--ocean); }
details[open] { box-shadow: var(--shadow); }

/* Forms (booking form, login, contact) */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date],
input[type=number], select, textarea {
  font-family: 'Figtree', sans-serif; border: 1.5px solid #cfe3f2; border-radius: 10px;
  padding: .6rem .8rem; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--reef); box-shadow: 0 0 0 3px rgba(46, 134, 193, .18);
}
label { font-weight: 600; color: var(--ocean); }

/* Footer */
footer.site-footer { background: #0f2c3f; }
footer.site-footer h3, footer.site-footer h4 { color: #fff; font-family: 'Fraunces', Georgia, serif; }
footer.site-footer a { text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
footer.site-footer a:hover { text-decoration-color: #fff; }

/* Home page: trust badges, water safety band, how it works (from the approved prototype) */
.trust { display: flex; gap: .5rem 1.1rem; flex-wrap: wrap; margin-top: 1.4rem; color: #cfe6f4; font-size: .9rem; font-weight: 500; }
.trust .star { color: #ffd36b; letter-spacing: 1px; }
.safety-band { background: linear-gradient(135deg, #12405c, var(--ocean)); color: #eaf4fb; }
.safety-band h2 { color: #fff; }
.safety-band .eyebrow { color: #9fd0ee; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 600; }
.safety-band p { color: #cfe6f4; max-width: 62ch; margin: .5rem 0 0; }
.safety-inner { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; padding: 0 1.25rem; }
.safety-badge { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.4rem; }
.how-step { background: #fff; border: 1px solid #e3eff8; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.how-step h3 { margin: 0 0 .3rem; padding: 0; }
.how-step p { margin: 0; color: #3f6f8c; font-size: .95rem; }
.how-num { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #fff; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; margin-bottom: .8rem; }
@media (max-width: 720px) { .how { grid-template-columns: 1fr; } .safety-inner { grid-template-columns: 1fr; } }

/* Home hero: text on the left, photo on the right (only when a landing photo is set).
   On phones it stacks: heading, photo, text. */
@media (min-width: 861px) {
  .hero .container:has(.hero-photo) {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    grid-template-areas: "eyebrow eyebrow" "head head" "lead photo" "trust trust";
    column-gap: 2.5rem;
    align-content: center;
    align-items: start;
  }
  .hero .container:has(.hero-photo) .eyebrow { grid-area: eyebrow; }
  .hero .container:has(.hero-photo) .hero-heading-group { display: contents; }
  .hero .container:has(.hero-photo) .hero-heading-group h1 { grid-area: head; padding-left: 0; padding-right: 0; }
  .hero .container:has(.hero-photo) .lead { grid-area: lead; }
  .hero .container:has(.hero-photo) .trust { grid-area: trust; margin-top: 1.5rem; }
  .hero .container:has(.hero-photo) .lead { align-self: start; }
  .hero .container:has(.hero-photo) .hero-photo {
    grid-area: photo; align-self: start; margin: 1.1rem 0 0;
    aspect-ratio: 4 / 3; height: auto; object-position: center;
  }
}

/* Coaches page: the title badge is the same size and centred for every coach. */
.coach-card > div:last-child { flex: 1; min-width: 0; }
.coach-card .badge {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; max-width: 18rem; min-height: 4.4rem; padding: .55rem 1.1rem;
  line-height: 1.3; border-radius: 14px; margin: 0 0 .7rem;
}

/* Badge line stays on one row only where the page is wide enough for it. */
@media (min-width: 1100px) { .hero .container:has(.hero-photo) .trust { flex-wrap: nowrap; } }
