:root {
  --navy: #0b1f33;
  --navy-2: #122b45;
  --green: #18b47b;
  --green-2: #0ea36c;
  --gold: #f2b633;
  --ink: #16233a;
  --muted: #5b6b7f;
  --line: #e6ecf2;
  --bg: #f6f9fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 40, 68, 0.10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Icons (inline SVG via CSS mask) ---------- */
a[data-icon], .ic { display: inline-flex; }
a[data-icon] {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  justify-content: center; align-items: center;
  -webkit-mask: none;
}
a[data-icon] i, a[data-icon]::before,
.ic::before {
  content: "";
  width: 20px; height: 20px;
  background: currentColor; color: #fff;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  display: block;
}
.ic { width: 20px; height: 20px; }
a[data-icon][data-icon="facebook"]::before { -webkit-mask-image: url("/icons/facebook.svg"); mask-image: url("/icons/facebook.svg"); }
a[data-icon][data-icon="twitter"]::before { -webkit-mask-image: url("/icons/twitter.svg"); mask-image: url("/icons/twitter.svg"); }
a[data-icon][data-icon="linkedin"]::before { -webkit-mask-image: url("/icons/linkedin.svg"); mask-image: url("/icons/linkedin.svg"); }
a[data-icon][data-icon="instagram"]::before { -webkit-mask-image: url("/icons/instagram.svg"); mask-image: url("/icons/instagram.svg"); }
a[data-icon][data-icon="youtube"]::before { -webkit-mask-image: url("/icons/youtube.svg"); mask-image: url("/icons/youtube.svg"); }
a[data-icon][data-icon="whatsapp"]::before,
.ic[data-icon="whatsapp"]::before { -webkit-mask-image: url("/icons/whatsapp.svg"); mask-image: url("/icons/whatsapp.svg"); }
.ic[data-icon="phone"]::before { -webkit-mask-image: url("/icons/phone.svg"); mask-image: url("/icons/phone.svg"); }
.ic[data-icon="mail"]::before { -webkit-mask-image: url("/icons/mail.svg"); mask-image: url("/icons/mail.svg"); }
.ic[data-icon="pin"]::before { -webkit-mask-image: url("/icons/pin.svg"); mask-image: url("/icons/pin.svg"); }
.ic[data-icon="doc"]::before { -webkit-mask-image: url("/icons/doc.svg"); mask-image: url("/icons/doc.svg"); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #cfe0ee; font-size: 0.85rem; }
.topbar-inner { display: flex; align-items: center; gap: 24px; padding: 8px 0; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-social { margin-left: auto; display: flex; gap: 6px; }
.topbar-social a[data-icon] { width: 30px; height: 30px; }
.topbar-social a[data-icon]::before { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 44px; height: 44px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.15rem; letter-spacing: 0.04em; color: var(--navy); }
.brand-text small { font-size: 0.68rem; color: var(--green); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 12px; font-size: 0.95rem; font-weight: 500; color: var(--ink); border-radius: 8px; transition: 0.2s; }
.nav a:hover { color: var(--green-2); background: rgba(24,180,123,0.08); }
.nav a.nav-cta { background: var(--green); color: #fff; }
.nav a.nav-cta:hover { background: var(--green-2); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 34px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { height: 3px; background: var(--navy); border-radius: 3px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(120deg, #0b1f33, #0e4a3b); background-size: cover; background-position: center; transition: background-image 0.5s; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(9,28,48,0.92), rgba(11,44,38,0.55)); }
.hero-inner { position: relative; padding: 84px 0 70px; max-width: 780px; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; letter-spacing: 0.02em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; margin-bottom: 18px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { font-size: 1.08rem; color: #d9e7f2; max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 42px; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; cursor: pointer; border: 0; transition: 0.2s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 28px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.7rem; color: var(--gold); }
.stat span { font-size: 0.82rem; color: #c8d9e6; }

/* ---------- Section base ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.kicker { display: inline-block; color: var(--green-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; color: var(--navy); margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.about-content h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); line-height: 1.2; margin: 8px 0 18px; }
.about-content p { color: var(--muted); margin-bottom: 12px; }
.about-content p strong { color: var(--ink); }
.check-list { list-style: none; margin: 18px 0 26px; }
.check-list li { padding: 7px 0 7px 30px; position: relative; color: var(--ink); font-weight: 500; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; }

/* ---------- Image slots ---------- */
.img-slot { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #122b45, #0e4a3b); min-height: 240px; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.img-slot .spinner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; }
.img-slot.is-loading .spinner::after { content: ""; width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); transition: 0.25s; }
.card:hover { transform: translateY(-6px); border-color: rgba(24,180,123,0.35); }
.card-ic { width: 54px; height: 54px; border-radius: 14px; background: rgba(24,180,123,0.12); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--green-2); font-size: 2rem; }
.card h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Team ---------- */
.team { background: var(--bg); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { text-align: center; }
.member .img-slot { min-height: 300px; aspect-ratio: 3/4; }
.member h4 { margin: 14px 0 2px; color: var(--navy); font-size: 1.02rem; }
.member p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery-grid .img-slot[data-tall] { grid-row: span 2; }

/* ---------- Partners ---------- */
.partners { background: var(--bg); }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); text-align: center; box-shadow: 0 4px 12px rgba(12,40,68,0.06); }
.logo-card svg { height: 40px; width: auto; }
.logo-card span { font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: stretch; }
.contact-info h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); margin: 8px 0 14px; }
.contact-info p { color: var(--muted); margin-bottom: 26px; }
.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-item { display: flex; align-items: center; gap: 14px; }
.info-item .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(24,180,123,0.12); color: var(--green-2); flex: 0 0 44px; }
.info-item .ic::before { width: 20px; height: 20px; margin: auto; }
.info-item div { display: flex; flex-direction: column; }
.info-item strong { font-size: 0.92rem; color: var(--navy); }
.info-item span { color: var(--muted); }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 0.96rem; background: var(--bg); transition: 0.2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.form-note { margin-top: 12px; font-size: 0.92rem; min-height: 1.2em; }
.form-note.ok { color: var(--green-2); }
.form-note.err { color: #d0433f; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c9d9e6; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-brand .brand span, .footer-brand a.brand strong { color: #fff; }
.footer-brand .brand-mark { display: block; }
.footer-brand p { font-size: 0.92rem; color: #a9bfce; margin: 16px 0; max-width: 260px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a[data-icon] { background: rgba(255,255,255,0.1); }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-col a, .footer-col span { display: block; color: #a9bfce; font-size: 0.92rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; font-size: 0.85rem; color: #8ea6b5; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar-social, .topbar-item[data-contact tel], .topbar-item[data-contact mail] { display: none; }
  .nav { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--navy); padding: 12px 5%; gap: 2px; display: none; }
  .nav.open { display: flex; }
  .nav a { color: #dce9f2; width: 100%; }
  .nav a.nav-cta { background: var(--green); text-align: center; }
  .menu-toggle { display: inline-flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-grid .img-slot[data-tall] { grid-row: auto; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 0 50px; }
}