/* ==========================================================================
   AdsMasters — main stylesheet
   ========================================================================== */

/* Fonts (self-hosted, no third-party requests) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

:root {
	--navy: #0B1F3A;
	--navy-2: #12305A;
	--navy-3: #1B3D6E;
	--red: #E10600;
	--red-dark: #B80500;
	--ink: #14213D;
	--text: #3F4A5C;
	--muted: #6B7587;
	--line: #E3E7EE;
	--bg: #FFFFFF;
	--bg-alt: #F5F7FA;
	--white: #FFFFFF;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .06);
	--shadow-lg: 0 2px 4px rgba(11, 31, 58, .06), 0 18px 40px rgba(11, 31, 58, .12);
	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1180px;
	--header-h: 86px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-lg); }

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

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: inherit; font-weight: 700; font-size: .98rem; line-height: 1; padding: 15px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(225, 6, 0, .28); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: #F1F3F7; color: var(--navy); }
.btn--sm { padding: 11px 18px; font-size: .9rem; }
.btn--lg { padding: 18px 30px; font-size: 1.02rem; }
.btn__icon { font-size: 1.05em; }

/* Eyebrow */
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.eyebrow--light { color: #FF6B66; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11, 31, 58, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.brand__ads { color: var(--navy); }
.brand__masters { color: var(--red); }
.custom-logo-link img, .brand-logo img { height: 64px; width: auto; max-width: none; }
.brand-logo { display: inline-flex; align-items: center; flex: none; }
.site-footer .brand-logo img { height: 72px; }
@media (max-width: 880px) { .custom-logo-link img, .site-header .brand-logo img { height: 50px; } }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, var(--navy-3) 0%, transparent 60%), var(--navy); color: #C9D3E3; padding: 110px 0 120px; }
.hero__bg { position: absolute; inset: auto 0 0 0; height: 70%; color: var(--red); opacity: .35; pointer-events: none; }
.hero__bg svg { width: 100%; height: 100%; }
.hero__inner { position: relative; }
.hero__inner > * { max-width: 860px; }
.hero__title { color: var(--white); font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 22px; }
.hero__subtitle { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 720px; color: #C9D3E3; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__note { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #9FB0C8; margin: 0; }
.hero__note .icon { width: 18px; height: 18px; color: #4ADE80; flex: none; }

/* Stats */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 34px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__value { display: block; font-size: 2.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; }
.stat__label { display: block; font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* Platforms */
.platforms { padding: 34px 0; background: var(--bg-alt); }
.platforms__label { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.platforms__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.platforms__list li { font-size: .9rem; font-weight: 600; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }

/* Sections */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #C9D3E3; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head p:last-child { font-size: 1.08rem; color: var(--muted); }
.section--dark .section__head p:last-child { color: #9FB0C8; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(225, 6, 0, .08); color: var(--red); margin-bottom: 20px; }
.card__icon .icon { width: 26px; height: 26px; }
.card p { margin: 0; font-size: .97rem; }

/* Who we help */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.panel { background: var(--white); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); border-top: 4px solid var(--navy); }
.panel:last-child { border-top-color: var(--red); }
.panel h3 { font-size: 1.4rem; }
.ticks { margin-top: 20px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.ticks .icon { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 3px; }

/* Results */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.case { background: var(--navy); color: #C9D3E3; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); }
.case h3 { color: var(--white); margin-top: 18px; }
.case { display: flex; flex-direction: column; }
.case p:last-child { margin: 0; }
.case__link { margin-top: auto; padding-top: 22px; align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .95rem; color: var(--white); border-bottom: 2px solid var(--red); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.case__link:hover { color: #FF6B66; border-bottom-color: #FF6B66; }
.case__tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FF6B66; margin-bottom: 18px; }
.case__metric { font-size: 3rem; font-weight: 800; color: var(--white); line-height: 1; letter-spacing: -.03em; margin: 0 0 6px; }
.case__metric-label { font-size: .9rem; color: #9FB0C8; margin: 0; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 30px 26px; }
.step__num { display: inline-block; font-size: .85rem; font-weight: 800; color: var(--white); background: var(--red); border-radius: 8px; padding: 6px 10px; margin-bottom: 18px; letter-spacing: .04em; }
.step p { margin: 0; font-size: .95rem; color: #B5C2D6; }

/* Why us */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 34px; }
.feature { display: flex; gap: 16px; }
.feature__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); }
.feature__icon .icon { width: 18px; height: 18px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { margin: 0; font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .2s; }
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--ink); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--red); line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { padding: 0 24px 22px; margin: 0; }

/* Final CTA */
.final-cta { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: rgba(255, 255, 255, .9); padding: 90px 0; text-align: center; }
.final-cta__inner { max-width: 780px; }
.final-cta h2 { color: var(--white); }
.final-cta p { font-size: 1.12rem; margin-bottom: 30px; }

/* Footer */
.site-footer { background: #071426; color: #8C9AB0; padding: 60px 0 0; font-size: .92rem; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 40px; }
.site-footer .brand__ads { color: var(--white); }
.site-footer__brand p { margin: 14px 0 0; max-width: 360px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.site-footer__nav a { color: #C9D3E3; font-weight: 600; }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; padding-bottom: 26px; font-size: .82rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal a { color: #C9D3E3; }

/* Inner pages (privacy policy etc.) */
.page-content { padding: 80px 0 100px; }
.entry__title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 30px; }
.entry__content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry__content h3 { margin-top: 1.4em; }
.entry__content ul, .entry__content ol { padding-left: 1.4em; margin-bottom: 1em; }
.entry__content ul { list-style: disc; }
.entry__content ol { list-style: decimal; }
.entry + .entry { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--line); }

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

@media (max-width: 880px) {
	:root { --header-h: 68px; }
	.nav-toggle { display: block; }
	.site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 18px; background: var(--white); padding: 24px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(11, 31, 58, .1); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
	.site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.site-nav ul { flex-direction: column; gap: 4px; }
	.site-nav ul a { display: block; padding: 10px 0; font-size: 1.05rem; }
	.site-nav .btn { width: 100%; }
	.split { grid-template-columns: 1fr; }
	.section { padding: 76px 0; }
	.hero { padding: 80px 0 90px; }
}

@media (max-width: 640px) {
	.container { padding: 0 20px; }
	.cards, .features, .steps { grid-template-columns: 1fr; }
	.stats__grid { grid-template-columns: 1fr; }
	.stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
	.stat:last-child { border-bottom: 0; }
	.hero__actions .btn { width: 100%; }
	.panel { padding: 28px; }
	.site-footer__inner { flex-direction: column; }
	.btn { white-space: normal; text-align: center; }
}
