/*
Theme Name: BGBIC
Author: Sulaiman Dauda
Description: Custom theme for Bedfordshire Global Business & Investment Connect.
Version: 1.0.0
Text Domain: bgbic
*/

:root {
  --ink: #071c1c;
  --ink-soft: #0d2b29;
  --emerald: #16483f;
  --gold: #c79a45;
  --gold-light: #e3c27f;
  --ivory: #f7f3e9;
  --paper: #fffdf8;
  --stone: #e8e2d5;
  --muted: #5d6965;
  --white: #fff;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, Aptos, 'Segoe UI', sans-serif;
  --container: min(1180px, calc(100vw - 48px));
  --radius: 4px;
  --shadow: 0 18px 50px rgba(7, 28, 28, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2.4rem, 4.5vw, 4.35rem); }
h3 { font-size: 1.55rem; }
.lede { max-width: 700px; color: var(--muted); font-size: 1.16rem; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { max-width: 780px; margin-bottom: 48px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--gold); color: var(--ink); font-size: .85rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.button:hover { background: var(--gold-light); transform: translateY(-1px); }
.button-outline { background: transparent; color: var(--white); }
.button-outline:hover { color: var(--ink); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.16); color: var(--white); }
.header-inner { display: flex; min-height: 88px; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand-mark { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-family: var(--serif); font-size: 1.15rem; }
.brand-name { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 1.55rem; line-height: 1; }
.brand-full { display: block; max-width: 200px; margin-top: 4px; font-size: .56rem; font-weight: 700; letter-spacing: .05em; line-height: 1.25; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: .82rem; text-decoration: none; }
.site-nav a:hover { color: var(--gold-light); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--white); }

.hero { position: relative; display: grid; min-height: 790px; align-items: end; color: var(--white); background: var(--ink); isolation: isolate; }
.hero::before { position: absolute; inset: 0; z-index: -2; background: url('assets/images/hero.webp') center/cover; content: ''; }
.hero::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,20,20,.97) 0%, rgba(3,20,20,.86) 42%, rgba(3,20,20,.18) 74%, rgba(3,20,20,.06)); content: ''; }
.hero-content { width: min(780px, calc(100vw - 48px)); max-width: 780px; margin-left: max(24px, calc((100vw - 1180px) / 2)); margin-right: 0; padding: 180px 0 96px; }
.hero h1 span { color: var(--gold-light); }
.hero-lede { max-width: 660px; margin: 24px 0 32px; font-size: 1.18rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; color: rgba(255,255,255,.76); font-size: .83rem; }
.event-bar { color: var(--white); background: var(--ink-soft); border-top: 1px solid rgba(255,255,255,.12); }
.event-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.event-item { display: flex; align-items: center; gap: 16px; min-height: 118px; padding: 22px 34px; border-left: 1px solid rgba(255,255,255,.13); }
.event-item:last-child { border-right: 1px solid rgba(255,255,255,.13); }
.event-item svg { flex: 0 0 30px; color: var(--gold-light); }
.event-item strong, .event-item span { display: block; }
.event-item span { color: rgba(255,255,255,.65); font-size: .78rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px,7vw,100px); }
.image-frame { position: relative; }
.image-frame::after { position: absolute; right: -16px; bottom: -16px; width: 42%; height: 48%; border: 1px solid var(--gold); content: ''; z-index: -1; }
.image-frame img { aspect-ratio: 4/3; object-fit: cover; }
.feature-list, .audience-grid, .themes-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; padding: 1px; background: var(--stone); }
.feature-card, .audience-card { padding: 32px 26px; background: var(--paper); }
.icon { width: 38px; height: 38px; margin-bottom: 20px; color: var(--gold); }
.feature-card h3 { min-height: 3.1em; font-family: var(--sans); font-size: 1rem; font-weight: 800; line-height: 1.35; }
.feature-card p, .audience-card p { margin-bottom: 0; color: var(--muted); font-size: .93rem; }

.global { position: relative; color: var(--white); background: var(--ink); isolation: isolate; }
.global::before { position: absolute; inset: 0; z-index: -2; background: url('assets/images/global.webp') center/cover; content: ''; }
.global::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,20,20,.98), rgba(3,20,20,.84) 48%, rgba(3,20,20,.18)); content: ''; }
.global-copy { max-width: 590px; padding-block: 100px; }
.global-copy p:not(.eyebrow) { color: rgba(255,255,255,.78); }
.audience-grid { grid-template-columns: repeat(4,1fr); }
.audience-card { text-align: center; }
.audience-card .icon { margin-inline: auto; }
.themes { background: var(--ivory); }
.themes-grid { grid-template-columns: repeat(3,1fr); background: transparent; gap: 18px; padding: 0; }
.theme-card { min-height: 260px; padding: 30px; color: var(--white); background: var(--emerald); }
.theme-card:nth-child(even) { background: var(--ink-soft); }
.theme-card .number { display: block; margin-bottom: 58px; color: var(--gold-light); font-family: var(--serif); font-size: 2.2rem; }
.theme-card p { color: rgba(255,255,255,.7); font-size: .92rem; }

.speakers { color: var(--white); background: var(--ink); }
.speakers .lede { color: rgba(255,255,255,.72); }
.speakers-inner { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.announcement { padding: 16px 20px; border: 1px solid rgba(255,255,255,.22); color: var(--gold-light); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.register { background: var(--paper); }
.register-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: start; gap: 60px; }
.form-card { padding: 30px; background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid > p { margin: 0; }
.field-full { grid-column: 1/-1; }
label, legend { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid #c9cfc9; border-radius: 2px; background: var(--white); color: var(--ink); }
textarea { min-height: 100px; resize: vertical; }
.checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px; }
.checkbox { display: flex; align-items: start; gap: 8px; font-weight: 400; }
.checkbox input { width: 18px; min-height: 18px; margin-top: 4px; }
.form-status { margin: 0 0 24px; padding: 14px 16px; border-left: 4px solid var(--gold); background: var(--ivory); }
.form-status.error { border-color: #a4352f; }
.honeypot { position: absolute; left: -9999px; }

.partner { overflow: hidden; background: var(--ivory); }
.partner .split { grid-template-columns: 1.05fr .95fr; }
.partner-image img { aspect-ratio: 3/2; object-fit: cover; }
.final-cta { padding-block: 78px; color: var(--white); background: var(--emerald); }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.final-inner h2 { font-size: clamp(2.4rem,4vw,4rem); }
.site-footer { padding-block: 52px 24px; color: rgba(255,255,255,.76); background: var(--ink); }
.page-shell { min-height: 70vh; padding: 170px 0 100px; background: var(--paper); }
.page-shell::before { position: absolute; inset: 0 0 auto; height: 112px; background: var(--ink); content: ''; }
.legal-content { max-width: 820px; }
.legal-content h1 { margin-bottom: 42px; font-size: clamp(2.8rem,5vw,4.8rem); }
.legal-content h2 { margin: 48px 0 16px; font-size: 2rem; }
.legal-content h3 { margin: 30px 0 10px; }
.legal-content li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 48px; }
.footer-title { color: var(--white); font-weight: 700; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.copyright { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }

@media (max-width: 980px) {
  .site-nav { position: fixed; inset: 0; display: none; padding: 120px 32px 40px; background: var(--ink); flex-direction: column; align-items: start; }
  .menu-open .site-nav { display: flex; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .header-cta { display: none; }
  .event-grid { grid-template-columns: 1fr; }
  .event-item, .event-item:last-child { border: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .split, .register-grid, .partner .split { grid-template-columns: 1fr; }
  .feature-list, .themes-grid { grid-template-columns: repeat(2,1fr); }
  .audience-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  :root { --container: min(100% - 32px, 1180px); }
  body { font-size: 16px; }
  .brand-full { display: none; }
  .hero { min-height: 680px; }
  .hero::after { background: linear-gradient(90deg,rgba(3,20,20,.95),rgba(3,20,20,.68)); }
  .hero-content { width: calc(100vw - 32px); margin-left: 16px; padding-top: 150px; padding-bottom: 64px; }
  .feature-list, .themes-grid, .audience-grid, .form-grid, .checkboxes, .footer-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-card { padding: 24px 18px; }
  .speakers-inner, .final-inner { align-items: start; flex-direction: column; }
  .section { padding-block: 68px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .01ms !important; } }
