/* style.css — Kingfisher Phoenix site-wide styles
   Brand colours, typography, shared components (nav, footer, buttons, sections).
   Load order: fonts.css → base.css → style.css → [page].css */


/* ─── Brand tokens ───────────────────────────────── */

:root {
  /* Primary palette */
  --teal:          #006e75;
  --teal-deep:     #006e77;
  --teal-dark:     #153446;
  --navy:          #0d3b57;
  --mid-blue:      #017bb1;

  /* Accents */
  --gold:          #d4af37;
  --orange:        #eea049;
  --taupe:         #b4a07c;

  /* Neutrals */
  --cream:         #fdfefa;
  --off-white:     #f7f6f3;
  --light-grey:    #e6e6e6;
  --near-black:    #000321;
  --dark-slate:    #2e2e2e;

  /* Tints */
  --teal-tint:     #ebfafa;
  --mint:          #d5ebe0;
  --cyan-wash:     rgba(57, 187, 207, 0.1);

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md:     0 4px 20px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-heading:  "Manrope", sans-serif;
  --font-body:     "Nunito Sans", sans-serif;

  /* Layout */
  --max-width:     1170px;
  --section-pad-v: clamp(40px, 5vw, 80px);
}


/* ─── Global typography ──────────────────────────── */

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--near-black);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--near-black);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  font-size: 1.05rem;
  color: var(--dark-slate);
}

a:hover {
  opacity: 0.8;
}


/* ─── Utility classes ────────────────────────────── */

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

.section-pad {
  padding: var(--section-pad-v) 0;
}

.text-center  { text-align: center; }
.text-white   { color: #fff !important; }
.text-teal    { color: var(--teal) !important; }
.text-gold    { color: var(--gold) !important; }

.bg-cream     { background-color: var(--cream); }
.bg-off-white { background-color: var(--off-white); }
.bg-teal      { background-color: var(--teal); }
.bg-dark      { background-color: var(--teal-dark); }
.bg-tint      { background-color: var(--teal-tint); }


/* ─── Primary CTA button ─────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background-color: var(--orange);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: #d4893a;
  opacity: 1;
  transform: translateY(-1px);
}

/* Secondary (outline) button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  background-color: transparent;
  color: var(--teal);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid var(--teal);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background-color: var(--teal);
  color: #fff;
  opacity: 1;
}

/* CTA buttons stacked side by side */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}


/* ─── Page hero bands ────────────────────────────── */

.page-hero {
  padding: clamp(60px, 8vw, 120px) 0 clamp(50px, 6vw, 100px);
}

.page-hero h1 {
  margin-bottom: 0.6em;
}

.page-hero p.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--dark-slate);
  max-width: 620px;
  line-height: 1.7;
}


/* ─── Section headings ───────────────────────────── */

.section-heading {
  text-align: center;
  margin-bottom: clamp(30px, 4vw, 60px);
}

.section-heading h2 {
  margin-bottom: 0.4em;
}

.section-heading p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--dark-slate);
}

.eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6em;
}


/* ─── Two-column layout helper ───────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}


/* ─── Feature cards / icon cards ────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--cream);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  color: var(--teal-dark);
  margin-bottom: 0.5em;
}

.card p {
  margin: 0;
}


/* ─── Stats strip ────────────────────────────────── */

.stats-strip {
  background-color: var(--teal-dark);
  color: #fff;
  padding: clamp(40px, 5vw, 72px) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* ─── Quote / pullout ────────────────────────────── */

.pullout-quote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--teal-tint);
  border-radius: 0 8px 8px 0;
}

.pullout-quote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--teal-dark);
  margin: 0 0 0.5em;
}

.pullout-quote cite {
  font-size: 0.9rem;
  color: var(--teal);
  font-style: normal;
  font-weight: 600;
}


/* ─── Steps / process ────────────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--teal);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 4px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 4px;
}

.step h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
  color: #fff;
}

.step p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin: 0;
}

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


/* ─── Checklist / bullet list ────────────────────── */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}


/* ─── Dark section (dark blue bg) ───────────────── */

.section-dark {
  background-color: var(--teal-dark);
  color: #fff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}


/* ─── Image section backgrounds ─────────────────── */

.section-has-bg {
  position: relative;           /* required for absolute overlay child */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.page-hero {
  position: relative;           /* required for absolute overlay child */
}

.section-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 52, 70, 0.6);
  z-index: 0;
}

.section-overlay > .inner {
  position: relative;
  z-index: 1;
}


/* ─── Video embed ────────────────────────────────── */

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ─── Policy page ────────────────────────────────── */

.policy-content {
  max-width: 760px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.4rem;
  color: var(--teal-dark);
  margin: 2em 0 0.5em;
  padding-top: 0.5em;
  border-top: 1px solid var(--light-grey);
}

.policy-content h2:first-child {
  border-top: none;
  margin-top: 0;
}

.policy-content p,
.policy-content li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--dark-slate);
}

.policy-content ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0 0 1em;
}

.policy-content a {
  color: var(--teal);
  text-decoration: underline;
}


/* ─── Responsive layout ──────────────────────────── */

@media (max-width: 767px) {
  .page-hero {
    padding: 50px 0 40px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
