/* ==========================================================================
   4Constructions — Design System
   Premium UI for Construction, Design, Survey & Inspection
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette (derived from logo) */
  --navy-900: #0a1f33;
  --navy-800: #0f2942;
  --navy-700: #143456;
  --navy-600: #1c4570;
  --navy-500: #2a5d92;
  --navy-100: #e8eef5;

  --orange-600: #d9641f;
  --orange-500: #ef7a35;
  --orange-400: #f59042;
  --orange-100: #fdeadd;

  --ink: #16202c;
  --slate: #5a6b7b;
  --slate-light: #8a99a8;
  --line: #e6ebf1;
  --surface: #ffffff;
  --bg: #f6f8fb;
  --bg-soft: #eef2f7;

  /* Accent gradients */
  --grad-brand: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  --grad-orange: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-600) 100%);

  /* Typography */
  --font-head: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Spacing & radius */
  --container: 1240px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 32, 51, 0.06);
  --shadow-sm: 0 4px 14px rgba(16, 32, 51, 0.08);
  --shadow-md: 0 12px 30px rgba(16, 32, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 32, 51, 0.16);
  --shadow-orange: 0 14px 30px rgba(217, 100, 31, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--orange-500); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tint { background: var(--bg-soft); }
.section--dark { background: var(--grad-brand); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy-900); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange-600);
  padding: 7px 16px; border-radius: var(--radius-pill);
  background: var(--orange-100);
  border: 1px solid rgba(217, 100, 31, 0.18);
}
.section--dark .eyebrow { background: rgba(245, 144, 66, 0.14); color: var(--orange-400); border-color: rgba(245, 144, 66, 0.25); }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 16px; }
.section-head p { color: var(--slate); font-size: clamp(16px, 2vw, 18px); }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.78); }

.text-accent { color: var(--orange-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(217, 100, 31, 0.45); }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); transform: translateY(-3px); border-color: #fff; }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-900); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-800); transform: translateY(-3px); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.header.is-scrolled { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px) saturate(140%); box-shadow: var(--shadow-sm); }

.brand { display: flex; align-items: center; gap: 12px; z-index: 1100; }
.brand__mark {
  width: 50px; height: 50px; border-radius: 13px;
  object-fit: cover; background: #0c273c; flex-shrink: 0; display: block;
  box-shadow: 0 0 0 1.5px rgba(245, 144, 66, 0.55), var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); box-shadow: 0 0 0 2px rgba(245, 144, 66, 0.8), var(--shadow-md); }
.brand__mark svg { width: 28px; height: 28px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: #fff; transition: color 0.4s var(--ease); }
.brand__name b { color: var(--orange-500); }
.brand__tag { font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); transition: color 0.4s var(--ease); font-weight: 600; white-space: nowrap; }
.header.is-scrolled .brand__name { color: var(--navy-900); }
.header.is-scrolled .brand__tag { color: var(--slate); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.header.is-scrolled .nav a { color: var(--navy-700); }
.header.is-scrolled .nav a:hover { color: var(--navy-900); background: var(--bg-soft); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__cta { padding: 11px 22px; font-size: 14px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer; position: relative; z-index: 1100;
}
.header.is-scrolled .nav-toggle { background: var(--bg-soft); border-color: var(--line); }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.header.is-scrolled .nav-toggle span { background: var(--navy-900); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 18s var(--ease) infinite alternate; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(10, 31, 51, 0.94) 0%, rgba(10, 31, 51, 0.72) 45%, rgba(10, 31, 51, 0.35) 100%),
    linear-gradient(0deg, rgba(10, 31, 51, 0.8) 0%, transparent 40%);
}

.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 10px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px); font-size: 13.5px; font-weight: 500; margin-bottom: 26px;
}
.hero__badge b { background: var(--grad-orange); padding: 4px 11px; border-radius: var(--radius-pill); font-family: var(--font-head); font-size: 12px; font-weight: 700; }
.hero h1 {
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.04;
  margin-bottom: 22px;
  color: #ff8c2a;
  font-weight: 800;
}
.hero h1 .grad { background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(16px, 2.2vw, 19px); color: rgba(255, 255, 255, 0.82); max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__trust { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero__trust-item { display: flex; flex-direction: column; }
.hero__trust-item b { font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1; }
.hero__trust-item span { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }
.hero__trust-sep { width: 1px; height: 38px; background: rgba(255, 255, 255, 0.2); }

/* Hero floating card */
.hero__panel { position: relative; }
.hero__card {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.hero__card p { color: rgba(255, 255, 255, 0.72); font-size: 14px; margin-bottom: 20px; }
.hero__chips { display: flex; flex-direction: column; gap: 12px; }
.hero__chip {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); transition: transform 0.3s var(--ease), background 0.3s;
}
.hero__chip:hover { transform: translateX(6px); background: rgba(255, 255, 255, 0.14); }
.hero__chip-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--grad-orange); display: grid; place-items: center; flex-shrink: 0; }
.hero__chip-ic svg { width: 22px; height: 22px; color: #fff; }
.hero__chip b { display: block; font-family: var(--font-head); font-size: 15px; }
.hero__chip span { font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,0.6), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--orange-500); animation: scrollDot 2s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ---------- Marquee (trust strip) ---------- */
.marquee { background: var(--navy-900); padding: 18px 0; overflow: hidden; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.5); font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: 0.02em; white-space: nowrap; }
.marquee__item svg { width: 18px; height: 18px; color: var(--orange-500); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   About
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__media-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; }
.about__media-main img { width: 100%; height: 100%; object-fit: cover; }
.about__media-sub {
  position: absolute; bottom: -28px; right: -22px; width: 46%;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid #fff; aspect-ratio: 4 / 3;
}
.about__media-sub img { width: 100%; height: 100%; object-fit: cover; }
.about__exp {
  position: absolute; top: -26px; left: -26px;
  background: var(--grad-orange); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-orange); text-align: center;
}
.about__exp b { font-family: var(--font-head); font-size: 38px; font-weight: 800; line-height: 1; display: block; }
.about__exp span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.9; }

.about__body h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 16px 0 18px; }
.about__body > p { color: var(--slate); margin-bottom: 24px; font-size: 17px; }
.about__list { display: grid; gap: 16px; margin-bottom: 32px; }
.about__list li { display: flex; gap: 14px; align-items: flex-start; }
.about__list-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--navy-100); color: var(--navy-700); display: grid; place-items: center; flex-shrink: 0; }
.about__list-ic svg { width: 17px; height: 17px; }
.about__list b { font-family: var(--font-head); font-size: 16px; color: var(--navy-900); }
.about__list p { font-size: 14.5px; color: var(--slate); }

/* ==========================================================================
   Stats / Counters
   ========================================================================== */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  text-align: center; padding: 36px 20px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease), background 0.4s; backdrop-filter: blur(4px);
}
.stat:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.09); }
.stat__num { font-family: var(--font-head); font-size: clamp(40px, 5vw, 58px); font-weight: 800; line-height: 1; background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__num sup { font-size: 0.5em; vertical-align: super; }
.stat__label { margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.78); font-weight: 500; }

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-orange); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature__ic { width: 60px; height: 60px; border-radius: var(--radius); background: var(--navy-100); display: grid; place-items: center; margin-bottom: 22px; transition: background 0.4s, transform 0.4s var(--ease); }
.feature__ic svg { width: 30px; height: 30px; color: var(--navy-700); transition: color 0.4s; }
.feature:hover .feature__ic { background: var(--grad-brand); transform: rotate(-6deg) scale(1.05); }
.feature:hover .feature__ic svg { color: var(--orange-500); }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--slate); font-size: 15px; }

/* ==========================================================================
   Core Principles
   ========================================================================== */
.principles__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 5vw, 70px); align-items: center; }
.principles__intro h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 16px 0 18px; }
.principles__intro p { color: var(--slate); font-size: 17px; }
.principle {
  display: flex; gap: 20px; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.principle + .principle { margin-top: 16px; }
.principle:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
.principle__no { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--orange-500); flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--orange-100); display: grid; place-items: center; }
.principle h4 { font-size: 18px; margin-bottom: 6px; }
.principle p { color: var(--slate); font-size: 14.5px; }

/* ==========================================================================
   Services
   ========================================================================== */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.service:hover .service__media img { transform: scale(1.1); }
.service__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 31, 51, 0.5), transparent 55%); }
.service__ic {
  position: absolute; bottom: -22px; left: 22px; z-index: 2;
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad-orange);
  display: grid; place-items: center; box-shadow: var(--shadow-orange);
}
.service__ic svg { width: 26px; height: 26px; color: #fff; }
.service__body { padding: 34px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.service__body h3 { font-size: 19px; margin-bottom: 9px; }
.service__body p { color: var(--slate); font-size: 14.5px; margin-bottom: 18px; flex: 1; }
.service__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy-700); transition: gap 0.3s, color 0.3s; }
.service__link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.service:hover .service__link { color: var(--orange-600); gap: 12px; }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 20px; }
.work {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.work--tall { grid-row: span 2; }
.work--wide { grid-column: span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 31, 51, 0.88) 0%, rgba(10, 31, 51, 0.1) 55%, transparent 100%); opacity: 0.65; transition: opacity 0.4s; }
.work:hover img { transform: scale(1.08); }
.work:hover::after { opacity: 0.95; }
.work__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px; transform: translateY(10px); transition: transform 0.4s var(--ease); }
.work:hover .work__info { transform: translateY(0); }
.work__cat { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-400); margin-bottom: 6px; }
.work__info h3 { color: #fff; font-size: 21px; }
.work__info p { color: rgba(255, 255, 255, 0.7); font-size: 13.5px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.4s; }
.work:hover .work__info p { max-height: 60px; opacity: 1; margin-top: 6px; }
.work__arrow { position: absolute; top: 22px; right: 22px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.25); display: grid; place-items: center; opacity: 0; transform: scale(0.8) rotate(-30deg); transition: all 0.4s var(--ease); }
.work:hover .work__arrow { opacity: 1; transform: scale(1) rotate(0); }
.work__arrow svg { width: 18px; height: 18px; color: #fff; }

/* ==========================================================================
   Process
   ========================================================================== */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { text-align: center; position: relative; }
.step__num { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--navy-800); position: relative; z-index: 2; transition: all 0.4s var(--ease); }
.step:hover .step__num { background: var(--grad-orange); color: #fff; border-color: transparent; transform: translateY(-6px) scale(1.05); box-shadow: var(--shadow-orange); }
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 14px; padding: 0 8px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi { position: relative; }
.testi__viewport { overflow: hidden; }
.testi__track { display: flex; transition: transform 0.6s var(--ease); }
.testi__slide { min-width: 100%; padding: 0 4px; }
.testi__card {
  max-width: 820px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px); box-shadow: var(--shadow-md);
}
.testi__quote { width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 16px; background: var(--orange-100); display: grid; place-items: center; }
.testi__quote svg { width: 28px; height: 28px; color: var(--orange-600); }
.testi__stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 18px; }
.testi__stars svg { width: 20px; height: 20px; color: #f5a623; }
.testi__text { font-family: var(--font-head); font-size: clamp(18px, 2.4vw, 24px); line-height: 1.5; color: var(--navy-900); font-weight: 500; margin-bottom: 28px; }
.testi__person { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testi__avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.testi__avatar--ph { background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.testi__meta { text-align: left; }
.testi__meta b { font-family: var(--font-head); font-size: 16px; color: var(--navy-900); display: block; }
.testi__meta span { font-size: 13.5px; color: var(--slate); }
.testi__nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 32px; }
.testi__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: all 0.3s var(--ease); }
.testi__btn:hover { background: var(--navy-800); border-color: var(--navy-800); }
.testi__btn:hover svg { color: #fff; }
.testi__btn svg { width: 20px; height: 20px; color: var(--navy-800); transition: color 0.3s; }
.testi__dots { display: flex; gap: 8px; }
.testi__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); cursor: pointer; transition: all 0.3s; border: none; padding: 0; }
.testi__dot.is-active { width: 28px; border-radius: 5px; background: var(--grad-orange); }

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner { position: relative; overflow: hidden; }
.cta-banner__inner {
  background: var(--grad-brand); border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-banner__inner::before { content: ""; position: absolute; top: -40%; right: -10%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(239, 122, 53, 0.35), transparent 65%); }
.cta-banner__inner::after { content: ""; position: absolute; bottom: -60%; left: -8%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(42, 93, 146, 0.5), transparent 65%); }
.cta-banner h2 { color: #fff; font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 14px; position: relative; }
.cta-banner p { color: rgba(255, 255, 255, 0.78); position: relative; max-width: 480px; }
.cta-banner__actions { display: flex; flex-direction: column; gap: 14px; position: relative; }
.cta-banner__actions .btn { width: 100%; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
.contact__info h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 16px 0 16px; }
.contact__info > p { color: var(--slate); margin-bottom: 30px; }
.contact__cards { display: grid; gap: 16px; margin-bottom: 30px; }
.contact__card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.contact__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact__card-ic { width: 50px; height: 50px; border-radius: 13px; background: var(--navy-100); color: var(--navy-700); display: grid; place-items: center; flex-shrink: 0; }
.contact__card-ic svg { width: 24px; height: 24px; }
.contact__card span { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-light); font-weight: 600; }
.contact__card b { font-family: var(--font-head); font-size: 16px; color: var(--navy-900); }
.contact__socials { display: flex; gap: 12px; }
.contact__social { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; transition: all 0.3s var(--ease); }
.contact__social:hover { background: var(--grad-brand); transform: translateY(-4px); border-color: transparent; }
.contact__social svg { width: 20px; height: 20px; color: var(--navy-700); transition: color 0.3s; }
.contact__social:hover svg { color: #fff; }

/* Form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-md); }
.form-tabs { display: flex; gap: 8px; padding: 6px; background: var(--bg-soft); border-radius: var(--radius-pill); margin-bottom: 28px; }
.form-tab { flex: 1; padding: 11px; border: none; background: transparent; border-radius: var(--radius-pill); font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--slate); cursor: pointer; transition: all 0.3s var(--ease); }
.form-tab.is-active { background: var(--surface); color: var(--navy-900); box-shadow: var(--shadow-xs); }
.form-panel { display: none; }
.form-panel.is-active { display: block; animation: fadeIn 0.4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-800); margin-bottom: 7px; font-family: var(--font-head); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange-500); background: #fff; box-shadow: 0 0 0 4px rgba(239, 122, 53, 0.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-light); }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--slate-light); text-align: center; margin-top: 14px; }

.contact__map { margin-top: 26px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(0.15); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.7); padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin: 20px 0; font-size: 14.5px; max-width: 320px; }
.footer__socials { display: flex; gap: 10px; }
.footer__social { width: 42px; height: 42px; border-radius: 11px; background: rgba(255, 255, 255, 0.07); display: grid; place-items: center; transition: all 0.3s var(--ease); }
.footer__social:hover { background: var(--grad-orange); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; color: #fff; }
.footer__col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { font-size: 14.5px; transition: color 0.25s, padding 0.25s; display: inline-flex; align-items: center; gap: 8px; }
.footer__col a:hover { color: var(--orange-400); padding-left: 4px; }
.footer__contact li { display: flex; gap: 12px; font-size: 14.5px; margin-bottom: 14px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--orange-500); flex-shrink: 0; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footer__bottom a:hover { color: var(--orange-400); }

/* ==========================================================================
   Floating actions + Back to top
   ========================================================================== */
.fab { position: fixed; right: 22px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform 0.3s var(--ease); }
.fab:hover { transform: scale(1.1) translateY(-2px); }
.fab svg { width: 28px; height: 28px; color: #fff; }
.fab--wa { bottom: 22px; background: #25d366; }
.fab--call { bottom: 88px; background: var(--grad-orange); }
.fab--wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }

.to-top { position: fixed; bottom: 22px; left: 22px; z-index: 900; width: 48px; height: 48px; border-radius: 14px; background: var(--navy-800); display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.35s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; color: #fff; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .brand__tag { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__panel { max-width: 460px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .principles__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 6px;
    background: rgba(10, 31, 51, 0.98); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: all 0.4s var(--ease);
    padding: 80px 24px 24px;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; display: flex; }
  .nav a { font-size: 22px; color: #fff !important; padding: 12px 24px; }
  .header.is-scrolled .nav a { color: #fff; }
  .about__grid { grid-template-columns: 1fr; gap: 60px; }
  .about__media { max-width: 480px; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .cta-banner__inner { grid-template-columns: 1fr; gap: 28px; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .work--wide { grid-column: span 2; }
  .work--tall { grid-row: span 1; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 30px); }
  .hero__trust { gap: 16px; }
  .hero__trust-sep { display: none; }
  .stats__grid, .why__grid, .services__grid, .process__grid, .footer__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .work--wide { grid-column: span 1; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .about__exp { top: -16px; left: -10px; padding: 14px 16px; }
  .about__exp b { font-size: 28px; }
  .brand__tag { display: none; }
  .fab { width: 52px; height: 52px; }
}
