/* Direction: DESIGN.md. Single brand blue #3573AD from the Detatekno brand guide. */
:root {
  --brand: #3573ad;
  --brand-strong: #1f4a73;
  --brand-soft: #eaf1f8;
  --on-brand: #ffffff;
  --ink: #14212f;
  --muted: #4a5a6b;
  --bg: #ffffff;
  --tint: #f4f7fb;
  --line: #d5dfea;
  --band-bg: #1f4a73;
  --band-ink: #ffffff;
  --band-muted: #d3e1ef;
  --watermark: #3573ad;
  --error: #b42318;
  --ok: #1d6b45;
  --serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --chamfer: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brand: #7fb0de; --brand-strong: #a9caea; --brand-soft: #1b3350; --on-brand: #0e1c2b;
    --ink: #e8eef5; --muted: #a9b8c8; --bg: #0e1c2b; --tint: #132538; --line: #26405c;
    --band-bg: #132538; --band-ink: #e8eef5; --band-muted: #a9b8c8; --watermark: #7fb0de;
    --error: #ff9b91; --ok: #7ed6a6; color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --brand: #7fb0de; --brand-strong: #a9caea; --brand-soft: #1b3350; --on-brand: #0e1c2b;
  --ink: #e8eef5; --muted: #a9b8c8; --bg: #0e1c2b; --tint: #132538; --line: #26405c;
  --band-bg: #132538; --band-ink: #e8eef5; --band-muted: #a9b8c8; --watermark: #7fb0de;
  --error: #ff9b91; --ok: #7ed6a6; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.pre-line { white-space: pre-line; }
.is-placeholder { outline: 2px dashed var(--muted); outline-offset: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); margin-right: auto; min-height: 44px; }
.brand-mark { width: 40px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
/* Letter-spaced subline mirrors the "D I G I T A L E N T" line of the logo. */
.brand-sub { font-family: var(--serif); font-size: .68rem; text-transform: uppercase; letter-spacing: .55em; margin-top: 4px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--brand); }
.header-actions { display: flex; gap: 4px; align-items: center; }
.lang-switch { list-style: none; margin: 0 4px 0 0; padding: 0; display: flex; border: 1px solid var(--line); border-radius: 4px; }
.lang-switch a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--brand); }
.nav-lang { display: none; }
.lang-switch a[aria-current], .nav-lang a[aria-current] { color: var(--brand); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 4px; cursor: pointer; font-size: 1.15rem; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle { display: none; }
@media (max-width: 859px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .lang-switch { display: none; }
  .nav-lang { display: flex; gap: 8px; padding-top: 8px; }
  .site-nav .nav-lang a { width: auto; border-bottom: 0; padding: 0 8px 0 0; color: var(--muted); }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .site-nav a { width: 100%; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .brand-sub { letter-spacing: .4em; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 2px solid var(--brand); border-radius: 4px; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand-strong); }
.link-strong { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.link-back { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-weight: 600; }

/* Hero: one focal point, the headline; the monogram watermark is the identity motif. */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 12vw, 140px) 0 clamp(64px, 10vw, 120px); }
.hero-watermark { position: absolute; right: -8%; top: 50%; transform: translateY(-50%); width: min(62vw, 720px); height: auto; color: var(--watermark); opacity: .08; pointer-events: none; }
.hero-inner { position: relative; }
.hero h1 { max-width: 16ch; }
.kicker { font-family: var(--serif); text-transform: uppercase; letter-spacing: .5em; color: var(--brand); font-size: .9rem; margin-bottom: 1.25rem; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 2rem; }

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tint { background: var(--tint); }
.section-title { margin-bottom: 1.25em; }
.chamfer { clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer)); }

/* Services: featured service gets weight, the rest read as a list (not identical cards). */
.service-icon { font-size: 1.75rem; color: var(--brand); display: block; margin-bottom: .5rem; }
.service-feature { display: grid; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.service-feature h3 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
.service-feature h3 a, .service-list h3 a { color: var(--ink); text-decoration: none; }
.service-feature h3 a:hover, .service-list h3 a:hover { color: var(--brand); text-decoration: underline; }
.service-feature p { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.service-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 860px) { .service-feature.has-image { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 860px) { .service-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.service-list li { display: flex; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service-list .service-icon { font-size: 1.4rem; margin-top: .2rem; }
.service-list h3 { font-size: 1.4rem; margin-bottom: .3em; }
.service-list p { color: var(--muted); margin: 0; }

/* Work */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px 32px; }
@media (min-width: 720px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work-item img, .work-fallback { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 20px; }
.work-fallback { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.work-fallback svg { width: 22%; opacity: .5; }
.work-item h3 { margin-bottom: .25em; }
.work-client { color: var(--brand); font-weight: 600; margin-bottom: .5em; }
.work-item p { color: var(--muted); }

/* About & FAQ share a heading-left layout. */
.about-grid { display: grid; gap: 8px 64px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.prose { max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 1.1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--serif); font-size: 1.6rem; color: var(--brand); flex: none; }
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list .prose { padding: 0 0 20px; color: var(--muted); }

/* Pricing */
.price-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.price-card { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 32px 28px; display: flex; flex-direction: column; }
.price { font-family: var(--serif); font-size: 2rem; color: var(--brand); margin-bottom: .5em; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.checks li { display: flex; gap: 10px; padding: 6px 0; }
.checks i { color: var(--brand); }

/* Testimonials */
.quotes { display: grid; gap: 40px; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption > span { display: flex; flex-direction: column; }
.quote-role { color: var(--muted); }

/* Contact band: the repeated monogram pattern echoes the brand guide's patterned pages. */
.contact-band { position: relative; background: var(--band-bg); color: var(--band-ink); padding: clamp(56px, 9vw, 104px) 0; overflow: hidden; }
.contact-band::before {
  content: ''; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url('/img/brand/monogram-white.svg'); background-size: 72px 64px; background-repeat: space;
  mask-image: linear-gradient(to left, #000, transparent 70%); -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
}
.contact-grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.contact-info p { color: var(--band-muted); max-width: 40ch; }
.contact-info a { color: var(--band-ink); }
.contact-info dl { margin: 24px 0 0; display: grid; gap: 16px; }
.contact-info dt { font-size: .9rem; color: var(--band-muted); }
.contact-info dd { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.contact-form { background: var(--bg); color: var(--ink); padding: clamp(20px, 4vw, 36px); border-radius: 4px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 4px; background: var(--bg); color: var(--ink); font: inherit; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
.field [aria-invalid='true'] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: .95rem; margin: 6px 0 0; }
.form-status { padding: 12px 14px; border-radius: 4px; border: 1px solid currentColor; font-weight: 600; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }
.hp { position: absolute; left: -9999px; }

/* Service page */
.service-page h1 { margin-top: .4em; }
.service-hero-img { width: 100%; margin: 32px 0; }
.service-page .prose { margin-bottom: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: center; }
.footer-row p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
