/* IPERE website — design taken from the Canva mock-ups in "IPER EWebsite/".
   Palette: soft blue panels, warm cream panels, dark brown text, IPERE brand blue/purple. */
:root {
  --blue: #a0cad7;
  --blue-deep: #4aa8c4;
  --cream: #fff1de;
  --ink: #22150f;
  --indigo: #1a0fa8;
  --brand: #0b4aad;
  --purple: #8b5cf6;
  --line: rgba(34, 21, 15, .55);
  --serif: "Literata", Georgia, serif;  /* closest Google match to the Canva heading font */
  --sans: "Hanken Grotesk", system-ui, sans-serif;  /* closest match to the Canva body font */
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.7; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.serif { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 24; letter-spacing: -.015em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand span { font-family: var(--serif); font-size: 22px; color: var(--brand); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav a, .nav button { display: block; padding: 10px 14px; font: 500 15px var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 999px; }
.nav a:hover, .nav button:hover, .nav a.active { background: var(--blue); }
.nav .cta { background: var(--blue-deep); color: #fff; }
.nav .cta:hover { background: var(--brand); color: #fff; }
.nav button::after { content: " ▾"; font-size: 12px; }
.sub { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 6px 0 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.08); display: none; }
.sub a { border-radius: 6px; }
.has-sub:hover .sub, .has-sub.open .sub, .has-sub:focus-within .sub { display: block; }
.burger { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--ink); }

/* ---------- sections ---------- */
.band { border-bottom: 1px solid var(--line); }
.blue { background: var(--blue); }
.cream { background: var(--cream); }
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.split > .text { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.split > .pic { background-size: cover; background-position: center; min-height: 360px; }

.hero .text { justify-content: space-between; gap: 40px; }
.hero .logo { width: 300px; margin: -30px auto -40px; }
.eyebrow { font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.02; }
.hero h1 em { font-style: italic; }
.lead-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; }
.lead-list li { padding-left: 18px; position: relative; }
.lead-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.team .text { text-align: right; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.65; justify-content: flex-start; }

.quote { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.quote img { width: 340px; margin: 0 auto; }
.quote blockquote { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.55; }
.quote cite { display: block; margin-top: 48px; font-style: normal; font-size: 17px; }

.sec-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-size: clamp(42px, 5vw, 64px); line-height: 1.05; }
.sec-head p { margin: 0; }
.sec-head.solo { grid-template-columns: 1fr; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 40px 0 56px; }
.card img { width: 100%; aspect-ratio: 10 / 9; object-fit: cover; }
.card h3 { font-weight: 700; font-size: 19px; margin: 20px 0 8px; }
.card p { margin: 0; }

.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 0 72px; }
.svc-list a { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: rgba(255,255,255,.35); transition: background .2s; }
.svc-list a:hover { background: var(--blue); }
.svc-list a::after { content: "→"; }

.did .text { justify-content: space-between; gap: 40px; }
.did h2 { font-size: clamp(42px, 5vw, 64px); }
.did p.big { max-width: 420px; margin: 28px 0 0 24px; }
.did address { font-style: normal; margin-left: 24px; line-height: 1.9; }

.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 36px 0 40px; }
.hours-grid article { background: var(--cream); }
.hours-grid img { width: 100%; aspect-ratio: 612 / 290; object-fit: cover; }
.hours-grid .body { padding: 24px 22px 32px; }
.hours-grid strong { display: block; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 64px; padding: 40px 0 72px; }
.faq dt { font-weight: 700; margin-top: 22px; }
.faq dd { margin: 4px 0 0; }

.contact-wrap { padding-top: 80px; padding-bottom: 96px; }
.form { max-width: 640px; margin: 0 auto; background: var(--cream); padding: 24px 22px 18px; }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--indigo); margin: 12px 0 6px; }
.form input, .form textarea { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #b9a7e8; border-radius: 4px; background: var(--cream); }
.form textarea { min-height: 110px; resize: vertical; }
.form button { width: 100%; margin-top: 16px; padding: 12px; border: 0; border-radius: 12px; background: var(--blue-deep); color: var(--indigo); font: 700 16px var(--sans); cursor: pointer; }
.form button:hover { background: var(--brand); color: #fff; }
.form small { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: #4b3c8f; }
.contact-intro { max-width: 640px; margin: 0 auto 28px; text-align: center; }
h2.indigo, h1.indigo { color: var(--indigo); }

/* ---------- inner pages ---------- */
.page-head { padding-top: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(42px, 5.5vw, 72px); line-height: 1.05; }
.article { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; padding-top: 56px; padding-bottom: 80px; align-items: start; }
.article p { margin: 0 0 18px; }
.article .pull { font-family: var(--serif); font-size: 26px; line-height: 1.45; margin: 28px 0; }
.article img { width: 100%; object-fit: cover; position: sticky; top: 100px; }
.article .btn { display: inline-block; margin-top: 16px; padding: 12px 28px; background: var(--blue-deep); color: #fff; text-decoration: none; border-radius: 999px; font-weight: 600; }
.article .btn:hover { background: var(--brand); }
.notice { padding: 28px; border: 1px dashed var(--line); background: rgba(255,255,255,.4); }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--blue); overflow: hidden; }
.foot .photo { height: 420px; background: url(/assets/design/family-beach.jpg) center / cover; }
.foot .info { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--indigo); font-weight: 600; line-height: 2.1; }
.foot .info a { text-decoration: none; }
.foot .info a:hover { text-decoration: underline; }
.foot .info img { height: 130px; width: auto; }
.foot h2 { font-size: clamp(48px, 8vw, 110px); color: var(--indigo); line-height: 1.1; padding: 10px 0 20px; }
.foot .legal { font-size: 13px; padding-bottom: 20px; color: var(--ink); display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- phones & tablets ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); padding: 12px 16px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .sub { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 16px; margin: 0; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .split, .quote, .sec-head, .cards, .svc-list, .hours-grid, .faq, .article, .foot .info { grid-template-columns: 1fr; }
  body { font-size: 16.5px; }
  .split { min-height: 0; }
  .split > .text { padding: 56px 24px; }
  .split > .pic { min-height: 300px; }
  .hero .text { gap: 36px; }
  .hero .logo { width: 220px; margin: 0 auto; }
  .hero h1 { font-size: 44px; line-height: 1.12; }
  .team .text { text-align: left; font-size: 22px; }
  .quote { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .quote img { width: 200px; }
  .quote blockquote { font-size: 22px; }
  .quote cite { margin-top: 24px; }
  .sec-head { gap: 16px; padding: 44px 0 28px; }
  .sec-head h2, .did h2 { font-size: 40px; line-height: 1.12; }
  .cards { gap: 44px; padding: 32px 0 44px; }
  .card h3 { margin-top: 18px; }
  .lead-list { gap: 16px; }
  .svc-list { gap: 12px; padding-bottom: 56px; }
  .did p.big, .did address { margin-left: 0; }
  .did p.big { margin-top: 20px; }
  .hours-grid { gap: 28px; padding: 28px 0 56px; }
  .faq { padding: 16px 0 56px; gap: 0; }
  .faq dt { margin-top: 28px; }
  .contact-wrap { padding-top: 40px; padding-bottom: 64px; }
  .page-head { padding-top: 40px; padding-bottom: 28px; }
  .page-head h1 { font-size: 38px; line-height: 1.15; }
  .article { gap: 36px; padding-top: 36px; padding-bottom: 64px; }
  .article p { margin-bottom: 20px; }
  .article .pull { font-size: 23px; margin: 32px 0; }
  .article img { position: static; }
  .foot .photo { height: 240px; }
  .foot .info { gap: 20px; padding: 32px 0; line-height: 1.9; }
  .foot h2 { font-size: 46px; padding: 24px 0; }
  .nav a, .nav button { padding: 14px 16px; font-size: 17px; }
}

/* The full logo has a white background; let it sit on the coloured panels. */
img[src$="logo-full.png"] { mix-blend-mode: multiply; }
