/* ═══════════════════════════════════════════════
   HAPS SOLUTIONS LDA — v2 Stylesheet
   Light by default · Dark on system preference
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&family=Roboto+Mono:wght@400;500&display=swap');

/* ── LIGHT THEME (default) ── */
:root {
  --bg:          #FFFFFF;
  --bg-soft:     #F5F5F4;
  --bg-card:     #FFFFFF;
  --bg-subtle:   #F0EFED;
  --surface:     #E8E6E2;
  --border:      #E2DFD9;
  --border-strong: #C8C3BB;

  --text:        #1A1917;
  --text-sub:    #4A4844;
  --text-muted:  #7A7773;
  --text-dim:    #A8A5A0;

  /* --ink stays dark in BOTH light and dark mode — used for footer, stats, page heroes */
  --ink:         #0F0E0C;
  --ink-soft:    #1A1917;
  --ink-text:    rgba(255,255,255,0.75);
  --ink-text-dim:rgba(255,255,255,0.4);
  --ink-border:  rgba(255,255,255,0.1);

  --yellow:      #E8A800;
  --yellow-light:#FFF3CC;
  --yellow-dark: #B88200;
  --red:         #C8102E;
  --red-light:   #FDE8EC;
  --red-dark:    #9E0C24;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.10), 0 4px 16px rgba(0,0,0,.07);
  --shadow-xl:   0 32px 80px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08);

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --font-display: 'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Roboto Mono', monospace;

  --nav-bg:      rgba(255,255,255,0.92);
  --hero-overlay: rgba(15,12,8,0.52);
}

/* ── DARK THEME (system preference) ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #111110;
    --bg-soft:     #1A1917;
    --bg-card:     #1E1D1B;
    --bg-subtle:   #2A2826;
    --surface:     #2C2A27;
    --border:      #3A3835;
    --border-strong:#5A5753;

    --text:        #F0EDE8;
    --text-sub:    #C8C3BB;
    --text-muted:  #8A8680;
    --text-dim:    #5A5753;

    /* --ink stays dark even in dark mode */
    --ink:         #0A0908;
    --ink-soft:    #141311;
    --ink-text:    rgba(255,255,255,0.75);
    --ink-text-dim:rgba(255,255,255,0.38);
    --ink-border:  rgba(255,255,255,0.1);

    --yellow:      #F5C400;
    --yellow-light:rgba(245,196,0,0.12);
    --yellow-dark: #FFD84D;
    --red:         #E8193B;
    --red-light:   rgba(232,25,59,0.12);
    --red-dark:    #FF4060;

    --shadow-sm:   0 1px 3px rgba(0,0,0,.4);
    --shadow-md:   0 4px 16px rgba(0,0,0,.5);
    --shadow-lg:   0 16px 48px rgba(0,0,0,.6);
    --shadow-xl:   0 32px 80px rgba(0,0,0,.7);

    --nav-bg:      rgba(17,17,16,0.95);
    --hero-overlay: rgba(0,0,0,0.65);
  }
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body { background:var(--bg); color:var(--text); font-family:var(--font-body); overflow-x:hidden; -webkit-font-smoothing:antialiased; line-height:1.6; }
img { display:block; max-width:100%; }
a { text-decoration:none; color:inherit; }
button { cursor:pointer; font-family:var(--font-body); border:none; background:none; }
ul { list-style:none; }
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--bg-soft); }
::-webkit-scrollbar-thumb { background:var(--yellow); border-radius:var(--radius-full); }
::selection { background:rgba(232,168,0,.25); color:var(--text); }

/* ── LAYOUT ── */
.container { max-width:1280px; margin:0 auto; padding:0 32px; }
@media(max-width:768px){ .container{ padding:0 20px; } }
section { padding:100px 0; }
@media(max-width:768px){ section{ padding:64px 0; } }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-family:var(--font-mono);
  font-size:.7rem;
  color:var(--yellow);
  letter-spacing:.2em;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before {
  content:'';
  display:inline-block;
  width:24px;
  height:2px;
  background:var(--yellow);
  border-radius:2px;
  flex-shrink:0;
}

h2.heading {
  font-family:var(--font-display);
  font-size:clamp(2rem,4vw,3.2rem);
  color:var(--text);
  line-height:1.15;
  font-weight:400;
  margin:12px 0 16px;
}
h2.heading em { font-style:italic; color:var(--yellow); }
h2.heading strong { font-weight:400; color:var(--red); }

.lead {
  color:var(--text-muted);
  font-size:1.05rem;
  line-height:1.75;
  max-width:560px;
  margin-bottom:48px;
}

/* ── BUTTONS ── */
.btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.875rem;
  letter-spacing:.02em;
  padding:13px 24px;
  border-radius:var(--radius-full);
  transition:all .25s cubic-bezier(.23,1,.32,1);
  white-space:nowrap;
}
.btn-primary {
  background:var(--yellow);
  color:#1A1200;
}
.btn-primary:hover { background:var(--yellow-dark); transform:translateY(-2px); box-shadow:0 6px 20px rgba(232,168,0,.35); }
.btn-secondary {
  background:var(--bg-subtle);
  color:var(--text);
  border:1px solid var(--border);
}
.btn-secondary:hover { background:var(--surface); border-color:var(--border-strong); transform:translateY(-2px); }
.btn-ghost {
  color:var(--yellow);
  border:1.5px solid var(--yellow);
  background:transparent;
}
.btn-ghost:hover { background:var(--yellow-light); transform:translateY(-2px); }
.btn-white {
  background:#fff;
  color:#1A1200;
}
.btn-white:hover { background:#f5f0e8; transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.15); }
.btn-group { display:flex; flex-wrap:wrap; gap:12px; }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:.1s; }
.reveal-delay-2 { transition-delay:.18s; }
.reveal-delay-3 { transition-delay:.26s; }
.reveal-delay-4 { transition-delay:.34s; }
.reveal-delay-5 { transition-delay:.42s; }

/* ── TOP BAR ── */
.topbar {
  background:var(--red);
  padding:9px 0;
}
.topbar .container { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.topbar-text { font-family:var(--font-mono); font-size:.68rem; color:rgba(255,255,255,.8); letter-spacing:.14em; text-transform:uppercase; }
.topbar-links { display:flex; align-items:center; gap:20px; }
.topbar-links a { font-family:var(--font-mono); font-size:.68rem; color:#fff; letter-spacing:.1em; display:flex; align-items:center; gap:5px; transition:opacity .2s; }
.topbar-links a:hover { opacity:.8; }

/* ── NAVBAR ── */
.navbar {
  position:sticky;
  top:0;
  z-index:100;
  background:var(--nav-bg);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  transition:box-shadow .3s;
}
.navbar.scrolled { box-shadow:var(--shadow-md); }
.navbar .container { height:76px; display:flex; align-items:center; justify-content:space-between; }

.nav-logo { display:flex; align-items:center; gap:12px; }
.nav-logo-img { width:52px; height:52px; object-fit:contain; flex-shrink:0; }
.nav-logo-svg { width:52px; height:52px; flex-shrink:0; }
.nav-logo-name { font-family:var(--font-display); font-size:1.15rem; color:var(--text); line-height:1; display:block; }
.nav-logo-sub { font-family:var(--font-mono); font-size:.58rem; color:var(--yellow); letter-spacing:.25em; display:block; margin-top:3px; }

.nav-links { display:flex; align-items:center; gap:0; }
.nav-link {
  font-size:.875rem;
  font-weight:500;
  color:var(--text-sub);
  padding:8px 16px;
  border-radius:var(--radius);
  transition:all .2s;
  position:relative;
}
.nav-link:hover, .nav-link.active { color:var(--text); background:var(--bg-subtle); }
.nav-link.active { color:var(--yellow-dark); }

.nav-cta { margin-left:12px; padding:10px 22px; }
.hamburger { display:none; flex-direction:column; gap:5px; padding:6px; }
.hamburger span { display:block; width:22px; height:2px; background:var(--text); border-radius:2px; transition:all .3s; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display:none;
  position:fixed;
  inset:0;
  background:var(--bg);
  z-index:200;
  padding:100px 32px 40px;
  flex-direction:column;
  border-right:1px solid var(--border);
  overflow-y:auto;
}
.mobile-menu.open { display:flex; animation:slideInRight .35s cubic-bezier(.23,1,.32,1); }
.mobile-menu-close { position:absolute; top:24px; right:24px; width:40px; height:40px; border-radius:var(--radius); background:var(--bg-subtle); display:flex; align-items:center; justify-content:center; color:var(--text); font-size:1.2rem; }
.mobile-nav-link { font-family:var(--font-display); font-size:1.8rem; color:var(--text); padding:14px 0; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; transition:color .2s; }
.mobile-nav-link:hover { color:var(--yellow-dark); }
.mobile-nav-cta { margin-top:24px; display:block; text-align:center; padding:16px; }

/* ── HERO ── */
.hero {
  position:relative;
  min-height:92vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:#1A1512;
}
.hero-bg-img {
  position:absolute;
  inset:0;
  background:url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?w=1920&q=85') center/cover no-repeat;
  opacity:.55;
}
.hero-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(110deg, rgba(15,10,5,.88) 45%, rgba(15,10,5,.4) 100%);
}
.hero-noise {
  position:absolute;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events:none;
}
.hero-content { position:relative; z-index:10; width:100%; padding:60px 0; }
.hero-eyebrow { animation:fadeUp .8s .15s ease both; }
.hero-eyebrow .eyebrow { color:rgba(255,220,100,.9); }
.hero-eyebrow .eyebrow::before { background:rgba(255,220,100,.9); }
.hero-h1 {
  font-family:var(--font-display);
  font-size:clamp(3rem,7vw,6.5rem);
  line-height:1.0;
  font-weight:400;
  margin:20px 0 24px;
  color:#fff;
  max-width:800px;
  animation:fadeUp .8s .3s ease both;
}
.hero-h1 em { font-style:italic; color:var(--yellow); display:block; }
.hero-desc { color:rgba(255,255,255,.72); font-size:1.1rem; line-height:1.7; max-width:520px; margin-bottom:36px; animation:fadeUp .8s .45s ease both; }
.hero-btns { animation:fadeUp .8s .6s ease both; }
.hero-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:rgba(255,255,255,.1); border-radius:var(--radius-lg); overflow:hidden; max-width:680px; margin-top:64px; animation:fadeUp .8s .8s ease both; }
.hero-stat { background:rgba(255,255,255,.06); backdrop-filter:blur(8px); padding:24px 20px; }
.hero-stat-val { font-family:var(--font-display); font-size:2.4rem; color:var(--yellow); line-height:1; }
.hero-stat-label { font-family:var(--font-mono); font-size:.62rem; color:rgba(255,255,255,.5); letter-spacing:.15em; text-transform:uppercase; margin-top:6px; }

/* ── CLIENTS TICKER ── */
.clients-bar {
  background:var(--bg-soft);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:22px 0;
  overflow:hidden;
  position:relative;
}
.clients-bar::before, .clients-bar::after {
  content:'';
  position:absolute;
  top:0; bottom:0;
  width:80px;
  z-index:2;
}
.clients-bar::before { left:0; background:linear-gradient(to right, var(--bg-soft), transparent); }
.clients-bar::after { right:0; background:linear-gradient(to left, var(--bg-soft), transparent); }
.clients-track { display:flex; gap:60px; align-items:center; width:max-content; animation:ticker 28s linear infinite; }
.clients-track:hover { animation-play-state:paused; }
.client-name { font-family:var(--font-mono); font-size:.72rem; font-weight:500; color:var(--text-dim); letter-spacing:.18em; text-transform:uppercase; white-space:nowrap; }

/* ── SERVICES GRID ── */
.services-section { background:var(--bg); }
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:var(--border); border-radius:var(--radius-xl); overflow:hidden; margin-top:56px; }
@media(max-width:900px){ .services-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:580px){ .services-grid{ grid-template-columns:1fr; } }
.service-card {
  background:var(--bg-card);
  padding:40px 36px;
  transition:all .4s cubic-bezier(.23,1,.32,1);
  cursor:pointer;
  position:relative;
  overflow:hidden;
}
.service-card::after {
  content:'';
  position:absolute;
  bottom:0; left:0; right:0;
  height:3px;
  background:linear-gradient(90deg, var(--yellow), var(--red));
  transform:scaleX(0);
  transition:transform .4s cubic-bezier(.23,1,.32,1);
  transform-origin:left;
}
.service-card:hover { background:var(--bg-soft); }
.service-card:hover::after { transform:scaleX(1); }
.service-card:hover .service-arrow { transform:translateX(6px); opacity:1; }
.service-icon-wrap {
  width:56px; height:56px;
  background:var(--yellow-light);
  border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:24px;
  transition:background .3s;
}
.service-card:hover .service-icon-wrap { background:rgba(232,168,0,.2); }
.service-icon-wrap.red-icon { background:var(--red-light); }
.service-card:hover .service-icon-wrap.red-icon { background:rgba(200,16,46,.15); }
.service-card h3 { font-family:var(--font-display); font-size:1.3rem; font-weight:400; color:var(--text); margin-bottom:10px; }
.service-card p { font-size:.875rem; color:var(--text-muted); line-height:1.65; }
.service-arrow { color:var(--yellow); margin-top:20px; display:flex; align-items:center; gap:6px; font-size:.8rem; font-weight:600; transition:all .3s; opacity:0; cursor:pointer; text-decoration:none; }
a.service-arrow { display:flex; }
.service-tag { display:inline-block; background:var(--yellow-light); color:var(--yellow-dark); font-family:var(--font-mono); font-size:.6rem; letter-spacing:.12em; text-transform:uppercase; padding:3px 8px; border-radius:var(--radius-full); margin-bottom:12px; }
.service-tag.red { background:var(--red-light); color:var(--red); }

/* ── ABOUT SECTION ── */
.about-section { background:var(--bg-soft); }
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; }
@media(max-width:900px){ .about-grid{ grid-template-columns:1fr; gap:40px; } }
.about-img-stack { position:relative; }
.about-img-main { width:100%; height:520px; object-fit:cover; border-radius:var(--radius-xl); display:block; }
.about-img-badge {
  position:absolute;
  bottom:-24px; right:-24px;
  background:var(--yellow);
  color:#1A1200;
  padding:24px 28px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
}
.about-img-badge-val { font-family:var(--font-display); font-size:2.8rem; line-height:1; }
.about-img-badge-label { font-family:var(--font-mono); font-size:.65rem; letter-spacing:.15em; text-transform:uppercase; margin-top:4px; opacity:.8; }
@media(max-width:900px){ .about-img-badge{ bottom:16px; right:16px; } }
.about-features { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:32px; }
@media(max-width:480px){ .about-features{ grid-template-columns:1fr; } }
.about-feature {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  transition:border-color .3s;
}
.about-feature:hover { border-color:var(--yellow); }
.about-feature-icon { color:var(--yellow); margin-bottom:8px; }
.about-feature h4 { font-size:.9rem; font-weight:600; color:var(--text); margin-bottom:4px; }
.about-feature p { font-size:.8rem; color:var(--text-muted); line-height:1.6; }

/* ── INDUSTRIES SECTION ── */
.industries-section { background:var(--bg); }
.industries-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:56px; }
@media(max-width:900px){ .industries-grid{ grid-template-columns:1fr 1fr; } }
.industry-card {
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:28px 24px;
  background:var(--bg-card);
  transition:all .35s cubic-bezier(.23,1,.32,1);
  position:relative;
  overflow:hidden;
}
.industry-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background:var(--yellow);
  transform:scaleX(0);
  transition:transform .35s;
  transform-origin:left;
}
.industry-card:hover { border-color:var(--yellow); box-shadow:var(--shadow-md); transform:translateY(-4px); }
.industry-card:hover::before { transform:scaleX(1); }
.industry-icon { width:48px; height:48px; background:var(--bg-soft); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; margin-bottom:16px; color:var(--yellow); }
.industry-card h3 { font-size:1rem; font-weight:600; color:var(--text); margin-bottom:6px; }
.industry-card p { font-size:.8rem; color:var(--text-muted); line-height:1.6; }

/* ── STATS STRIP ── */
.stats-strip {
  background:var(--ink);
  padding:72px 0;
  position:relative;
  overflow:hidden;
}
.stats-strip::before {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(232,168,0,.12) 0%, transparent 60%);
  pointer-events:none;
}
.stats-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:2px; background:rgba(255,255,255,.08); border-radius:var(--radius-xl); overflow:hidden; }
@media(max-width:900px){ .stats-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:480px){ .stats-grid{ grid-template-columns:1fr; } }
.stat-item { padding:40px 28px; background:rgba(255,255,255,.04); text-align:center; }
.stat-num { font-family:var(--font-display); font-size:3rem; color:var(--yellow); line-height:1; margin-bottom:8px; }
.stat-desc { font-family:var(--font-mono); font-size:.65rem; color:var(--ink-text-dim); letter-spacing:.15em; text-transform:uppercase; }

/* ── CLIENTS SECTION ── */
.clients-section { background:var(--bg-soft); }
.clients-logos { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-top:48px; }
@media(max-width:900px){ .clients-logos{ grid-template-columns:1fr 1fr 1fr; } }
@media(max-width:480px){ .clients-logos{ grid-template-columns:1fr 1fr; } }

.client-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.client-logo-card img {
    height: 80px;
    width: 100%;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 12px;
}
}
.client-logo-card:hover { border-color:var(--yellow); box-shadow:var(--shadow-sm); }
.client-logo-name { font-family:var(--font-mono); font-size:.72rem; font-weight:500; color:var(--text-muted); letter-spacing:.1em; }
.client-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}

}
/* ── BRANCHES SECTION ── */
.branches-section { background:var(--bg); }
.branches-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:56px; }
@media(max-width:900px){ .branches-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:580px){ .branches-grid{ grid-template-columns:1fr; } }
.branch-card {
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:28px;
  background:var(--bg-card);
  transition:all .3s;
  position:relative;
}
.branch-card.hq { border-color:var(--yellow); background:var(--yellow-light); }
.branch-card.hq .branch-name { color:var(--text); }
.branch-card.hq .branch-detail { color:var(--text-muted); }
.branch-card:hover { border-color:var(--yellow); box-shadow:var(--shadow-md); transform:translateY(-4px); }
.branch-badge { display:inline-block; font-family:var(--font-mono); font-size:.6rem; letter-spacing:.15em; text-transform:uppercase; padding:4px 10px; border-radius:var(--radius-full); background:var(--yellow); color:#1A1200; margin-bottom:16px; font-weight:600; }
.branch-badge.hq-badge { background:var(--yellow-dark); }
.branch-name { font-family:var(--font-display); font-size:1.2rem; color:var(--text); margin-bottom:8px; }
.branch-detail { font-size:.82rem; color:var(--text-muted); display:flex; align-items:flex-start; gap:8px; margin-bottom:6px; }
.branch-detail svg { flex-shrink:0; color:var(--yellow); margin-top:2px; }

/* ── TEAM SECTION ── */
.team-section { background:var(--bg-soft); }
.team-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:56px; }
@media(max-width:900px){ .team-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:480px){ .team-grid{ grid-template-columns:1fr; } }
.team-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; transition:all .35s; }
.team-card:hover { box-shadow:var(--shadow-md); transform:translateY(-4px); border-color:var(--yellow); }
.team-img { width:100%; height:220px; object-fit:cover; object-position:center top; display:block; }
.team-info { padding:20px; }
.team-role { font-family:var(--font-mono); font-size:.62rem; letter-spacing:.15em; text-transform:uppercase; color:var(--yellow-dark); margin-bottom:6px; }
.team-name { font-family:var(--font-display); font-size:1.1rem; color:var(--text); }

/* ── GALLERY SECTION ── */
.gallery-section { background:var(--bg); }
.gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:48px; }
@media(max-width:700px){ .gallery-grid{ grid-template-columns:1fr 1fr; } }
.gallery-item { position:relative; overflow:hidden; border-radius:var(--radius-lg); aspect-ratio:4/3; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.23,1,.32,1); display:block; }
.gallery-item:hover img { transform:scale(1.07); }
.gallery-caption { position:absolute; bottom:0; left:0; right:0; padding:20px 16px 16px; background:linear-gradient(to top, rgba(0,0,0,.75), transparent); color:#fff; font-size:.8rem; font-weight:500; transform:translateY(100%); transition:transform .35s; }
.gallery-item:hover .gallery-caption { transform:translateY(0); }
.gallery-item:first-child { grid-column:span 2; aspect-ratio:unset; height:300px; }

/* ── CONTACT SECTION ── */
.contact-section { background:var(--bg-soft); }
.contact-grid { display:grid; grid-template-columns:5fr 7fr; gap:56px; align-items:start; }
@media(max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-info-stack { display:flex; flex-direction:column; gap:12px; margin-top:32px; }
.contact-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:20px;
  display:flex;
  align-items:center;
  gap:16px;
  transition:all .3s;
}
.contact-card:hover { border-color:var(--yellow); box-shadow:var(--shadow-sm); }
.contact-icon { width:44px; height:44px; background:var(--yellow-light); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--yellow-dark); }
.contact-label { font-family:var(--font-mono); font-size:.6rem; color:var(--text-dim); letter-spacing:.15em; text-transform:uppercase; margin-bottom:3px; }
.contact-val { font-size:.9rem; font-weight:600; color:var(--text); }
.contact-val a { color:var(--text); transition:color .2s; }
.contact-val a:hover { color:var(--yellow-dark); }
.contact-card.wa-card { border-color:rgba(37,211,102,.3); background:rgba(37,211,102,.05); }
.contact-card.wa-card .contact-icon { background:rgba(37,211,102,.12); color:#16a34a; }
.contact-card.wa-card:hover { border-color:rgba(37,211,102,.6); }

/* ── FORM ── */
.form-wrap { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-xl); padding:44px; }
.form-wrap h3 { font-family:var(--font-display); font-size:1.6rem; color:var(--text); margin-bottom:4px; }
.form-sub { color:var(--text-muted); font-size:.875rem; margin-bottom:28px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:600px){ .form-row{ grid-template-columns:1fr; } }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-family:var(--font-mono); font-size:.6rem; letter-spacing:.15em; text-transform:uppercase; color:var(--text-muted); margin-bottom:8px; }
.form-group input, .form-group select, .form-group textarea {
  width:100%;
  background:var(--bg-soft);
  border:1.5px solid var(--border);
  color:var(--text);
  padding:12px 16px;
  border-radius:var(--radius);
  font-family:var(--font-body);
  font-size:.9rem;
  transition:all .25s;
  outline:none;
  appearance:none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color:var(--yellow);
  box-shadow:0 0 0 3px rgba(232,168,0,.12);
  background:var(--bg-card);
}
.form-group input::placeholder, .form-group textarea::placeholder { color:var(--text-dim); }
.form-group select { cursor:pointer; color:var(--text-sub); }
.form-group textarea { resize:vertical; min-height:120px; }
.form-submit { width:100%; padding:15px; font-size:.95rem; font-weight:700; border-radius:var(--radius); cursor:pointer; transition:all .25s; display:flex; align-items:center; justify-content:center; gap:8px; background:var(--yellow); color:#1A1200; border:none; }
.form-submit:hover { background:var(--yellow-dark); transform:translateY(-2px); box-shadow:0 6px 20px rgba(232,168,0,.3); }
.form-submit:disabled { opacity:.7; cursor:not-allowed; transform:none; box-shadow:none; }
.form-success { text-align:center; padding:60px 20px; display:none; }
.form-success .check-icon { width:64px; height:64px; background:var(--yellow-light); border:2px solid var(--yellow); border-radius:var(--radius-full); display:flex; align-items:center; justify-content:center; margin:0 auto 20px; color:var(--yellow-dark); }
.form-success h3 { font-family:var(--font-display); font-size:1.8rem; margin-bottom:8px; color:var(--text); }
.form-success p { color:var(--text-muted); margin-bottom:24px; }

/* ── FOOTER ── */
footer { background:var(--ink); color:var(--ink-text); }
.footer-top { height:4px; background:linear-gradient(90deg, var(--yellow), var(--red), var(--yellow)); }
.footer-main { padding:72px 0 48px; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1.3fr; gap:48px; padding-bottom:48px; border-bottom:1px solid var(--ink-border); }
@media(max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:600px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-logo-row { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand-name { font-family:var(--font-display); font-size:1.15rem; color:#fff; }
.footer-brand-sub { font-family:var(--font-mono); font-size:.58rem; color:var(--yellow); letter-spacing:.25em; }
.footer-about { font-size:.875rem; line-height:1.7; margin-bottom:16px; color:var(--ink-text); }
.footer-tagline { font-family:var(--font-display); font-size:1rem; color:var(--yellow); font-style:italic; }
.footer-col h4 { font-family:var(--font-mono); font-size:.65rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-text-dim); margin-bottom:18px; }
.footer-links li { margin-bottom:10px; }
.footer-links a { font-size:.875rem; color:var(--ink-text); transition:color .2s; }
.footer-links a:hover { color:var(--yellow); }
.footer-contact-row { display:flex; align-items:flex-start; gap:10px; margin-bottom:12px; font-size:.875rem; color:var(--ink-text); }
.footer-contact-row svg { flex-shrink:0; color:var(--yellow); margin-top:2px; }
.footer-contact-row a { color:var(--ink-text); transition:color .2s; }
.footer-contact-row a:hover { color:var(--yellow); }
.footer-contact-row span { color:var(--ink-text); }
.footer-bottom { padding-top:32px; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; }
.footer-copy { font-family:var(--font-mono); font-size:.68rem; color:var(--ink-text-dim); letter-spacing:.08em; }
.footer-website { font-family:var(--font-mono); font-size:.68rem; color:var(--yellow); letter-spacing:.08em; }

/* ── WHATSAPP FAB ── */
.wa-fab { position:fixed; bottom:28px; right:28px; z-index:999; display:flex; align-items:center; }
.wa-fab-label { background:#25d366; color:#fff; font-size:.82rem; font-weight:600; padding:14px 10px 14px 18px; max-width:0; overflow:hidden; white-space:nowrap; transition:max-width .35s cubic-bezier(.23,1,.32,1); border-radius:var(--radius-full) 0 0 var(--radius-full); }
.wa-fab:hover .wa-fab-label { max-width:150px; }
.wa-fab-icon { width:54px; height:54px; background:#25d366; display:flex; align-items:center; justify-content:center; flex-shrink:0; position:relative; border-radius:var(--radius-full); box-shadow:0 4px 16px rgba(37,211,102,.4); }
.wa-pulse { position:absolute; inset:0; background:#25d366; border-radius:var(--radius-full); animation:pulse 2.5s ease-out infinite; }
.wa-fab-icon svg { position:relative; z-index:1; }

/* ── PAGE SYSTEM ── */
.page { display:none; }
.page.active { display:block; }
.page-hero { position:relative; padding:120px 0 80px; overflow:hidden; background:var(--ink); }
.page-hero-bg { position:absolute; inset:0; background-size:cover; background-position:center; opacity:.25; }
.page-hero-overlay { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,.6), var(--ink)); }
.page-hero::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:linear-gradient(90deg, var(--yellow), var(--red)); }
.page-hero-content { position:relative; z-index:10; }
.page-h1 { font-family:var(--font-display); font-size:clamp(3rem,6vw,5.5rem); color:#fff; line-height:1; margin:16px 0 16px; }
.page-h1 em { font-style:italic; color:var(--yellow); }
.page-sub { color:rgba(255,255,255,.65); font-size:1.05rem; max-width:580px; line-height:1.7; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{ opacity:0; transform:translateY(32px); } to{ opacity:1; transform:translateY(0); } }
@keyframes bounce { 0%,100%{ transform:translateX(-50%) translateY(0); } 50%{ transform:translateX(-50%) translateY(8px); } }
@keyframes pulse { 0%{ opacity:.4; transform:scale(1); } 100%{ opacity:0; transform:scale(1.6); } }
@keyframes ticker { from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@keyframes slideInRight { from{ opacity:0; transform:translateX(100%); } to{ opacity:1; transform:translateX(0); } }
@keyframes spin { to{ transform:rotate(360deg); } }

/* ── MISC UTILITIES ── */
.yellow-cta-bar { background:var(--yellow); padding:56px 0; }
.yellow-cta-bar .container { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; }
.yellow-cta-bar h3 { font-family:var(--font-display); font-size:1.8rem; color:#1A1200; }
.yellow-cta-bar p { color:rgba(26,18,0,.65); margin-top:4px; }
/* Buttons inside yellow CTA bar always use dark ink text (yellow bg is always yellow) */
.yellow-cta-bar .btn { color:#1A1200; }

.divider { width:48px; height:3px; background:var(--yellow); border-radius:var(--radius-full); margin-bottom:20px; }

/* Dark mode: ensure service-card border-left accents stay visible */
@media (prefers-color-scheme: dark) {
  .service-card[style*="border-left:3px solid var(--yellow)"] {
    background:var(--bg-card);
  }
  /* Ensure inline dark buttons stay readable */
  a[style*="background:var(--ink)"] {
    background:var(--ink) !important;
    color:#fff !important;
  }
  /* Map section text always white since bg is always dark */
  [style*="background:var(--ink)"] h3,
  [style*="background:var(--ink)"] p { color: rgba(255,255,255,0.75); }
  /* Hero stat section */
  .hero-stat-label { color:rgba(255,255,255,.45); }
  /* Contact icon in dark mode - yellow bg for icon */
  .contact-icon { background:rgba(245,196,0,.15); }
  /* Team role in dark mode - yellow is brighter so use it directly */
  .team-role { color:var(--yellow); }
  /* Page hero overlay uses ink variable */
  .page-hero-overlay { background:linear-gradient(to bottom, rgba(0,0,0,.65), var(--ink)); }
}

/* ── RESPONSIVE ADJUSTMENTS ── */
@media(max-width:768px){
  .topbar { display:none; }
  .nav-links, .nav-cta { display:none; }
  .hamburger { display:flex; }
  .hero-stats { grid-template-columns:1fr 1fr; }
  .hero-h1 { font-size:2.8rem; }
  .clients-logos { grid-template-columns:1fr 1fr; }
  .gallery-item:first-child { grid-column:span 1; height:auto; }
}
.specializations-section{
  padding:100px 0;
  background: var(--bg);
}

.specializations-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:30px;
  margin-top:60px;
}

.specialization-card{
  background: var(--card-bg);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  transition:.3s ease;
}

.specialization-card:hover{
  transform:translateY(-8px);
}

.specialization-card img{
  width:100%;
  height:280px;
  object-fit:cover;
  display:block;
}

.specialization-content{
  padding:24px;
}

.specialization-content h3{
  margin-bottom:12px;
  font-size:1.3rem;
}

.specialization-content p{
  color: var(--text-muted);
}

@media(max-width:992px){
  .specializations-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:768px){
  .specializations-grid{
    grid-template-columns:1fr;
  }
}

.specialization-card img {
    max-width: 300spx;
    width: 180%;
    height: 200px;
}

/* =========================
   CAPABILITIES SECTION
========================= */

.capabilities-section{
     padding:100px 0;
  background: var(--bg);
}

.capabilities-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
    margin-top:60px;
}

.capability-card{
      background: var(--card-bg);
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    transition:.35s;
}

.capability-card:hover{
    transform:translateY(-8px);
}

.capability-card img{
    width:100%;
    height:320px;
    object-fit:cover;
    display:block;
	color: var(--text-muted);
}

.capability-content{
    padding:30px; 
	color: var(--text-muted);
}

.capability-content h3{
    margin-bottom:12px;
    font-size:1.5rem;
}

.capability-content p{
    line-height:1.8;
    color:#666;
}
.about-slider {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 4 / 3;   /* 👈 forces uniform shape */
  overflow: hidden;
  border-radius: 20px;
}

.slides,
.slide {
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}
}

.slide.active {
  display: block;
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 👈 keeps uniform look */
  display: block;
}

.slide.active {
  display: block;
}

/* badge stays on image */
.about-img-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
}

/* buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }