/* MERCAG website styles. One file, no build step.
   Brand colours match the MERCAG documents: navy #0E1E3A, gold #C9A84A, pale gold #F4EEDB. */

@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --navy: #0E1E3A;
  --navy-2: #16294d;
  --ink: #1B2740;
  --body: #3F4A5E;
  --grey: #5f6779;
  --gold: #C9A84A;
  --gold-dark: #7d6219;   /* gold for text on light backgrounds (passes contrast) */
  --gold-pale: #F4EEDB;
  --cream: #FAF7EE;
  --rule: #E4DCC6;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Calibri, Arial, sans-serif;
  --max: 1160px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.125rem; line-height: 1.65; color: var(--body); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .45em; }
li::marker { color: var(--gold); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 780px; }

/* Header */
.site-header { background: var(--white); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap; }
.brand img { width: 230px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .3rem; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .45rem .7rem; font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.site-nav a:hover { background: var(--gold-pale); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; padding: .8rem 1.4rem; border-radius: var(--radius); text-decoration: none; border: 2px solid var(--gold); background: var(--gold); color: var(--navy); cursor: pointer; }
.btn:hover { background: #d8bb63; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn--navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Hero */
.hero { background: var(--navy); color: #dfe4ee; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; bottom: -160px; width: 460px; height: 460px; background: url("../img/rosette.png") center / contain no-repeat; opacity: .07; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.25rem; color: #dfe4ee; max-width: 38em; }
.eyebrow { font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 .8rem; }
.hero .eyebrow, .band--navy .eyebrow { color: var(--gold); }

.page-hero { background: var(--navy); color: #dfe4ee; }
.page-hero .wrap { padding-top: 3.5rem; padding-bottom: 3.2rem; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { font-size: 1.2rem; max-width: 46em; margin: 0; }
.page-hero--split .wrap { display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; align-items: center; }

/* Sections */
.band { padding: 4.5rem 0; }
.band--cream { background: var(--cream); }
.band--pale { background: var(--gold-pale); }
.band--navy { background: var(--navy); color: #dfe4ee; }
.band--navy h2, .band--navy h3 { color: var(--white); }
.band--navy a:not(.btn) { color: var(--white); }
.section-intro { max-width: 46em; margin-bottom: 2.2rem; font-size: 1.15rem; }

.grid { display: grid; gap: 1.5rem; }
.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: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.2rem; }
.card h3 { font-size: 1.45rem; margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: var(--body); transition: box-shadow .15s, transform .15s; }
.card--link:hover { box-shadow: 0 8px 24px rgba(14,30,58,.12); transform: translateY(-2px); color: var(--body); }
.card--link .more { margin-top: auto; padding-top: .8rem; font-weight: 700; color: var(--navy); }
.card .place { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .4rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.split--wide { grid-template-columns: 1.5fr 1fr; }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: .6rem; background: var(--gold); transform: rotate(45deg); }

/* Quotes */
.quote { margin: 0; padding: 2rem 2.2rem; background: var(--white); border-left: 5px solid var(--gold); border-radius: var(--radius); }
.quote p { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--navy); font-weight: 600; margin-bottom: .7em; }
.quote p.quote__headline { font-family: var(--sans, inherit); font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.quote p.quote__headline--big { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: 0; text-transform: none; line-height: 1.1; color: var(--navy); }
.quote footer { font-size: 1rem; color: var(--grey); }
.band--navy .quote { background: var(--navy-2); }
.band--navy .quote p { color: var(--white); }
.band--navy .quote footer { color: #c3cad8; }
.pull { font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; color: var(--navy); border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); padding: 1.2rem 0; margin: 2rem 0; }

/* Photo placeholders: swap each one for a real <img>. */
.photo-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .3rem; background: rgba(244,238,219,.08); border: 2px dashed var(--gold); border-radius: var(--radius); color: var(--gold); padding: 1.5rem; min-height: 220px; }
.photo-slot img { width: 64px; opacity: .55; margin-bottom: .4rem; }
.photo-slot strong { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.photo-slot small { font-size: .9rem; color: inherit; opacity: .85; }
.photo-slot--light { background: var(--cream); color: var(--gold-dark); }
.photo-slot--portrait { aspect-ratio: 4 / 5; min-height: 0; }
.photo-slot--wide { aspect-ratio: 16 / 9; min-height: 0; }
.photo-slot--square { aspect-ratio: 1 / 1; min-height: 0; }
.photo { border-radius: var(--radius); width: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* Article (case studies and posts) */
.article { padding: 3.5rem 0 4rem; }
.article h2 { font-size: 1.9rem; margin-top: 2rem; padding-bottom: .3rem; border-bottom: 2px solid var(--rule); }
.article .meta { font-weight: 600; color: var(--gold); margin: 0; }
.learnings { background: var(--gold-pale); border-radius: var(--radius); padding: 1.4rem 1.6rem .6rem; margin: 2rem 0; }
.learnings h2 { border: 0; margin-top: 0; font-size: 1.6rem; }
.back { display: inline-block; margin-top: 1.5rem; font-weight: 700; }
.article figure { margin: 2rem 0; }
.article figcaption { font-size: .95rem; color: var(--grey); margin-top: .5rem; }

/* Stories and insights */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: inherit; font-size: 1rem; font-weight: 600; padding: .45rem 1rem; border-radius: 999px; border: 2px solid var(--rule); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); background: var(--gold-pale); padding: .2rem .6rem; border-radius: 999px; text-decoration: none; }
.page-hero .tag { color: var(--navy); background: var(--gold); }
.badge-draft { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #a33a2b; padding: .2rem .6rem; border-radius: 999px; margin-left: .4rem; }
.post-card time { font-size: .95rem; color: var(--grey); }
.post-card h3 { margin-top: .6rem; }
.draft-banner { background: #a33a2b; color: #fff; text-align: center; padding: .7rem 1rem; font-weight: 700; }
.empty-note { color: var(--grey); }
[hidden] { display: none !important; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.2rem 1rem; margin: 0; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 700; margin-bottom: .6rem; }
.steps strong { display: block; color: var(--navy); }

/* Form */
.form { display: grid; gap: 1.1rem; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.8rem; }
.form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.form .opt { font-weight: 400; color: var(--grey); }
.form input, .form textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: .7rem .8rem; border: 2px solid #c9cfda; border-radius: var(--radius); background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--navy); outline: 3px solid var(--gold-pale); }
.form textarea { min-height: 170px; resize: vertical; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .small { font-size: .95rem; color: var(--grey); margin: 0; }
.form-status { font-weight: 600; margin: 0; }
.form-status.ok { color: #1f6b3a; }
.form-status.err { color: #a33a2b; }

/* CTA band and footer */
.cta { text-align: center; }
.cta p { max-width: 40em; margin-left: auto; margin-right: auto; font-size: 1.2rem; }
.site-footer { background: #0a1630; color: #b9c1d1; font-size: .98rem; padding: 3rem 0 2rem; }
.site-footer a { color: #e6e9f0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.3rem; font-size: .9rem; }
.footer-legal p { margin: 0 0 .3rem; }

/* Responsive */
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1.06rem; }
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .brand img { width: 210px; }
  .site-nav ul { justify-content: center; }
  .site-nav a { padding: .4rem .55rem; font-size: .98rem; }
  .hero .wrap, .page-hero--split .wrap, .split, .split--wide, .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 3rem; padding-bottom: 3rem; gap: 2rem; }
  .band { padding: 3.2rem 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .quote { padding: 1.4rem 1.3rem; }
  .form { padding: 1.3rem; }
}
@media (max-width: 480px) {
  .grid--4, .steps { grid-template-columns: 1fr; }
  .wrap { padding: 0 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .cta, .photo-slot { display: none; } }

/* Home hero photo (Darren's own, Saudi Arabia) */
.hero-photo { margin: 0; }
.hero-photo .photo { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 40px rgba(14,30,58,.18); }
.hero-photo figcaption { font-size: .95rem; color: #c3cad8; margin-top: .6rem; font-style: italic; }
.photo { height: auto; display: block; }
.gallery .photo { aspect-ratio: 1 / 1; height: 100%; }
.article figure .photo { max-width: 100%; }
.article figcaption { font-size: .95rem; color: var(--grey); margin-top: .5rem; }
.page-hero .eyebrow { color: var(--gold); }
.about-figure { margin: 1.5rem 0 2rem; }
.about-figure figcaption { font-size: .95rem; color: var(--grey); font-style: italic; margin-top: .5rem; }
.card--featured { border-top: 5px solid var(--gold); }
.card--featured h3 { font-size: 2rem; }
.card .card__who { font-size: .95rem; color: var(--grey); margin-bottom: 0; }
.hero-sign { color: var(--gold); font-size: 1.2rem; margin-top: .4rem; }

.gold-lead { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; color: #a8802a; margin: 0 0 1rem; }
.gold-strong { color: #a8802a; font-weight: 700; }

.gallery--3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--grey); margin-top: .5rem; }
@media (max-width: 760px) { .gallery--3 { grid-template-columns: repeat(2, 1fr); } }
.gallery figure .photo { height: auto; width: 100%; display: block; }
.gallery--3 { display: flex; flex-wrap: wrap; justify-content: center; }
.gallery--3 figure { width: calc((100% - 3rem) / 3); }
@media (max-width: 760px) { .gallery--3 figure { width: calc((100% - 1.5rem) / 2); } }

.pull-cite{display:block;margin-top:.6rem;font-size:.95rem;font-style:normal;font-weight:600;letter-spacing:.02em;opacity:.85}
.pull-cite::before{content:"— "}
