/* =========================================================
   Bristol Website Design
   Premium single-page stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --white: #ffffff;
  --grey-50: #f8f9fb;
  --grey-100: #f1f3f7;
  --grey-200: #e6e9f0;
  --grey-400: #9aa1ad;
  --grey-500: #6b7280;
  --charcoal: #111111;
  --dark: #222222;
  --gold: #c8a96a;
  --gold-soft: #e7cfa0;
  --gold-deep: #a8894c;
  --blue: #2563eb;

  --text: #1a1c22;
  --text-soft: #565c68;
  --border: rgba(17, 17, 17, 0.08);

  --shadow-sm: 0 2px 8px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 12px 32px -10px rgba(17, 17, 17, 0.14);
  --shadow-lg: 0 30px 70px -24px rgba(17, 17, 17, 0.28);
  --shadow-gold: 0 18px 44px -14px rgba(200, 169, 106, 0.5);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;

  --font-head: "Plus Jakarta Sans", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  font-weight: 800;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

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

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

.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--alt { background: var(--grey-50); }

.text-gradient {
  background: linear-gradient(105deg, var(--gold-deep), var(--gold) 45%, var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad);
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), color .3s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn--lg { --pad: 17px 34px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(120deg, var(--charcoal), var(--dark));
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  isolation: isolate; /* contain the ::after overlay behind the label */
}
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: -1; /* sits above the base fill but below the button label/icon */
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); color: var(--charcoal); }
.btn--primary:hover::after { opacity: 1; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--charcoal);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-md); }

.btn--light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.btn--light:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.22); }

/* Primary CTA on dark sections — gold fill so it stands out against charcoal */
.cta .btn--primary,
.footer .btn--primary {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  color: var(--charcoal);
}
.cta .btn--primary::after,
.footer .btn--primary::after {
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
}
.cta .btn--primary:hover,
.footer .btn--primary:hover { box-shadow: var(--shadow-gold); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft));
  z-index: 1000;
  transition: width .1s linear;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: padding .4s var(--ease);
  padding: 18px 0;
}
/* Frosted scrolled background lives on a pseudo-element, NOT on .nav itself.
   A backdrop-filter on .nav would make it a containing block and trap the
   position:fixed mobile menu inside the nav bar. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.nav--scrolled::before { opacity: 1; }
.nav--scrolled { padding: 12px 0; }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 4px 10px rgba(17,17,17,.15)); }
.brand__lockup { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand__text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}
.brand__tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.brand__accent { color: var(--gold); }
.brand--light .brand__text { color: #fff; }
.brand--light .brand__tag { color: var(--gold); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav__link {
  padding: 9px 12px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-soft);
  position: relative;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__link:hover { color: var(--charcoal); background: rgba(17,17,17,.05); }
.nav__link.is-active { color: var(--charcoal); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}

.nav__cta { margin-left: 6px; }
.nav__cta--mobile { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: 950;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.hero__glow--gold {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(200,169,106,.55), transparent 65%);
  top: -180px; right: -160px;
  animation: floatGlow 14s ease-in-out infinite;
}
.hero__glow--blue {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(37,99,235,.28), transparent 65%);
  bottom: -220px; left: -160px;
  animation: floatGlow 18s ease-in-out infinite reverse;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(17,17,17,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.08); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 60px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c07a;
  box-shadow: 0 0 0 4px rgba(34,192,122,.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34,192,122,0); } }

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  margin: 22px 0 20px;
  letter-spacing: -0.035em;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.trust { display: flex; flex-direction: column; }
.trust strong { font-family: var(--font-head); font-size: 17px; color: var(--charcoal); font-weight: 800; }
.trust__stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.trust__label { font-size: 12.5px; color: var(--grey-500); font-weight: 600; }
.trust__divider { width: 1px; height: 30px; background: var(--border); }

/* Hero visual */
.hero__visual { position: relative; height: 520px; }

.mock {
  position: absolute;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.mock--desktop {
  width: 108%;
  max-width: 560px;
  top: 40px; left: 0;
  animation: floatY 7s ease-in-out infinite;
}
.mock__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: var(--grey-50);
  border-bottom: 1px solid var(--border);
}
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #dfe3ea; }
.mock__bar span:nth-child(1) { background: #ff5f57; }
.mock__bar span:nth-child(2) { background: #febc2e; }
.mock__bar span:nth-child(3) { background: #28c840; }
.mock__url {
  margin-left: 10px;
  flex: 1;
  height: 22px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--grey-400);
  display: flex; align-items: center; justify-content: center;
}
.mock__screen { padding: 18px; }
.mock__nav { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.mock__logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--gold-deep), var(--gold-soft)); }
.mock__navlinks { display: flex; gap: 10px; margin-left: 6px; }
.mock__navlinks i { width: 30px; height: 7px; border-radius: 4px; background: var(--grey-200); }
.mock__btn { margin-left: auto; width: 62px; height: 24px; border-radius: 100px; background: var(--charcoal); }
.mock__hero { display: flex; flex-direction: column; gap: 9px; padding: 4px 2px 18px; }
.mock__h1 { height: 15px; border-radius: 6px; width: 82%; background: linear-gradient(90deg, var(--charcoal), var(--dark)); }
.mock__h1.short { width: 54%; }
.mock__p { height: 8px; border-radius: 5px; width: 92%; background: var(--grey-200); margin-top: 5px; }
.mock__p.short { width: 66%; }
.mock__cta { width: 96px; height: 30px; border-radius: 100px; background: linear-gradient(120deg, var(--gold-deep), var(--gold)); margin-top: 10px; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock__card { height: 66px; border-radius: 12px; background: var(--grey-50); border: 1px solid var(--border); }
.mock__card:nth-child(2) { background: linear-gradient(160deg, #fff, var(--grey-100)); }

.mock--phone {
  width: 168px;
  bottom: -20px; right: -6px;
  padding: 10px;
  border-radius: 30px;
  animation: floatY 7s ease-in-out infinite 1s;
  z-index: 3;
}
.mock__notch {
  width: 54px; height: 6px; border-radius: 100px;
  background: var(--grey-200);
  margin: 2px auto 10px;
}
.mock__phonescreen {
  border-radius: 22px;
  background: var(--grey-50);
  padding: 14px;
  display: flex; flex-direction: column; gap: 9px;
}
.mock__pimg { height: 78px; border-radius: 14px; background: linear-gradient(150deg, var(--gold-soft), var(--gold-deep)); }
.mock__pline { height: 8px; border-radius: 5px; background: var(--grey-200); width: 90%; }
.mock__pline.short { width: 60%; }
.mock__pbtn { height: 26px; width: 100%; border-radius: 100px; background: var(--charcoal); margin: 2px 0; }
.mock__pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock__pgrid i { height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--border); }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* Floating cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-md);
  z-index: 4;
}
.float-card strong { font-family: var(--font-head); font-size: 17px; font-weight: 800; display: block; line-height: 1.1; color: var(--charcoal); }
.float-card span { font-size: 12px; color: var(--grey-500); font-weight: 600; }
.float-card__icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  flex-shrink: 0;
}
.float-card__icon--green { background: linear-gradient(135deg, #10b981, #34d399); }
.float-card__icon--gold { background: linear-gradient(135deg, var(--gold-deep), var(--gold)); }
.float-card--conv { top: 6px; right: 2px; animation: floatY 6s ease-in-out infinite .4s; }
.float-card--speed { bottom: 74px; left: -34px; animation: floatY 6.5s ease-in-out infinite 1.2s; }
.float-card--rating { flex-direction: column; align-items: flex-start; gap: 3px; bottom: -6px; left: 40px; padding: 12px 16px; animation: floatY 7.5s ease-in-out infinite .8s; }
.float-card__stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.float-card--rating span { font-size: 11.5px; }

/* Hero scroll indicator */
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5; }
.hero__mouse {
  display: block; width: 24px; height: 38px;
  border: 2px solid rgba(17,17,17,.25);
  border-radius: 100px;
  position: relative;
}
.hero__mouse span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 7px; border-radius: 4px;
  background: var(--gold);
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ---------- Logo strip ---------- */
.logos { padding: 40px 0 8px; }
.logos__inner { text-align: center; }
.logos__label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-400); font-weight: 700; margin-bottom: 22px; }
.logos__row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px 46px; align-items: center;
}
.logos__item {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: -0.02em;
  color: var(--grey-400);
  opacity: .8;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.logos__item:hover { color: var(--charcoal); opacity: 1; }

/* ---------- Section heads ---------- */
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(44px, 6vw, 68px); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(200,169,106,.12);
  margin-bottom: 18px;
}
.section__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.section__sub { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--text-soft); }
.section__sub--left { max-width: 460px; }

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(200,169,106,.1), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(200,169,106,.4); }
.feature:hover::before { opacity: 1; }
.feature__icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--grey-50), #fff);
  border: 1px solid var(--border);
  color: var(--gold-deep);
  margin-bottom: 18px;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature:hover .feature__icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(150deg, var(--gold-deep), var(--gold));
  color: #fff;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--text-soft); }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
}
.service-card::after {
  content: "";
  position: absolute; left: 30px; right: 30px; bottom: 0;
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(200,169,106,.35); }
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon {
  width: 60px; height: 60px;
  border-radius: 17px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--charcoal), var(--dark));
  color: var(--gold);
  margin-bottom: 20px;
  transition: transform .4s var(--ease);
  box-shadow: var(--shadow-md);
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card:hover .service-card__icon { transform: translateY(-4px) rotate(4deg); }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--text-soft); font-size: 15px; margin-bottom: 18px; }
.service-card__link {
  font-family: var(--font-head);
  font-weight: 700; font-size: 14.5px;
  color: var(--charcoal);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card__link span { transition: transform .3s var(--ease); }
.service-card__link:hover { color: var(--gold-deep); }
.service-card__link:hover span { transform: translateX(5px); }

/* ---------- Portfolio ---------- */
.portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project__thumb {
  position: relative;
  overflow: hidden;
  background: var(--grey-100);
}
.project__thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s var(--ease);
}
.project:hover .project__thumb img { transform: scale(1.045); }

/* Featured wide card */
.project--wide { grid-column: 1 / -1; }
@media (min-width: 761px) {
  .project--wide { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
  .project--wide .project__body { align-self: center; padding: 44px; }
  .project--wide h3 { font-size: 26px; }
}

.project__body { padding: 26px 28px 30px; }
.project__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.project__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--font-head);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(200,169,106,.12);
  padding: 5px 11px; border-radius: 100px;
  white-space: nowrap;
}
.tag--soft { color: var(--text-soft); background: var(--grey-100); }
.project__year {
  font-family: var(--font-head);
  font-weight: 800; font-size: 13px;
  letter-spacing: .08em;
  color: var(--grey-400);
  flex-shrink: 0;
}
.project__body h3 { font-size: 22px; margin-bottom: 8px; }
.project__body p { color: var(--text-soft); font-size: 15px; margin-bottom: 16px; }
.project__link { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.project__link span { transition: transform .3s var(--ease); }
.project__link:hover { color: var(--gold-deep); }
.project__link:hover span { transform: translateX(5px); }

/* ---------- Process timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.timeline__line {
  position: absolute;
  top: 34px; left: 8%; right: 8%;
  height: 2px;
  background: var(--grey-200);
  border-radius: 2px;
}
.timeline__progress {
  position: absolute; inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 2px;
  transition: width 1.2s var(--ease);
}
.step { text-align: center; position: relative; padding-top: 8px; }
.step__num {
  font-family: var(--font-head);
  font-weight: 800; font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.step__icon {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--grey-200);
  color: var(--charcoal);
  position: relative; z-index: 2;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.step__icon svg { width: 26px; height: 26px; }
.step.is-active .step__icon,
.step:hover .step__icon {
  border-color: var(--gold);
  background: linear-gradient(150deg, var(--gold-deep), var(--gold));
  color: #fff;
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-soft); padding: 0 6px; }

/* ---------- Testimonials carousel ---------- */
.carousel { position: relative; max-width: 760px; margin: 0 auto; }
.carousel:focus-visible { outline: none; }
.carousel:focus-visible .carousel__viewport {
  box-shadow: 0 0 0 3px rgba(200,169,106,.35);
  border-radius: var(--radius-lg);
}
/* Clip to a single slide. Vertical padding + equal negative margin lets the
   card shadow breathe top/bottom without revealing neighbouring slides sideways. */
.carousel__viewport {
  overflow: hidden;
  padding: 16px 0;
  margin: -16px 0;
}
.carousel__track {
  display: flex;
  transition: transform .6s var(--ease);
}
.testimonial {
  min-width: 100%;
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}
.carousel__track { align-items: stretch; }
.testimonial__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.testimonial__stars { color: var(--gold); letter-spacing: 3px; font-size: 20px; }
.testimonial__g {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 20px;
  color: #4285F4;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.testimonial__quote {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 26px;
}
.testimonial__author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--a, var(--gold-deep)), var(--b, var(--gold-soft)));
  flex-shrink: 0;
}
.testimonial__author strong { display: block; font-family: var(--font-head); font-size: 16px; color: var(--charcoal); }
.testimonial__author span { font-size: 14px; color: var(--text-soft); }

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.carousel__btn:hover { background: var(--charcoal); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.carousel__dots { display: flex; gap: 9px; }
.carousel__dot {
  width: 9px; height: 9px; border-radius: 100px;
  background: var(--grey-200);
  transition: width .35s var(--ease), background .35s var(--ease);
}
.carousel__dot.is-active { width: 28px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }

/* ---------- Statistics ---------- */
.stats {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--charcoal);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.stats__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(200,169,106,.22), transparent 60%),
    radial-gradient(600px 300px at 85% 100%, rgba(37,99,235,.18), transparent 60%);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat { padding: 10px; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 54px; background: rgba(255,255,255,.12);
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff, var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.stat__label { font-size: 15px; color: rgba(255,255,255,.72); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow-md); border-color: rgba(200,169,106,.35); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-head);
  font-weight: 700; font-size: clamp(16px, 2vw, 18px);
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  width: 22px; height: 22px; flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--gold-deep);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after { width: 2px; height: 14px; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease), padding .4s var(--ease);
}
.faq__item[open] .faq__a { max-height: 320px; }
.faq__a p { padding: 0 26px 24px; color: var(--text-soft); font-size: 15.5px; }

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  padding: clamp(76px, 10vw, 130px) 0;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.cta__glow--1 {
  width: 560px; height: 560px; top: -220px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200,169,106,.5), transparent 62%);
}
.cta__glow--2 {
  width: 460px; height: 460px; bottom: -240px; right: -120px;
  background: radial-gradient(circle, rgba(37,99,235,.35), transparent 62%);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  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(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
}
.cta__title { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 16px; color: #fff; }
.cta__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 34px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.contact__list { list-style: none; margin: 30px 0 26px; display: flex; flex-direction: column; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__ic {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 13px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--gold-deep);
  box-shadow: var(--shadow-sm);
}
.contact__ic svg { width: 22px; height: 22px; }
.contact__k { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-400); font-weight: 700; }
.contact__v { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--charcoal); transition: color .25s var(--ease); }
a.contact__v:hover { color: var(--gold-deep); }

.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.contact__map iframe { display: block; filter: grayscale(.2) contrast(1.05); }

/* Form */
.contact__formwrap {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-lg);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--charcoal); }
.field input, .field textarea, .select-wrap select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-400); }
.field input:focus, .field textarea:focus, .select-wrap select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,169,106,.16);
}
.field input.invalid, .field.invalid input { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.select-wrap__chev { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--grey-500); pointer-events: none; }

.form__grid .field { margin-bottom: 0; }
.form__note { margin-top: 14px; font-size: 14px; font-weight: 600; text-align: center; min-height: 20px; }
.form__note.success { color: #10b981; }
.form__note.error { color: #ef4444; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: rgba(255,255,255,.7); padding: 70px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__tag { font-size: 14.5px; margin: 18px 0 22px; max-width: 320px; }
.footer__col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__col ul a, .footer__col li { font-size: 14.5px; color: rgba(255,255,255,.66); transition: color .25s var(--ease); }
.footer__col ul a:hover { color: var(--gold); }
.footer__cta { margin-top: 20px; padding: 11px 22px; font-size: 14px; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer__bottominner { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.footer__bottom p { font-size: 13.5px; }

/* ---------- Mobile call FAB ---------- */
.callfab {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 800;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 100px;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-gold);
  animation: fabPulse 2.4s ease-in-out infinite;
}
.callfab svg { width: 20px; height: 20px; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 30px -10px rgba(200,169,106,.7), 0 0 0 0 rgba(200,169,106,.5); }
  50% { box-shadow: 0 12px 30px -10px rgba(200,169,106,.7), 0 0 0 12px rgba(200,169,106,0); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
/* Nav switches to the hamburger menu below 1025px — 7 links + CTA need ~1038px
   to fit on one row, so the horizontal nav is only used above that. */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: 40px; }

  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 92px 26px 32px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: -20px 0 60px -20px rgba(17,17,17,.25);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    overflow-y: auto;               /* scroll if links exceed a short (landscape) viewport */
    overscroll-behavior: contain;   /* don't chain scroll to the page behind */
    -webkit-overflow-scrolling: touch;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link { font-size: 17px; padding: 13px 16px; }
  .nav__cta--desktop { display: none; }
  .nav__cta--mobile { display: inline-flex; margin: 12px 0 0; }
  .nav__toggle { display: flex; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  /* Explicit width: children are absolutely positioned, so without a definite
     width this grid item shrink-wraps to 0 and .mock--desktop (width:100%) vanishes. */
  .hero__visual { height: 440px; margin-top: 20px; width: min(520px, 100%); margin-inline: auto; }
  .mock--desktop { width: 100%; left: 50%; transform: translateX(-50%); }
  .mock--desktop { animation: none; }
  .hero__scroll { display: none; }

  .timeline { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .timeline__line { display: none; }

  .contact { grid-template-columns: 1fr; gap: 36px; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .stat:nth-child(2)::after { display: none; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 34px; }

  .callfab { display: inline-flex; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .features { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr; gap: 0; }
  .form__grid .field { margin-bottom: 18px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .testimonial { padding: 30px 24px; }
  .hero__trust { gap: 12px; }
  .trust__divider { display: none; }
  .hero { padding-top: 128px; }
  .hero__title { font-size: clamp(2rem, 7.6vw, 2.6rem); }
  .hero__lead { font-size: 1rem; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 360px; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { height: 400px; }
  .float-card--speed { left: -10px; }
  .float-card--rating { left: 10px; }
  .cta__actions { flex-direction: column; align-items: center; }
  .cta__actions .btn { width: 100%; max-width: 360px; }
  .contact__formwrap { padding: 26px 20px; }
  .section__head { margin-bottom: 42px; }
}

/* Very small phones (e.g. 320–400px) */
@media (max-width: 400px) {
  .container { padding-inline: 16px; }
  .hero__visual { height: 360px; }
  .float-card--speed { display: none; }
  .float-card strong { font-size: 15px; }
  .float-card span { font-size: 11px; }
  .btn--lg { --pad: 15px 24px; font-size: 15px; }
  .testimonial { padding: 26px 20px; }
  .testimonial__quote { font-size: 1.06rem; }
  .contact__formwrap { padding: 22px 16px; }
  .stat__num { font-size: clamp(2.3rem, 11vw, 3rem); }
}

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