/* Base */
:root {
	--bg: #ffffff;
	--panel: #f5f7fb;
	--text: #0b1220;
	--muted: #5b6477;
	--primary: #3b82f6;
	--primary-600: #2563eb;
	--border: #e5e7ef;
	--card: #ffffff;
	--accent: #06b6d4;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: 72px 0; background-image: linear-gradient(180deg, rgba(59,130,246,0.035), rgba(6,182,212,0.035)); }
.section-alt { background: linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%); }
.section-title { font-size: 28px; font-weight: 700; margin: 8px 0 24px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,0.85);
	backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo { width: 32px; height: 32px; }

.site-nav { display: flex; align-items: center; gap: 14px; }
.site-nav a { color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.site-nav a:hover { color: var(--text); background: rgba(2,6,23,0.04); }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); color: var(--text); padding: 6px 10px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); background: transparent; transition: 160ms ease; cursor: pointer; }
.btn:hover { background: rgba(2,6,23,0.04); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; color: #ffffff; font-weight: 700; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; }

/* Hero */
.hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border); background: radial-gradient(900px 400px at 80% -20%, rgba(59,130,246,0.08), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero-copy h1 { font-size: 44px; line-height: 1.15; margin: 0 0 12px; }
.hero-copy p { color: var(--muted); margin: 0 0 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media .media-card { background: radial-gradient(1200px 600px at 80% -20%, rgba(59,130,246,0.12), transparent), var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.video-frame { grid-column: 1 / -1; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-frame::before { content: ""; display: block; padding-top: 56.25%; }
.promo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-stat { background: #f1f5ff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.media-stat strong { font-size: 22px; display: block; color: var(--primary); }
.media-stat span { color: var(--muted); font-size: 13px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: rgba(255,255,255,0.65); border: 1px solid rgba(229,231,239,0.8); backdrop-filter: saturate(140%) blur(10px); border-radius: 14px; padding: 18px; box-shadow: 0 10px 30px rgba(2,6,23,0.06); transition: transform 180ms ease, box-shadow 180ms ease; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(2,6,23,0.08); }

/* Cases */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case { background: rgba(255,255,255,0.6); border: 1px solid rgba(229,231,239,0.85); border-radius: 14px; padding: 18px; backdrop-filter: blur(8px); }
.case h3 { margin: 0 0 8px; font-size: 18px; }
.case p { margin: 0; color: var(--muted); }

/* Contact */
.contact-form { background: rgba(255,255,255,0.7); border: 1px solid rgba(229,231,239,0.9); backdrop-filter: blur(10px); border-radius: 14px; padding: 18px; box-shadow: 0 10px 30px rgba(2,6,23,0.06); }
.contact-info { margin: 8px 0 16px; color: var(--muted); }
.contact-info a { color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label span { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
input, textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: #ffffff; color: var(--text); }
input:focus, textarea:focus { outline: none; border-color: var(--primary-600); box-shadow: 0 0 0 3px rgba(59,130,246,0.18); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

/* Footer */
.site-footer { border-top: 0; padding: 32px 0; background: linear-gradient(180deg, #001735, #000e22); color: #e8eef9; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-grid nav { display: flex; gap: 12px; }
.footer-grid a { color: #c9d7f1; }
.footer-grid a:hover { color: #ffffff; }
.footer-contact { margin: 4px 0; color: #c9d7f1; }
.footer-contact a { color: inherit; }

/* Responsive */
@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; }
	.cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { position: absolute; right: 4%; top: 60px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: none; flex-direction: column; min-width: 200px; }
	.site-nav.open { display: flex; }
	.cards { grid-template-columns: 1fr; }
	.grid-2 { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
	.hero-copy h1 { font-size: 32px; }
}

.video-overlay-btn { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.9); color: var(--text); cursor: pointer; box-shadow: 0 2px 6px rgba(2,6,23,0.12); }
.video-overlay-btn:hover { filter: brightness(0.98); }
.video-overlay-btn .icon { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 12px; border-color: transparent transparent transparent #0b1220; margin-left: 2px; }
.video-overlay-btn.is-paused .icon { width: 14px; height: 14px; border: none; background: linear-gradient(90deg, #0b1220 0 45%, transparent 45% 55%, #0b1220 55% 100%); }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; align-items: start; }
.client { text-align: center; }
.client img { width: 100%; height: 44px; object-fit: contain; filter: grayscale(0.2); opacity: 0.95; transition: 160ms ease; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.client img:hover { filter: none; opacity: 1; }
.client figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Why section overrides */
#why .card { background: var(--card); }

/* Video fallback note */
.video-fallback-note { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; background: rgba(2,6,23,0.06); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--muted); backdrop-filter: blur(4px); }

/* Slider */
.slider { position: relative; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--card); }
.slides { position: relative; width: 100%; height: 0; padding-top: 56.25%; overflow: hidden; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 520ms ease; transform: scale(1.02); }
.slide.is-active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.slide { transition: opacity 200ms linear; transform: none; }
}
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.9); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 999px; border: 1px solid var(--border); background: rgba(2,6,23,0.1); text-indent: -9999px; overflow: hidden; cursor: pointer; }
.dot.is-active { background: var(--primary); border-color: var(--primary); }

/* Play/pause control */
.slider-control { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.9); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.slider-control .icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #0b1220; }
.slider-control.is-paused .icon { width: 12px; height: 12px; border: none; background: linear-gradient(90deg, #0b1220 0 45%, transparent 45% 55%, #0b1220 55% 100%); }

/* Energetic gradient accents */
:root {
	--grad-1: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(6,182,212,0.2));
}
.hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border); background: radial-gradient(900px 400px at 80% -20%, rgba(59,130,246,0.08), transparent); }
.media-stat { background: #f1f5ff; border: 1px solid var(--border); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(59,130,246,0.15); }
.card { transition: transform 180ms ease, box-shadow 180ms ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2,6,23,0.06); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 420ms ease, transform 420ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* CTA band */
.cta-band { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; background: var(--grad-1); border: 1px solid var(--border); border-radius: 16px; }
.cta-inner h2 { margin: 0; }
.cta-inner p { margin: 0; color: var(--muted); }

/* Clients visibility tweak */
.client img { filter: grayscale(0.2); opacity: 0.95; }
.client img:hover { filter: none; opacity: 1; }

@media (max-width: 640px) {
	.cta-inner { flex-direction: column; align-items: flex-start; }
}

.slide-caption { position: absolute; left: 12px; bottom: 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,0.92); color: var(--text); max-width: 80%; font-size: 13px; box-shadow: 0 2px 8px rgba(2,6,23,0.08); }
.slides img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* British style accents */
:root {
	--primary: #002147; /* Oxford Blue */
	--primary-600: #001735;
	--accent: #cf1020; /* Crimson */
}

body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; }
.section-title, .hero-copy h1 { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; letter-spacing: 0.2px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); }

/* Union Jack inspired subtle pinstripes */
.hero { position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(0,33,71,0.06) 0 8px, transparent 8px 16px), repeating-linear-gradient(-45deg, rgba(207,16,32,0.04) 0 8px, transparent 8px 16px); pointer-events: none; }

/* Announcement bar */
.announcement { background: #0b1220; color: #ffffff; padding: 8px 0; text-align: center; font-size: 14px; }
.announcement .badge { display: inline-block; background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 8px; margin-right: 8px; font-weight: 700; }
.announcement .link { color: #ffffff; text-decoration: underline; margin-left: 8px; }

/* Promo points */
.promo-points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 0 0 12px; }
.promo-points li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.promo-points .icon { font-size: 18px; margin-right: 6px; }
.promo-points strong { display: inline-block; margin-bottom: 4px; }
.promo-points p { margin: 0; color: var(--muted); font-size: 13px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.count { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
	.promo-points { grid-template-columns: 1fr; }
	.kpis { grid-template-columns: 1fr; }
}

html { scroll-behavior: smooth; }

/* Floating CTA */
.fab-cta { position: fixed; right: 16px; bottom: 16px; z-index: 100; padding: 12px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; box-shadow: 0 10px 22px rgba(2,6,23,0.18); font-weight: 700; }
.fab-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* CTA band animated border */
.cta-inner { position: relative; }
.cta-inner::before { content: ""; position: absolute; inset: -2px; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--accent)); z-index: -1; opacity: 0.6; animation: glow 4s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: 0.4; } to { opacity: 0.9; } }

/* Heading underline */
.section-title { position: relative; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 64px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; }

/* Hero parallax */
.hero { background-attachment: fixed; }
@media (prefers-reduced-motion: reduce) {
	.hero { background-attachment: scroll; }
}
