/* ========================================
   27 Invest OÜ — Design System
   Theme: Alternating dark/light
   Palette: Cobalt & sky blue
   Fonts: Archivo Black + Archivo
   Layout: Overlapping card panels
   Motif: Geometric shapes
   Hero: Text + pattern panel split
   Shapes: Cut corners
   Nav: Centered logo, split nav
   ======================================== */

:root {
  --cobalt: #1A4DC4;
  --cobalt-dark: #0F3098;
  --cobalt-hover: #2258D6;
  --sky: #3DB5D8;
  --sky-light: #72CCE6;
  --dark-bg: #0C1D44;
  --dark-card: #132558;
  --dark-card-hover: #1A2F6A;
  --dark-border: rgba(61,181,216,0.18);
  --light-bg: #F3F7FF;
  --light-card: #FFFFFF;
  --light-card-hover: #EBF1FF;
  --light-border: rgba(26,77,196,0.12);
  --white: #FFFFFF;
  --text-on-dark: #E5EEFF;
  --text-on-dark-muted: rgba(229,238,255,0.6);
  --text-on-light: #0C1D44;
  --text-on-light-muted: #5A6B8A;
  --font-head: 'Archivo Black', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --radius: 0px;
  --cut-sm: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  --cut-md: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  --cut-lg: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  --shadow-dark: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-card: 0 2px 16px rgba(26,77,196,0.12);
  --shadow-card-hover: 0 8px 32px rgba(26,77,196,0.22);
  --transition: 0.22s ease;
  --max-w: 1180px;
  --gutter: 1rem;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-on-light);
  background: var(--light-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
details { cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; }
p + p { margin-top: 0.9rem; }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- SECTIONS ---- */
.section { padding: 5rem 0; }
.section-dark { background: var(--dark-bg); color: var(--text-on-dark); }
.section-light { background: var(--light-bg); color: var(--text-on-light); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.section-header p { font-size: 1.05rem; opacity: 0.8; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.6rem;
}
.section-dark .section-label { color: var(--sky); }
.section-light .section-label { color: var(--cobalt); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.6rem;
  clip-path: var(--cut-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--cobalt);
  color: var(--white);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--cobalt-hover);
  box-shadow: 0 4px 16px rgba(26,77,196,0.4);
  outline: none;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
  outline: none;
}
.btn-nav {
  background: var(--cobalt);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
}
.btn-nav:hover { background: var(--cobalt-hover); }
.btn-full { width: 100%; justify-content: center; }

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  clip-path: var(--cut-sm);
  cursor: pointer;
  border: none;
  background: var(--cobalt);
  color: var(--white);
  transition: background var(--transition);
}
.btn-primary-sm:hover { background: var(--cobalt-hover); }
.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  clip-path: var(--cut-sm);
  cursor: pointer;
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(229,238,255,0.4);
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline-sm:hover { border-color: var(--sky); background: rgba(61,181,216,0.08); }
.inline-btn {
  background: none;
  border: none;
  color: var(--cobalt);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-body);
  font-size: inherit;
  padding: 0;
}

/* ---- CUT CORNER CARDS ---- */
.card--cut { clip-path: var(--cut-md); }
.card--cut-lg { clip-path: var(--cut-lg); }

/* ---- HEADER / NAV ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: var(--dark-bg);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.site-header .container { position: relative; }
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.nav-left {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
}
.nav-brand {
  text-align: center;
}
.brand-link {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-link:hover { color: var(--sky); }
.nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-start;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(229,238,255,0.8);
  transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
}
.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding: 0.5rem 0 1rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu .nav-link {
  padding: 0.7rem var(--gutter);
  font-size: 1rem;
  border-bottom: 1px solid var(--dark-border);
}

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 100vh;
  padding-top: 80px;
}
.hero-text {
  display: flex;
  align-items: center;
  padding: 5rem 3rem 5rem 0;
}
.hero-text-inner { max-width: 560px; margin: 0 auto 0 auto; padding-left: var(--gutter); }
.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1rem;
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-on-dark-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-pattern {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0F2470 0%, #132258 50%, #0C1D44 100%);
}
.hero-svg {
  width: 85%;
  max-width: 420px;
  animation: geoFloat 8s ease-in-out infinite;
}
@keyframes geoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-pattern-label {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(61,181,216,0.5);
}

/* ---- FACT STRIP ---- */
.fact-strip { padding: 2rem 0; border-top: 1px solid var(--light-border); border-bottom: 1px solid var(--light-border); }
.fact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 2.5rem;
}
.fact-value {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--cobalt);
}
.fact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-top: 0.2rem;
}
.fact-divider {
  width: 1px;
  height: 36px;
  background: var(--light-border);
}

/* ---- WIDGET ---- */
.widget-wrapper { max-width: 760px; margin: 0 auto; }
.widget-header { text-align: center; margin-bottom: 2rem; }
.widget-header h2 { font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 0.8rem; }
.widget-header p { color: var(--text-on-light-muted); }
.widget-card {
  background: var(--light-card);
  clip-path: var(--cut-lg);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  border: 1px solid var(--light-border);
}
.widget-step { display: none; }
.widget-step.active { display: block; }
.step-counter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.5rem;
}
.widget-step h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-on-light);
}
.widget-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.widget-option {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  padding: 0.9rem 1.2rem;
  background: var(--light-bg);
  color: var(--text-on-light);
  border: 1.5px solid var(--light-border);
  clip-path: var(--cut-sm);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.widget-option:hover, .widget-option:focus-visible {
  background: #EBF1FF;
  border-color: var(--cobalt);
  color: var(--cobalt);
  outline: none;
}
.widget-back {
  margin-top: 1.2rem;
  background: none;
  border: none;
  color: var(--text-on-light-muted);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0;
}
.widget-back:hover { color: var(--cobalt); }
.widget-result-icon { width: 56px; margin: 0 auto 1.5rem; }
#widgetResult { text-align: center; }
#widgetResult h3 { font-size: 1.1rem; color: var(--text-on-light-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); font-weight: 600; }
.widget-result-service { font-family: var(--font-head); font-size: 1.5rem; color: var(--cobalt); margin-bottom: 0.8rem; }
.widget-result-desc { color: var(--text-on-light-muted); margin-bottom: 1.5rem; max-width: 460px; margin-left: auto; margin-right: auto; }
.widget-result-ctas { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.widget-result-ctas .btn-outline {
  color: var(--cobalt);
  border-color: rgba(26,77,196,0.3);
}
.widget-result-ctas .btn-outline:hover { background: rgba(26,77,196,0.06); border-color: var(--cobalt); }
.widget-restart {
  background: none;
  border: none;
  color: var(--text-on-light-muted);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: underline;
}

/* ---- SERVICES CARDS (overlapping) ---- */
.cards-overlap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  padding: 1.8rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-dark {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-on-dark);
}
.cards-overlap .card:nth-child(3n+2) {
  margin-top: 2rem;
  margin-bottom: -2rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-dark);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.2rem;
}
.card h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky);
  transition: color var(--transition);
}
.card-link:hover { color: var(--sky-light); }
.section-cta { text-align: center; margin-top: 3rem; }

/* ---- STEPS ---- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
}
.step {
  background: var(--light-card);
  clip-path: var(--cut-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--light-border);
}
.step-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: rgba(26,77,196,0.12);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.1rem; color: var(--cobalt); margin-bottom: 0.6rem; }
.step p { font-size: 0.9rem; color: var(--text-on-light-muted); }
.step-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--sky));
  margin-top: 3rem;
  flex-shrink: 0;
}

/* ---- WHY US ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.why-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  clip-path: var(--cut-md);
  padding: 2rem;
  transition: background var(--transition);
}
.why-item:hover { background: var(--dark-card-hover); }
.why-icon { width: 36px; height: 36px; margin-bottom: 1rem; }
.why-item h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 0.5rem; }
.why-item p { font-size: 0.9rem; color: var(--text-on-dark-muted); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--light-border);
}
.faq-item:first-child { border-top: 1px solid var(--light-border); }
.faq-item summary {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text-on-light);
  padding: 1.2rem 2rem 1.2rem 0;
  position: relative;
  list-style: none;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--cobalt);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover { color: var(--cobalt); }
.faq-body {
  font-size: 0.95rem;
  color: var(--text-on-light-muted);
  padding: 0 0 1.4rem;
  line-height: 1.7;
}
.faq-body a { color: var(--cobalt); text-decoration: underline; }

/* ---- CONTACT ---- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 1rem; color: var(--white); }
.contact-info p { color: var(--text-on-dark-muted); margin-bottom: 1.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail-item { display: flex; flex-direction: column; gap: 0.2rem; }
.detail-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); }
.contact-detail-item span, .contact-detail-item a { font-size: 0.95rem; color: var(--text-on-dark); }
.contact-detail-item a:hover { color: var(--sky); }

/* ---- FORM ---- */
.contact-form-wrap, .contact-page-form { }
.contact-form {
  background: var(--light-card);
  clip-path: var(--cut-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--light-border);
}
.contact-page-form .contact-form {
  clip-path: var(--cut-lg);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-on-light);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.form-group span[aria-hidden] { color: var(--cobalt); }
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  background: var(--light-bg);
  color: var(--text-on-light);
  border: 1.5px solid var(--light-border);
  clip-path: var(--cut-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(26,77,196,0.1);
}
.form-privacy { margin-bottom: 1rem; }
.checkbox-label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-on-light-muted);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--cobalt); width: 15px; height: 15px; }
.checkbox-label a { color: var(--cobalt); text-decoration: underline; }
.form-privacy-note { font-size: 0.78rem; color: var(--text-on-light-muted); margin-bottom: 1.2rem; line-height: 1.5; }
.form-privacy-note a { color: var(--cobalt); text-decoration: underline; }

/* ---- PAGE HERO ---- */
.page-hero { padding: 7rem 0 3.5rem; }
.page-hero h1 { font-size: clamp(2rem,4vw,3.2rem); color: var(--white); margin-bottom: 0.8rem; }
.page-hero-sub { font-size: 1.05rem; color: var(--text-on-dark-muted); max-width: 580px; }
.page-hero .section-label { margin-bottom: 0.5rem; }

/* ---- ABOUT ---- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}
.about-main h2 { font-size: 1.5rem; margin: 2rem 0 0.8rem; color: var(--text-on-light); }
.about-main h2:first-child { margin-top: 0; }
.about-main p { font-size: 0.95rem; color: var(--text-on-light-muted); line-height: 1.75; }
.about-card-col { display: flex; flex-direction: column; gap: 1.5rem; }
.about-card {
  background: var(--light-card);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--light-border);
}
.about-card h3 { font-size: 1rem; color: var(--cobalt); margin-bottom: 1rem; }
.detail-list dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-top: 0.8rem;
}
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { font-size: 0.9rem; color: var(--text-on-light); margin-top: 0.1rem; }
.about-contact-card {
  background: var(--cobalt);
  padding: 1.8rem;
  color: var(--white);
}
.about-contact-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 1rem; }
.about-contact-card address p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.about-contact-card a { color: rgba(255,255,255,0.85); }
.about-contact-card a:hover { color: var(--white); }
.about-contact-card .btn-primary {
  margin-top: 1rem;
  background: var(--white);
  color: var(--cobalt);
}
.about-contact-card .btn-primary:hover { background: var(--light-bg); }

/* ---- REGISTRY LINK ---- */
.registry-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: underline;
}
.registry-link:hover { color: var(--cobalt-hover); }

/* ---- SERVICES DETAIL ---- */
.service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.service-detail-reverse { direction: rtl; }
.service-detail-reverse > * { direction: ltr; }
.service-detail-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  padding-top: 0.5rem;
}
.service-tag {
  font-family: var(--font-head);
  font-size: 3rem;
  line-height: 1;
  color: rgba(26,77,196,0.1);
  display: block;
  margin-bottom: 0.5rem;
}
.section-dark .service-tag { color: rgba(61,181,216,0.15); }
.service-detail-body h2 { font-size: clamp(1.5rem,2.5vw,2rem); margin-bottom: 1rem; }
.section-dark .service-detail-body h2 { color: var(--white); }
.section-light .service-detail-body h2 { color: var(--text-on-light); }
.service-detail-body p { font-size: 0.95rem; line-height: 1.75; }
.section-dark .service-detail-body p { color: var(--text-on-dark-muted); }
.section-light .service-detail-body p { color: var(--text-on-light-muted); }
.service-detail-body h3 { font-size: 0.85rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 1.5rem 0 0.8rem; }
.section-dark .service-detail-body h3 { color: var(--sky); }
.section-light .service-detail-body h3 { color: var(--cobalt); }
.service-detail-body ul { display: flex; flex-direction: column; gap: 0.5rem; }
.service-detail-body li { font-size: 0.9rem; padding-left: 1.2rem; position: relative; }
.service-detail-body li::before { content: '◆'; position: absolute; left: 0; font-size: 0.5rem; top: 0.4em; color: var(--sky); }
.section-light .service-detail-body li::before { color: var(--cobalt); }

.section-cta-block { text-align: center; max-width: 600px; margin: 0 auto; }
.section-cta-block h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.section-cta-block p { margin-bottom: 1.5rem; color: var(--text-on-light-muted); }
.section-cta-block p a { color: var(--cobalt); text-decoration: underline; }

/* ---- CONTACT PAGE ---- */
.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-page-info h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.contact-page-info > p { color: var(--text-on-light-muted); margin-bottom: 2rem; }
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-info-card {
  background: var(--light-card);
  padding: 1.4rem;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-card);
}
.contact-info-card h3 { font-size: 0.8rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 0.6rem; }
.contact-info-card p, .contact-info-card address { font-size: 0.88rem; color: var(--text-on-light-muted); }
.contact-info-card a { color: var(--cobalt); }
.contact-info-card a:hover { text-decoration: underline; }
.contact-info-card .muted { font-size: 0.8rem; }
.map-link { display: inline-block; margin-top: 0.5rem; font-size: 0.82rem; color: var(--cobalt); font-weight: 600; text-decoration: underline; }
.contact-page-form h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }

/* ---- LEGAL CONTENT ---- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; margin: 2.5rem 0 0.8rem; color: var(--cobalt); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; color: var(--text-on-light); }
.legal-content p { font-size: 0.95rem; color: var(--text-on-light-muted); line-height: 1.75; margin-bottom: 0.8rem; }
.legal-content ul { margin: 0.5rem 0 0.8rem 1.4rem; list-style: disc; }
.legal-content li { font-size: 0.95rem; color: var(--text-on-light-muted); line-height: 1.65; margin-bottom: 0.4rem; }
.legal-content a { color: var(--cobalt); text-decoration: underline; }
.legal-content address { font-size: 0.95rem; color: var(--text-on-light-muted); line-height: 1.8; margin-bottom: 1rem; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 1rem 0 1.5rem; }
.cookie-table th { background: var(--light-bg); color: var(--text-on-light); padding: 0.6rem 0.8rem; text-align: left; font-weight: 600; border: 1px solid var(--light-border); }
.cookie-table td { padding: 0.6rem 0.8rem; border: 1px solid var(--light-border); color: var(--text-on-light-muted); }
.cookie-table code { background: var(--light-bg); padding: 0.1em 0.4em; font-size: 0.85em; border-radius: 2px; }
.legal-content code { background: var(--light-bg); padding: 0.1em 0.4em; font-size: 0.85em; border-radius: 2px; color: var(--cobalt); }

/* ---- 404 ---- */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}
.not-found-inner { text-align: center; max-width: 480px; margin: 0 auto; }
.not-found-graphic { width: 160px; margin: 0 auto 2rem; }
.not-found h1 { font-size: 2.5rem; color: var(--white); margin-bottom: 1rem; }
.not-found p { color: var(--text-on-dark-muted); margin-bottom: 2rem; }
.not-found-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.not-found-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.not-found-links a { font-size: 0.85rem; color: var(--text-on-dark-muted); }
.not-found-links a:hover { color: var(--sky); }

/* ---- FOOTER ---- */
.site-footer { background: #071130; color: var(--text-on-dark); padding: 3.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); margin-bottom: 0.6rem; }
.footer-tagline { font-size: 0.85rem; color: var(--text-on-dark-muted); line-height: 1.6; margin-bottom: 1rem; }
.footer-legal-block { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-legal-block span { font-size: 0.75rem; color: var(--text-on-dark-muted); }
.footer-heading { font-size: 0.72rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); margin-bottom: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.88rem; color: var(--text-on-dark-muted); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-cookie-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color var(--transition);
}
.footer-cookie-btn:hover { color: var(--white); }
.footer-contact address { font-size: 0.85rem; color: var(--text-on-dark-muted); line-height: 1.8; }
.footer-contact a { color: var(--text-on-dark-muted); transition: color var(--transition); }
.footer-contact a:hover { color: var(--white); }
.footer-contact .registry-link { color: var(--sky); font-size: 0.8rem; text-decoration: underline; }
.footer-bottom {
  padding: 1.2rem 0;
  font-size: 0.75rem;
  color: rgba(229,238,255,0.35);
  text-align: center;
}

/* ---- COOKIE BANNER ---- */
.cookie-banner[hidden],
.cookie-prefs-overlay[hidden] { display: none !important; }
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #0A1738;
  border-top: 2px solid var(--cobalt);
  padding: 1.2rem var(--gutter);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 260px; }
.cookie-banner-text strong { display: block; font-family: var(--font-head); font-size: 0.95rem; color: var(--white); margin-bottom: 0.3rem; }
.cookie-banner-text p { font-size: 0.82rem; color: var(--text-on-dark-muted); line-height: 1.5; }
.cookie-banner-text a { color: var(--sky); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.cookie-prefs-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cookie-prefs-panel {
  background: #0A1738;
  clip-path: var(--cut-lg);
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  border: 1px solid var(--cobalt);
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}
.cookie-prefs-panel h2 { font-size: 1.1rem; color: var(--white); margin-bottom: 1.5rem; }
.cookie-pref-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--dark-border);
}
.cookie-pref-item:last-of-type { border-bottom: none; }
.cookie-pref-info { flex: 1; }
.cookie-pref-info strong { display: block; font-family: var(--font-head); font-size: 0.9rem; color: var(--white); margin-bottom: 0.3rem; }
.cookie-pref-info p { font-size: 0.8rem; color: var(--text-on-dark-muted); line-height: 1.5; }
.cookie-pref-info code { font-size: 0.78rem; color: var(--sky); background: rgba(61,181,216,0.1); padding: 0.1em 0.3em; }
.cookie-always-on {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
  white-space: nowrap;
  padding-top: 2px;
}
.cookie-toggle { display: inline-flex; cursor: pointer; flex-shrink: 0; }
.cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  position: relative;
  transition: background var(--transition);
}
.cookie-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
}
.cookie-toggle input:checked ~ .cookie-toggle-track { background: var(--cobalt); }
.cookie-toggle input:checked ~ .cookie-toggle-track::after { transform: translateX(20px); }
.cookie-toggle input:focus-visible ~ .cookie-toggle-track { outline: 2px solid var(--sky); outline-offset: 2px; }
.cookie-prefs-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---- UTILITIES ---- */
.muted { color: var(--text-on-light-muted); font-size: 0.85rem; }

/* ---- MOBILE ---- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-pattern { min-height: 320px; }
  .hero-text { padding: 6rem var(--gutter) 3rem; }
  .hero-text-inner { max-width: 100%; padding-left: 0; }
  .cards-overlap { grid-template-columns: repeat(2, 1fr); }
  .cards-overlap .card:nth-child(3n+2) { margin-top: 0; margin-bottom: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-card-col { order: -1; }
  .contact-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-page-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail-icon { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-inner { display: none; }
  .nav-mobile-toggle { display: flex; }
  .cards-overlap { grid-template-columns: 1fr; }
  .cards-overlap .card:nth-child(3n+2) { margin-top: 0; margin-bottom: 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fact-strip-inner { justify-content: flex-start; }
  .fact { padding: 0.5rem 1.2rem; }
  .fact-divider { display: none; }
  .section { padding: 3.5rem 0; }
  .hero-headline { font-size: 2.2rem; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .service-detail-reverse { direction: ltr; }
}

@media (max-width: 480px) {
  :root { --gutter: 0.9rem; }
  .widget-card { padding: 1.5rem; }
  .contact-form { padding: 1.5rem; }
  .hero-ctas { flex-direction: column; }
  .not-found-ctas { flex-direction: column; }
}
