/* ==============================================================
   VALOR - MASTER DESIGN SYSTEM
   --------------------------------------------------------------
   Single stylesheet for the whole website. Sections:
    1. Fonts & design tokens      8. Cards & grids
    2. Reset & base               9. Gallery
    3. Layout helpers            10. Contact page & forms
    4. Buttons & kickers         11. Call-to-action box
    5. Header & navigation       12. Footer & floating buttons
    6. Home hero                 13. Motion
    7. Trust bar, stats, split   14. Responsive & print
   ============================================================== */

/* ---------- 1. Fonts & design tokens ---------- */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin-wght.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #07101f;
  --navy-2: #101d32;
  --navy-3: #16263f;
  --gold: #d9ad45;
  --gold-light: #f0d27f;
  --gold-ink: #86610d;          /* gold for text on light backgrounds (AA contrast) */
  --gold-wash: #fbf3dc;
  --white: #fff;
  --ink: #172033;
  --muted: #5b6779;             /* AA contrast on white and on --soft */
  --soft: #f5f7fa;
  --line: #e1e7ee;
  --success: #1b7f4b;
  --danger: #b42318;
  --focus: #0b57d0;             /* focus ring on light backgrounds */
  --radius: 18px;
  --shadow: 0 20px 55px rgba(7, 16, 31, .12);
  --shadow-sm: 0 8px 25px rgba(15, 25, 45, .05);
  --container: 1180px;
  --gutter: 20px;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: Manrope, Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 80px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .25s ease; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 700; }

/* Keyboard focus: blue ring on light areas, gold ring on dark areas. */
:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
:where(.site-header, .hero, .page-hero, .site-footer, .cta-box, .contact-card, .stats) { --focus: var(--gold-light); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}
.skip-link:focus { top: 14px; }

/* ---------- 3. Layout helpers ---------- */
.container { width: min(var(--container), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section h2, .page-hero h1, .hero h1 {
  font-family: var(--font-head);
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1.12;
}
.section h2 { margin: 10px 0 15px; font-size: clamp(30px, 4vw, 46px); font-weight: 800; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- 4. Buttons & kickers ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker::before { content: ''; width: 30px; height: 2px; background: var(--gold); }
.hero .kicker, .page-hero .kicker, .cta-box .kicker, .contact-card .kicker { color: var(--gold); }

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.btn-primary { background: var(--gold); color: #111827; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-primary:disabled, .btn-primary.is-loading { opacity: .75; cursor: progress; transform: none; }
.btn-outline { border: 1px solid rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .05); }
.btn-outline:hover { background: #fff; color: var(--navy); }
.inline-link { color: var(--gold-ink); font-size: 15px; font-weight: 800; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 16, 31, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: box-shadow .25s ease;
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(7, 16, 31, .9); backdrop-filter: blur(14px); }
}
.site-header.scrolled { box-shadow: 0 12px 35px rgba(0, 0, 0, .22); }
.nav-wrap { min-height: var(--header-h); display: flex; align-items: center; gap: 24px; }

/* The logo file has a light background, so it sits on a matching plate. */
.brand { display: block; margin-right: auto; padding: 7px 12px; border-radius: 9px; background: #f8f8f8; line-height: 0; }
.brand img, .footer-company img { width: auto; height: 36px; }

.header-phone { display: flex; align-items: center; gap: 10px; color: #fff; }
.header-phone small { display: block; color: #9fabc0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.header-phone strong { display: block; font-size: 14px; line-height: 1.3; }
.phone-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(217, 173, 69, .5); border-radius: 50%; color: var(--gold); }
.header-phone:hover .phone-icon { background: var(--gold); color: #111827; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a { padding: 10px 14px; border-radius: 8px; color: #dbe1ec; font-size: 15px; font-weight: 600; }
.main-nav > a:hover, .main-nav > a.active { color: #fff; background: rgba(255, 255, 255, .09); }
.main-nav > a.active:not(.nav-button) { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 0 0; }
.main-nav .nav-button { margin-left: 8px; padding-inline: 20px; background: var(--gold); color: #111827; font-weight: 800; }
.main-nav .nav-button:hover, .main-nav .nav-button.active { background: var(--gold-light); color: #111827; }

.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 10px; background: transparent; flex-direction: column; align-items: center; justify-content: center; }
.menu-toggle:hover { background: rgba(255, 255, 255, .08); }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 3px 0; border-radius: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. Home hero ---------- */
.hero { position: relative; min-height: clamp(560px, 82vh, 720px); display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: 0 0 0 auto; width: min(64%, 840px); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .9; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 10, 20, .92) 0%, rgba(4, 10, 20, .6) 55%, rgba(4, 10, 20, .3) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin-inline: max(var(--gutter), calc((100% - var(--container)) / 2)); width: auto; padding: 100px 0; color: #fff; }
.hero h1 { max-width: 800px; margin: 16px 0 22px; color: #fff; font-size: clamp(38px, 6vw, 68px); font-weight: 800; text-wrap: balance; }
.hero h1 span { color: var(--gold); }
.hero p { max-width: 690px; margin: 0 0 32px; color: #d6deea; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tag { margin-top: 42px; color: #b3bed0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 7. Trust bar, stats, split layouts ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-item { display: flex; align-items: center; gap: 15px; min-height: 100px; padding: 20px 26px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item > i { flex: none; width: 26px; color: var(--gold-ink); font-size: 24px; text-align: center; }
.trust-item strong { display: block; font-size: 15px; line-height: 1.35; }
.trust-item span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }

.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 38px 18px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .09); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--gold); font: 800 clamp(24px, 2.6vw, 34px)/1.1 var(--font-head); overflow-wrap: anywhere; }
.stat span { display: block; margin-top: 10px; color: #b3bed0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.image-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); box-shadow: var(--shadow); }
.image-card > img { width: 100%; aspect-ratio: 1.28; object-fit: cover; }
.image-card.portrait > img { aspect-ratio: 4 / 4.6; object-position: center top; }
.image-badge { position: absolute; left: 20px; bottom: 20px; max-width: calc(100% - 40px); padding: 13px 16px; border-left: 3px solid var(--gold); border-radius: 8px; background: rgba(7, 16, 31, .93); color: #fff; }
.image-badge strong { display: block; font-size: 14px; line-height: 1.4; }
.image-badge span { display: block; color: #b3bed0; font-size: 12px; line-height: 1.5; }
.check-list { list-style: none; margin: 25px 0; }
.check-list li { display: flex; gap: 12px; margin: 13px 0; color: #44516a; font-size: 16px; line-height: 1.6; }
.check-list i { flex: none; margin-top: 5px; color: var(--success); }

/* ---------- 8. Cards & grids ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-6px); border-color: #dcc27c; box-shadow: var(--shadow); }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 14px; background: var(--gold-wash); color: var(--gold-ink); font-size: 23px; }
.service-card h3 { margin-bottom: 10px; color: var(--navy); font: 700 20px/1.3 var(--font-head); }
.service-card p { margin-bottom: 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.service-card > a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: auto; color: var(--gold-ink); font-size: 14px; font-weight: 800; }
.service-card > a:hover { color: #523a05; text-decoration: underline; text-underline-offset: 4px; }

.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.audience { padding: 28px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center; box-shadow: var(--shadow-sm); }
.audience > i { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--gold-wash); color: var(--gold-ink); font-size: 22px; }
.audience h3 { margin-bottom: 8px; color: var(--navy); font: 700 18px/1.3 var(--font-head); }
.audience p { color: var(--muted); font-size: 15px; line-height: 1.65; }

.page-hero { padding: 76px 0 70px; color: #fff; background: linear-gradient(110deg, var(--navy), var(--navy-3)); }
.page-hero h1 { margin: 12px 0 14px; color: #fff; font-size: clamp(36px, 5vw, 56px); font-weight: 800; text-wrap: balance; }
.page-hero p { max-width: 700px; color: #c3cddc; font-size: 18px; }
.breadcrumb { margin-top: 20px; color: #a1aec2; font-size: 14px; }
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.service-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-category { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.service-category:hover { transform: translateY(-3px); border-color: #dcc27c; box-shadow: var(--shadow); }
.service-category > i:first-child { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-wash); color: var(--gold-ink); font-size: 20px; }
.service-category > i:last-child { color: var(--gold-ink); font-size: 14px; }
.service-category strong { display: block; color: var(--navy); font: 700 17px/1.3 var(--font-head); }
.service-category small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-detail { height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.service-detail:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-detail > img { width: 100%; height: 230px; object-fit: cover; }
.service-detail-media { height: 230px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--gold); font-size: 56px; }
.service-detail-body { padding: 28px; }
.service-detail-body h3 { margin-bottom: 10px; color: var(--navy); font: 700 22px/1.3 var(--font-head); }
.service-detail-body p { color: var(--muted); font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.feature > i { color: var(--gold-ink); font-size: 22px; }
.feature h3 { margin: 12px 0 8px; color: var(--navy); font: 700 18px/1.3 var(--font-head); }
.feature p { color: var(--muted); font-size: 15px; }

.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.capability-card { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.capability-card > i { color: var(--gold-ink); font-size: 22px; }
.capability-card h3 { margin: 12px 0 8px; color: var(--navy); font: 700 18px/1.3 var(--font-head); }
.capability-card p { color: var(--muted); font-size: 15px; line-height: 1.65; }

.leadership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.leader-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.leader-card::after { content: ''; position: absolute; right: -25px; top: -25px; width: 100px; height: 100px; border-radius: 50%; background: rgba(217, 173, 69, .1); }
.leader-number { margin-bottom: 18px; color: var(--gold-ink); font: 800 13px/1 var(--font-head); letter-spacing: .08em; }
.leader-card h3 { margin-bottom: 4px; color: var(--navy); font: 700 21px/1.3 var(--font-head); }
.leader-card > span { color: var(--gold-ink); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.leader-card p { margin-top: 15px; color: var(--muted); font-size: 15px; line-height: 1.7; }

.client-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; }
.client-logo { display: grid; min-height: 100px; place-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease, transform .25s ease; }
.client-logo:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.client-logo img { max-height: 68px; object-fit: contain; }

/* ---------- 9. Gallery ---------- */
/* CSS columns keep every photo at its natural proportions (no cropping). */
.gallery-grid { column-count: 3; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin: 0 0 18px; overflow: hidden; border-radius: 16px; background: var(--soft); box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- 10. Contact page & forms ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.contact-card, .contact-form { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.contact-card { color: #fff; background: var(--navy); border-color: var(--navy); }
.contact-card h2 { color: #fff; }
.contact-card > p { color: #bcc6d6; font-size: 16px; }
.contact-line { display: flex; gap: 14px; margin: 24px 0; }
.contact-line > i { flex: none; width: 22px; margin-top: 4px; color: var(--gold); text-align: center; }
.contact-line strong { display: block; color: #9fabc0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.contact-line span, .contact-line a { color: #fff; font-size: 16px; overflow-wrap: anywhere; }
.contact-line a { text-decoration: underline; text-decoration-color: rgba(240, 210, 127, .55); text-underline-offset: 4px; }
.contact-line a:hover { color: var(--gold-light); text-decoration-color: currentColor; }
.whatsapp-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; margin-top: 8px; padding: 0 22px; border-radius: 10px; background: #25d366; color: #06280f; font-size: 15px; font-weight: 800; }
.whatsapp-button:hover { background: #3ee07d; transform: translateY(-2px); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; color: #34415a; font-size: 14px; font-weight: 700; }
.req { color: var(--danger); }
.form-note { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.form-control { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #c9d2de; border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.form-control::placeholder { color: #75819a; }
.form-control:hover { border-color: #a9b5c6; }
.form-control:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(11, 87, 208, .18); }
.form-control[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .1); }
textarea.form-control { min-height: 150px; resize: vertical; }
.field-error { display: none; margin-top: 6px; color: var(--danger); font-size: 14px; font-weight: 600; line-height: 1.45; }
.field-error.is-visible { display: block; }
.char-count { margin-top: 5px; color: var(--muted); font-size: 13px; text-align: right; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-whatsapp-link { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-ink); font-size: 14px; font-weight: 700; }
.form-whatsapp-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.form-alert { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; padding: 15px 16px; border: 1px solid; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.55; }
.form-alert > i { flex: none; margin-top: 3px; font-size: 18px; }
.form-alert.success { background: #eaf8ef; border-color: #b4e2c6; color: #14532e; }
.form-alert.error { background: #fff1f0; border-color: #f1bdb8; color: #8a1c13; }
.form-alert:focus { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Honeypot anti-spam field: invisible to people, tempting to bots. */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ---------- 11. Call-to-action box ---------- */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 44px; border-radius: var(--radius); background: linear-gradient(110deg, var(--navy), var(--navy-3)); }
.cta-box h2 { margin: 8px 0; color: #fff; }
.cta-box p { color: #c3cddc; font-size: 16px; }

/* ---------- 12. Footer & floating buttons ---------- */
.site-footer { padding: 64px 0 28px; background: #050c18; color: #b3bed0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 55px; padding-bottom: 44px; }
.footer-company img { margin-bottom: 18px; padding: 7px 12px; border-radius: 9px; background: #f8f8f8; box-sizing: content-box; }
.footer-company p { max-width: 430px; font-size: 15px; }
.footer-title { margin-bottom: 16px; color: #fff; font: 700 16px/1.3 var(--font-head); }
.site-footer a { display: block; width: fit-content; margin: 9px 0; color: #b3bed0; font-size: 15px; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { font-size: 15px; }
.site-footer p > i, .site-footer a > i { width: 20px; color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 40px; height: 40px; display: grid; place-items: center; margin: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; }
.social-links a > i { width: auto; color: inherit; }
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: #111; }

.floating-whatsapp, .floating-call {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  z-index: 900;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .25);
  font-size: 22px;
}
.floating-whatsapp { bottom: max(20px, env(safe-area-inset-bottom)); background: #25d366; color: #06280f; font-size: 26px; }
.floating-whatsapp:hover { background: #3ee07d; transform: translateY(-2px); }
.floating-call { display: none; bottom: calc(max(20px, env(safe-area-inset-bottom)) + 66px); background: var(--gold); color: #111827; }
.floating-call:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ---------- 13. Motion ---------- */
/* Content is only hidden for the reveal animation when JavaScript is running. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- 14. Responsive & print ---------- */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .floating-call { display: grid; }
  .service-grid, .feature-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; --gutter: 16px; }
  .brand img { height: 30px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 10px var(--gutter) 20px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .3);
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 14px; font-size: 16px; }
  .main-nav > a.active:not(.nav-button) { box-shadow: inset 3px 0 0 var(--gold); border-radius: 8px; }
  .main-nav .nav-button { margin: 8px 0 0; text-align: center; }

  .section { padding: 72px 0; }
  .hero-media { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-overlay { background: linear-gradient(180deg, rgba(4, 10, 20, .8), rgba(4, 10, 20, .93)); }
  .hero-content { padding: 76px 0; }
  .split, .contact-grid, .service-list, .leadership-grid, .feature-grid { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 0; padding-inline: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 30px 10px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .service-category-grid { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-company { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero { min-height: 0; }
  .hero h1 { letter-spacing: -.02em; }
  .hero p { font-size: 16px; }
  .hero-actions > * { width: 100%; }
  .hero-tag { margin-top: 32px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head p, .page-hero p { font-size: 16px; }
  .service-grid, .capability-grid, .audience-grid, .feature-grid.four { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { column-count: 1; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card, .contact-form { padding: 26px 20px; }
  .cta-box { padding: 30px 22px; }
  .cta-box .btn-primary { width: 100%; }
  .service-card, .leader-card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-company { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
  /* Keep the floating buttons from covering the last line of the footer. */
  .site-footer { padding-bottom: 150px; }
  .floating-whatsapp, .floating-call { width: 52px; height: 52px; right: max(16px, env(safe-area-inset-right)); }
  .floating-whatsapp { bottom: max(16px, env(safe-area-inset-bottom)); }
  .floating-call { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); }
}

/* Without JavaScript the mobile menu cannot open, so show the links inline instead. */
@media (max-width: 860px) {
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .main-nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; padding: 0 0 12px; box-shadow: none; border: 0; background: transparent; }
  html:not(.js) .nav-wrap { flex-wrap: wrap; }
  html:not(.js) .main-nav { flex-basis: 100%; }
  html:not(.js) .main-nav .nav-button { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .floating-whatsapp, .floating-call, .hero-actions, .skip-link { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { color: #000; }
}
