/* hydrafacial.co.nz — site design system
   Palette: midnight navy + slate neutrals; copper orange is reserved for
   CTA buttons and CTA links. Ratings use muted gold. */

:root {
  --ink: #0e1726;
  --ink-2: #16233a;
  --body: #243041;
  --muted: #5b6878;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --cta: #c74c25;
  --cta-dark: #a93a18;
  --gold: #a58b57;
  --focus: #1f5eff;
  --radius: 10px;
  --maxw: 1080px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 800; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: .4em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); }
h4 { font-size: 1.05rem; }
p, ul, ol { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: #fff; }
.site-header .bar {
  display: flex; align-items: center; gap: 20px;
  min-height: 60px; flex-wrap: wrap; padding: 8px 0;
}
.logo { font-weight: 900; font-size: 1.15rem; letter-spacing: .3px; color: #fff; text-decoration: none; white-space: nowrap; }
.logo .tld { color: #8fa3c2; font-weight: 600; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.site-nav a {
  color: #dbe4f0; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 8px 10px; border-radius: 6px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--ink-2); color: #fff; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: #e8eef7; padding: 28px 0 22px; }
.hero h1 { color: #fff; margin: 0 0 .35em; }
.hero p { max-width: 62ch; margin: 0 0 .8em; color: #c5d1e2; }
.hero .meta-line { font-size: .85rem; color: #9fb0c7; }
.hero .meta-line a { color: #c5d1e2; }

/* trust badges row */
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; padding: 0; list-style: none; }
.trust-badges li {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 600; color: #e8eef7;
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: .82rem; color: var(--muted); padding: 10px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* ---------- CTA buttons (the ONLY green elements) ---------- */
.btn-cta {
  display: inline-block; background: var(--cta); color: #fff !important;
  font-weight: 800; text-decoration: none; text-align: center;
  padding: 11px 20px; border-radius: 8px; border: 0;
  box-shadow: 0 1px 2px rgba(128,44,20,.28); white-space: nowrap;
}
.btn-cta:hover { background: var(--cta-dark); }
.btn-cta.small { padding: 9px 14px; font-size: .9rem; }
.btn-cta.big { padding: 14px 28px; font-size: 1.05rem; }

/* ---------- comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .9rem; background: #fff; }
table.compare caption { text-align: left; font-weight: 700; padding: 10px 12px; color: var(--ink); }
table.compare th {
  background: var(--ink); color: #fff; text-align: left; padding: 10px 12px;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
table.compare td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.compare tbody tr:nth-child(even) { background: var(--bg-soft); }
table.compare tbody tr.top-pick { background: #fdf8e7; }
table.compare .rank { font-weight: 900; color: var(--ink); font-size: 1rem; text-align: center; }
table.compare .op-logo { width: 92px; height: 44px; object-fit: contain; background: #0e1726; border-radius: 6px; padding: 4px; }
table.compare .op-logo.light { background: #fff; border: 1px solid var(--line); }
table.compare .op-name { font-weight: 800; color: var(--ink); white-space: nowrap; }
table.compare .bonus { font-weight: 700; color: var(--ink-2); }
.badge-pick {
  display: inline-block; background: var(--gold); color: #231a00; font-size: .68rem; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; margin-left: 6px;
}
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.rating-num { font-weight: 800; color: var(--ink); }

/* ---------- info/spec table (mini reviews) ---------- */
table.spec { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 14px 0 18px; }
table.spec th, table.spec td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
table.spec th { background: var(--bg-soft); color: var(--ink); width: 42%; font-weight: 700; }

/* ---------- mini review blocks ---------- */
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; }
.review-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.review-head img { width: 120px; height: 56px; object-fit: contain; background: var(--ink); border-radius: 8px; padding: 6px; }
.review-head .score { margin-left: auto; text-align: right; }
.review h2, .review h3 { margin-top: 1.1em; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.proscons div { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.proscons h4 { margin: 0 0 .4em; }
.proscons ul { margin: 0; padding-left: 18px; }
.proscons .pros h4 { color: var(--ink); }
.proscons .cons h4 { color: #8a3b2e; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }

/* ---------- content helpers ---------- */
.lead { font-size: 1.07rem; }
.note, .rg-note {
  background: var(--bg-soft); border-left: 4px solid var(--ink-2);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: .92rem;
}
.rg-note { border-left-color: #8a3b2e; }
.fact-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; background: var(--bg-soft); }
.fact-box h3 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.faq p { margin: .6em 0 0; }
.byline { display: flex; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.byline a { color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; }
.updated { font-size: .82rem; color: var(--muted); }

.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 18px 0; font-size: .92rem; background: var(--bg-soft); }
.toc strong { color: var(--ink); }
.toc ol { margin: .4em 0 0; padding-left: 20px; columns: 2; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9c6d8; margin-top: 48px; padding: 30px 0 22px; font-size: .88rem; }
.site-footer a { color: #dbe4f0; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-cols h4 { color: #fff; margin: 0 0 .5em; font-size: .95rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 4px 0; }
.rg-footer { border-top: 1px solid rgba(255,255,255,.15); margin-top: 20px; padding-top: 16px; font-size: .82rem; color: #9fb0c7; }
.age-badge { display: inline-block; border: 2px solid #fff; border-radius: 50%; width: 38px; height: 38px; line-height: 34px; text-align: center; font-weight: 900; color: #fff; margin-right: 10px; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr; } }

/* print friendliness */
@media print { .site-header, .site-footer, .btn-cta { display: none !important; } }
