/* ============================================================
   Island Pregnancy Centre — warm, compassionate design system
   ============================================================ */

:root {
  /* Palette — Hope House coral (#F1756D) leads; IPC blue (#2C6E7F) is the affiliate accent */
  --cream:      #FBF6F2;   /* warm ivory background */
  --cream-2:    #F8EAE6;   /* soft blush tint section */
  --rose:       #F1756D;   /* Hope House coral — PRIMARY brand colour */
  --rose-dark:  #DE5C54;
  --rose-soft:  #FCE7E4;
  --teal:       #2C6E7F;   /* IPC blue — affiliate accent */
  --teal-dark:  #1C4E5C;
  --teal-soft:  #DEEEF2;
  --ink:        #26211F;   /* warm near-black (from the logo wordmark) */
  --ink-soft:   #6B615C;
  --white:      #ffffff;
  --gold:       #E8B96B;   /* soft gold — tertiary accent */
  --charcoal:   #2A2320;   /* footer */
  --sky:        #5CA3B5;

  --shadow-sm: 0 2px 10px rgba(51,57,59,.06);
  --shadow-md: 0 12px 30px rgba(51,57,59,.10);
  --shadow-lg: 0 24px 60px rgba(51,57,59,.14);

  --radius:    18px;
  --radius-lg: 28px;
  --maxw: 1140px;
  --ff-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rose-dark); }

h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.5px; margin-bottom: 14px; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tint { background: var(--cream-2); }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--teal p { color: rgba(255,255,255,.86); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--ff-body); font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; font-size: .78rem;
  color: var(--rose-dark); margin-bottom: 14px;
}
.section--teal .eyebrow { color: var(--gold); }
.measure { max-width: 720px; }
.center .measure { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-body); font-weight: 800; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn--primary { background: var(--rose); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--rose-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--light { background: #fff; color: var(--teal); }
.btn--light:hover { background: var(--cream); color: var(--teal-dark); }
.btn--ipc { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(44,110,127,.35); }
.btn--ipc:hover { background: var(--teal-dark); color: #fff; }
.btn--gold { background: var(--gold); color: #5a4213; }
.btn--gold:hover { background: #dda94f; color: #4a3610; }

/* affiliate strip above header */
.affiliate-bar { background: var(--teal-dark); color: #fff; font-size: .86rem; }
.affiliate-bar .container { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 24px; flex-wrap: wrap; text-align: center; }
.affiliate-bar a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.affiliate-bar a:hover { color: var(--gold); }

/* prominent IPC cross-promo card */
.ipc-promo { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color:#fff; border-radius: var(--radius-lg); padding: 44px; display:grid; grid-template-columns: 1fr auto; gap:28px; align-items:center; box-shadow: var(--shadow-md); }
.ipc-promo h2 { color:#fff; }
.ipc-promo p { color: rgba(255,255,255,.9); margin:0; }
.ipc-promo .btn { white-space: nowrap; }
.ipc-promo .chip { background: rgba(255,255,255,.16); color:#fff; border:0; }
@media (max-width: 760px){ .ipc-promo{ grid-template-columns:1fr; text-align:center; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,246,240,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51,57,59,.07);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--ff-head); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { height: 76px; width: auto; display: block; transition: transform .15s ease; }
.brand:hover .brand__logo { transform: translateY(-2px) scale(1.08); }
.brand__logo--footer-white { height: 66px; }
.footer-brand .brand__logo--chip { background: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rose) 0 45%, var(--teal) 46% 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800; flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand small { display: block; font-family: var(--ff-body); font-weight: 700; font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__links a {
  font-weight: 700; font-size: .95rem; color: var(--ink); padding: 8px 14px; border-radius: 999px;
}
.nav__links a:hover, .nav__links a.active { background: var(--rose-soft); color: var(--rose-dark); }
.nav__links .btn { margin-left: 8px; padding: 10px 18px; white-space: nowrap; }
.nav__links .btn svg { width: 16px; height: 16px; }
/* nav pill buttons keep their own colours (plain nav-link rule must not override) */
.nav__links a.btn--ipc, .nav__links a.btn--ipc.active { background: var(--teal); color: #fff; }
.nav__links a.btn--ipc:hover { background: var(--teal-dark); color: #fff; }
.nav__links a.btn--primary { background: var(--rose); color: #fff; }
.nav__links a.btn--primary:hover { background: var(--rose-dark); color: #fff; }
.nav__links a.btn--teal { background: var(--teal); color: #fff; }
.nav__links a.btn--teal:hover { background: var(--teal-dark); color: #fff; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--rose-soft) 0%, var(--cream) 62%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 90px 0 96px; }
.hero__badge { display:inline-flex; align-items:center; gap:8px; background:#fff; color:var(--teal-dark); font-weight:800; font-size:.82rem; padding:7px 16px; border-radius:999px; box-shadow:var(--shadow-sm); margin-bottom:22px; }
.hero__badge .dot { width:9px; height:9px; border-radius:50%; background:var(--rose); }
.hero p.lead { margin: 18px 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art { position: relative; }
.hero__art .photo-slot { aspect-ratio: 4/4.4; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__art .float-card {
  position:absolute; bottom:-22px; left:-24px; background:#fff; border-radius:var(--radius);
  padding:16px 20px; box-shadow:var(--shadow-md); display:flex; gap:12px; align-items:center; max-width:260px;
}
.hero__art .float-card .ic { width:44px;height:44px;border-radius:12px;background:var(--rose-soft); display:grid;place-items:center; color:var(--rose-dark); flex:0 0 auto;}
.hero__art .float-card strong{ font-family:var(--ff-head); font-size:1.05rem; color:var(--ink);}
.hero__art .float-card span{ font-size:.85rem; color:var(--ink-soft);}

/* real photos */
.photo-img { width:100%; height:100%; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow-md); display:block; }
.photo-frame { overflow:hidden; border-radius:var(--radius); }
.gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.gallery figure { margin:0; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); background:#fff; }
.gallery img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; transition:transform .3s; }
.gallery figure:hover img { transform:scale(1.04); }
@media (max-width:900px){ .gallery{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .gallery{ grid-template-columns:1fr; } }

/* photo placeholder */
.photo-slot {
  background:
    linear-gradient(135deg, rgba(47,110,107,.12), rgba(224,137,123,.16)),
    var(--cream-2);
  border: 2px dashed rgba(47,110,107,.35);
  border-radius: var(--radius); display: grid; place-items: center; text-align: center;
  color: var(--teal-dark); font-weight: 700; padding: 20px; min-height: 180px;
}
.photo-slot span { display:block; font-size:.8rem; font-weight:700; opacity:.75; margin-top:6px; }
.photo-slot svg { width: 40px; height: 40px; opacity:.55; margin-bottom:6px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(51,57,59,.05); transition: transform .2s, box-shadow .2s; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--rose-soft); color: var(--rose-dark); margin-bottom: 18px;
}
.card__ic svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: .97rem; }
.card--teal .card__ic { background: var(--teal-soft); color: var(--teal-dark); }
/* IPC (affiliate) sections use the blue accent for their icons */
.ipc-scope .card__ic { background: var(--teal-soft); color: var(--teal-dark); }

/* ============================================================
   IPC page theme — blue/white branding for the affiliate page.
   Applied via <body class="theme-ipc"> on island-pregnancy-centre.html
   ============================================================ */
.theme-ipc { background: #fff; }
.theme-ipc .page-hero { background: linear-gradient(160deg, var(--teal-soft), #fff); }
.theme-ipc .section--tint { background: #EEF6F8; }
.theme-ipc .eyebrow { color: var(--teal); }
.theme-ipc .crumbs { color: var(--sky); }
.theme-ipc .card { border-color: rgba(44,110,127,.10); }
.theme-ipc .card__ic { background: var(--teal-soft); color: var(--teal-dark); }
.theme-ipc .chip { color: var(--teal-dark); border-color: rgba(44,110,127,.18); }
.theme-ipc .photo-slot { border-color: rgba(44,110,127,.35); color: var(--teal-dark);
  background: linear-gradient(135deg, rgba(44,110,127,.10), rgba(92,163,181,.14)), #EEF6F8; }
.theme-ipc .site-header { background: rgba(255,255,255,.92); }
.theme-ipc .loc-card { border-color: rgba(44,110,127,.10); }
.theme-ipc h1, .theme-ipc h2, .theme-ipc h3 { color: #1C3D47; }
.theme-ipc p { color: #47616B; }
.theme-ipc .section--teal h2, .theme-ipc .section--teal h3 { color: #fff; }
.theme-ipc .section--teal p { color: rgba(255,255,255,.86); }
.theme-ipc .section--teal .eyebrow { color: var(--gold); }

/* value chips */
.chips { display:flex; flex-wrap:wrap; gap:12px; }
.chip { background:#fff; border:1px solid rgba(51,57,59,.08); border-radius:999px; padding:9px 18px; font-weight:700; font-size:.92rem; color:var(--teal-dark); box-shadow:var(--shadow-sm);}

/* stats */
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.stat { text-align:center; }
.stat b { font-family:var(--ff-head); font-size:2.6rem; color:var(--gold); display:block; }
.section--teal .stat span { color:rgba(255,255,255,.8); font-weight:700; }

/* split feature */
.split { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.split--reverse .split__media { order:2; }
.split__media .photo-slot { aspect-ratio: 4/3; }

/* ---------- Info / contact cards ---------- */
.loc-card { background:#fff; border-radius:var(--radius); box-shadow:var(--shadow-sm); overflow:hidden; border:1px solid rgba(51,57,59,.05); height:100%; }
.loc-card__top { background:var(--teal); color:#fff; padding:20px 26px; }
.loc-card__top h3 { color:#fff; margin:0; }
.loc-card__top.rose { background:var(--rose-dark); }
.loc-card__body { padding:24px 26px; }
.loc-line { display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; font-size:.97rem; }
.loc-line svg { width:20px; height:20px; color:var(--teal); flex:0 0 auto; margin-top:3px; }
.loc-line a { font-weight:700; }
.tag-24 { display:inline-block; background:var(--gold); color:#5a4213; font-weight:800; font-size:.72rem; letter-spacing:1px; padding:3px 10px; border-radius:999px; text-transform:uppercase; }

/* ---------- Forms ---------- */
.form-wrap { background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-md); padding:38px; }
.field { margin-bottom:18px; }
.field label { display:block; font-weight:800; font-size:.9rem; margin-bottom:9px; color:var(--ink); }
.field input, .field textarea, .field select {
  width:100%; padding:13px 16px; border:1.5px solid #e2d9cd; border-radius:12px;
  font-family:var(--ff-body); font-size:1rem; background:var(--cream); color:var(--ink); transition:border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline:none; border-color:var(--teal); box-shadow:0 0 0 4px var(--teal-soft); background:#fff;
}
.field textarea { min-height:140px; resize:vertical; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-note { font-size:.85rem; color:var(--ink-soft); margin-top:6px; }

/* embed slot */
.embed-slot {
  background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-md); padding:12px;
  min-height:520px; display:grid; place-items:center; border:2px dashed rgba(47,110,107,.3);
}
.embed-slot .inner { text-align:center; max-width:420px; padding:40px; }
.embed-slot iframe { width:100%; border:0; min-height:600px; border-radius:16px; }

/* page hero (interior) */
.page-hero { background:linear-gradient(160deg,var(--rose-soft),var(--cream)); padding:70px 0 60px; text-align:center; }
.page-hero p { max-width:640px; margin:16px auto 0; }
.crumbs { font-size:.85rem; color:var(--ink-soft); margin-bottom:10px; font-weight:700; }

/* callout banner */
.banner { background:linear-gradient(135deg,var(--rose) 0%, var(--rose-dark) 100%); color:#fff; border-radius:var(--radius-lg); padding:48px; text-align:center; box-shadow:var(--shadow-md); }
.banner h2 { color:#fff; margin-bottom: 14px; }
.banner p { color:rgba(255,255,255,.9); }

/* mission quote */
.mission { text-align:center; padding: 10px 0 0; }
.mission blockquote { font-family:var(--ff-head); font-size:clamp(1.4rem,2.8vw,2rem); font-weight:600; color:var(--ink); line-height:1.4; max-width:820px; margin:0 auto; }
.mission blockquote::before { content:"\201C"; color:var(--rose); font-size:3rem; line-height:0; vertical-align:-14px; margin-right:6px; }
.mission cite { display:block; margin-top:18px; font-style:normal; font-family:var(--ff-body); font-weight:800; letter-spacing:2px; text-transform:uppercase; font-size:.78rem; color:var(--rose-dark); }

/* faq */
.faq details { background:#fff; border-radius:14px; box-shadow:var(--shadow-sm); margin-bottom:14px; border:1px solid rgba(51,57,59,.05); }
.faq summary { cursor:pointer; padding:20px 24px; font-weight:800; font-family:var(--ff-head); font-size:1.1rem; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color:var(--rose-dark); font-size:1.5rem; font-weight:400; }
.faq details[open] summary::after { content:"–"; }
.faq details > p { padding:0 24px 22px; margin:0; }

/* ---------- Footer ---------- */
.site-footer { background:var(--charcoal); color:rgba(255,255,255,.8); padding:64px 0 28px; }
.site-footer a { color:rgba(255,255,255,.8); }
.site-footer a:hover { color:#fff; }
.footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1.2fr; gap:40px; margin-bottom:40px; }
.site-footer h4 { color:#fff; font-family:var(--ff-body); font-weight:800; font-size:.95rem; letter-spacing:1px; text-transform:uppercase; margin-bottom:16px; }
.footer-grid ul { list-style:none; }
.footer-grid li { margin-bottom:9px; font-size:.95rem; }
.footer-grid li svg { width:16px; height:16px; display:inline-block; vertical-align:-3px; margin-right:6px; }
.footer-brand .brand { color:#fff; margin-bottom:14px; }
.footer-brand .brand small { color:rgba(255,255,255,.6); }
.footer-brand p { color:rgba(255,255,255,.7); font-size:.93rem; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.15); padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.85rem; color:rgba(255,255,255,.6); }
.disclaimer { background:var(--cream-2); text-align:center; font-size:.85rem; color:var(--ink-soft); padding:16px; }

/* utility */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.hide-mobile{display:initial}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links {
    position: absolute; top: 92px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 14px 24px 24px; gap: 4px; box-shadow: var(--shadow-md);
    display: none; border-bottom:1px solid rgba(51,57,59,.08);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 14px; }
  .nav__links .btn { margin: 6px 0 0; justify-content:center; }
  .nav__toggle { display: block; }
  .hero__inner, .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__art .float-card { left: 0; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .grid--3, .grid--4, .grid--2, .stats, .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 26px; }
  .banner, .embed-slot .inner { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand small { display:none; }
}

/* social icons */
.socials { display:flex; gap:10px; margin-top:16px; }
.socials a { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:rgba(255,255,255,.12); color:#fff; transition:background .2s, transform .15s; }
.socials a:hover { background:var(--rose); color:#fff; transform:translateY(-2px); }
.socials svg { width:20px; height:20px; }
.loc-card .socials a { background:var(--rose-soft); color:var(--rose-dark); }
.loc-card .socials a:hover { background:var(--rose); color:#fff; }

/* IPC-context header */
.brand__logo--wide { height: 46px; border-radius: 8px; }
section[id^="ipc-"] { scroll-margin-top: 112px; }
.theme-ipc .nav__links a:hover, .theme-ipc .nav__links a.active { background: var(--teal-soft); color: var(--teal-dark); }
.theme-ipc .nav__links a.btn--primary:hover { background: var(--rose-dark); color:#fff; }

/* checkbox line */
.check-line { display:flex; align-items:center; gap:10px; font-weight:700; font-size:.95rem; color:var(--ink); margin:4px 0 18px; cursor:pointer; }
.check-line input { width:18px; height:18px; accent-color: var(--teal); }

/* inline follow line (light backgrounds) */
.follow-line { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:22px; font-weight:800; color:var(--ink); }
.socials--light { margin-top:0; }
.socials--light a { width:36px; height:36px; background:var(--rose-soft); color:var(--rose-dark); }
.socials--light a:hover { background:var(--rose); color:#fff; }
.socials--light svg { width:18px; height:18px; }

/* newsletter signup (inside teal banner) */
.newsletter-form { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; max-width:520px; margin:0 auto; position:relative; }
.newsletter-form input[type="email"] {
  flex:1 1 260px; padding:14px 20px; border-radius:999px; border:2px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.14); color:#fff; font-family:var(--ff-body); font-size:1rem; transition:border .2s, background .2s;
}
.newsletter-form input[type="email"]::placeholder { color:rgba(255,255,255,.75); }
.newsletter-form input[type="email"]:focus { outline:none; border-color:#fff; background:rgba(255,255,255,.22); }
.newsletter-form .btn { flex:0 0 auto; }

/* IPC services: 13 cards — flex so the last row centers instead of orphaning left */
#ipc-services .grid--4 { display:flex; flex-wrap:wrap; justify-content:center; }
#ipc-services .grid--4 .card { flex: 1 1 240px; max-width: 262px; }
@media (max-width: 620px){ #ipc-services .grid--4 .card { max-width:none; } }
