/* =========================================================
   Hotel Çözüm — Deep Tech design system (PHP static site)
   ========================================================= */

:root {
  --primary: #001e40;
  --on-primary: #ffffff;
  --primary-container: #003366;
  --on-primary-container: #799dd6;
  --primary-fixed: #d5e3ff;
  --primary-fixed-dim: #a7c8ff;

  --secondary: #005cba;
  --on-secondary: #ffffff;
  --secondary-container: #5095fe;
  --on-secondary-container: #002d61;
  --secondary-fixed: #d7e3ff;

  --tertiary-fixed-dim: #4cd6fb;
  --status-info: #0066cc;
  --glass-stroke: rgba(0, 51, 102, 0.1);

  --background: #fbf9f8;
  --on-background: #1b1c1c;
  --surface: #fbf9f8;
  --surface-alt: #f0f5fa;
  --surface-lowest: #ffffff;
  --surface-low: #f6f3f2;
  --on-surface: #1b1c1c;
  --on-surface-variant: #43474f;
  --outline: #737780;
  --outline-variant: #c3c6d1;

  --font-heading: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --shadow-low: 0 2px 4px rgba(0, 51, 102, 0.05);
  --shadow-mid: 0 12px 24px rgba(0, 51, 102, 0.1);

  --container: 1280px;
  --gutter: 24px;
  --margin-mobile: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--on-background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0;
  font-weight: 600;
  color: var(--primary);
}

p {
  margin: 0;
}

main {
  flex: 1;
}

.container-max {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

/* ---- Typography helpers ---- */
.display {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
@media (min-width: 768px) {
  .display {
    font-size: 48px;
    line-height: 56px;
    letter-spacing: -0.02em;
  }
}
.headline-lg { font-size: 32px; line-height: 40px; font-weight: 600; }
.headline-md { font-size: 24px; line-height: 32px; font-weight: 600; }
.body-lg { font-size: 18px; line-height: 28px; color: var(--on-surface-variant); }
.body-md { font-size: 16px; line-height: 24px; color: var(--on-surface-variant); }
.label { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption { font-size: 12px; line-height: 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--secondary);
  color: var(--on-secondary);
  box-shadow: var(--shadow-low);
}
.btn-primary:hover { opacity: 0.92; box-shadow: var(--shadow-mid); }
.btn-outline {
  background: transparent;
  border-color: var(--outline);
  color: var(--primary);
}
.btn-outline:hover { background: var(--surface-alt); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-lg { padding: 18px 36px; font-size: 16px; border-radius: var(--radius-md); }

/* ---- Header / Nav ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(251, 249, 248, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(251, 249, 248, 0.9);
  border-color: var(--glass-stroke);
  box-shadow: var(--shadow-low);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--margin-mobile);
  gap: 16px;
}
@media (min-width: 768px) {
  .nav { padding-inline: var(--gutter); }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-logo {
  display: block;
  width: 75px;
  height: 75px;
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-heading);
  font-size: clamp(12px, 1.65vw, 18px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  max-width: 240px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-variant);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--secondary);
}
.nav-links a.is-active {
  border-bottom-color: var(--secondary);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-cta-desktop { display: none; }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-alt); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta-desktop { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
@media (max-width: 767px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(251, 249, 248, 0.97);
    border-bottom: 1px solid var(--glass-stroke);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  }
  .site-header.is-open .nav-links {
    max-height: 420px;
    opacity: 1;
    padding: 16px;
  }
  .nav-links a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-bottom: 0;
  }
  .nav-links a.is-active {
    background: rgba(0, 92, 186, 0.1);
  }
  .nav-cta-mobile {
    display: inline-flex;
    margin-top: 8px;
  }
}

/* ---- Sections / layout ---- */
.section {
  padding: 48px var(--margin-mobile);
}
@media (min-width: 768px) {
  .section { padding-inline: var(--gutter); padding-block: 64px; }
}
.section-tight {
  padding: 32px var(--margin-mobile) 48px;
}
@media (min-width: 768px) {
  .section-tight { padding-inline: var(--gutter); }
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  display: grid;
  gap: 16px;
}
.section-head .rule {
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: var(--secondary);
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 128px var(--margin-mobile) 64px;
  background: linear-gradient(135deg, var(--surface-alt) 0%, var(--background) 100%);
}
@media (min-width: 768px) {
  .hero { padding: 176px var(--gutter) 112px; }
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-copy {
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 92, 186, 0.1);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
}
.hero-media {
  position: relative;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateY(-32px);
  border-radius: 999px;
  background: rgba(0, 92, 186, 0.05);
  filter: blur(48px);
  pointer-events: none;
}
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 25px 50px rgba(0, 30, 64, 0.2);
}
@media (min-width: 1024px) {
  .hero-frame { aspect-ratio: auto; height: 560px; }
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.status-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-mid);
  backdrop-filter: blur(12px);
}
.status-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ---- Cards / grids ---- */
.grid-4 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface-alt);
  border: 1px solid rgba(195, 198, 209, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-mid);
}
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 92, 186, 0.1);
  color: var(--secondary);
  display: grid;
  place-items: center;
}
.service-card h3 {
  font-size: 20px;
  line-height: 1.3;
}
.service-card p {
  font-size: 12px;
  line-height: 16px;
  color: var(--on-surface-variant);
}

.bg-white { background: var(--surface-lowest); }
.bg-low { background: var(--surface-low); }

/* ---- Why us ---- */
.why-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .why-grid { flex-direction: row; }
}
.why-media {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-mid);
  position: relative;
}
@media (min-width: 1024px) {
  .why-media { width: 50%; }
}
.why-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.why-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 64, 0.2);
}
.why-copy {
  width: 100%;
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) {
  .why-copy { width: 50%; }
}
.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-item .icon-box {
  width: auto;
  height: auto;
  padding: 8px;
}

/* ---- CTA banner ---- */
.cta-wrap { padding: 48px var(--margin-mobile); }
@media (min-width: 768px) {
  .cta-wrap { padding-inline: var(--gutter); }
}
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}
@media (min-width: 768px) {
  .cta-banner { padding: 80px 64px; }
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  width: 256px;
  height: 256px;
  border-radius: 999px;
  filter: blur(64px);
  pointer-events: none;
}
.cta-banner::before {
  left: -96px;
  top: -96px;
  background: rgba(0, 92, 186, 0.25);
}
.cta-banner::after {
  right: -96px;
  bottom: -96px;
  background: rgba(76, 214, 251, 0.12);
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: var(--primary-fixed-dim); }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  padding-top: 8px;
}
@media (min-width: 640px) {
  .cta-actions { flex-direction: row; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--primary);
  color: var(--on-primary);
  padding: 48px var(--margin-mobile);
}
@media (min-width: 768px) {
  .site-footer { padding-inline: var(--gutter); }
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-fixed);
  margin-bottom: 16px;
}
.footer-brand p {
  max-width: 280px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--primary-fixed-dim);
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(167, 200, 255, 0.4);
  color: var(--primary-fixed-dim);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
  background: var(--secondary);
  color: #fff;
}
.site-footer h4 {
  color: var(--secondary-fixed);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul {
  display: grid;
  gap: 8px;
}
.site-footer li a,
.site-footer .footer-contact a {
  font-size: 12px;
  color: var(--primary-fixed-dim);
  transition: color 0.2s ease;
}
.site-footer li a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--primary-fixed-dim);
}
.footer-contact .ico {
  color: var(--secondary-fixed);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(167, 200, 255, 0.2);
  font-size: 12px;
  color: var(--primary-fixed-dim);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---- Page heroes (inner pages) ---- */
.page-hero {
  padding: 128px var(--margin-mobile) 64px;
  background: linear-gradient(180deg, var(--surface-alt), var(--background));
}
@media (min-width: 768px) {
  .page-hero { padding: 176px var(--gutter) 80px; }
}
.page-hero-narrow { max-width: 720px; display: grid; gap: 20px; }

.page-hero-dark {
  background: var(--primary-container);
  color: #fff;
  padding: 128px var(--margin-mobile) 64px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .page-hero-dark { padding: 176px var(--gutter) 112px; }
}
.page-hero-dark h1 { color: #fff; }
.page-hero-dark .body-lg { color: var(--primary-fixed-dim); }
.accent { color: var(--tertiary-fixed-dim); }
.accent-secondary { color: var(--secondary); }

/* ---- Services detail ---- */
.service-list {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .service-list { grid-template-columns: 1fr 1fr; }
}
.service-detail {
  scroll-margin-top: 112px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface-alt);
  border: 1px solid #e5e9f0;
  box-shadow: var(--shadow-low);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-detail:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-mid);
}
@media (min-width: 768px) {
  .service-detail.is-featured {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 32px;
  }
}
.feature-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.feature-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-variant);
}
.feature-checks svg { color: var(--secondary); flex-shrink: 0; }

/* ---- About ---- */
.about-hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-hero-grid { grid-template-columns: 1fr 1fr; }
}
.about-media {
  display: none;
  position: relative;
}
@media (min-width: 1024px) {
  .about-media { display: block; }
}
.about-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-mid);
}
.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stat-float {
  position: absolute;
  left: -24px;
  bottom: -24px;
  background: var(--secondary);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-mid);
}
.stat-float strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
}

.story-layout {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
@media (min-width: 768px) {
  .story-layout { flex-direction: row; align-items: flex-start; }
}
.story-sticky {
  width: 100%;
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .story-sticky {
    width: 42%;
    position: sticky;
    top: 112px;
  }
}
.timeline {
  width: 100%;
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .timeline { width: 58%; }
}
.timeline-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface-lowest);
  border: 1px solid var(--surface-low);
  box-shadow: var(--shadow-low);
}
.timeline-card .year {
  position: absolute;
  right: 16px;
  top: 8px;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--outline-variant);
  opacity: 0.5;
}
.timeline-card.offset {
  margin-left: 0;
}
@media (min-width: 768px) {
  .timeline-card.offset { margin-left: 48px; }
}

.bento {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
}
.bento-mission {
  background: var(--primary);
  color: #fff;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-height: 280px;
}
@media (min-width: 768px) {
  .bento-mission { grid-column: span 3; }
}
.bento-mission h3,
.bento-vision h3 { color: #fff; }
.bento-mission p { color: var(--primary-fixed-dim); }
.bento-mission svg { color: var(--tertiary-fixed-dim); }

.bento-vision {
  background: var(--secondary-container);
  color: #fff;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: 280px;
}
@media (min-width: 768px) {
  .bento-vision { grid-column: span 3; }
}
.bento-vision p { color: var(--on-secondary-container); }
.bento-vision .bg-icon {
  position: absolute;
  right: 32px;
  top: 32px;
  opacity: 0.2;
}

.bento-partner {
  background: var(--surface-lowest);
  border: 1px solid #e5e9f0;
  box-shadow: var(--shadow-low);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  display: grid;
  place-items: center;
  gap: 8px;
}
@media (min-width: 768px) {
  .bento-partner { grid-column: span 2; }
}
.bento-partner svg { color: var(--secondary); margin-bottom: 8px; }

.bento-tech {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 240px;
}
@media (min-width: 768px) {
  .bento-tech { grid-column: span 4; }
}
.bento-tech img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.bento-tech .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 30, 64, 0.85), transparent);
}
.bento-tech .caption-block {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 32px;
  color: #fff;
}
.bento-tech h4 { color: #fff; }
.bento-tech p { color: var(--primary-fixed-dim); }

.values-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}
.value-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface-alt);
  box-shadow: var(--shadow-low);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card svg {
  color: var(--secondary);
  margin-bottom: 24px;
  transition: color 0.3s ease;
}
.value-card h3 { margin-bottom: 12px; transition: color 0.3s ease; }
.value-card p { transition: color 0.3s ease; }
.value-card:hover {
  background: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-mid);
}
.value-card:hover svg { color: var(--tertiary-fixed-dim); }
.value-card:hover h3 { color: #fff; }
.value-card:hover p { color: var(--primary-fixed); }

/* ---- References ---- */
.ref-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 112px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.ref-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ref-hero .veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 64, 0.7);
  backdrop-filter: blur(2px);
}
.ref-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 0 var(--margin-mobile);
  display: grid;
  gap: 24px;
}
.ref-hero h1 { color: #fff; }
.ref-hero p { color: rgba(255, 255, 255, 0.9); }

.stats-row {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  padding: 0 var(--margin-mobile);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .stats-row {
    padding-inline: var(--gutter);
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat-card {
  text-align: center;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow-low);
  backdrop-filter: blur(12px);
}
.stat-card svg { color: var(--secondary); margin: 0 auto 16px; }
.stat-card .value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.case-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
}
.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-lowest);
  border: 1px solid var(--glass-stroke);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-mid);
}
.case-card .thumb {
  height: 192px;
  overflow: hidden;
}
.case-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-card .body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}
.case-card .tag {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}
.case-card .btn-outline {
  margin-top: auto;
  width: 100%;
}
.case-card:hover .btn-outline {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.case-highlight {
  background: var(--primary);
  color: #fff;
  padding: 96px var(--margin-mobile);
}
@media (min-width: 768px) {
  .case-highlight { padding-inline: var(--gutter); }
}
.case-highlight-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) {
  .case-highlight-grid { grid-template-columns: 1fr 1fr; }
}
.case-media {
  position: relative;
}
.case-media .frame {
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-mid);
  aspect-ratio: 16 / 9;
}
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eff-badge {
  display: none;
  position: absolute;
  right: -24px;
  bottom: -24px;
  background: var(--secondary);
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-mid);
}
@media (min-width: 768px) {
  .eff-badge { display: block; }
}
.eff-badge strong {
  font-family: var(--font-heading);
  font-size: 28px;
  display: block;
}
.pill {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--secondary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.case-highlight h2 { color: #fff; margin-bottom: 24px; }
.case-highlight .lead { color: var(--primary-fixed-dim); margin-bottom: 32px; }
.challenge-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .challenge-grid { grid-template-columns: 1fr 1fr; }
}
.challenge-grid strong {
  display: block;
  color: var(--secondary-fixed);
  margin-bottom: 8px;
}
.challenge-grid p {
  font-size: 14px;
  opacity: 0.8;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-fixed);
  transition: gap 0.2s ease;
}
.link-arrow:hover { gap: 16px; }

/* ---- Contact ---- */
.contact-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 7fr 5fr; }
}
.form-card {
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-low);
}
@media (min-width: 768px) {
  .form-card { padding: 40px; }
}
.form-card h2 { margin-bottom: 24px; }
.form-grid {
  display: grid;
  gap: 24px;
}
.form-row {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline-variant);
  background: var(--surface-low);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input,
.field select {
  height: 48px;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
.alert-error {
  background: rgba(186, 26, 26, 0.1);
  color: #ba1a1a;
}

.info-card {
  background: var(--surface-alt);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-xl);
  padding: 24px;
}
@media (min-width: 768px) {
  .info-card { padding: 32px; }
}
.info-card h3 { margin-bottom: 24px; }
.info-list {
  display: grid;
  gap: 24px;
}
.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-item .bubble {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.info-item:hover .bubble { background: var(--secondary); color: #fff; }
.info-item .label { font-size: 14px; font-weight: 600; color: var(--primary); }
.info-item .value { font-size: 16px; color: var(--on-surface-variant); }

.live-panel {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 1px solid var(--outline-variant);
}
.live-panel::before {
  content: "";
  position: absolute;
  left: -64px;
  top: -64px;
  width: 192px;
  height: 192px;
  border-radius: 999px;
  background: rgba(0, 92, 186, 0.25);
  filter: blur(48px);
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.live-dot {
  position: relative;
  width: 10px;
  height: 10px;
}
.live-dot span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--primary-fixed-dim);
}
.live-dot span.ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.trust-bar {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
}
@media (min-width: 768px) {
  .trust-bar { grid-template-columns: repeat(4, 1fr); }
}
.trust-bar svg { color: var(--tertiary-fixed); margin: 0 auto 8px; }
.trust-bar span {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.side-stack {
  display: grid;
  gap: 24px;
}

/* ---- Reveal animation ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ---- Page theme vars ---- */
body.has-page-theme {
  background: var(--page-bg, var(--background));
  color: var(--page-text, var(--on-background));
}
body.has-page-theme .display,
body.has-page-theme .headline-lg,
body.has-page-theme .headline-md,
body.has-page-theme h1, body.has-page-theme h2, body.has-page-theme h3 {
  font-family: var(--page-heading-font, var(--font-heading));
  color: var(--page-primary, var(--primary));
}
body.has-page-theme {
  font-family: var(--page-body-font, var(--font-body));
}
body.has-page-theme .btn-primary {
  background: var(--page-accent, var(--secondary));
}

/* ---- CMS blocks ---- */
.page-blocks { display: grid; gap: 0; }
.cms-block { padding: 48px var(--margin-mobile); }
@media (min-width: 768px) { .cms-block { padding-inline: var(--gutter); } }
.cms-hero { display: grid; gap: 16px; max-width: 820px; }
.cms-hero-media img { width: 100%; border-radius: 16px; margin-top: 12px; }
.cms-rich { max-width: 820px; line-height: 1.7; color: var(--on-surface-variant); }
.cms-image { text-align: center; }
.cms-image img { max-width: 100%; border-radius: 16px; }
.cms-columns { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cms-columns { grid-template-columns: repeat(3, 1fr); } }
.cms-col { background: var(--page-surface, #fff); padding: 20px; border-radius: 14px; border: 1px solid var(--glass-stroke); }
.cms-divider { border: 0; border-top: 1px solid var(--glass-stroke); margin: 8px 0; }

/* ---- Floating contact button ---- */
.fab-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--page-accent, #005cba);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(0, 30, 64, 0.28);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab-contact:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 30, 64, 0.35); }
.fab-icon { display: inline-flex; }
@media (max-width: 560px) {
  .fab-label { display: none; }
  .fab-contact { width: 56px; height: 56px; justify-content: center; padding: 0; }
}

.contact-modal[hidden] { display: none !important; }
.contact-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
}
.contact-modal-backdrop { position: absolute; inset: 0; background: rgba(0,16,32,.55); }
.contact-modal-panel {
  position: relative; width: min(440px, 100%);
  background: #fff; border-radius: 18px; padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  max-height: 90vh; overflow: auto;
}
.contact-modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.contact-modal-top h2 { margin: 0; font-size: 20px; color: #001e40; font-family: Montserrat, sans-serif; }
.contact-modal-close { border: 0; background: #f1f5f9; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center; }
.contact-popup-form { display: grid; gap: 12px; }
.contact-popup-form .field { display: grid; gap: 4px; }
.contact-popup-form label { font-size: 13px; font-weight: 600; }
.contact-popup-form input,
.contact-popup-form select,
.contact-popup-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d7e0ea; border-radius: 8px; font: inherit;
}
.contact-popup-status { margin: 0; font-size: 14px; font-weight: 600; }
.contact-popup-status.is-ok { color: #15803d; }
.contact-popup-status.is-err { color: #ba1a1a; }
body.contact-open { overflow: hidden; }
