/* Strict Premium Brand Palette Tokens */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0a1d37;
  --muted: #475569;
  --line: #e2e8f0;
  
  /* Brand Specific Palette from Logo.png */
  --brand-blue: #003366;
  --brand-green: #39B54A;
  --brand-orange: #F7931E;
  --brand-red: #E60012;
  
  --shadow: 0 10px 30px rgba(10, 29, 55, 0.05);
  --radius-lg: 16px;
  --radius-md: 8px;
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 110px;
}

html {
  scroll-behavior: smooth;
}

#about,
#services,
#innovation,
#contact {
  scroll-margin-top: 130px;
}

/* Header & Top Navigation */
.topbar {
  width: min(var(--max-width), calc(100% - 24px));
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(10, 29, 55, 0.06);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  text-decoration: none;
}

.brand-logo {
  height: 66px;
  width: auto;
  align-self: flex-end;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: flex-end;
}

.brand-copy strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.brand-copy small {
  display: block;
  font-size: 0.9rem;
  color: var(--brand-orange);
  font-weight: 600;
  font-style: italic;
  margin-top: 4px;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  align-self: flex-end;
  padding-bottom: 2px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand-blue);
}

.menu-toggle {
  display: none;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  color: var(--brand-blue);
  font-weight: 700;
  cursor: pointer;
}

/* Hero Section Base Layout */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding-bottom: 40px;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 20px 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-visual-stage {
  display: flex;
  justify-content: flex-end;
}

.hero-image-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 420px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #edf4fb 100%);
  box-shadow: 0 18px 40px rgba(10, 29, 55, 0.08);
}

.hero-image-shell img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-glass-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(10, 29, 55, 0.08);
}

.hero-glass-card small {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-orange);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-glass-card strong {
  display: block;
  color: var(--brand-blue);
  font-size: 1rem;
  line-height: 1.4;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-headline {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--brand-blue);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 24px;
}

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

/* Button UI Components */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.button-inline {
  width: auto;
  min-width: 120px;
}

.button-primary {
  background-color: var(--brand-blue);
  color: white;
}

.button-primary:hover {
  background-color: #002244;
  transform: translateY(-1px);
}

.button-secondary {
  background-color: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.button-secondary:hover {
  background-color: rgba(0, 51, 102, 0.04);
}

/* 4-Quadrant Delivery Grid */
.hero-matrix-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.matrix-card {
  background-color: var(--surface);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
}

.border-brand-blue { border-top-color: var(--brand-blue); }
.border-brand-green { border-top-color: var(--brand-green); }
.border-brand-orange { border-top-color: var(--brand-orange); }
.border-brand-red { border-top-color: var(--brand-red); }

.matrix-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.matrix-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bg-brand-blue { background-color: var(--brand-blue); }
.bg-brand-green { background-color: var(--brand-green); }
.bg-brand-orange { background-color: var(--brand-orange); }
.bg-brand-red { background-color: var(--brand-red); }

.matrix-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.matrix-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections Foundation */
.section {
  padding: 56px 20px;
}

.bg-alt {
  background-color: var(--surface-soft);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.tagline-callout {
  font-style: italic;
  color: var(--brand-orange);
  font-weight: 600;
  margin-top: 4px;
}

.text-center {
  text-align: center;
}

/* About Layout */
.about-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-content-block p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 900px;
  margin-bottom: 28px;
}

.about-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-visual {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(10, 29, 55, 0.08);
  background: var(--surface);
}

.about-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.pillar-item h4 {
  color: var(--brand-blue);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.pillar-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Expanded Services Architecture View */
.services-deep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.service-panel {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel-media {
  margin: -8px -8px 22px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(10, 29, 55, 0.08);
}

.panel-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.panel-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
}

.theme-blue .panel-accent { background-color: var(--brand-blue); }
.theme-green .panel-accent { background-color: var(--brand-green); }
.theme-orange .panel-accent { background-color: var(--brand-orange); }

.service-panel h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.theme-blue h3 { color: var(--brand-blue); }
.theme-green h3 { color: var(--brand-green); }
.theme-orange h3 { color: var(--brand-orange); }

.panel-intro {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}

.panel-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.panel-list li {
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  padding-left: 20px;
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: currentColor;
}

.theme-blue .panel-list li::before { background-color: var(--brand-blue); }
.theme-green .panel-list li::before { background-color: var(--brand-green); }
.theme-orange .panel-list li::before { background-color: var(--brand-orange); }

/* Innovation Lab App Components */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background-color: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-visual {
  width: 100%;
  margin: -8px -8px 18px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(10, 29, 55, 0.08);
}

.product-visual img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: fill;
}

.product-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.badge-blue { background-color: rgba(0, 51, 102, 0.08); color: var(--brand-blue); }
.badge-green { background-color: rgba(57, 181, 74, 0.08); color: var(--brand-green); }
.badge-orange { background-color: rgba(247, 147, 30, 0.08); color: var(--brand-orange); }

.product-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact Grid Layout */
.contact-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.meta-details {
  display: grid;
  gap: 16px;
}

.meta-item small {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.meta-item strong {
  font-size: 1.1rem;
  color: var(--brand-blue);
}

.contact-form {
  background-color: var(--surface);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(57, 181, 74, 0.1);
  color: #12702a;
  border: 1px solid rgba(57, 181, 74, 0.28);
}

.form-status.is-error {
  background: rgba(230, 0, 18, 0.08);
  color: #9f1020;
  border: 1px solid rgba(230, 0, 18, 0.2);
}

.contact-form label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  background-color: var(--bg);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Footer Section UI */
.site-footer {
  background-color: var(--ink);
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.site-footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link-whatsapp {
  background: rgba(57, 181, 74, 0.18);
  border-color: rgba(57, 181, 74, 0.28);
}

.back-home {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background-color: var(--brand-blue);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-home.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(10, 29, 55, 0.96);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(10, 29, 55, 0.22);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner__content {
  max-width: 760px;
}

.cookie-banner__content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.cookie-banner__content p {
  font-size: 0.92rem;
  opacity: 0.86;
}

.cookie-banner__content a {
  color: #ffffff;
  font-weight: 600;
}

.policy-page {
  min-height: 100vh;
}

.policy-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.policy-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 36px;
}

.policy-card h1 {
  font-size: 2.4rem;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.policy-updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.policy-section + .policy-section {
  margin-top: 28px;
}

.policy-section h2 {
  font-size: 1.22rem;
  color: var(--brand-blue);
  margin-bottom: 10px;
}

.policy-section p,
.policy-section li {
  color: var(--muted);
  font-size: 0.96rem;
}

.policy-section ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive Adaptive Breaking rules */
@media (max-width: 960px) {
  .hero-content,
  .about-split,
  .about-pillars-grid,
  .products-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .topbar {
    width: calc(100% - 20px);
    padding: 16px 18px;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0 4px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-matrix-grid,
  .about-pillars-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-shell {
    width: 100%;
    min-height: 340px;
  }

  .hero-image-shell img {
    min-height: 340px;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .service-panel,
  .contact-form {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero-content,
  .container,
  .about-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body {
    padding-top: 96px;
  }

  .hero-content,
  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-glass-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 14px 16px;
  }

  .hero-headline {
    font-size: 1.9rem;
  }

  .brand-copy strong {
    font-size: 1.2rem;
  }

  .brand-copy small {
    font-size: 0.74rem;
  }

  .button {
    width: 100%;
  }

  .back-home {
    right: 14px;
    bottom: 14px;
  }

  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .button-inline {
    width: 100%;
  }
}
