/* ==========================================================
   Coldroom Africa — main stylesheet
   Edit the colours in :root to re-theme the whole site.
   ========================================================== */
:root {
  --radius: 6px;
  --background: #ffffff;
  --foreground: #232b36;
  --navy: #0b2a5b;
  --navy-foreground: #f0f5fb;
  --primary: #1f64b0;
  --primary-foreground: #ffffff;
  --ice: #4fb0e8;
  --secondary: #f1f4f8;
  --muted-foreground: #5a6676;
  --accent: #d9ecfa;
  --destructive: #d92d20;
  --border: #dfe5ed;
  --input: #cfd7e2;
  --ring: #3b8fd9;
  --whatsapp: #25c25d;
  --overlay: #08183a;
  --shadow-card: 0 1px 2px rgba(11,42,91,.06), 0 8px 24px -12px rgba(11,42,91,.18);
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font-family: var(--font-sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--navy); letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
.page { display: flex; min-height: 100vh; flex-direction: column; }
.page > main { flex: 1; }

/* ---------- Utilities ---------- */
.container { margin-inline: auto; width: 100%; max-width: 76rem; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.eyebrow.on-dark { color: var(--ice); }
.muted { color: var(--muted-foreground); }
.small { font-size: .875rem; }
.text-primary { color: var(--primary); }
.ic-primary { color: var(--primary); }
.center-text { text-align: center; }
.shadow-card { box-shadow: var(--shadow-card); }
.plain-list { list-style: none; }
.row { display: flex; align-items: center; gap: .5rem; }
.row.gap-3 { gap: .75rem; }
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; } .mt-7 { margin-top: 1.75rem; } .mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }
.hover-primary:hover { color: var(--primary); }

.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 1.75rem; height: 1.75rem; }

.cover-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.cover-img.faded { opacity: .25; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.order-2 { order: 2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: var(--radius); padding: .75rem 1.25rem; font-size: .875rem; font-weight: 600;
  border: 1px solid transparent; transition: background-color .2s, filter .2s; text-align: center;
}
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn .icon { width: 1.25rem; height: 1.25rem; }
.btn .icon-sm { width: 1rem; height: 1rem; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { filter: brightness(.95); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--navy); }
.btn-outline-light { border-color: rgba(240,245,251,.4); color: var(--navy-foreground); }
.btn-outline-light:hover { background: rgba(240,245,251,.1); }
.btn-row { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; min-height: 4.5rem; }
.brand img { height: 3rem; width: auto; }
.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a:not(.btn) { font-size: .875rem; font-weight: 600; color: rgba(35,43,54,.8); }
.nav-desktop a:not(.btn):hover, .nav-desktop a.active { color: var(--primary); }
.menu-toggle { background: none; border: 0; padding: .5rem; border-radius: var(--radius); color: var(--navy); }
.menu-toggle .when-open { display: none; }
.menu-toggle[aria-expanded="true"] .when-open { display: inline; }
.menu-toggle[aria-expanded="true"] .when-closed { display: none; }
.nav-mobile { border-top: 1px solid var(--border); background: var(--background); }
.nav-mobile[hidden] { display: none; }
.nav-mobile-inner { display: flex; flex-direction: column; gap: .25rem; padding-block: 1rem; }
.nav-mobile-inner a:not(.btn) { padding: .75rem; border-radius: var(--radius); font-weight: 600; }
.nav-mobile-inner a:not(.btn):hover { background: var(--secondary); }
.nav-mobile-inner a.active { color: var(--primary); background: var(--secondary); }
.nav-mobile-inner .btn { margin-top: .5rem; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle, .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,24,58,.92) 0%, rgba(8,24,58,.70) 55%, rgba(8,24,58,.35) 100%);
}
.hero-inner { padding-block: 6rem; }
.hero-home .hero-inner { padding-block: 6rem; }
.hero h1 { margin-top: .75rem; max-width: 48rem; color: var(--navy-foreground); font-size: 2.25rem; font-weight: 800; line-height: 1.1; }
.hero-intro { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; color: rgba(240,245,251,.85); }
.hero-page .hero-inner { padding-block: 5rem; }
.hero-page h1 { line-height: 1.2; }
@media (min-width: 768px) {
  .hero-home .hero-inner { padding-block: 9rem; }
  .hero-page .hero-inner { padding-block: 7rem; }
  .hero h1 { font-size: 3rem; }
  .hero-home h1 { font-size: 3.75rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 5rem; }
.section-sm { padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 7rem; } }
.bg-secondary { background: var(--secondary); }
.bordered { border-block: 1px solid var(--border); }
.section-heading { max-width: 42rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-top: .5rem; font-size: 1.875rem; font-weight: 800; }
.section-heading .lead-muted { margin-top: 1rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .section-heading h2 { font-size: 2.25rem; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1rem; }
.g-3 { gap: 1.25rem; }
@media (min-width: 640px) { .g-4, .g-3, .g-6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .g-6 { grid-template-columns: repeat(3, 1fr); } .g-5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .g-4 { grid-template-columns: repeat(4, 1fr); } .g-3 { grid-template-columns: repeat(3, 1fr); } .g-6 { grid-template-columns: repeat(6, 1fr); } }
.g-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .g-5 { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .g-5 { grid-template-columns: repeat(5, 1fr); } }

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 1.5rem; }
.card.borderless { border: 0; }
.card h3 { margin-top: 1rem; font-size: 1rem; font-weight: 700; }
.card p { margin-top: .5rem; }
.highlights { position: relative; z-index: 10; margin-top: -3rem; }
.service-card { display: block; padding: 1.75rem; transition: border-color .2s; }
.service-card:hover { border-color: var(--primary); }
.service-card h3 { margin-top: 1.25rem; font-size: 1.125rem; }
.icon-box { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); background: var(--accent); color: var(--primary); }
.icon-box .icon { width: 1.25rem; height: 1.25rem; }
.icon-box-sm { width: 2.5rem; height: 2.5rem; }
.learn-more { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 600; color: var(--primary); }
.learn-more .arrow { transition: transform .2s; }
.service-card:hover .arrow { transform: translateX(4px); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(6, 1fr); } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; } }
.gallery-grid figure { margin: 0; }
.gallery-btn { display: block; width: 100%; padding: 0; border: 0; background: none; overflow: hidden; border-radius: var(--radius); }
.gallery-btn:focus-visible { outline: 2px solid var(--ring); }
.gallery-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gallery-btn:hover img { transform: scale(1.05); }
.gallery-grid figcaption { margin-top: .5rem; }

.lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(8,24,58,.9); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 56rem; }
.lightbox img { max-height: 80vh; width: auto; border-radius: var(--radius); }
.lightbox figcaption { margin-top: .75rem; text-align: center; font-size: .875rem; color: var(--navy-foreground); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; border: 0; border-radius: 999px; background: #fff; padding: .5rem; color: var(--navy); display: flex; }

/* ---------- Lists ---------- */
.check-list { list-style: none; display: grid; gap: 1rem; }
.check-list li { display: flex; gap: .75rem; }
.tick { margin-top: .125rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--accent); color: var(--primary); }
.industry { display: flex; flex-direction: column; align-items: center; background: #fff; border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.industry p { margin-top: .75rem; font-size: .875rem; font-weight: 600; color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); padding-block: 5rem; }
.cta-band h2 { color: var(--navy-foreground); font-size: 1.875rem; font-weight: 800; }
.cta-band p { margin: 1rem auto 0; max-width: 42rem; color: rgba(240,245,251,.85); }
@media (min-width: 768px) { .cta-band h2 { font-size: 2.25rem; } }

/* ---------- Services page ---------- */
.stack-20 { display: grid; gap: 5rem; }
.service-detail { display: grid; gap: 2.5rem; align-items: center; scroll-margin-top: 7rem; }
.service-detail h2 { font-size: 1.875rem; font-weight: 800; }
.check-grid { list-style: none; display: grid; gap: .5rem; }
.check-grid li { display: flex; gap: .5rem; font-size: .875rem; }
.check-grid .icon { margin-top: .125rem; }
@media (min-width: 640px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-detail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1023px) { .order-2 { order: 0; } }
.step { border-top: 4px solid var(--primary); border-radius: var(--radius); background: #fff; padding: 1.5rem; }
.step-num { font-size: 1.875rem; font-weight: 800; color: var(--ice); }
.step h3 { margin-top: .75rem; font-size: 1rem; font-weight: 700; }
.step p { margin-top: .5rem; }
.narrow { max-width: 48rem; }
.faq-list { border: 1px solid var(--border); border-radius: var(--radius); }
.faq { padding: 1.25rem; }
.faq + .faq { border-top: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { margin-left: 1rem; font-size: 1.25rem; color: var(--primary); transition: transform .2s; }
.faq[open] .plus { transform: rotate(45deg); }
.faq p { margin-top: .75rem; }

/* ---------- About page ---------- */
.about-text { display: grid; gap: 1.25rem; font-size: 1.125rem; }
.avatar { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 999px; background: var(--navy); color: var(--navy-foreground); font-weight: 700; }
.cust-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border); }
.cust-grid li { background: #fff; padding: 1.25rem; }
.cust-name { font-weight: 600; color: var(--navy); }
.cust-grid .muted { margin-top: .25rem; }
@media (min-width: 640px) { .cust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cust-grid { grid-template-columns: repeat(3, 1fr); } }
.company-name { font-weight: 700; color: var(--navy); }
.contact-list { display: grid; gap: 1rem; }
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }

/* ---------- Form ---------- */
.form-card { padding: 1.5rem; }
@media (min-width: 768px) { .form-card { padding: 2rem; } }
.form-card h3 { margin-top: 0; font-size: 1.25rem; }
.form-card p { margin-top: 0; }
.form-card p.mt-2 { margin-top: .5rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid .full { grid-column: span 2; } }
.form-grid label { font-size: .875rem; font-weight: 600; color: var(--navy); }
.form-grid input, .form-grid select, .form-grid textarea {
  display: block; width: 100%; margin-top: .375rem; padding: .625rem .75rem; font: inherit; font-size: .875rem;
  color: var(--foreground); background: #fff; border: 1px solid var(--input); border-radius: var(--radius);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--ring); outline-offset: 0; }
.form-grid .invalid { border-color: var(--destructive); }
.err { margin-top: .25rem !important; font-size: .75rem; color: var(--destructive); }
.err:empty { display: none; }
.form-submit { width: 100%; }
@media (min-width: 640px) { .form-submit { width: auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--navy-foreground); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.logo-chip { display: inline-block; border-radius: var(--radius); background: #fff; padding: .5rem; }
.logo-chip img { height: 3rem; width: auto; }
.footer-company { margin-top: 1rem; font-weight: 600; }
.footer-about { margin-top: .5rem; font-size: .875rem; color: rgba(240,245,251,.7); }
.footer-title { font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ice); }
.footer-list { list-style: none; margin-top: 1rem; display: grid; gap: .5rem; font-size: .875rem; }
.footer-list a { color: rgba(240,245,251,.8); }
.footer-list a:hover { color: var(--navy-foreground); }
.footer-contact { gap: .75rem; color: rgba(240,245,251,.8); }
.footer-bottom { border-top: 1px solid rgba(240,245,251,.1); }
.footer-bottom p { padding-block: 1.25rem; font-size: .75rem; color: rgba(240,245,251,.6); }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; z-index: 9999; display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.25); transition: transform .2s;
  bottom: max(20px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right));
}
.float-wa:hover { transform: scale(1.05); }
.float-wa-tip {
  display: none; position: absolute; right: 4rem; white-space: nowrap; pointer-events: none; opacity: 0;
  border-radius: var(--radius); background: var(--navy); color: var(--navy-foreground);
  padding: .375rem .75rem; font-size: .75rem; font-weight: 600; transition: opacity .2s;
}
@media (min-width: 768px) { .float-wa-tip { display: block; } }
.float-wa:hover .float-wa-tip { opacity: 1; }

/* ---------- Team emails ---------- */
.team-email { display: block; margin-top: .5rem; color: var(--muted-foreground); word-break: break-all; }
.team-email:hover { color: var(--primary); }

/* ---------- Work videos ---------- */
.work-videos { background: var(--navy); color: var(--navy-foreground); }
.work-videos .section-heading h2 { color: #fff; }
.work-videos .section-heading .lead-muted { color: rgba(240,245,251,.75); }
.video-grid { display: flex; gap: 1rem; margin-top: 3rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem 1rem 1rem; margin-inline: -1rem; -webkit-overflow-scrolling: touch; }
.video-card { flex: 0 0 74%; max-width: 19rem; scroll-snap-align: center; margin: 0; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); }
.video-frame { position: relative; aspect-ratio: 9 / 16; background: #000; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; cursor: pointer; background: linear-gradient(to top, rgba(8,24,58,.55), rgba(8,24,58,0) 45%); transition: opacity .2s; }
.video-play span { width: 4.25rem; height: 4.25rem; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(0,0,0,.35); position: relative; transition: transform .2s, background .2s; }
.video-play span::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: .8rem 0 .8rem 1.3rem; border-color: transparent transparent transparent var(--navy); }
.video-play:hover span { transform: scale(1.08); background: #fff; }
.video-play:focus-visible { outline: 3px solid var(--ice); outline-offset: -3px; }
.video-card.is-playing .video-play { opacity: 0; pointer-events: none; }
.video-card figcaption { display: block; padding: 1rem 1.125rem 1.25rem; }
.video-card figcaption strong { display: block; font-size: 1rem; font-weight: 700; color: #fff; }
.video-card figcaption span { display: block; margin-top: .375rem; font-size: .875rem; line-height: 1.5; color: rgba(240,245,251,.72); }
.video-empty { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--primary)); color: var(--navy-foreground); font-weight: 600; font-size: .9375rem; letter-spacing: .02em; }
.video-card.is-empty .video-empty { display: flex; }
.video-card.is-empty video, .video-card.is-empty .video-play { display: none; }
@media (min-width: 768px) {
  .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; overflow: visible; padding: 0; margin: 3.5rem auto 0; max-width: 60rem; }
  .video-card { flex: none; max-width: none; transition: transform .25s, border-color .25s; }
  .video-card:hover { transform: translateY(-4px); border-color: rgba(79,176,232,.6); }
}

/* ---------- No card icons: remove the leftover gap above headings/text ---------- */
.card > h3:first-child, .card > .row + h3 { margin-top: 0; }
.industry > p:first-child { margin-top: 0; }

/* ---------- Article / prose pages ---------- */
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 1rem 0; }
.prose li { margin: .4rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid rgba(0,0,0,.12); padding: .6rem .5rem; text-align: left; }
.prose .table-wrap { overflow-x: auto; }
.related { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; list-style: none; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; }
.crumbs a { text-decoration: underline; }
