/* Fonts (SIL Open Font License, see assets/fonts/OFL-*.txt), self-hosted.
   Martel (serif, bold) for headings; Montserrat (sans) for text, UI and numbers. */
@font-face {
  font-family: "Martel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/martel-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Martel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/martel-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-heading: "Martel", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --brand: #17295f;
  --brand-dark: #0e1a40;
  --accent: #ffffff;
  --accent-soft: #b9c3e6;
  --text: #1d2733;
  --muted: #5b6878;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --border: #e2e7ee;
  --radius: 3px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1, h2, h3, .footer-legal strong, .footer-contact strong { font-family: var(--font-heading); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Small logo linking home on inner pages */
.page-logo { display: inline-block; margin-bottom: 28px; }
.page-logo img { display: block; height: 56px; width: auto; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 96px 0 104px;
}
.hero .container { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.hero-logo { width: min(220px, 20vw); height: auto; opacity: 0.95; flex-shrink: 0; margin: 0 56px 0 24px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 20ch; margin-bottom: 16px; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; margin: 0 0 32px; font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.hero-tags span { white-space: nowrap; }
.tag-short { display: none; text-decoration: none; }
.hero-tags .sep { margin: 0 12px; color: rgba(255, 255, 255, 0.4); }
.button {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-block; padding: 12px 26px; border-radius: var(--radius);
  border: 2px solid #fff; background: var(--brand); color: #fff;
  font-weight: 600; text-decoration: none;
  transition: color 0.4s ease;
}
/* White fill that sweeps in from the left; oversized and clipped so no sliver of blue shows. */
.button::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: #fff; transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s ease;
}
.button:hover, .button:focus-visible, .button:active { color: var(--brand); }
.button:hover::before, .button:focus-visible::before, .button:active::before { transform: scaleX(1); }
/* Touch screens: tap plays a slower fill, then the page scrolls (see script in index.html). */
.button { -webkit-tap-highlight-color: transparent; }
@media (hover: none) { .button, .button::before { transition-duration: 0.8s; } }
.button.is-filling { color: var(--brand); }
.button.is-filling::before { transform: scaleX(1); }
.button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .button, .button::before { transition: none; } }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 12px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { color: var(--brand); }
.card p { margin: 0; }

.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 24px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.contact-list li.wide { grid-column: 1 / -1; }
.contact-list span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* About + founder */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: stretch; }
.about-copy { display: flex; flex-direction: column; min-width: 0; }
.about-copy p { margin: 0 0 1em; }
.about-copy p:last-of-type { margin-bottom: 28px; }
.about-copy .about-lead { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.3; color: var(--brand); margin: 0 0 16px; }
.about-stats { list-style: none; padding: 0; margin: auto 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.about-stats li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px 8px; background: var(--bg); text-align: center; }
.about-stats strong { font-family: var(--font-body); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--brand); }
.about-stats span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.founder { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.founder-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.founder-head img { display: block; flex-shrink: 0; width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); }
.founder h3 { margin: 0; color: var(--brand); font-size: 1.25rem; }
.founder-role { margin: 2px 0 0; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.founder p { font-size: 0.95rem; }
.founder p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .founder { padding: 20px; }
  .founder-head { gap: 14px; }
  .founder-head img { width: 84px; height: 84px; }
  .founder-role { font-size: 0.75rem; letter-spacing: 0.02em; }
}

/* Industries grid */
.industry-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.slide-art { display: flex; align-items: center; justify-content: center; height: 76px; background: var(--bg-alt); color: var(--brand); }
.slide-icon { width: 36px; height: 36px; }
.industry h3 { font-family: var(--font-body); font-weight: 600; margin: 0; padding: 10px 10px 12px; font-size: 0.88rem; line-height: 1.3; text-align: center; color: var(--brand); }
@media (max-width: 600px) { .industry-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Where we work map */
.world-map { margin: 8px 0 0; }
.world-map img { display: block; width: 100%; height: auto; }
.map-legend { display: flex; gap: 20px; justify-content: center; margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: var(--radius); background: #fff; border: 1px solid #c3cbe0; }
.swatch-active { background: var(--brand); border-color: var(--brand); }

/* Footer */
.site-footer { background: var(--brand-dark); color: rgba(255, 255, 255, 0.7); padding: 36px 0 0; font-size: 0.9rem; }
.site-footer p { margin: 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; line-height: 2; }
.footer-legal { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; }
.footer-legal strong, .footer-contact strong { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer-legal a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-contact { grid-column: 2; grid-row: 1; font-style: normal; text-align: right; }
.footer-contact a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-contact .sep { margin: 0 10px; color: rgba(255, 255, 255, 0.35); }
.addr-sep { display: none; }
.footer-bottom { margin-top: 28px !important; padding: 14px 20px; text-align: center; font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

/* Legal and contact pages */
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--brand); }
.legal h2 { font-size: 1.2rem; margin-top: 2em; color: var(--brand); }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2em; }
.legal .contact-list { padding-left: 0; }
.legal li { margin-bottom: 0.4em; }
.legal-meta { color: var(--muted) !important; font-size: 0.9rem; margin-bottom: 2em; }

/* Phones */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero .container { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-logo { order: -1; width: 150px; margin: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-contact { grid-column: 1; grid-row: 1; text-align: left; }
  .footer-legal { grid-column: 1; grid-row: 2; }
  .br-wide { display: none; }
  .tag-long { display: none; }
  .tag-short { display: inline; }
  .hero-tags { font-size: 1.05rem; letter-spacing: 0.02em; }
  .hero-tags .sep { margin: 0 18px; }
  .addr-sep { display: inline; }
  .contact-list { grid-template-columns: 1fr 1fr; gap: 12px 16px; font-size: 0.95rem; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 56px 0; }
}

