/* RAES Solutions – site styles. Colours and type: see project doc 03-brand-style. */

@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #0A2A5A;
  --green: #6A9E3A;        /* brand green: buttons, accent lines */
  --green-text: #4E7A27;   /* readable green for small text and links */
  --grey: #5E5E5E;
  --text: #1A1F2B;
  --muted: #4A4F5A;
  --line: #D9DBD4;
  --sand: #F4F4F1;
  --white: #FFFFFF;
  --on-navy: #D5DEEA;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-text); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-weight: 700; font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-weight: 600; font-size: 1.25rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.wrap.narrow { max-width: 780px; }
@media (max-width: 600px) { .wrap { padding: 0 1rem; } }

/* Bands */
.band { padding: 5.5rem 0; }
.band-tight { padding: 3.5rem 0; }
.band-sand { background: var(--sand); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h1, .band-navy h2, .band-navy h3 { color: var(--white); }
@media (max-width: 600px) { .band { padding: 3.5rem 0; } }

/* Header */
.site-header { background: var(--navy); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.logo img { height: 52px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; font-family: var(--head); font-weight: 500; font-size: .95rem; }
.main-nav a { color: var(--white); text-decoration: none; padding: .25rem 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--green); }
.lang-switch { color: #9FB0C8; font-size: .8rem; letter-spacing: .08em; }
.lang-switch a { color: #9FB0C8; }
.lang-switch strong { color: var(--white); }

/* Hero and page heads */
.hero { padding: 6rem 0 7rem; }
.hero h1 { max-width: 18ch; }
.lead { font-size: 1.3rem; max-width: 46rem; color: var(--on-navy); margin-top: 1.5rem; }
.page-head { padding: 4.5rem 0 4rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); max-width: 26ch; }
.page-head .lead { margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.btn { display: inline-block; padding: .85rem 1.75rem; font-family: var(--head); font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 2px; border: 1px solid transparent; cursor: pointer; }
.btn-green { background: var(--green); color: var(--navy); }
.btn-green:hover { background: #7DB34A; color: var(--navy); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #12397A; color: var(--white); }

/* Labels */
.eyebrow { font-family: var(--head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-text); margin-bottom: .5rem; }
.eyebrow-light { color: #A9CC86; }
.tag { font-family: var(--head); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: .5rem; }

/* Two-column intro (heading left, text right) */
.split { display: flex; flex-wrap: wrap; gap: 3rem; }
.split > :first-child { flex: 1 1 320px; }
.split > :last-child { flex: 2 1 480px; }

/* Grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.5rem; }
.grid h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.grid p { font-size: 1rem; margin: 0; }

/* Numbered service rows */
.rows { border-top: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.row .num { flex: 0 0 3.5rem; font-family: var(--head); font-weight: 600; font-size: .95rem; color: var(--green-text); }
.row h3 { flex: 1 1 280px; margin: 0; font-size: 1.5rem; }
.row p, .row .row-body { flex: 2 1 420px; margin: 0; }
.row .row-body p { margin: 0 0 .75em; }

/* Expertise tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tiles > div { background: var(--white); padding: 1.75rem; }
.tiles h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.tiles p { margin: 0; font-size: 1rem; color: var(--muted); }

/* Cards */
.case { border-top: 3px solid var(--green); padding-top: 1.25rem; }
.case p { font-size: 1.05rem; }
.story-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); padding: 1.75rem; }
.story-card:hover { border-color: var(--navy); color: inherit; }
.story-card .meta { font-size: .9rem; color: var(--grey); margin-bottom: .75rem; }
.story-card h3 { margin: 0; line-height: 1.35; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.more { font-family: var(--head); font-weight: 600; font-size: .95rem; }

/* About teaser */
.about { display: flex; flex-wrap: wrap; gap: 3.5rem; align-items: center; }
.about img { flex: 0 0 280px; width: 280px; height: 280px; object-fit: cover; }
.about > div { flex: 1 1 420px; }
.subtitle { color: var(--muted); margin-bottom: 1.25rem; }

/* Prose (stories, privacy) */
.prose { padding-top: 3.5rem; padding-bottom: 5rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0 1.5rem; }

/* Timeline (About) */
.timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.timeline li { display: flex; flex-wrap: wrap; gap: .25rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.timeline .when { flex: 0 0 9rem; font-family: var(--head); font-weight: 600; font-size: .9rem; color: var(--green-text); }
.timeline .what { flex: 1 1 360px; }
.timeline .what strong { font-family: var(--head); color: var(--navy); }

/* Contact form */
.contact { display: flex; flex-wrap: wrap; gap: 4rem; }
.contact > div { flex: 1 1 320px; }
.contact form { flex: 2 1 460px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.contact label { display: flex; flex-direction: column; gap: .4rem; font-size: .95rem; font-weight: 600; }
.contact .full { grid-column: 1 / -1; }
.contact input, .contact textarea { padding: .75rem; border: 1px solid #B8BBB2; font: inherit; font-weight: 400; border-radius: 2px; }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.contact .note { font-size: .9rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .contact form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--white); }

/* Utility */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.placeholder { background: #FFF6D6; padding: 0 .2em; }
