/* Marudyan UK — static site styles
   Brand: Marudyan Blue #286DA7, Marudyan Green #84B926
   Type: Montserrat (ExtraBold titles, Regular body) */

/* Self-hosted Montserrat (SIL OFL, see /fonts/OFL.txt).
   Variable font, weights 400–800, Latin subset. No requests to Google. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #286da7;
  --green: #84b926;
  --green-dark: #6f9c1f;
  --ink: #111111;
  --text: #222222;
  --rule: #d4d4d4;
  --footer-bg: #2f2628;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 40px);
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* keep anchor targets clear of the sticky header */
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.btn--blue {
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.75em 1.4em;
}
.btn--blue:hover {
  background: #215a8b;
}

.btn--green {
  background: var(--green);
  color: var(--ink);
  font-size: 0.85rem;
  padding: 1.35em 3em;
}
.btn--green:hover {
  background: #93c934;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.site-header .logo img {
  width: 190px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--blue) url("../images/hero.jpg") center 30% / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  opacity: 0.8;
  z-index: -1;
}
.hero .container {
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(56px, 9vw, 112px);
}
.eyebrow {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  line-height: 1.12;
  margin-bottom: 2.25rem;
}
.hero p.lead {
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.45;
  margin: 0 0 1.75rem;
}

/* ---------- Building a better future ---------- */
.future {
  position: relative;
  background: #8a6a55 url("../images/children.jpg") left center / cover no-repeat;
  padding: clamp(48px, 6vw, 96px) 0;
}
.future .container {
  display: flex;
  justify-content: flex-end;
}
.card {
  background: #fff;
  width: min(100%, 490px);
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.card h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 1.25rem;
}
.card .intro {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0 0 1.5rem;
}
.card hr {
  border: 0;
  border-top: 2px solid var(--rule);
  margin: 1.5rem 0;
}
.card p.small {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}
.card .btn--green {
  padding: 1.35em 2.2em;
}

/* ---------- Contact / info ---------- */
.info .container {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
.info-inner {
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact {
  text-align: center;
}
.contact h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  margin-bottom: 1.5rem;
}
.contact address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.85;
}
.contact address strong {
  font-weight: 500;
}
.contact .contact-lines {
  margin-top: 2rem;
  font-size: 0.85rem;
  line-height: 1.85;
}
.contact a {
  color: var(--text);
  text-decoration: none;
}
.contact a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.policy h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-bottom: 1.75rem;
}
.policy h2 a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.policy h2 a:hover {
  color: var(--green-dark);
}
.policy p {
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  font-size: 0.85rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover {
  text-decoration: underline;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  z-index: 60;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.to-top svg {
  width: 14px;
  height: 14px;
}

/* ---------- Policy page ---------- */
.page-hero {
  background: var(--blue);
  color: #fff;
}
.page-hero .container {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.prose {
  max-width: 820px;
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.prose h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.9rem;
  color: var(--blue);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  font-size: 0.95rem;
}
.prose ul {
  padding-left: 1.2rem;
}
.prose a {
  overflow-wrap: anywhere;
}
.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-header .container {
    min-height: 64px;
  }
  .site-header .logo img {
    width: 150px;
  }

  .future {
    background: none;
    padding: 0;
  }
  .future::before {
    content: "";
    display: block;
    aspect-ratio: 3 / 2;
    background: url("../images/children.jpg") center / cover no-repeat;
  }
  .future .container {
    padding: 0;
  }
  .card {
    width: 100%;
    box-shadow: none;
    padding: 2rem var(--gutter) 2.5rem;
  }

  .info-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .policy {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
