/* DRONLTD — public site styles. Plain CSS, no build step. */

:root {
  --ink: #0b1530;
  --ink-2: #16224a;
  --text: #1b2440;
  --muted: #5a6582;
  --line: #e3e7f0;
  --surface: #f5f7fb;
  --white: #ffffff;
  --accent: #2f6bff;
  --accent-dark: #1f4fd1;
  --accent-2: #14c2ad;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 21, 48, .06), 0 8px 24px rgba(11, 21, 48, .06);
  --shadow-lg: 0 2px 4px rgba(11, 21, 48, .06), 0 18px 40px rgba(11, 21, 48, .12);
  --container: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  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 { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--accent); }
.pre-line { white-space: pre-line; }

/* Preview bar */
.preview-bar {
  display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap;
  background: #ffcf4a; color: #3a2b00; font-size: .9rem; font-weight: 600; padding: 8px 16px;
}
.preview-bar a { color: #3a2b00; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(11, 21, 48, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 72px; width: auto; border-radius: 12px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background:
    linear-gradient(135deg, transparent 42%, rgba(255,255,255,.9) 42% 58%, transparent 58%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 4px 12px rgba(47, 107, 255, .35);
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--text); font-weight: 550; font-size: .98rem; transition: background .15s ease, color .15s ease;
}
.nav-list a:hover { background: var(--surface); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--accent); background: rgba(47, 107, 255, .08); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(47, 107, 255, .32); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 10px 24px rgba(47, 107, 255, .38); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { padding: 9px 18px; font-size: .92rem; }
.btn-icon { font-size: 1.05em; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #dfe6ff; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(47, 107, 255, .55), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(20, 194, 173, .35), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; padding: clamp(88px, 13vw, 150px) 24px clamp(80px, 11vw, 130px); }
.hero-title { color: #fff; max-width: 17ch; font-size: clamp(2.5rem, 6vw, 4.4rem); }
.hero-lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #b9c4e6; max-width: 58ch; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero .btn-secondary:hover { border-color: #fff; color: #fff; }

/* Page header (pages without a hero) */
.page-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }
.page-header h1 { margin: 0; }
.page-404 .lead { margin-bottom: 1.6em; }

/* Content blocks */
main { min-height: 50vh; }
.block { margin-top: clamp(36px, 5vw, 56px); }
main > .block:last-child, main > section:last-child.block { margin-bottom: clamp(64px, 9vw, 110px); }
.block-heading { margin-top: clamp(56px, 8vw, 96px); }
.block-heading + .block { margin-top: 20px; }
.block-heading.level-2 h2::before {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.block-heading .lead { margin-top: -.2em; }
.block-heading.level-3 { margin-top: 40px; }
.prose { max-width: 72ch; }
.prose p, .prose li { color: #2e3756; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.block-image img { border-radius: var(--radius); box-shadow: var(--shadow); max-width: 880px; width: 100%; }
.block-image.is-wide img { max-width: 100%; }
.block-image figcaption { color: var(--muted); font-size: .92rem; margin-top: 12px; }

/* Projects */
.section-intro { margin-bottom: 32px; }
.section-intro h2::before {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.project-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d3d9e8; }
.project-media { aspect-ratio: 16 / 9; background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media.is-placeholder { background: linear-gradient(135deg, var(--ink) 0%, #23408f 100%); }
.project-media.is-placeholder span { font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.9); }
.project-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { margin-bottom: 4px; }
.project-host { font-size: .85rem; color: var(--accent); font-weight: 600; margin-bottom: 12px; word-break: break-all; }
.project-body p:not(.project-host) { color: var(--muted); font-size: .98rem; }
.project-body .btn { margin-top: auto; align-self: flex-start; }

/* Contact */
.contact-card {
  display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 5vw, 56px);
}
.contact-text .lead { margin-bottom: 0; }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }
.contact-item dt { display: flex; align-items: center; gap: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.contact-item dt svg { width: 18px; height: 18px; color: var(--accent); }
.contact-item dd { margin: 4px 0 0; font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.contact-item dd a { color: var(--ink); text-decoration: none; }
.contact-item dd a:hover { color: var(--accent); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--ink); color: #aab4d4; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.brand-footer, .brand-footer:hover { color: #fff; }
.footer-tagline { margin-top: 14px; max-width: 40ch; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #dbe2fb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 8px; align-content: start; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; padding-bottom: 28px; font-size: .85rem; color: #8590b3; }
.footer-bottom p { margin: 0 0 4px; }
.company-details { white-space: pre-line; }

/* Logo */
.brand-logo-footer { height: 96px; border-radius: 16px; }
.hero-inner.has-logo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
.hero-logo {
  width: clamp(220px, 26vw, 380px); height: auto; border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(47, 107, 255, .35), 0 10px 30px rgba(0, 0, 0, .45);
}

/* Mobile */
@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .brand-logo { height: 58px; }
  .hero-inner.has-logo { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { order: -1; width: 180px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, background .2s ease;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 24px 24px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(11, 21, 48, .1);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; }
  .lang-switch { align-self: flex-start; }
  .contact-card { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding-left: 16px; padding-right: 16px; }
  .project-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
