/* ==========================================================================
   Trading Heritage International — main.css
   Plain CSS, no framework, no build step. Mobile-first (min-width queries).
   ========================================================================== */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/open-sans-latin.woff2') format('woff2');
}

:root {
  --navy: #192e62;
  --navy-light: #26408c;
  --text-blue: #1e376c;
  --text-secondary: #414141;
  --gray: #999;
  --overlay: rgba(0, 0, 0, .72);
  --max-width: 1140px;
  --header-height: 76px;
  --radius: 10px;
  --shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body, h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, button { font-family: inherit; }

body {
  font-family: 'Open Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-blue);
  background: #fff;
}

h1, h2, h3, h4 {
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
}

h3 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

section, footer.site-footer {
  scroll-margin-top: var(--header-height);
}

.section {
  padding: 56px 0;
}
@media (min-width: 768px) {
  .section { padding: 96px 0; }
}

.section-dark {
  position: relative;
  color: #fff;
  background-color: #000;
  background-size: cover;
  background-position: center;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.section-dark > .container {
  position: relative;
  z-index: 1;
}
.section-dark h2, .section-dark h3 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  border: 2px solid var(--navy);
  transition: background-color .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover, .btn:focus-visible {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: #fff;
  color: var(--navy);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  position: relative;
}
.logo img {
  height: 48px;
  width: auto;
}
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.nav-toggle-label span {
  display: block;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-blue);
  padding: 10px 0;
}
.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
}
.site-nav .btn {
  padding: 10px 20px;
  font-size: 15px;
}
.site-nav .btn:hover { color: #fff; }

@media (max-width: 979px) {
  .nav-toggle-label { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 12px 20px rgba(0,0,0,.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .site-nav li {
    border-top: 1px solid #eee;
  }
  .site-nav li:first-child { border-top: none; }
  .site-nav a { display: block; padding: 14px 0; }
  .site-nav .btn { margin: 12px 0; }
  .nav-toggle:checked ~ .site-nav {
    max-height: 500px;
  }
}
@media (min-width: 980px) {
  .nav-toggle-label { display: none; }
  .site-nav {
    position: static;
    max-height: none;
    box-shadow: none;
    background: transparent;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('/img/hero.jpg');
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
}
.hero-logo {
  max-width: 260px;
  margin-bottom: 28px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.5));
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  max-width: 900px;
  margin-bottom: 20px;
}
.hero p {
  max-width: 700px;
  font-size: 20px;
  margin-bottom: 12px;
}

/* ---------- Two-column rows ---------- */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .row {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  .row.reverse .row-media { order: 2; }
}
.card-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}
.row-text p + p { margin-top: 16px; }
.row-text ul, .row-text ol {
  margin-top: 16px;
}
.row-text li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}
.row-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}
.row-text ul ul, .row-text ol ol, .row-text ul ol, .row-text ol ul {
  margin-top: 8px;
}
.row-text .lede {
  font-weight: 700;
  color: var(--text-blue);
  margin-bottom: 8px;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-intro h2, .section-intro h3 { margin-bottom: 16px; }
.section-light p { color: var(--text-secondary); }

/* ---------- Services sub-nav ---------- */
.services-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 8px;
}
.services-subnav a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #fff;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.services-subnav a:hover, .services-subnav a:focus-visible {
  background: #fff;
  color: var(--navy);
}
.service-block {
  padding-top: 64px;
}
.service-block:first-of-type { padding-top: 48px; }

/* ---------- #1 Choice band ---------- */
.band {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}
@media (min-width: 768px) {
  .band { padding: 96px 0; }
}
.band h2 { text-align: center; margin-bottom: 40px; }
.band-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) {
  .band-lists { grid-template-columns: 1fr 1fr; }
}
.band-lists li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 14px;
  font-size: 19px;
}
.band-lists li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.band-close {
  text-align: center;
  max-width: 760px;
  margin: 40px auto 0;
  font-weight: 700;
  font-size: 20px;
}

/* ---------- Case studies teaser ---------- */
.teaser {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.teaser p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ---------- Footer / contact ---------- */
.site-footer {
  position: relative;
  color: #fff;
  background-color: #000;
  background-image: url('/img/footer.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.footer-inner {
  position: relative;
  z-index: 1;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-contact h2, .footer-newsletter h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 24px;
}
.footer-contact p {
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-contact a:hover { text-decoration: underline; }
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.social-links svg { width: 18px; height: 18px; fill: #fff; }
.social-links a:hover { background: #fff; }
.social-links a:hover svg { fill: var(--navy); }

.footer-newsletter p { color: #ddd; margin-bottom: 20px; }
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.form-row input[type="email"] {
  flex: 1 1 220px;
  padding: 14px 16px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
}
.form-status {
  margin-top: 12px;
  font-size: 15px;
  min-height: 1.2em;
}
.form-status.ok { color: #8be08b; }
.form-status.err { color: #ff9d9d; }

.legal-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--gray);
  font-size: 15px;
}
.legal-strip a:hover { text-decoration: underline; color: #fff; }

/* ---------- Forms (instant quote) ---------- */
.lead-form {
  max-width: 640px;
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-blue);
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  color: var(--text-blue);
  background: #fff;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 130px; }
.required-mark { color: var(--navy); }
.reassurance {
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 16px;
}
.accent-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Team page ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 700px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
.team-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 26px;
}
.team-card h3 { margin-bottom: 2px; font-size: 22px; }
.team-card .role {
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.team-card p { color: var(--text-secondary); }

/* ---------- Privacy policy / simple content pages ---------- */
.page-hero {
  padding: 64px 0 40px;
  text-align: center;
  background: var(--navy);
  color: #fff;
}
.page-hero h1 { color: #fff; }
.legal-copy h3 {
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-blue);
}
.legal-copy h3:first-child { margin-top: 0; }
.legal-copy h4 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-blue);
  font-size: 19px;
}
.legal-copy p { color: var(--text-secondary); margin-bottom: 16px; }
.legal-copy ul { margin: 12px 0 16px 0; }
.legal-copy li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.legal-copy li::before {
  content: "-";
  position: absolute;
  left: 0;
}
.legal-copy strong { color: var(--text-blue); }

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
  padding: 96px 0;
}
.not-found h1 { font-size: clamp(60px, 10vw, 120px); color: var(--navy); }
.not-found p { color: var(--text-secondary); margin: 16px 0 28px; font-size: 20px; }
.not-found .btn-group { justify-content: center; }
.not-found .btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.not-found .btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Case studies stub ---------- */
.stub {
  padding: 96px 0;
  text-align: center;
}
.stub p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
  font-size: 20px;
}
