/* ============================================
   ARNHEM ASSURANCE — Production Stylesheet
   Version: 2
   Palette: cream/navy/amber (matches live Wix site)
   Fonts: Instrument Sans (headings) + DM Sans (body)
   ============================================ */

:root {
    --navy: #1B2A4A;
    --navy-light: #2C3E5F;
    --navy-deep: #121D33;
    --text: #1B2A4A;
    --text-sub: #455268;
    --text-muted: #7A8599;
    --accent: #B8862D;
    --accent-dark: #9A6F1E;
    --accent-glow: rgba(184,134,45,0.10);
    --cream: #FFFFFF;
    --cream-warm: #F6F7F9;
    --white: #FFFFFF;
    --border: rgba(27,42,74,0.08);
    --border-hover: rgba(27,42,74,0.15);
    --shadow-hover: 0 16px 48px rgba(27,42,74,0.09);
    --heading: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w: 1120px;
    --max-narrow: 700px;
    --r: 10px;
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-size: 1rem; line-height: 1.75; color: var(--text-sub); background: var(--white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Grain texture */
.grain { position: relative; }
.grain::before { content: ''; position: absolute; inset: 0; opacity: 0.22; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E"); background-size: 200px; pointer-events: none; z-index: 0; }
.grain > * { position: relative; z-index: 1; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--heading); color: var(--navy); line-height: 1.18; }
h1 { font-size: clamp(2.125rem, 4.8vw, 3.25rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.375rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.125rem; }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.375rem; }

.eyebrow { font-family: var(--heading); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--accent); margin-bottom: 0.875rem; display: flex; align-items: center; gap: 0.625rem; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent); flex-shrink: 0; }
.lead { font-size: 1.0625rem; line-height: 1.75; color: var(--text-sub); }

/* Layout */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.wrap--narrow { max-width: var(--max-narrow); }
.section { padding: 6.5rem 0; }
.section--white { background: var(--white); }
.section--cream { background: var(--cream-warm); }
.section--warm { background: var(--cream-warm); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p, .section--navy .lead { color: rgba(255,255,255,0.65); }
.section--navy .eyebrow { color: var(--accent); }
.section--navy .eyebrow::before { background: var(--accent); }
.sec-head { max-width: 580px; margin-bottom: 3.5rem; }
.text-center { text-align: center; }
.text-center .sec-head { margin-left: auto; margin-right: auto; }
.text-center .eyebrow { justify-content: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(27,42,74,0.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.header__logo { font-family: var(--heading); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--navy); text-decoration: none; }
.header__logo img { height: 24px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 2rem; }
.header__link { font-family: var(--body); font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color var(--transition-fast); position: relative; padding: 0.25rem 0; }
.header__link:hover, .header__link--active { color: var(--navy); }
.header__link--active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 1px; }
.header__cta { font-family: var(--body); font-size: 0.8125rem; font-weight: 600; color: #fff; background: var(--navy); padding: 0.5rem 1.125rem; border-radius: 6px; text-decoration: none; transition: all .2s; }
.header__cta:hover { background: var(--navy-light); color: #fff; transform: translateY(-1px); }

/* Burger */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 26px; height: 26px; background: none; border: none; cursor: pointer; padding: 0; }
.burger span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 1px; transition: transform var(--transition-base), opacity var(--transition-fast); transform-origin: center; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Billboard hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--navy-deep); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero__bg--placeholder { background: linear-gradient(135deg, #1a2740 0%, #253752 30%, #1e3048 60%, #162235 100%); }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(18,29,51,0.92) 0%, rgba(18,29,51,0.7) 50%, rgba(18,29,51,0.4) 100%); z-index: 1; }
.hero__inner { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: calc(68px + 4rem) 2rem 4rem; width: 100%; }
.hero__content { max-width: 620px; }
.hero__punch { font-family: var(--heading); font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 700; color: #fff; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.hero__punch span { color: var(--accent); }
.hero__sub { font-size: 1.125rem; line-height: 1.7; color: rgba(255,255,255,0.65); margin-bottom: 2.5rem; max-width: 480px; }
.hero__actions { display: flex; gap: 0.875rem; flex-wrap: wrap; align-items: center; margin-bottom: 3rem; }
.hero__metrics { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__metric { background: rgba(255,255,255,0.07); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 0.875rem 1.25rem; display: flex; align-items: baseline; gap: 0.5rem; }
.hero__metric-val { font-family: var(--heading); font-size: 1.375rem; font-weight: 700; color: var(--accent); line-height: 1; }
.hero__metric-lbl { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* Sub-page hero */
.hero--sub { min-height: auto; background: var(--white); }
.hero--sub .hero__inner { padding: calc(68px + 4rem) 2rem 3.5rem; }
.hero--sub .hero__punch { color: var(--navy); font-size: clamp(2rem, 4vw, 2.75rem); }
.hero--sub .hero__punch span { color: var(--accent); }
.hero--sub .hero__sub { color: var(--text-sub); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font-family: var(--body); font-size: 0.8125rem; font-weight: 600; line-height: 1; text-decoration: none; border: none; border-radius: 6px; cursor: pointer; transition: all .2s; padding: 0.875rem 1.625rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(184,134,45,0.25); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-light); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(27,42,74,0.12); }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid rgba(27,42,74,0.14); }
.btn--outline:hover { border-color: var(--navy); }
.btn--white-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.25); }
.btn--white-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); padding: 0; font-weight: 600; font-size: 0.8125rem; margin-top: 0.75rem; }
.btn--ghost::after { content: '\2192'; margin-left: 0.3rem; transition: transform .2s; }
.btn--ghost:hover { color: var(--accent-dark); }
.btn--ghost:hover::after { transform: translateX(4px); }

/* Sector strip */
.sectors { background: var(--cream-warm); border-bottom: 1px solid var(--border); padding: 1.75rem 0; }
.sectors__inner { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.sectors__item { font-family: var(--heading); font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); opacity: 0.55; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 2rem; transition: transform .35s cubic-bezier(.25,.46,.45,.94), box-shadow .35s ease, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--border-hover); }
.card h3 { color: var(--navy); }
.card p { color: var(--text-sub); font-size: 0.9375rem; line-height: 1.7; }
.card--accent { border-left: 3px solid var(--accent); border-radius: 2px var(--r) var(--r) 2px; }
.card__num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--navy); color: #fff; font-family: var(--heading); font-size: 0.875rem; font-weight: 700; border-radius: var(--r); margin-bottom: 1.25rem; }
.card__ico { width: 48px; height: 48px; margin-bottom: 1.25rem; }
.card__ico svg { width: 48px; height: 48px; }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }

/* Service page images */
.g2 img { border-radius: var(--r); background: #FFFFFF; box-shadow: 0 4px 20px rgba(27,42,74,0.06); }

/* Timeline */
.timeline { position: relative; padding-left: 72px; }
.timeline::before { content: ''; position: absolute; left: 28px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--accent) 0%, rgba(184,134,45,0.1) 100%); border-radius: 1px; }
.tl-item { position: relative; padding-bottom: 3rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -44px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); z-index: 2; box-shadow: 0 0 0 4px var(--accent-glow); }
.tl-num { position: absolute; left: -65px; top: 24px; width: 42px; height: 42px; background: var(--navy); color: #fff; font-family: var(--heading); font-weight: 700; font-size: 0.875rem; border-radius: var(--r); display: flex; align-items: center; justify-content: center; z-index: 2; }
.tl-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1.625rem 1.875rem; transition: box-shadow .3s, border-color .3s; }
.tl-card:hover { box-shadow: var(--shadow-hover); border-color: var(--border-hover); }
.tl-card h3 { margin-bottom: 0.375rem; }
.tl-card p { font-size: 0.9375rem; color: var(--text-sub); }

/* Pullquote */
.pullquote { position: relative; padding-left: 1.75rem; border-left: 3px solid var(--accent); font-size: 1.125rem; font-weight: 500; color: var(--navy); line-height: 1.5; margin: 2rem 0; font-style: italic; }

/* FAQ */
.faq { max-width: var(--max-narrow); margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; background: none; border: none; font-family: var(--heading); font-size: 1.0625rem; font-weight: 600; color: var(--navy); text-align: left; padding: 1.5rem 2.5rem 1.5rem 0; cursor: pointer; position: relative; line-height: 1.35; transition: color var(--transition-fast); }
.faq__q:hover { color: var(--accent); }
.faq__q::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.25rem; font-weight: 400; color: var(--accent); transition: transform .25s; }
.faq__q[aria-expanded="true"]::after { content: '\2212'; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq__a-inner { padding: 0 0 1.5rem 0; font-size: 0.9375rem; color: var(--text-sub); line-height: 1.75; }

/* Contact form */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-family: var(--heading); font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 0.375rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; font-family: var(--body); font-size: 1rem; color: var(--text); background: var(--white); border: 1px solid rgba(27,42,74,0.12); border-radius: 6px; padding: 0.75rem 1rem; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

/* Divider */
.rule { width: 40px; height: 3px; background: var(--accent); border-radius: 2px; margin: 0 auto 2rem; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 4.5rem 0 2rem; font-size: 0.875rem; }
.footer__grid { display: flex; justify-content: space-between; gap: 3rem; margin-bottom: 2.5rem; }
.footer__brand { max-width: 300px; }
.footer__brand p { color: rgba(255,255,255,0.5); }
.footer__logo { font-family: var(--heading); font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 0.875rem; }
.footer__badges { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; }
.footer__badges img { height: 36px; width: auto; opacity: 0.6; transition: opacity var(--transition-fast); }
.footer__badges img:hover { opacity: 1; }
.footer__col h4 { font-family: var(--heading); font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.875rem; }
.footer__col a { display: block; color: rgba(255,255,255,0.45); font-size: 0.8125rem; margin-bottom: 0.375rem; transition: color var(--transition-fast); }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.25rem; }
.footer__legal { font-size: 0.6875rem; color: rgba(255,255,255,0.3); line-height: 1.8; margin-bottom: 0.25rem; }
.footer__legal a { color: rgba(255,255,255,0.3); }
.footer__legal a:hover { color: #fff; }

/* 404 */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--navy-deep); color: #fff; padding: 2rem; }
.error-page h1 { font-size: 5rem; color: var(--accent); line-height: 1; margin-bottom: 0.75rem; }
.error-page p { color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }

/* Scroll reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.25,.46,.45,.94); }
.rv.vis { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: .1s; }
.rv-d2 { transition-delay: .2s; }
.rv-d3 { transition-delay: .3s; }
.rv-d4 { transition-delay: .4s; }

/* Stats bar */
.stats { background: var(--navy); padding: 3.5rem 0; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(184,134,45,0.03) 50%, transparent 100%); }
.stats__inner { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; position: relative; z-index: 1; }
.stat { text-align: center; }
.stat__val { font-family: var(--heading); font-size: 2.25rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.375rem; }
.stat__lbl { font-size: 0.8125rem; color: rgba(255,255,255,0.45); font-weight: 500; }

/* Mini icons for problem cards */
.card__mini-ico { width: 36px; height: 36px; margin-bottom: 1rem; opacity: 0.85; }
.card__mini-ico svg { width: 36px; height: 36px; }

/* Header scroll state */
.header--scrolled { box-shadow: 0 2px 16px rgba(27,42,74,0.06); }

/* Hero entrance */
@keyframes heroFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroImgScale { from { opacity: 0; transform: scale(1.1); } to { opacity: 0.35; transform: scale(1.05); } }
.hero__bg img { animation: heroImgScale 1.5s ease both; }
.hero__content .eyebrow { opacity: 0; animation: heroFade 0.5s ease both 0.3s; }
.hero__punch { opacity: 0; animation: heroFade 0.6s ease both 0.45s; }
.hero__sub { opacity: 0; animation: heroFade 0.5s ease both 0.65s; }
.hero__actions { opacity: 0; animation: heroFade 0.5s ease both 0.8s; }
.hero__metrics { opacity: 0; animation: heroFade 0.5s ease both 0.95s; }

/* Utilities */
.mt-xl { margin-top: 1.75rem; }
.mt-2xl { margin-top: 2.5rem; }
.mb-xl { margin-bottom: 1.75rem; }

/* Responsive */
@media (max-width: 1024px) {
    .g3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .wrap { padding: 0 1.25rem; }
    .header__nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 1.5rem; transform: translateX(100%); transition: transform var(--transition-base); overflow-y: auto; z-index: 99; }
    .header__nav--open { transform: translateX(0); }
    .header__link { display: block; font-size: 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border); color: var(--text-sub); }
    .header__link--active::after { display: none; }
    .header__cta { margin-top: 1rem; text-align: center; display: block; padding: 0.875rem; }
    .burger { display: flex; }
    .hero { min-height: auto; }
    .hero__inner { padding: calc(68px + 3rem) 1.25rem 3rem; }
    .hero__bg::after { background: linear-gradient(to bottom, rgba(18,29,51,0.88) 0%, rgba(18,29,51,0.75) 100%); }
    .hero__metrics { flex-direction: column; }
    .hero--sub .hero__inner { padding: calc(68px + 2.5rem) 1.25rem 2.5rem; }
    .g2, .g3 { grid-template-columns: 1fr; }
    .footer__grid { flex-direction: column; gap: 2rem; }
    .timeline { padding-left: 56px; }
    .timeline::before { left: 22px; }
    .tl-dot { left: -34px; }
    .tl-num { left: -49px; width: 38px; height: 38px; font-size: 0.8125rem; }
    .sectors__inner { gap: 1.25rem; }
    .stats__inner { gap: 1.5rem; }
    .stat__val { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { text-align: center; justify-content: center; }
}
