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

:root {
  --bg: #ffffff;
  --fg: #152238;
  --muted: #64748b;
  --muted-bg: #f4f6f9;
  --brand-navy: #1a3d6b;
  --brand-orange: #f0a030;
  --primary: var(--brand-navy);
  --primary-fg: #f8fafc;
  --accent: var(--brand-orange);
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgb(0 0 0 / 0.08);
  --font-brand: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 4.25rem;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.15s;
}

.brand:hover {
  opacity: 0.92;
}

.brand-logo {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--font-brand);
}

.brand-main {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-weight: 600;
  font-size: 0.6875rem;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.logo { font-weight: 700; font-size: 1.125rem; }

.nav { display: flex; gap: 1.5rem; }
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav a:hover,
.nav a.active { color: var(--brand-navy); font-weight: 600; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(to bottom, rgb(37 99 235 / 0.05), var(--bg));
  border-bottom: 1px solid var(--border);
}

.hero-image {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  background-size: cover;
  background-position: center 45%;
  border-bottom: none;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logo {
  display: block;
  margin: 0 auto 1.25rem;
  height: 5rem;
  width: auto;
  filter: drop-shadow(0 4px 12px rgb(0 0 0 / 0.35));
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(15 23 42 / 0.82),
    rgb(15 23 42 / 0.55) 45%,
    rgb(15 23 42 / 0.72)
  );
}

.hero-image h1 {
  color: #ffffff;
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.45);
}

.hero-image .hero-subtitle {
  color: #f1f5f9;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.75;
  margin: 1.25rem auto 0;
  max-width: 680px;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.6), 0 0 2px rgb(0 0 0 / 0.4);
}

.hero-image p:not(.hero-badge):not(.hero-subtitle) {
  color: rgb(226 232 240);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto;
}

.hero p {
  margin: 1.5rem auto 0;
  max-width: 600px;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero .btn { margin-top: 2.5rem; }

/* Page banners */
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background-size: cover;
  background-position: center;
}

.page-banner-short { min-height: 280px; }

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(15 23 42 / 0.75), rgb(15 23 42 / 0.6));
}

.page-banner-overlay {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: #ffffff;
}

.page-banner-overlay h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
}

.page-banner-overlay p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: rgb(226 232 240);
}

.page-after-banner {
  padding-top: 3rem;
}

.section-heading {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--brand-orange); color: var(--brand-navy); font-weight: 600; font-family: var(--font-brand); }
.btn-primary:hover { background: #e8930a; }
.btn-outline { background: var(--bg); border-color: var(--border); color: var(--fg); }
.btn-light { background: rgb(255 255 255 / 0.15); border-color: rgb(255 255 255 / 0.3); color: white; }

/* Sections */
.section { padding: 4rem 1.5rem; max-width: 1152px; margin: 0 auto; width: 100%; }
.section.muted { background: var(--muted-bg); max-width: none; }
.section.muted > * { max-width: 1152px; margin-left: auto; margin-right: auto; }

.section-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 800;
  font-family: var(--font-brand);
  color: var(--brand-navy);
  margin-bottom: 2.5rem;
}
.section-title.left { text-align: left; margin-bottom: 0.25rem; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.subtitle { color: var(--muted); }

.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.card:hover { box-shadow: 0 8px 24px rgb(0 0 0 / 0.1); transform: translateY(-2px); }
.card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.9375rem; }

.card-image {
  padding: 0;
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.card-team img {
  height: 260px;
}

.office-image img {
  height: 220px;
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgb(37 99 235 / 0.1);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* CTA */
.cta {
  margin: 0 1.5rem 4rem;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  overflow: hidden;
}

.cta-image {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem;
}

.cta-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(26 61 107 / 0.88);
  border-radius: var(--radius);
}

.cta-overlay {
  position: relative;
  z-index: 1;
}

.cta h2 { font-size: 1.875rem; }
.cta p { margin: 1rem auto 0; max-width: 500px; opacity: 0.9; }
.cta .btn { margin-top: 2rem; }

/* Page layout */
.page {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
}
.page h1 { font-size: 2.25rem; font-weight: 800; }
.page .center { text-align: center; }
.lead { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; }
.lead.center { max-width: 600px; margin-left: auto; margin-right: auto; }
.muted-text { color: var(--muted); }

/* Contact form */
.form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.form label { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.875rem; font-weight: 500; }
.form input,
.form textarea {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
}
.form-success {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  background: rgb(240 160 48 / 0.15);
  border: 1px solid rgb(240 160 48 / 0.35);
  color: var(--brand-navy);
  font-weight: 500;
}
.contact-grid { margin-top: 1.5rem; align-items: start; }
.contact-info-grid {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-info-row {
  gap: 1.25rem;
}
.contact-intro {
  margin-bottom: 1.5rem;
}
.contact-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}
.contact-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(26 61 107 / 0.12), rgb(26 61 107 / 0.06));
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 1px rgb(26 61 107 / 0.08);
}
.contact-card-icon-accent {
  background: linear-gradient(135deg, rgb(240 160 48 / 0.2), rgb(240 160 48 / 0.08));
  color: #c47a10;
  box-shadow: inset 0 0 0 1px rgb(240 160 48 / 0.25);
}
.contact-card-icon svg {
  width: 24px;
  height: 24px;
}
.contact-card h3 {
  color: var(--brand-navy);
  margin-bottom: 0;
  font-size: 1.125rem;
}
.contact-card p {
  color: var(--muted);
  padding-left: calc(48px + 0.875rem);
}
.contact-card a {
  color: var(--brand-navy);
  font-weight: 600;
}
.contact-card a:hover {
  color: var(--brand-orange);
}

/* Tile background shades only — layout and typography unchanged */
.tile-shade-navy,
.shaded-tiles > .card:nth-child(3n + 1),
.shaded-tiles.card-grid > .card:nth-child(3n + 1) {
  background: rgb(26 61 107 / 0.07);
  border-color: rgb(26 61 107 / 0.14);
}
.tile-shade-warm,
.shaded-tiles > .card:nth-child(3n + 2),
.shaded-tiles.card-grid > .card:nth-child(3n + 2) {
  background: rgb(240 160 48 / 0.11);
  border-color: rgb(240 160 48 / 0.22);
}
.tile-shade-neutral,
.shaded-tiles > .card:nth-child(3n),
.shaded-tiles.card-grid > .card:nth-child(3n) {
  background: var(--muted-bg);
  border-color: var(--border);
}
.shaded-tiles .stack-grid span:nth-child(3n + 1) {
  background: rgb(26 61 107 / 0.07);
  border-color: rgb(26 61 107 / 0.14);
}
.shaded-tiles .stack-grid span:nth-child(3n + 2) {
  background: rgb(240 160 48 / 0.11);
  border-color: rgb(240 160 48 / 0.22);
}
.shaded-tiles .stack-grid span:nth-child(3n) {
  background: var(--muted-bg);
  border-color: var(--border);
}
.contact-details a { color: var(--primary); }
.contact-details a:hover { text-decoration: underline; }
.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 8px;
  margin-top: 0.75rem;
}

/* Clickable product cards */
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-link:hover h3 {
  color: var(--brand-orange);
}
.card-link .view-details {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-navy);
}
.card-link:hover .view-details {
  color: var(--brand-orange);
}

/* Product detail page */
.product-detail-hero {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.product-detail-hero-overlay {
  width: 100%;
  padding: 4rem 1.5rem;
  background: linear-gradient(90deg, rgb(26 61 107 / 0.92), rgb(26 61 107 / 0.75));
  color: white;
  text-align: center;
}
.product-detail-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.75rem;
}
.product-detail-hero h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto;
}
.product-detail-tagline {
  margin: 1rem auto 0;
  max-width: 640px;
  font-size: 1.125rem;
  opacity: 0.92;
}
.product-detail-hero .btn {
  margin-top: 1.75rem;
}
.product-detail-page {
  max-width: 960px;
}
.product-detail-intro {
  align-items: start;
  margin-bottom: 2.5rem;
}
.product-benefits {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}
.product-benefits li {
  margin-bottom: 0.5rem;
}
.product-detail-features {
  margin-bottom: 2.5rem;
}
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-detail-cta {
  text-align: center;
  background: var(--brand-navy);
  color: white;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.product-detail-cta h2 {
  font-size: 1.5rem;
}
.product-detail-cta p {
  margin: 0.75rem auto 0;
  max-width: 520px;
  opacity: 0.9;
}
.product-detail-cta .btn {
  margin-top: 1.25rem;
}
.product-back a {
  color: var(--brand-navy);
  font-weight: 600;
}
.product-back a:hover {
  color: var(--brand-orange);
}
.tile-shade-navy {
  background: rgb(26 61 107 / 0.07);
  border-color: rgb(26 61 107 / 0.14);
}
.tile-shade-warm {
  background: rgb(240 160 48 / 0.11);
  border-color: rgb(240 160 48 / 0.22);
}
.tile-shade-neutral {
  background: var(--muted-bg);
  border-color: var(--border);
}
.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius);
  display: block;
}

.map-embed {
  padding: 0;
  overflow: hidden;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgb(241 245 249 / 0.5);
  padding: 2.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}
.footer p { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
.preview-note { font-size: 0.75rem !important; font-style: italic; }

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--brand-orange);
  color: var(--brand-navy);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--font-brand);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1152px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--muted-bg);
}

.stats-bar-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  text-align: center;
  padding: 0.75rem;
}

.stat strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .stats-bar,
  .stats-bar-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tech-stack {
  max-width: 1152px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.stack-grid span {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--muted-bg);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
}

.stack-no {
  border-color: rgb(239 68 68 / 0.3) !important;
  background: rgb(239 68 68 / 0.08) !important;
  color: rgb(185 28 28) !important;
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--muted-bg);
}

@media (prefers-color-scheme: dark) {
  .stack-no {
    color: rgb(252 165 165) !important;
    background: rgb(239 68 68 / 0.15) !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
  }
  body.menu-open .nav { display: flex; }
  .nav a { padding: 0.5rem 0; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --fg: #f8fafc;
    --muted: #94a3b8;
    --muted-bg: #1e293b;
    --border: #334155;
    --primary: #3b82f6;
  }
  .header { background: rgb(15 23 42 / 0.95); }
}
