:root {
  --navy-950: #10253a;
  --navy-900: #163049;
  --navy-800: #1f3f5c;
  --navy-700: #2c5170;
  --grey-200: #e7e9ec;
  --grey-400: #9aa3ad;
  --grey-600: #5b6570;
  --white: #ffffff;
  --accent: #16c2b6;
  --accent-rgb: 22, 194, 182;
  --accent-dark: #02a49b;
  --amber: #febc44;
  --wood: #d28736;
  --radius: 14px;
  --font-head: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy-950);
}

h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

p { color: var(--grey-600); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.accent { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); }

.topbar {
  background: var(--navy-950);
  color: var(--grey-400);
  font-size: 0.82rem;
}

.topbar-inner {
  display: flex;
  gap: 24px;
  padding: 8px 24px;
}

.topbar-item { color: var(--grey-400); text-decoration: none; }
.topbar-item:hover { color: var(--accent); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--grey-200);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { height: 32px; width: auto; display: block; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-950);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-text-accent { color: var(--accent-dark); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.nav-links a {
  color: var(--navy-800);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent-dark); }
.nav-links a.active:not(.nav-cta) { color: var(--accent-dark); font-weight: 700; }

.nav-cta {
  background: var(--navy-950);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-950); }

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(circle at 15% 20%, #16202b 0%, var(--navy-950) 60%);
  color: var(--white);
  padding: 110px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent);
}

.hero-inner { position: relative; max-width: 760px; }

.hero .eyebrow { color: var(--accent); }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 22px;
}

.hero-lead {
  color: var(--grey-400);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--navy-950); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.3); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Page hero (subpages) */
.page-hero {
  background: var(--navy-950);
  color: var(--white);
  padding: 70px 0 56px;
}
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.page-hero-lead { color: var(--grey-400); max-width: 620px; font-size: 1.05rem; }

/* Sections */
.section { padding: 90px 0; }
.section-dark { background: var(--navy-950); color: var(--white); }
.section-dark h2, .section-dark .eyebrow { color: var(--white); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark p { color: var(--grey-400); }

.section-lead { max-width: 620px; margin-bottom: 44px; }

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.stat-cards { display: flex; flex-direction: column; gap: 20px; }
.stat-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label { color: var(--grey-400); font-size: 0.92rem; }

.highlight-feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.09), rgba(var(--accent-rgb), 0.02));
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.highlight-feature-text { padding: 44px; }
.highlight-tag {
  display: inline-block;
  background: rgba(254,188,68,0.18);
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.highlight-feature-text h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.highlight-feature-text > p { margin-bottom: 20px; }
.highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.highlight-list li {
  color: var(--grey-200);
  font-size: 0.94rem;
  padding-left: 26px;
  position: relative;
}
.highlight-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.highlight-feature-visual {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.18) 0%, transparent 65%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 26px, rgba(var(--accent-rgb), 0.08) 27px);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55); }
  70% { box-shadow: 0 0 0 40px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-icon {
  color: var(--wood);
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.feature-card h3 { color: var(--white); }
.feature-card p { margin: 0; font-size: 0.94rem; }

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-row {
  background: var(--white);
  padding: 32px;
}
.service-row p { margin: 0; font-size: 0.94rem; }

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy-800);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--navy-700);
}
.project-card-visual {
  background:
    repeating-linear-gradient(135deg, rgba(var(--accent-rgb), 0.15) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
  min-height: 260px;
}
.project-card-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.project-tag {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.project-card-body h2, .project-card-body h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 8px; }
.project-card-body p { margin: 0; }

.section-cta { background: var(--grey-200); }

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin-bottom: 6px; }
.cta-banner p { margin: 0; }

.link-more {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.link-more:hover { text-decoration: underline; }
.link-more-light { color: var(--accent); }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.team-card {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0 auto 16px;
}
.team-role { color: var(--accent-dark); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }

/* Service detail rows */
.service-detail {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--grey-200);
}
.service-detail:first-child { padding-top: 0; }
.service-detail-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--grey-400);
}
.service-detail h2 { font-size: 1.4rem; }
.service-detail p { margin: 0; }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.process-step { position: relative; padding-top: 8px; }
.process-num {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-950);
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 14px;
}
.process-step h3 { color: var(--white); font-size: 1.05rem; }
.process-step p { font-size: 0.92rem; margin: 0; }
.section-note {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-700);
  color: var(--grey-400);
  font-size: 0.88rem;
}

/* Placeholder project cards */
.placeholder-card { position: relative; }
.placeholder-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  color: var(--grey-400);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.project-card-visual-sm {
  min-height: 130px;
  border-radius: 10px;
  margin-bottom: 16px;
}

/* Map */
.map-embed {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-200);
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-note { font-size: 0.8rem; margin-top: -6px; }
.form-feedback { font-size: 0.88rem; font-weight: 600; min-height: 1.2em; }
.form-feedback-ok { color: var(--accent-dark); }
.form-feedback-error { color: #c0392b; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  font-weight: 500;
}
.contact-details a { color: var(--navy-950); text-decoration: none; }
.contact-details a:hover { color: var(--accent-dark); }

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--grey-200);
  background: var(--white);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.checkbox-label {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px !important;
  font-weight: 400 !important;
  color: var(--grey-600);
  font-size: 0.85rem !important;
}
.checkbox-label input { width: auto; flex-shrink: 0; margin-top: 3px; }
.checkbox-label span { flex: 1; }
.checkbox-label a { color: var(--accent-dark); }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--grey-400); padding: 36px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand { font-family: var(--font-head); font-weight: 700; color: var(--white); }
.footer-legal { font-size: 0.82rem; margin-top: 2px; }
.footer-copy { font-size: 0.82rem; }
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
}
.footer-links a {
  color: var(--grey-400);
  text-decoration: none;
  font-size: 0.82rem;
}
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--navy-700);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  color: var(--navy-900);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  z-index: 999;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { color: var(--grey-600); font-size: 0.88rem; margin-bottom: 14px; }
.cookie-banner a { color: var(--accent-dark); font-weight: 600; }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--grey-200);
}
.btn-outline:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 18px; font-size: 0.86rem; }

/* Legal pages */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.3rem; margin-top: 36px; margin-bottom: 10px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--grey-600); font-size: 0.96rem; margin-bottom: 12px; }
.legal-content ul { padding-left: 22px; margin-bottom: 12px; }
.legal-updated { color: var(--grey-400); font-size: 0.85rem; margin-bottom: 30px; }

/* Chat widget */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}
.chat-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-950);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.chat-bubble:hover { background: var(--accent-dark); }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 320px;
  max-width: calc(100vw - 40px);
  height: 420px;
  max-height: 70vh;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }

.chat-header {
  background: var(--navy-950);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 700;
}
.chat-close {
  background: none;
  border: none;
  color: var(--grey-400);
  cursor: pointer;
  font-size: 1rem;
}
.chat-close:hover { color: var(--white); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--grey-200);
}
.chat-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
}
.chat-msg-bot {
  background: var(--white);
  color: var(--navy-900);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.chat-msg-user {
  background: var(--accent);
  color: var(--navy-950);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--grey-200);
}
.chat-input-row input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.chat-input-row input:focus { outline: none; }
.chat-send {
  background: var(--accent);
  color: var(--navy-950);
  border: none;
  width: 48px;
  cursor: pointer;
  font-size: 1rem;
}
.chat-send:hover { background: var(--accent-dark); }

@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 32px); right: -4px; }
}

/* Responsive */
@media (max-width: 820px) {
  .two-col, .contact-inner { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-card-visual { min-height: 160px; }
  .highlight-feature { grid-template-columns: 1fr; }
  .highlight-feature-visual { min-height: 140px; }
  .service-detail { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--grey-200);
    display: none;
  }
  .nav-links.open { display: flex; }
  .topbar-inner { flex-direction: column; gap: 4px; padding: 8px 24px; }
}
