@font-face {
  font-family: "Alex Brush";
  src: url("../fonts/AlexBrush-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #2b241c;         /* charcoal-brown, replaces navy as the "dark" brand color */
  --navy-light: #423829;
  --gold: #b6884b;         /* tan/gold accent sampled from the brand gradient */
  --gold-light: #d8b98a;
  --cream: #efe6d6;        /* light end of the brand gradient */
  --tan: #c9a876;          /* dark end of the brand gradient */
  --bg: #ffffff;
  --bg-alt: #f8f4ec;
  --text: #2b241c;
  --text-muted: #7a6f5e;
  --border: #e6dcc9;
  --radius: 14px;
  --max-width: 1160px;
  --max-width-header: 1320px;
}

/* Glass (frosted) surface, used across header, hero card, and content cards.
   Falls back to a solid surface when transparency is reduced or backdrop-filter is unsupported. */
.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 30px rgba(43, 36, 28, 0.08);
}
.glass-dark {
  background: rgba(43, 36, 28, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 30px rgba(0, 0, 0, 0.25);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-dark { background: var(--navy); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.92); }
  .glass-dark { background: rgba(43, 36, 28, 0.92); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1em; color: var(--text); }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.7); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--border); } }
.header-inner { max-width: var(--max-width-header); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 20px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--navy); flex-shrink: 0; }
.logo-lockup { display: flex; align-items: center; gap: 8px; }
.logo-icon { height: 42px; width: 42px; object-fit: contain; display: block; }
.logo-icon-invert { filter: invert(1) brightness(1.15); }
.brand-name { font-family: "Alex Brush", cursive; font-size: 26px; line-height: 1; white-space: nowrap; }
.site-footer .brand-name { font-size: 34px; }
.main-nav { display: flex; gap: 16px; flex-wrap: nowrap; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 14px; white-space: nowrap; }
.main-nav a:hover { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }
.lang-switch a { color: var(--text-muted); font-weight: 600; padding: 4px 2px; }
.lang-switch a.active { color: var(--navy); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; padding: 8px; line-height: 1; }

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* Hero: animated WebGL gradient background (brand colors), flat CSS gradient as fallback/first-paint */
.hero { position: relative; background: linear-gradient(155deg, var(--cream) 0%, var(--tan) 100%); color: var(--navy); padding: 96px 0 104px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid { position: relative; z-index: 1; }
.hero-copy { max-width: 560px; }
.hero h1 { color: var(--navy); margin-bottom: .45em; }
.hero .lead { color: var(--navy-light); max-width: 480px; font-size: 18px; margin-bottom: 1.6em; }
@media (max-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-copy { max-width: 100%; }
}

.page-hero { background: var(--bg-alt); padding: 60px 0; border-bottom: 1px solid var(--border); }
.page-hero .lead { color: var(--text-muted); max-width: 640px; }
.lead { font-size: 17px; }

/* Visual band: full-width abstract brand image used as a section divider */
.visual-band { width: 100%; height: clamp(200px, 28vw, 360px); overflow: hidden; }
.visual-band img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Scroll reveal: fade+rise on enter, staggered by --reveal-delay. Skipped entirely under reduced motion. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); transition-delay: var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--text-muted); max-width: 680px; font-size: 16px; }
.center-copy { text-align: center; margin: 0 auto; }
.center-copy .section-lead { margin-inline: auto; }
.section-title-plain { margin-bottom: 32px; }

/* Grid & Cards */
.grid { display: grid; gap: 24px; margin-top: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-5 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-5 { grid-template-columns: 1fr; } }
.value-card { text-align: center; }
.side-card { display: block; }
.side-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(43,36,28,.08); }
.audience-card h3 { color: var(--gold); font-size: 15px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 14px; }
.audience-intro { color: var(--text-muted); font-size: 14px; }
.audience-list { margin: 12px 0 0; padding-inline-start: 20px; }
.audience-list li { margin-bottom: 8px; color: var(--text); }
.lead-secondary { color: var(--text-muted); font-size: 15px; margin-top: -8px; }
.card {
  border-radius: var(--radius); padding: 26px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(43,36,28,.05);
}
.card h3 { font-size: 18px; }
.card p { color: var(--text-muted); margin: 0; }
.article-card { display: block; transition: transform .15s ease, box-shadow .15s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(43,36,28,.08); }
.read-more { display: inline-block; margin-top: 10px; color: var(--navy); font-weight: 600; font-size: 14px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-light); color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.sector-card { text-align: center; }

/* Two-sided offer panels (home) */
.sides-grid { margin-top: 0; }
.side-panel {
  display: block; padding: 32px 30px; border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(43,36,28,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.side-panel:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(43,36,28,.09); }
.side-panel-accent { background: var(--navy); border-color: var(--navy); }
.side-panel-accent h3, .side-panel-accent .side-index { color: #fff; }
.side-panel-accent p { color: #d9cdb8; }
.side-index { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--gold); margin-bottom: 14px; }
.side-panel h3 { font-size: 20px; margin-bottom: 10px; }
.side-panel p { color: var(--text-muted); margin: 0; }

/* Services row (home): horizontal icon + text lines, not equal cards */
.services-row { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.service-line { display: flex; gap: 24px; align-items: flex-start; padding: 28px 0; border-bottom: 1px solid var(--border); }
.service-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--gold); margin-top: 4px; }
.service-line h3 { font-size: 18px; margin-bottom: 6px; }
.service-line p { color: var(--text-muted); margin: 0; max-width: 60ch; }
@media (max-width: 640px) { .service-line { flex-direction: column; gap: 10px; } }

.insights-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.insights-head .section-title-plain { margin-bottom: 0; }
.text-link { color: var(--gold); font-weight: 600; font-size: 14px; }
.text-link:hover { color: var(--navy); }

.tag-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tag {
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--navy);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

/* Article single */
.back-link { display: inline-block; margin-bottom: 20px; color: var(--text-muted); font-size: 14px; }
.article-image { border-radius: var(--radius); margin: 20px 0; }
.article-body { max-width: 720px; font-size: 17px; }

/* Contact form */
.contact-form { max-width: 560px; margin-top: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 15px;
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e7f7ee; color: #146c43; border: 1px solid #b8e6cc; }
.alert-error { background: #fdecec; color: #b02a2a; border: 1px solid #f3c2c2; }

/* Footer */
.site-footer { background: var(--navy); color: #cdd7e6; padding: 48px 0 28px; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.site-footer .brand-name { color: #fff; }
.footer-copy { color: #9fb0c9; font-size: 13px; margin-top: 8px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #cdd7e6; font-size: 14px; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-credit { color: #9fb0c9; font-size: 13px; }
.footer-credit a { color: var(--gold-light); }

@media (max-width: 1040px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    padding: 16px 24px; gap: 14px; flex-wrap: nowrap;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 24px rgba(43,36,28,.08);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: nowrap; }
}
@media (max-width: 420px) {
  .header-actions .btn { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .main-nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--border); }
}
