/* Foreground site layer — dark theme on top of foreground.css tokens */
:root { --line: color-mix(in srgb, var(--color-bg) 22%, transparent); --edge: clamp(20px, 5vw, 72px); }
html { scroll-behavior: smooth; }
body { background: var(--color-text); color: var(--color-bg); text-wrap: pretty; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--color-accent-300); }
a:hover { color: var(--color-accent-200); }
h1, h2, h3 { color: #fff; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--edge); }
.muted { color: var(--color-neutral-300); }
.dim { color: var(--color-neutral-400); }
.kicker { font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-400); }
.icon-accent { color: var(--color-accent-400); }
.photo { width: 100%; object-fit: cover; border-radius: var(--radius-card); }

/* nav */
.site-nav { position: sticky; top: 0; z-index: 10; background: var(--color-text); border-bottom: 2px solid var(--line); padding: 14px var(--edge); flex-wrap: wrap; row-gap: 10px; }
.site-nav .brand { margin-right: auto; display: flex; }
.site-nav .brand img { height: 34px; }
.site-nav .links { display: flex; gap: clamp(14px, 2.4vw, 28px); align-items: center; flex-wrap: wrap; }
.site-nav .links a:not(.btn) { color: var(--color-bg); font-weight: 600; font-size: 15px; }
.site-nav .links a:not(.btn):hover, .site-nav .links a[aria-current="page"] { color: var(--color-accent-300); }
@media (max-width: 560px) { .site-nav .links .btn { display: none; } }

/* hero */
.hero-photo { position: relative; overflow: hidden; border-bottom: 2px solid var(--line); }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--color-text) 72%, transparent); }
.hero-grid { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 112px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px clamp(24px, 5vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.slogan { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.02em; }
.slogan span { display: block; }
.slogan span:last-child { color: var(--color-accent-400); }
.lede { font-size: 18px; line-height: 1.6; max-width: 48ch; color: var(--color-neutral-300); }
.big-phone { display: flex; gap: 14px; align-items: center; font-family: var(--font-heading); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); color: #fff; text-decoration: none; }
.big-phone i { color: var(--color-accent-400); font-size: 0.75em; }
.big-phone:hover { color: var(--color-accent-300); }

/* page header */
.page-head { padding-block: clamp(56px, 8vw, 96px) 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px clamp(24px, 5vw, 80px); align-items: end; }
.page-head > div { display: flex; flex-direction: column; gap: 20px; }
.page-title { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }

/* sections */
.section { padding-block: 80px; }
.section-title { font-size: clamp(26px, 3vw, 36px); }
.light { background: var(--color-bg); color: var(--color-text); }
.light h1, .light h2, .light h3 { color: var(--color-text); }

/* design / build / support */
.dbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border-top: 2px solid var(--line); margin-top: 32px; }
.dbs > div { padding: 28px 28px 8px; display: flex; flex-direction: column; gap: 14px; }
.dbs > div:first-child { padding-left: 0; }
.dbs > div:last-child { padding-right: 0; }
.dbs > div + div { border-left: 2px solid var(--line); }
.dbs .photo { height: clamp(180px, 18vw, 240px); margin-bottom: 8px; }
.dbs h3 { font-size: 28px; }
.dbs p { font-size: 15px; line-height: 1.65; color: var(--color-neutral-400); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags .tag { color: var(--color-neutral-300); white-space: nowrap; }
@media (max-width: 860px) { .dbs > div { padding-inline: 0 !important; } .dbs > div + div { border-left: 0; border-top: 2px solid var(--line); } }

/* included cards */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 2px solid var(--color-divider); }
.head-row .btn-ghost { color: var(--color-accent-700); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.cards .card { padding: 24px; gap: 12px; color: var(--color-text); }
.cards .card i { font-size: 22px; color: var(--color-accent); }
.cards .card-title { margin: 0; }
.cards .card-body { font-size: 14px; line-height: 1.55; }

/* split + ruled list */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px clamp(24px, 5vw, 80px); align-items: center; }
.split > div { display: flex; flex-direction: column; gap: 20px; }
.split h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
.ruled { display: flex; flex-direction: column; border-top: 2px solid var(--line); }
.ruled > * { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 2px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--color-neutral-300); text-decoration: none; }
.ruled i { color: var(--color-accent-400); width: 18px; flex: none; }
.ruled strong { color: #fff; }
.ruled a:hover { color: var(--color-accent-300); }
.ruled.large > * { font-size: 18px; font-weight: 600; color: #fff; align-items: center; }
.ruled.large > div { font-size: 16px; font-weight: 400; color: var(--color-neutral-300); }

/* cta band */
.cta-band { background: var(--color-accent-2); }
.cta-band .wrap { padding-block: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 20ch; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 40px; }
.cta-row h2 { font-size: 24px; }

/* services */
.stage { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(24px, 5vw, 80px); padding-block: 40px; border-top: 2px solid var(--line); }
.stage:last-of-type { border-bottom: 2px solid var(--line); }
.stage > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.stage > div:first-child h2 { font-size: 36px; }
.stage > div:last-child { display: flex; flex-direction: column; }
.service { display: flex; flex-direction: column; gap: 14px; }
.service + .service { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.service h3 { font-size: 22px; display: flex; gap: 12px; align-items: center; }
.service h3 i { color: var(--color-accent-400); font-size: 18px; }
.service p { font-size: 16px; line-height: 1.65; color: var(--color-neutral-300); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--color-neutral-300); }
.checks li { display: flex; gap: 10px; }
.checks i { color: var(--color-accent-400); margin-top: 4px; }
@media (max-width: 720px) { .stage { grid-template-columns: 1fr; } }

/* testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px; margin-top: 48px; }
.testimonial { margin: 0; padding: 48px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; border-radius: var(--radius-card); background: color-mix(in srgb, var(--color-bg) 5%, transparent); border: 1px solid var(--line); }
.testimonial img { width: auto; max-width: 100%; }
.testimonial .logo-box { height: 84px; min-width: 240px; padding: 12px 24px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--radius-card); }
.testimonial blockquote { margin: 0; font-size: 19px; line-height: 1.7; font-style: italic; text-wrap: pretty; max-width: 46ch; color: var(--color-neutral-200); }
.testimonial figcaption { font-family: var(--font-heading); font-weight: 700; font-size: 15px; margin-top: auto; color: #fff !important; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(24px, 5vw, 80px); padding-block: 40px; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.faq > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.faq > div:first-child h2 { font-size: 36px; }
.faq-item { display: flex; flex-direction: column; gap: 10px; }
.faq-item + .faq-item { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 20px; }
.faq-item p { font-size: 16px; line-height: 1.65; max-width: 62ch; color: var(--color-neutral-300); }
@media (max-width: 720px) { .faq { grid-template-columns: 1fr; } }

/* about */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.values > div { padding: 48px 28px; display: flex; flex-direction: column; gap: 12px; }
.values > div:first-child { padding-left: 0; }
.values > div:last-child { padding-right: 0; }
.values > div + div { border-left: 2px solid var(--color-divider); }
.values i { font-size: 22px; color: var(--color-accent); }
.values h2 { font-size: 20px; }
.values p { font-size: 15px; line-height: 1.65; color: var(--color-neutral-800); }
@media (max-width: 800px) { .values > div { padding-inline: 0 !important; padding-block: 32px; } .values > div + div { border-left: 0; border-top: 2px solid var(--color-divider); } }
.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(24px, 5vw, 80px); }
.two-col h2 { font-size: 26px; }
.two-col p { font-size: 16px; line-height: 1.65; max-width: 58ch; color: var(--color-neutral-300); }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* blog */
.post-row { display: grid; grid-template-columns: minmax(160px, 280px) minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 48px); align-items: center; padding-block: 32px; border-bottom: 2px solid var(--line); text-decoration: none; color: var(--color-bg); }
.post-row .photo { aspect-ratio: 3 / 2; }
.post-row > div { display: flex; flex-direction: column; gap: 10px; }
.post-row h2 { font-size: 24px; color: inherit; }
.post-row:hover { color: var(--color-accent-300); }
@media (max-width: 600px) { .post-row { grid-template-columns: 1fr; } }
.article { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--edge) 96px; display: flex; flex-direction: column; gap: 20px; }
.article h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
.article .photo { aspect-ratio: 16 / 9; margin-block: 8px; }
.article p { font-size: 17px; line-height: 1.7; color: var(--color-neutral-200); }
.article .back { align-self: flex-start; color: var(--color-accent-300); }
.article .card { margin-top: 24px; padding: 24px; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--color-text); }
.article h2 { font-size: 28px; line-height: 1.2; margin-top: 24px; }
.article h3 { font-size: 21px; line-height: 1.3; margin-top: 12px; }
.article h4 { font-size: 18px; line-height: 1.3; margin-top: 4px; color: var(--color-accent-300); }
.article ol, .article ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.65; color: var(--color-neutral-200); }
.article p a, .article li a { color: var(--color-accent-300); text-decoration: underline; text-underline-offset: 3px; }
.article p a:hover, .article li a:hover { color: var(--color-accent-200); }

/* forms */
.form-card { padding: 28px; gap: 16px; color: var(--color-text); }
.form-card form { display: flex; flex-direction: column; gap: 14px; }
.form-card .card-title { font-size: 20px; margin: 0; color: var(--color-text); }
.form-card .note { font-size: 14px; line-height: 1.55; color: var(--color-neutral-700); }
.form-card .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form-card textarea { resize: vertical; }
.form-card .btn-block { justify-content: space-between; }
.form-card .form-error { display: none; font-size: 14px; line-height: 1.5; color: var(--color-neutral-900); }
.form-card .form-error i { color: var(--color-accent-700); margin-right: 6px; }
.form-card .form-success { display: none; flex-direction: column; gap: 12px; }
.form-card .form-success i { font-size: 28px; color: var(--color-accent); }
.form-card.is-error .form-error { display: block; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: flex; }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { border-top: 2px solid var(--line); }
.site-footer .wrap { padding-block: 48px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.site-footer .brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer .brand img { width: 160px; }
.site-footer .brand span { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--color-accent-400); }
.site-footer .item { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--color-neutral-300); text-decoration: none; }
.site-footer .item i { color: var(--color-accent-400); }
.site-footer a.item:hover { color: var(--color-accent-300); }
.site-footer .legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--color-neutral-400); }
