/* ==========================================================================
   ROSEWATER BUILDING & OFFICE SERVICES
   Design system — premium, commercial, friendly
   Brand: cyan #09A7DD  |  Ink navy #0A2233
   ========================================================================== */

:root {
  /* Brand */
  --brand: #09A7DD;
  --brand-600: #0790be;
  --brand-700: #0a7299;
  --brand-soft: #e6f6fc;
  --brand-tint: #f2fafd;

  /* Ink / neutrals */
  --ink: #0a2233;          /* deep navy — primary text & dark sections */
  --ink-800: #11324a;
  --ink-700: #244157;
  --slate: #51687a;        /* secondary text */
  --slate-400: #7e91a0;
  --line: #e4ebf0;
  --line-soft: #eef3f6;
  --paper: #ffffff;
  --bg: #f7fafc;
  --bg-2: #eef5f9;

  /* Accent for warmth (sustainability / friendly) */
  --leaf: #34a86a;
  --gold: #e7b53c;

  /* Type */
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  /* Shape & depth — corporate square-cornered look (all radii deliberately 0) */
  --radius: 0;
  --radius-lg: 0;
  --radius-sm: 0;
  --shadow-sm: 0 2px 8px rgba(10, 34, 51, .06);
  --shadow: 0 18px 40px -18px rgba(10, 34, 51, .22);
  --shadow-lg: 0 40px 80px -28px rgba(10, 34, 51, .35);
  --ring: 0 0 0 4px rgba(9, 167, 221, .18);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4.5vw, 60px);
  --section-y: clamp(50px, 6.5vw, 100px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); }
::selection { background: var(--brand); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.35rem); }
h3 { font-size: clamp(1.14rem, 1.7vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.08rem; font-weight: 600; }
p { color: var(--slate); }
strong { color: var(--ink); font-weight: 700; }
.section--dark strong { color: #fff; }

.display-italic { font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 70px); }
.section--dark { background: var(--ink); color: #d6e3ec; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: #9fb6c6; }
.section--soft { background: var(--bg-2); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: flex-start; margin-bottom: 18px;
  font-family: var(--font-sans); font-weight: 800; font-size: .92rem; line-height: 1.4;
  letter-spacing: .13em; text-transform: uppercase; color: var(--brand-700);
}
.section--dark .eyebrow { color: #6fd3f4; }

.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p.lead { margin-top: 16px; font-size: 1.05rem; }

.lead { font-size: 1.08rem; line-height: 1.6; color: var(--ink-700); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --b-bg: var(--brand); --b-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: .98rem; letter-spacing: .005em;
  padding: 15px 26px; background: var(--b-bg); color: var(--b-fg);
  box-shadow: 0 12px 26px -12px rgba(9, 167, 221, .85);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(9, 167, 221, .95); background: var(--brand-600); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.6px var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 12px 26px -14px rgba(0,0,0,.4); }
.btn--light:hover { background: var(--brand-soft); color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.6px rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.6px rgba(255,255,255,.7); }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-700);
  transition: gap .25s var(--ease), color .2s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--brand); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: #6fd3f4; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.topbar {
  background: var(--ink); color: #b9cdda; font-size: .82rem; font-weight: 600;
  letter-spacing: .01em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 18px; }
.topbar a { color: #cfe0eb; display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; color: var(--brand); }
.topbar__accreds { display: flex; gap: 18px; align-items: center; }
.topbar__contact { display: flex; gap: 22px; align-items: center; }
@media (max-width: 760px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s, background .3s;
}
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(10,34,51,.3); border-color: var(--line-soft); background: rgba(255,255,255,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
@media (max-width: 480px) { .brand img { height: 38px; } }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 10px 16px; font-weight: 650; font-size: .96rem;
  color: var(--ink-800); transition: color .2s, background .2s; display: inline-flex; align-items: center; gap: 6px;
}
.nav__link:hover { color: var(--brand-700); background: var(--brand-tint); }
.nav__link svg { width: 13px; height: 13px; opacity: .6; transition: transform .25s var(--ease); }
.has-dropdown:hover .nav__link svg { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 340px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease) .18s, visibility .2s .18s, transform .2s var(--ease) .18s;
}
/* Invisible bridge over the gap between the trigger and the panel so the
   dropdown doesn't vanish while the mouse travels down to it. */
.dropdown::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; transition: background .18s; }
.dropdown a:hover { background: var(--brand-tint); }
.dropdown__ic { flex-shrink: 0; width: 38px; height: 38px; background: var(--brand-soft); color: var(--brand-700); display: grid; place-items: center; }
.dropdown__ic svg { width: 20px; height: 20px; }
.dropdown__t { display: block; font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.dropdown__d { display: block; margin-top: 2px; font-size: .82rem; color: var(--slate); line-height: 1.4; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); font-size: 1rem; }
.nav__phone svg { width: 17px; height: 17px; color: var(--brand); }
.nav__phone small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-400); white-space: nowrap; }

.nav__toggle { display: none; width: 46px; height: 46px; background: var(--ink); color: #fff; place-items: center; }
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 1040px) {
  .nav__menu, .nav__phone small { display: none; }
  .nav__toggle { display: grid; }
}
@media (max-width: 560px) { .nav__phone { display: none; } }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 80; background: var(--ink); color: #fff;
  padding: 26px var(--gutter); transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav__top img { height: 40px; filter: brightness(0) invert(1); }
.mobile-nav__close { width: 46px; height: 46px; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; }
.mobile-nav__close svg { width: 24px; height: 24px; }
.mobile-nav a.m-link { display: block; padding: 16px 4px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav a.m-sub { display: block; padding: 11px 4px 11px 18px; color: #9fb6c6; font-size: 1rem; font-weight: 600; }
.mobile-nav__cta { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.scroll-lock { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 85% 8%, rgba(9,167,221,.32), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(9,167,221,.16), transparent 60%),
    linear-gradient(155deg, #0a2233 0%, #0c2a3f 45%, #0a2233 100%);
}
.hero__mesh {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(120% 80% at 70% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 70% 20%, #000, transparent 75%);
}
.hero .container { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4.5vw, 60px); align-items: center; padding-block: clamp(40px, 6vw, 82px); }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; padding-block: 44px 56px; } }

.hero__eyebrow { color: #6fd3f4; }
.hero h1 { color: #fff; margin: 20px 0 0; }
.hero h1 .accent { color: var(--brand); }
.hero__sub { margin-top: 20px; font-size: 1.1rem; color: #b6cad8; max-width: 560px; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__trust { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.hero__trust-item { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 650; color: #cfe0eb; }
.hero__trust-item svg { width: 19px; height: 19px; color: var(--brand); flex-shrink: 0; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.2;
  box-shadow: var(--shadow-lg);
  background-color: #0a2233; background-size: cover; background-position: center;
  background-clip: padding-box; transform: translateZ(0);
}
.hero__card::after {
  content: ""; position: absolute; inset: -2px; z-index: 1; pointer-events: none;
  background: linear-gradient(to top,
    rgba(10,34,51,1) 0%,
    rgba(10,34,51,.95) 8%,
    rgba(10,34,51,.82) 17%,
    rgba(10,34,51,.6) 29%,
    rgba(10,34,51,.4) 40%,
    rgba(10,34,51,.23) 52%,
    rgba(10,34,51,.11) 64%,
    rgba(10,34,51,.04) 75%,
    rgba(10,34,51,0) 86%);
}
@media (max-width: 980px) { .hero__card { aspect-ratio: 16 / 11; max-height: 440px; } }
.hero__card-cap {
  position: absolute; left: 24px; bottom: 22px; right: 24px; color: #fff; z-index: 2;
}
.hero__card-cap .k { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.hero__card-cap .s { font-size: .9rem; color: #d6e3ec; }

.float-badge {
  position: absolute; z-index: 4; background: #fff; color: var(--ink); padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 13px; font-weight: 700;
}
.float-badge small { display: block; font-size: .72rem; color: var(--slate); font-weight: 600; }
.float-badge .fb-ic { width: 40px; height: 40px; background: var(--brand-soft); color: var(--brand-700); display: grid; place-items: center; flex-shrink: 0; }
.float-badge .fb-ic svg { width: 22px; height: 22px; }
.float-badge--tl { top: 22px; left: -24px; }
.float-badge--br { bottom: 64px; right: -24px; }
.float-badge .fb-rate { font-size: 1.45rem; font-family: var(--font-display); line-height: 1; }
@media (max-width: 1180px) { .float-badge--tl { left: 14px; } .float-badge--br { right: 14px; } }
/* Hide floating badges below desktop, where the stacked layout leaves no clean room. */
@media (max-width: 1024px) { .float-badge { display: none; } }

/* ==========================================================================
   Marquee / client logos
   ========================================================================== */
.clients { padding-block: clamp(40px, 5vw, 64px); background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.clients__label { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 26px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.marquee__track { display: flex; gap: clamp(36px, 5vw, 70px); width: max-content; animation: marquee 42s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.45rem); color: var(--ink); opacity: .42; white-space: nowrap; letter-spacing: -.01em; transition: opacity .3s, color .3s; }
.marquee__item:hover { opacity: 1; color: var(--brand-700); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Accessible static fallback when motion is reduced — show every name */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 16px 38px; padding-inline: var(--gutter); }
  .marquee__item { opacity: .55; }
}

/* ==========================================================================
   Stat band
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 8px; }
.stat__n { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.section--dark .stat__n { color: #fff; }
.stat__n .unit { color: var(--brand); }
.stat__l { margin-top: 10px; font-size: .92rem; font-weight: 600; color: var(--slate); }
.section--dark .stat__l { color: #9fb6c6; }

/* ==========================================================================
   Cards / services
   ========================================================================== */
.card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }

.svc-card { display: flex; flex-direction: column; height: 100%; }
.svc-card__top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.svc-ic { width: 56px; height: 56px; background: var(--brand-soft); color: var(--brand-700); display: grid; place-items: center; flex-shrink: 0; transition: background .3s, color .3s, transform .3s var(--ease); }
.svc-ic svg { width: 28px; height: 28px; }
.svc-card:hover .svc-ic { background: var(--brand); color: #fff; transform: rotate(-6deg) scale(1.05); }
.svc-card h3 { font-size: 1.32rem; }
.svc-card p { font-size: .98rem; margin-top: 2px; }
.svc-card__list { margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card__list li { font-size: .82rem; font-weight: 650; color: var(--ink-700); background: var(--bg-2); padding: 6px 13px; }
.svc-card__foot { margin-top: auto; }

/* Feature / why-choose tiles */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__ic { flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(9,167,221,.12); color: var(--brand-700); }
.section--dark .feature__ic { background: rgba(9,167,221,.18); color: #6fd3f4; }
.feature__ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.22rem; margin-bottom: 7px; }
.feature p { font-size: .98rem; }

/* Tick list */
.ticks { display: grid; gap: 14px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; font-weight: 600; color: var(--ink-700); }
.section--dark .ticks li { color: #cfe0eb; }
.ticks li svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--brand); margin-top: 1px; }
.ticks li span small { display: block; font-weight: 500; color: var(--slate); font-size: .92rem; margin-top: 2px; }
.section--dark .ticks li span small { color: #92a9b9; }

/* ==========================================================================
   Split / director
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split--media-left { grid-template-columns: .95fr 1.05fr; }
@media (max-width: 920px) { .split, .split--media-left { grid-template-columns: 1fr; } }

.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 5.3; box-shadow: var(--shadow);
  background: linear-gradient(135deg, #0c3a55, #09a7dd 150%); background-size: cover; background-position: center;
  background-clip: padding-box; transform: translateZ(0); /* clean rounded-corner clipping */
}
@media (max-width: 920px) { .media-frame { aspect-ratio: 16 / 11; max-height: 440px; } }
.media-frame--tall { aspect-ratio: 4 / 5; }

.quote-chip {
  position: absolute; left: 20px; right: 20px; bottom: 20px; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); padding: 18px 20px; box-shadow: var(--shadow);
}
.quote-chip p { font-family: var(--font-sans); font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.quote-chip .qc-by { margin-top: 8px; font-family: var(--font-sans); font-size: .82rem; font-weight: 700; color: var(--brand-700); }

.signature { font-family: var(--font-script); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--ink); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
@media (max-width: 920px) { .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .t-grid { grid-template-columns: 1fr; } }
.t-card { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.t-card__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 14px; }
.t-card__stars svg { width: 18px; height: 18px; }
.t-card blockquote { margin: 0; }
.t-card p { color: var(--ink-700); font-size: 1rem; line-height: 1.6; }
.t-card__by { margin-top: auto; display: flex; align-items: center; gap: 13px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.t-card__stars + blockquote, .t-card blockquote { margin-bottom: 4px; }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--ink)); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); flex-shrink: 0; }
.t-card__by .n { display: block; font-weight: 800; color: var(--ink); font-size: .95rem; line-height: 1.25; }
.t-card__by .c { display: block; margin-top: 3px; font-size: .84rem; color: var(--slate); line-height: 1.3; }

/* ==========================================================================
   Projects
   ========================================================================== */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 920px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }
.proj {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.3; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #123, #09a7dd 170%); background-size: cover; background-position: center; box-shadow: var(--shadow-sm);
  color: #fff; isolation: isolate;
}
.proj::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,34,51,0) 30%, rgba(10,34,51,.85)); transition: background .3s; }
.proj:hover::after { background: linear-gradient(180deg, rgba(9,167,221,.25) 0%, rgba(10,34,51,.9)); }
.proj__body { padding: 22px; }
.proj__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6fd3f4; margin-bottom: 6px; }
.proj h3 { color: #fff; font-size: 1.25rem; }
.proj p { color: #c6d6e0; font-size: .9rem; margin-top: 4px; }

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink); }
.acc__head .ic { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-700); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s, color .3s; }
.acc__head .ic svg { width: 18px; height: 18px; }
.acc__item.open .acc__head .ic { background: var(--brand); color: #fff; transform: rotate(45deg); }
.acc__panel { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.acc__panel-inner { padding: 0 4px 26px; max-width: 820px; }
.acc__panel-inner p { font-size: 1.02rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 130% at 90% 10%, rgba(9,167,221,.4), transparent 55%), radial-gradient(70% 100% at 0% 100%, rgba(9,167,221,.2), transparent 60%); }
.cta-band__drop { position: absolute; right: -40px; top: -40px; width: 280px; height: 280px; opacity: .14; z-index: -1; color: var(--brand); }
.cta-band h2 { color: #fff; max-width: 660px; }
.cta-band p { color: #b6cad8; margin-top: 14px; max-width: 560px; font-size: 1.1rem; }
.cta-band__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Contact / form
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 16px; margin-top: 30px; }
.contact-info__row { display: flex; gap: 18px; align-items: center; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line-soft); }
.section--dark .contact-info__row { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.contact-info__ic { flex-shrink: 0; width: 48px; height: 48px; background: var(--brand-soft); color: var(--brand-700); display: grid; place-items: center; }
.contact-info__ic svg { width: 22px; height: 22px; }
.contact-info__row .l { display: block; margin-bottom: 5px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); }
.contact-info__row .v { display: block; font-weight: 750; color: var(--ink); font-size: 1.04rem; line-height: 1.45; }
.section--dark .contact-info__row .v { color: #fff; }
.contact-info__row .v a:hover { color: var(--brand); }

.form-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-top: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-700); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); background: var(--bg);
  font: inherit; font-size: .98rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: var(--ring); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.form-note { margin-top: 14px; font-size: .82rem; color: var(--slate); display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .fs-ic { width: 70px; height: 70px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-700); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .fs-ic svg { width: 38px; height: 38px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: #9fb6c6; padding-block: clamp(54px, 7vw, 88px) 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 920px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo { height: 42px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer p { color: #8fa7b8; font-size: .96rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 700; margin-bottom: 20px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { color: #9fb6c6; font-size: .96rem; font-weight: 550; transition: color .2s, padding-left .2s; }
.footer__links a:hover { color: #fff; padding-left: 4px; }
.footer__contact a { color: #cfe0eb; font-weight: 700; }
.footer__contact a:hover { color: var(--brand); }
.footer__accreds { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.accred-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 10px 14px; font-size: .8rem; font-weight: 700; color: #cfe0eb; }
.accred-badge svg { width: 20px; height: 20px; color: var(--brand); }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { width: 42px; height: 42px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #cfe0eb; transition: background .2s, color .2s, transform .2s; }
.footer__social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bar { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(255,255,255,.1); padding-block: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: .85rem; color: #7e95a6; }
.footer__bar a { color: #9fb6c6; }
.footer__bar a:hover { color: #fff; }
.footer__bar-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(110% 120% at 88% 0%, rgba(9,167,221,.3), transparent 55%), linear-gradient(160deg, #0a2233, #0c2a3f 60%, #0a2233); }
.page-hero__mesh { position: absolute; inset: 0; z-index: -1; opacity: .4; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(110% 80% at 75% 10%, #000, transparent 75%); -webkit-mask-image: radial-gradient(110% 80% at 75% 10%, #000, transparent 75%); }
.page-hero__inner { padding-block: clamp(40px, 5.5vw, 78px); max-width: 820px; }
.page-hero h1 { color: #fff; margin-top: 18px; }
.page-hero p { color: #b6cad8; font-size: 1.18rem; margin-top: 20px; max-width: 620px; }
.page-hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.crumbs { display: flex; gap: 9px; align-items: center; font-size: .85rem; font-weight: 600; color: #8fb0c4; }
.crumbs a { color: #cfe0eb; }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* Prose for content-rich pages */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 14px; }
.prose h3 { margin-top: 8px; }
.prose p { font-size: 1.08rem; color: var(--ink-700); }
.prose ul.bullets { display: grid; gap: 12px; }
.prose ul.bullets li { position: relative; padding-left: 30px; color: var(--ink-700); font-size: 1.05rem; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 22px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.step__n { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--brand); line-height: 1; opacity: .9; }
.step h4 { margin: 12px 0 8px; font-family: var(--font-display); font-size: 1.18rem; }
.step p { font-size: .95rem; }

/* Pill / badge */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; background: var(--brand-soft); color: var(--brand-700); font-weight: 700; font-size: .82rem; }
.pill svg { width: 15px; height: 15px; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
/* Hidden state applies ONLY with JS (html.js) so no-JS users always see content.
   A JS failsafe timer guarantees .in is added even if the observer misfires
   (deep links / #anchor loads), and reduced-motion users see everything outright. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; } }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* Back-to-top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 50px; height: 50px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-600); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* Utility */
.text-center { text-align: center; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.hide-mobile { } @media (max-width: 640px) { .hide-mobile { display: none !important; } }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--section-y); }
