:root {
  --primary: #1256a8;
  --secondary: #062b63;
  --accent: #f1792d;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #647086;
  --line: #dbe3ee;
  --shadow: 0 18px 45px rgba(6, 43, 99, 0.12);
}

body.dark {
  --bg: #07111f;
  --surface: #101c2d;
  --text: #eef4ff;
  --muted: #a9b7ce;
  --line: #223653;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.svg-icons { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 104px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #dbe3ee;
  backdrop-filter: blur(14px);
  color: #172033;
}

.brand img { width: 255px; max-height: 84px; object-fit: contain; }
.main-nav { display: flex; justify-content: center; gap: 28px; font-weight: 700; color: #062b63; }
body.dark .site-header,
body.dark .site-header label,
body.dark .site-header .main-nav { color: #172033; }
.main-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.segmented, .theme-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  gap: 3px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
.segmented button, .theme-switch span {
  border: 0;
  border-radius: 999px;
  padding: 8px 9px;
  background: transparent;
  color: #647086;
}
.segmented .is-active, .theme-switch input:checked ~ span:last-child, .theme-switch:not(:has(input:checked)) span:first-of-type {
  background: var(--primary);
  color: #fff;
}
.theme-switch input { position: absolute; opacity: 0; }
.socials { display: flex; gap: 7px; }
.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  transition: transform .2s ease, background .2s ease;
}
.socials a:hover { transform: translateY(-2px); background: var(--accent); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.tracking-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 0;
  font: inherit;
}
.tracking-btn, .btn-primary { background: var(--accent); color: #fff; }
.tracking-btn { cursor: default; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px; background: #172033; }

.hero { position: relative; height: min(621px, 68vw); min-height: 460px; overflow: hidden; background: var(--secondary); }
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 0 clamp(22px, 7vw, 110px);
  background-image: linear-gradient(90deg, rgba(6,43,99,.84), rgba(6,43,99,.38), rgba(6,43,99,.12)), var(--bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .7s ease, transform .7s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-copy { max-width: 690px; color: #fff; }
.hero-copy p { color: #ffd4bd; font-weight: 900; text-transform: uppercase; }
.hero-copy h1, .hero-copy h2 { margin: 12px 0; font-size: clamp(38px, 5vw, 70px); line-height: 1.02; letter-spacing: 0; }
.hero-copy span { display: block; max-width: 560px; font-size: 18px; line-height: 1.6; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-dots { position: absolute; left: 50%; bottom: 24px; display: flex; gap: 10px; transform: translateX(-50%); }
.hero-dots button { width: 38px; height: 5px; border: 0; border-radius: 999px; background: rgba(255,255,255,.45); }
.hero-dots .is-active { background: var(--accent); }

.section { padding: 86px clamp(18px, 5vw, 76px); }
.section-heading { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.section-heading p, .talk p { margin: 0 0 8px; color: var(--accent); font-weight: 900; text-transform: uppercase; }
.section-heading h2, .talk h2 { margin: 0; color: var(--secondary); font-size: clamp(30px, 4vw, 48px); letter-spacing: 0; }
body.dark .section-heading h2, body.dark .talk h2 { color: var(--text); }
.section-heading span { display: block; margin-top: 10px; color: var(--muted); }

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: auto;
}
.intro-grid > * { min-height: 310px; border-radius: 8px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.intro-grid > *:hover { transform: translateY(-7px); box-shadow: 0 24px 54px rgba(6, 43, 99, .18); }
.intro-grid img { width: 100%; height: 100%; object-fit: cover; }
.intro-text { display: grid; align-content: center; padding: clamp(26px, 5vw, 54px); background: var(--surface); box-shadow: var(--shadow); }
.intro-text h3, .quality h3 { margin: 0 0 12px; font-size: 28px; color: var(--primary); }
.intro-text p, .quality p { color: var(--muted); line-height: 1.7; }

.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1180px; margin: auto; }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 24px 54px rgba(6, 43, 99, .20); }
.service-card:hover img { transform: scale(1.05); }
.service-card img { width: 100%; height: 190px; object-fit: cover; }
.service-card h3 { margin: 22px 22px 8px; color: var(--secondary); }
body.dark .service-card h3 { color: var(--text); }
.service-card p { margin: 0 22px 20px; color: var(--muted); line-height: 1.6; }
.service-card a { display: inline-flex; margin: 0 22px 24px; color: var(--primary); font-weight: 900; }

.company { background: var(--surface); }
.talk { max-width: 850px; margin: 0 auto 42px; text-align: center; }
.quality { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; max-width: 1100px; margin: 0 auto 34px; }
.quality img { width: 100%; height: 340px; object-fit: cover; border-radius: 8px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto 28px; }
.contact-cards a { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); transition: transform .22s ease, border-color .22s ease; }
.contact-cards a:hover { transform: translateY(-5px); border-color: var(--accent); }
.contact-cards svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--primary); color: #fff; fill: currentColor; }
.contact-cards strong { display: block; color: var(--primary); margin-bottom: 8px; }
.contact-cards span { overflow-wrap: anywhere; color: var(--muted); }
.center-btn { margin: auto; width: max-content; }

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; max-width: 1180px; margin: auto; align-items: start; }
.contact-info, .contact-form { padding: clamp(24px, 4vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.contact-info p { display: grid; grid-template-columns: 36px 1fr; gap: 12px; color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; }
.contact-info p svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--primary); color: #fff; fill: currentColor; }
.contact-info iframe { width: 100%; height: 300px; border: 0; border-radius: 8px; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; color: var(--secondary); font-weight: 800; }
body.dark label { color: var(--text); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
textarea { resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.checkbox input { width: auto; }

.site-footer { padding: 56px clamp(18px, 5vw, 76px) 24px; background: var(--secondary); color: #d9e8ff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; max-width: 1180px; margin: auto; }
.footer-grid img { width: 190px; padding: 8px; border-radius: 8px; background: #fff; }
.footer-grid h3 { margin: 0 0 14px; color: #fff; }
.footer-grid a { display: block; margin: 9px 0; color: #d9e8ff; }
.legal { max-width: 1180px; margin: 34px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); text-align: center; font-size: 14px; color: #aac4e8; }
.legal a { color: #d9e8ff; }
.legal a:hover { color: var(--accent); }

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.04); }
.whatsapp-float svg { width: 34px; height: 34px; fill: currentColor; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto auto; }
  .menu-toggle { display: block; justify-self: end; }
  .main-nav, .header-actions {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .site-header.is-open .main-nav, .site-header.is-open .header-actions { display: flex; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { min-height: 92px; }
  .brand img { width: 190px; max-height: 68px; }
  .hero { min-height: 540px; height: auto; }
  .hero-slide { padding: 76px 22px 90px; }
  .intro-grid, .cards-grid, .quality, .contact-cards, .contact-layout, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .intro-grid > * { min-height: 240px; }
  .section { padding-block: 62px; }
  .footer-grid { gap: 26px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
