/* Salt Personal Training - site styles
   Brand colours come from the logo: light blue drop + soft grey lettering.
   Change the colours here and they update across the whole site. */
:root {
  --blue: #6ecff6;        /* brand light blue (logo drop) */
  --blue-dark: #147aa3;   /* darker blue for buttons/links (readable on white) */
  --blue-deep: #0f4f68;   /* deep blue for dark sections */
  --blue-tint: #eef8fd;   /* very pale blue backgrounds */
  --grey: #818285;        /* brand grey (logo lettering) */
  --ink: #2b3136;         /* body text */
  --ink-soft: #565d63;
  --line: #dfe8ed;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 79, 104, .10);
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; color: var(--blue-deep); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .22em; font-size: .78rem;
  font-weight: 700; color: var(--blue-dark); margin-bottom: .9rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand img { width: 118px; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: .55rem .8rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; border-radius: 999px; }
.nav a:hover { background: var(--blue-tint); color: var(--blue-deep); }
.nav a[aria-current="page"] { color: var(--blue-dark); background: var(--blue-tint); }
.nav .cta a { background: var(--blue-dark); color: #fff; margin-left: .4rem; }
.nav .cta a:hover { background: var(--blue-deep); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; font: inherit; font-weight: 700; color: var(--blue-deep); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; padding: .5rem 1.25rem 1.2rem; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: .8rem .9rem; }
  .nav .cta a { margin: .5rem 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: .9rem 1.7rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer; font-family: inherit; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-dark); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-light { background: #fff; color: var(--blue-deep); }
.btn-light:hover { background: var(--blue-tint); color: var(--blue-deep); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-ghost { border-color: var(--blue-dark); color: var(--blue-dark); }
.btn-ghost:hover { background: var(--blue-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--blue-deep) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,44,60,.86) 0%, rgba(8,44,60,.6) 55%, rgba(8,44,60,.25) 100%); }
.hero .wrap { position: relative; padding: clamp(4.5rem, 12vw, 9rem) 0; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: var(--blue); }
.hero p { font-size: 1.25rem; max-width: 34rem; color: #eaf6fc; }
.page-hero { min-height: 0; }
.page-hero .wrap { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.page-hero h1 { font-size: clamp(2rem, 4.8vw, 3.1rem); max-width: 22ch; }

/* ---------- sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.tint { background: var(--blue-tint); }
.section-head { max-width: 40rem; margin-bottom: 2.4rem; }
.center { text-align: center; margin-inline: auto; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.2rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-tint); display: grid; place-items: center; margin-bottom: 1rem; }
.feature .dot svg { width: 22px; height: 22px; stroke: var(--blue-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split.flip .split-media { order: 0; } }

/* ---------- package cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; font-size: .98rem; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 1rem; height: .55rem; border-left: 3px solid var(--blue-dark); border-bottom: 3px solid var(--blue-dark); transform: rotate(-45deg) scale(.8); transform-origin: left top; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.packages-big .card { flex-direction: row; }
.packages-big { display: grid; gap: 1.8rem; }
.packages-big .card img { width: 40%; aspect-ratio: auto; height: 100%; min-height: 280px; }
@media (max-width: 800px) { .packages-big .card { flex-direction: column; } .packages-big .card img { width: 100%; aspect-ratio: 4/3; height: auto; min-height: 0; } }

/* ---------- testimonials ---------- */
.quotes { columns: 3 300px; column-gap: 1.4rem; }
.quote { break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin: 0 0 1.4rem; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: .1rem; left: 1rem; font-size: 3.6rem; line-height: 1; color: var(--blue); font-weight: 800; }
.quote p { margin: 1.4rem 0 1rem; font-size: 1rem; }
.quote footer { font-weight: 700; color: var(--blue-deep); font-size: .95rem; }
.quote footer span { font-weight: 500; color: var(--grey); }
.quotes.small { columns: 3 280px; }

/* ---------- recipes ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1.1rem; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.recipe { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.recipe button { all: unset; cursor: pointer; display: block; width: 100%; }
.recipe button:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: -3px; }
.recipe img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .35s; }
.recipe:hover img { transform: scale(1.04); }
.recipe .img-wrap { overflow: hidden; }
.recipe .rt { padding: 1rem 1.2rem 1.2rem; }
.recipe .rt strong { display: block; color: var(--blue-deep); font-size: 1.08rem; line-height: 1.3; }
.recipe .rt span { color: var(--blue-dark); font-weight: 600; font-size: .9rem; }
.recipe[hidden] { display: none; }
dialog.recipe-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(92vw, 820px); max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--ink); }
dialog.recipe-dialog::backdrop { background: rgba(8,44,60,.65); }
.dlg-head img { width: 100%; max-height: 340px; object-fit: cover; }
.dlg-body { padding: 1.6rem 1.8rem 2rem; }
.dlg-body h2 { font-size: 1.7rem; }
.dlg-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }
.dlg-cols h3 { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--blue-dark); }
.dlg-cols ul, .dlg-cols ol { margin: 0; padding-left: 1.2rem; }
.dlg-cols li { margin-bottom: .5rem; }
.dlg-close { position: absolute; top: .8rem; right: .8rem; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); font-size: 1.5rem; cursor: pointer; color: var(--blue-deep); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
@media (max-width: 640px) { .dlg-cols { grid-template-columns: 1fr; gap: 1.2rem; } }

/* ---------- gallery / social ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 10px; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA + contact ---------- */
.cta-band { background: var(--blue-deep); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5eef8; max-width: 34rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
form label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--blue-deep); font-size: .95rem; }
form .field { margin-bottom: 1.2rem; }
form input, form select, form textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid #c5d3db; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
form input:focus, form select:focus, form textarea:focus { outline: 3px solid rgba(20,122,163,.3); border-color: var(--blue-dark); }
form textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.small { font-size: .9rem; color: var(--ink-soft); }
.info-card { background: var(--blue-tint); border-radius: var(--radius); padding: 1.8rem; }
.info-card img { border-radius: 12px; margin-bottom: 1.4rem; width: 100%; max-height: 380px; object-fit: cover; object-position: center 20%; }
.info-card h3 { margin-top: 1.2rem; margin-bottom: .2rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--blue-dark); }
.info-card h3:first-of-type { margin-top: 0; }
.info-card p { margin: 0 0 .3rem; }
.socials { display: flex; gap: .7rem; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; border: 1.5px solid var(--blue-dark); border-radius: 999px; padding: .5rem 1.1rem; }
.socials a:hover { background: var(--blue-dark); color: #fff; }
.socials svg { width: 18px; height: 18px; }

/* ---------- footer ---------- */
.site-footer { background: #0b3446; color: #c9dde6; padding: 3rem 0 2rem; font-size: .96rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.foot-logo { width: 130px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1rem; }
.copy { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .cta-band, .site-footer, .menu-btn { display: none; } }
