/* ==========================================================================
   CODE4TECH SOLUTIONS — IT & Growth Partner for Middle East Businesses
   Design system v4: minimal, single-typeface, liquid glass.
   Default theme is a true white "day" surface; dark is opt-in via a
   toggle and persisted. Frosted, translucent panels float over soft
   ambient color washes — one jade accent carries the brand in both.
   ========================================================================== */

:root {
  /* ---- Surfaces: light (default) ---- */
  --bg: #FFFFFF;
  --bg-rgb: 255, 255, 255;
  --bg-1: #F6F8F7;
  --bg-2: #EBEFED;
  --line: rgba(20, 26, 24, 0.09);
  --line-strong: rgba(20, 26, 24, 0.16);

  /* ---- Text ---- */
  --text: #12181B;
  --text-mute: #55605D;
  --text-faint: #8B928F;

  /* ---- Accent: one hue, everywhere ---- */
  --accent: #0FA598;
  --accent-ink: #0A7A70;
  --accent-soft: rgba(15, 165, 152, 0.10);
  --accent-text: #042420;
  --accent-2: #6D8CFF;
  --accent-shadow: rgba(15, 165, 152, 0.45);

  /* ---- Semantic (used sparingly: form states only) ---- */
  --success: #1E8E5A;
  --success-soft: rgba(30, 142, 90, 0.10);
  --danger: #C9392B;

  /* ---- Type: one quiet, geometric family ---- */
  --font-display: "Outfit", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font: "Outfit", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Rhythm ---- */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 14px;

  /* ---- Liquid glass ---- */
  --glass-bg: rgba(var(--bg-rgb), 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-sheen: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 12px 40px -14px rgba(18, 30, 28, 0.16);
  --glass-blur: 20px;
}

/* ---------------------------------- dark theme ---------------------------------- */
[data-theme="dark"] {
  --bg: #0A0E12;
  --bg-rgb: 10, 14, 18;
  --bg-1: #12171C;
  --bg-2: #1B2127;
  --line: rgba(232, 240, 238, 0.09);
  --line-strong: rgba(232, 240, 238, 0.16);

  --text: #EDF2F0;
  --text-mute: #9BA5A2;
  --text-faint: #616B69;

  --accent: #2FE0CC;
  --accent-ink: #2FE0CC;
  --accent-soft: rgba(47, 224, 204, 0.13);
  --accent-2: #8AA2FF;
  --accent-shadow: rgba(47, 224, 204, 0.4);

  --success: #3FBE82;
  --success-soft: rgba(63, 190, 130, 0.12);
  --danger: #FF6B5C;

  --glass-bg: rgba(var(--bg-rgb), 0.5);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-sheen: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 16px 46px -16px rgba(0, 0, 0, 0.55);
}

/* ---------------------------------- reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

/* signature mark: key words simply switch to the accent color with a thin
   underline — no filled chip, so it reads as emphasis, not a block. */
.hl {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

/* signature mark: an offset color block behind the page's key photographs —
   spent on the hero and the feature split-images only, so it reads as a
   deliberate accent rather than a repeated template effect. */
.framed { position: relative; }
.framed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: 16px;
  transform: translate(14px, 14px);
  z-index: 0;
}
[data-theme="dark"] .framed::before { opacity: 0.85; }
.framed img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.framed > * { position: relative; z-index: 2; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }
main { display: block; overflow: hidden; }

/* ---------------------------------- type scale ---------------------------------- */
.h-xl { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.h-lg { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.h-md { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.h-sm { font-size: 1.1rem; }

.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  color: var(--text-mute);
  max-width: 44ch;
  line-height: 1.6;
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head .lede { margin-top: 10px; }
.section-head .eyebrow { margin-bottom: 10px; }

/* ---------------------------------- buttons ---------------------------------- */
.btn {
  --btn-bg: var(--bg-2);
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid var(--btn-border);
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--accent-text); --btn-border: var(--accent); }
.btn-primary:hover { box-shadow: 0 10px 24px -10px var(--accent-shadow); }

.btn-outline {
  --btn-bg: var(--glass-bg); --btn-fg: var(--text); --btn-border: var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  box-shadow: inset 0 1px 0 var(--glass-sheen);
}
.btn-outline:hover { --btn-bg: var(--bg-1); }

.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  transition: gap 0.25s var(--ease), color 0.25s ease;
}
.text-link svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.text-link:hover { gap: 10px; color: var(--accent-ink); }

/* ---------------------------------- header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb), 0.55);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 -1px 0 var(--glass-sheen);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-mark { width: 24px; height: 24px; object-fit: contain; flex: none; }
.site-header .brand-mark { width: auto; height: 44px; max-width: 180px; }

/* Logo visibility based on theme */
.logo-dark {
  display: none !important;
}
.logo-light {
  display: inline-block !important;
}
[data-theme="dark"] .logo-dark {
  display: inline-block !important;
}
[data-theme="dark"] .logo-light {
  display: none !important;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav #theme-toggle { margin-left: 12px; }
.main-nav a {
  padding: 9px 14px;
  border-radius: var(--r);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-mute);
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: var(--text); background: var(--bg-1); }
.main-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border); color: var(--text-mute);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  box-shadow: inset 0 1px 0 var(--glass-sheen);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  flex: none;
}
.icon-btn:hover { color: var(--text); background: var(--bg-1); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .icon-moon { display: none; }
[data-theme="dark"] .icon-btn .icon-sun { display: none; }
[data-theme="dark"] .icon-btn .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r);
  position: relative;
  z-index: 101;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: absolute;
  left: 12px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 24px; }

.nav-toggle.is-open span {
  opacity: 0;
  transform: scale(0);
}
.nav-toggle.is-open::before {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle.is-open::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .brand { position: relative; z-index: 101; }
  .main-nav { position: fixed; inset: 0; z-index: 99; background: var(--bg) !important; flex-direction: column; justify-content: flex-start; align-items: center; gap: 20px; padding-top: 130px; padding-bottom: 40px; overflow-y: auto; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform 0.4s var(--ease), opacity 0.3s ease, visibility 0.4s; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { font-size: 1.8rem; font-weight: 600; padding: 10px 24px; color: var(--text-mute); transition: color 0.25s ease, transform 0.25s var(--ease); }
  .main-nav a:hover { color: var(--text); transform: scale(1.05); }
  .main-nav a[aria-current="page"] { color: var(--text); font-weight: 700; position: relative; }
  .main-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  
  body.nav-locked { overflow: hidden; }
  body.nav-locked .site-header { background: var(--bg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; }
  .nav-toggle { display: flex; }
  
  .main-nav #theme-toggle { margin-left: 0; }
  
  .header-actions .btn-primary {
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .main-nav.is-open ~ .header-actions .btn-primary {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@media (max-width: 480px) {
  .header-actions .btn-primary { padding: 11px 16px; font-size: 0.86rem; }
}

/* ---------------------------------- footer ---------------------------------- */
.site-footer { background: var(--bg-1); border-top: 1px solid var(--line); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { margin-top: 16px; max-width: 34ch; color: var(--text-mute); font-size: 0.92rem; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--text-mute); transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; color: var(--text-mute); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-col address { font-style: normal; font-size: 0.92rem; line-height: 1.7; color: var(--text-mute); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent-ink); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- hero ---------------------------------- */
/* ---------------------------------- liquid glass ---------------------------------- */
/* ambient light source: sits behind the hero + sticky header so the glass
   panels have real color to refract, the way frosted glass catches light. */
.ambient { position: absolute; inset: -10% -10% auto -10%; height: 720px; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient::before, .ambient::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.30;
}
.ambient::before { top: -220px; left: 4%; background: var(--accent); }
.ambient::after { top: -160px; right: 2%; background: var(--accent-2); opacity: 0.22; }
[data-theme="dark"] .ambient::before, [data-theme="dark"] .ambient::after { opacity: 0.24; }

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-sheen);
}

.hero { position: relative; padding-top: clamp(48px, 7vw, 76px); padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lede { margin-top: 18px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 32px; }

.hero-media { position: relative; aspect-ratio: 5/4.4; margin-right: 14px; margin-bottom: 14px; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: 16px;
  transform: translate(14px, 14px);
  z-index: 0;
}
[data-theme="dark"] .hero-media::before { opacity: 0.85; }
.hero-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.hero-stat-card { position: absolute; left: 20px; bottom: -14px; z-index: 2; border-radius: var(--r); padding: 14px 18px; display: flex; gap: 20px; }

/* shared glass surface for floating panels throughout the site */
.hero-stat-card, .service-card, .value-card, .dept-card, .contact-info, .faq-list, .blog-card {
  background: rgba(var(--bg-rgb), 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-sheen);
  transition: transform 0.25s var(--ease), background 0.25s ease;
}
.hero-stat-card div strong { display: block; font-size: 1.3rem; font-weight: 700; }
.hero-stat-card div span { font-size: 0.76rem; color: var(--text-mute); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow, .hero-copy h1 { order: 1; }
  .hero-media { order: 2; max-width: 520px; margin-inline: auto; }
  .hero-copy .lede, .hero-actions { order: 3; }
  .hero-copy h1 { max-width: none; }
}

/* ---------------------------------- stat row ---------------------------------- */
.stat-row { padding-block: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding-inline: 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat strong { display: block; font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 700; }
.stat span { font-size: 0.84rem; color: var(--text-mute); }
@media (max-width: 780px) { .stat-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; } .stat:nth-child(3) { border-left: none; } }
@media (max-width: 460px) { .stat-grid { grid-template-columns: 1fr; } .stat { border-left: none; padding-left: 0; } }

/* ---------------------------------- service cards ---------------------------------- */
.services {
  padding-block: clamp(64px, 8vw, 110px);
  background: radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.05), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.04), transparent 45%),
              var(--bg-1);
}
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { padding: 26px 22px; border-radius: 16px; }
.service-card:hover {
  transform: translateY(-4px);
  background: rgba(var(--bg-rgb), 0.65) !important;
}
.service-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-icon svg { width: 21px; height: 21px; }
.service-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; color: var(--text-mute); line-height: 1.55; }
@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- process ---------------------------------- */
.process { padding-block: clamp(64px, 8vw, 110px); background: var(--bg-1); }
.process-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-num { font-size: 0.85rem; font-weight: 700; color: var(--accent-ink); margin-bottom: 14px; }
.process-step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: var(--text-mute); }
@media (max-width: 780px) { .process-rail { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 480px) { .process-rail { grid-template-columns: 1fr; } }

/* ---------------------------------- work / portfolio ---------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { display: flex; flex-direction: column; text-decoration: none; }
.work-media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; background: var(--bg-2); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #14151A; font-size: 0.72rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.5); }
.work-body { padding-top: 16px; }
.work-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.work-body p { font-size: 0.88rem; color: var(--text-mute); }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-bg); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); font-weight: 600; font-size: 0.85rem; color: var(--text-mute); transition: all 0.2s ease; }
.filter-btn:hover { border-color: var(--text-mute); color: var(--text); }
.filter-btn.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.work-item[hidden] { display: none; }

@media (max-width: 940px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- split sections ---------------------------------- */
.split { padding-block: clamp(56px, 8vw, 100px); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split-grid.reverse .split-media { order: 2; }
.split-media { position: relative; aspect-ratio: 4/3.1; margin-right: 12px; margin-bottom: 12px; }
.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: 14px;
  transform: translate(12px, 12px);
  z-index: 0;
}
[data-theme="dark"] .split-media::before { opacity: 0.85; }
.split-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.split-copy .eyebrow { margin-bottom: 14px; }
.split-copy p + p { margin-top: 14px; }
.split-copy .lede { margin-top: 14px; }
@media (max-width: 880px) {
  .split-grid { grid-template-columns: 1fr; gap: 32px; }
  .split-copy { display: contents; }
  .split-copy .eyebrow, .split-copy h2 { order: 1; }
  .split-media { order: 2; max-width: 520px; margin-inline: auto; }
  .split-copy > * { order: 3; }
}

/* ---------------------------------- value grid ---------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { padding: 24px; border-radius: 16px; }
.value-card h4 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: var(--text-mute); }
@media (max-width: 780px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- testimonial ---------------------------------- */
.testimonials { padding-block: clamp(64px, 8vw, 110px); background: var(--bg-1); }
.testi-shell { max-width: 760px; }
.testi-track { position: relative; min-height: 180px; }
.testi-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.testi-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.testi-quote { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; }
.testi-who { margin-top: 22px; font-weight: 600; font-size: 0.92rem; }
.testi-who span { display: block; font-weight: 400; color: var(--text-mute); font-size: 0.85rem; margin-top: 2px; }
.testi-dots { display: flex; gap: 8px; margin-top: 30px; }
.testi-dots button { width: 22px; height: 3px; border-radius: 2px; background: var(--line-strong); border: none; padding: 0; transition: background 0.25s ease; }
.testi-dots button.is-active { background: var(--accent); }

/* ---------------------------------- cta band ---------------------------------- */
.cta-band { position: relative; padding-block: clamp(56px, 8vw, 96px); overflow: hidden; }
.cta-band .ambient { height: 100%; inset: -20% -10% auto -10%; }
.cta-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-sheen);
  color: var(--text);
  border-radius: 24px; padding: clamp(36px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.cta-card h2 { color: inherit; max-width: 16ch; }
.cta-card .lede { margin-top: 10px; }

/* ---------------------------------- reveal ---------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
[data-reveal-group].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.02s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.07s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.12s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.17s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.22s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.27s; }
[data-reveal-group].is-visible > *:nth-child(7) { transition-delay: 0.32s; }
[data-reveal-group].is-visible > *:nth-child(8) { transition-delay: 0.37s; }

/* ---------------------------------- page hero (inner pages) ---------------------------------- */
.page-hero { position: relative; padding-top: clamp(44px, 6vw, 68px); padding-bottom: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero .ambient { height: 460px; }
.page-hero-inner { max-width: 700px; }
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent-ink); }

/* ---------------------------------- service rows (services.html) ---------------------------------- */
.service-rows { display: flex; flex-direction: column; }
.service-row { display: flex; align-items: flex-start; gap: 18px; padding-block: 26px; border-top: 1px solid var(--line); }
.service-row:first-child { border-top: none; }
.service-row-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.service-row-icon svg { width: 21px; height: 21px; }
.service-row-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.service-row-body p { font-size: 0.92rem; color: var(--text-mute); max-width: 62ch; }

/* ---------------------------------- department grid ---------------------------------- */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dept-card { padding: 24px; border-radius: 16px; }
.dept-card .dept-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.dept-card .dept-icon svg { width: 18px; height: 18px; }
.dept-card h4 { font-size: 0.96rem; margin-bottom: 6px; }
.dept-card p { font-size: 0.84rem; color: var(--text-mute); }
@media (max-width: 880px) { .dept-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .dept-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- contact page ---------------------------------- */
.contact-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; margin-block: clamp(48px, 7vw, 84px); }
.contact-info { border-radius: 20px; padding: clamp(28px, 4vw, 40px); }
.contact-info h3 { margin-bottom: 8px; }
.contact-info > p { color: var(--text-mute); margin-bottom: 28px; font-size: 0.94rem; }
.contact-card { display: flex; gap: 14px; padding-block: 16px; border-top: 1px solid var(--line-strong); }
.contact-card:first-of-type { border-top: none; }
.contact-card .ci-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--accent-ink); flex: none; }
.contact-card .ci-icon svg { width: 17px; height: 17px; }
.contact-card h5 { font-size: 0.76rem; color: var(--text-faint); margin-bottom: 4px; font-weight: 600; }
.contact-card a, .contact-card p { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.contact-card a:hover { color: var(--accent-ink); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--bg); color: var(--text); font-size: 0.95rem; font-family: var(--font); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .field-error { display: none; color: var(--danger); font-size: 0.8rem; margin-top: 6px; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field-error { display: block; }

.form-status { display: none; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--success-soft); color: var(--success); font-weight: 600; font-size: 0.9rem; margin-top: 16px; }
.form-status.is-visible { display: flex; }
.form-status svg { width: 17px; height: 17px; flex: none; }

@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------------------------------- faq ---------------------------------- */
.faq-list { max-width: 780px; border-radius: 20px; padding: 8px clamp(20px, 3vw, 32px); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.02rem; text-align: left; }
.faq-q .faq-plus { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; position: relative; transition: transform 0.3s var(--ease), background 0.3s ease; }
.faq-q .faq-plus::before, .faq-q .faq-plus::after { content: ""; position: absolute; background: var(--text); transition: transform 0.3s ease, opacity 0.3s ease; }
.faq-q .faq-plus::before { top: 50%; left: 28%; right: 28%; height: 1.5px; transform: translateY(-50%); }
.faq-q .faq-plus::after { left: 50%; top: 28%; bottom: 28%; width: 1.5px; transform: translateX(-50%); }
.faq-item.is-open .faq-plus { background: var(--text); border-color: var(--text); }
.faq-item.is-open .faq-plus::before, .faq-item.is-open .faq-plus::after { background: var(--bg); }
.faq-item.is-open .faq-plus::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding-bottom: 22px; color: var(--text-mute); max-width: 62ch; font-size: 0.94rem; }

/* ---------------------------------- misc ---------------------------------- */
.mt-0 { margin-top: 0 !important; }
.avatar-badge { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-2); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex: none; }

.back-to-top {
  position: fixed; right: 26px; bottom: 92px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; z-index: 60;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.35);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 17px; height: 17px; }

/* ---------------------------------- whatsapp float ---------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 30px -4px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* whatsapp tooltip */
.whatsapp-tooltip {
  position: fixed;
  right: 85px;
  bottom: 28px;
  background: var(--bg-1);
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 10px 32px 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transform: translateX(15px) scale(0.95);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.35s;
  display: flex;
  align-items: center;
  pointer-events: auto;
  white-space: nowrap;
}
.whatsapp-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}
.whatsapp-tooltip-close {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-mute);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.whatsapp-tooltip-close:hover {
  opacity: 1;
}

::selection { background: var(--accent); color: var(--accent-text); }
img[loading="lazy"] { background: var(--bg-2); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-text); padding: 12px 18px; font-weight: 600; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------------------------------- mobile optimizations ---------------------------------- */
@media (max-width: 768px) {
  .hero-media {
    width: calc(100% - 10px);
    margin-right: 10px;
    margin-left: 0;
  }
  .hero-media::before {
    transform: translate(10px, 10px);
  }
  .split-media {
    width: calc(100% - 10px);
    margin-right: 10px;
    margin-left: 0;
  }
  .split-media::before {
    transform: translate(10px, 10px);
  }
}

@media (max-width: 560px) {
  .cta-card {
    padding: 24px 20px;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-media {
    aspect-ratio: auto;
  }
  .hero-stat-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 20px;
    margin-inline: 0;
    justify-content: space-around;
  }
  .service-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---------------------------------- blog ---------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px; }
.blog-card { padding: 32px; border-radius: 16px; display: flex; flex-direction: column; height: 100%; transition: transform 0.25s var(--ease), background 0.25s ease; }
.blog-card:hover { transform: translateY(-4px); background: rgba(var(--bg-rgb), 0.65) !important; }
.blog-card h3 { font-size: 1.35rem; margin-block: 12px 10px; line-height: 1.35; font-weight: 700; color: var(--text); }
.blog-card p { font-size: 0.94rem; color: var(--text-mute); line-height: 1.55; margin-bottom: 24px; flex-grow: 1; }
.blog-card .meta { font-size: 0.8rem; color: var(--accent-ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: flex; gap: 8px; }
.blog-post-content { max-width: 720px; margin-inline: auto; padding-block: 40px 80px; }
.blog-post-content p { font-size: 1.05rem; line-height: 1.65; margin-bottom: 20px; color: var(--text); }
.blog-post-content h2, .blog-post-content h3 { color: var(--text); margin-top: 36px; margin-bottom: 14px; font-weight: 700; }
.blog-post-content h2 { font-size: 1.7rem; }
.blog-post-content h3 { font-size: 1.35rem; }
.blog-post-content ul, .blog-post-content ol { margin-bottom: 24px; padding-left: 20px; color: var(--text); }
.blog-post-content li { font-size: 1.05rem; line-height: 1.6; margin-bottom: 8px; }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } }

