/* =====================================================================
   AUTOMATE WITH AGHA — Premium Agency Website
   Design system: dark premium, brand red (#CC0000), glassmorphism,
   subtle grid + glow, circular AH logo medallion.
   ===================================================================== */

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

:root {
  /* Brand */
  --red:        #CC0000;
  --red-bright: #ff2222;
  --red-dark:   #a30000;
  --red-glow:   rgba(204, 0, 0, 0.35);
  --red-soft:   rgba(204, 0, 0, 0.12);

  /* Surfaces (premium near-black / charcoal) */
  --bg:        #0a0a0c;
  --bg-2:      #0e0e11;
  --bg-3:      #131318;
  --bg-light:  #f5f5f5;

  /* Glass */
  --glass:        rgba(255, 255, 255, 0.035);
  --glass-2:      rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --white:   #ffffff;
  --heading: #f6f6f8;
  --text:    #c7c7d0;
  --muted:   #8b8b97;
  --faint:   #6a6a76;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow:    0 24px 60px -20px rgba(0,0,0,0.65);
  --shadow-red: 0 18px 50px -16px rgba(204,0,0,0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
section { position: relative; z-index: 1; }

/* ---------- GLOBAL BACKGROUND EFFECTS ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-fx .grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 80%);
}
.bg-fx .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.bg-fx .glow-1 { top: -180px; left: 50%; transform: translateX(-50%); width: 720px; height: 520px; background: radial-gradient(circle, rgba(204,0,0,0.42), transparent 68%); }
.bg-fx .glow-2 { top: 38%; left: -180px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(204,0,0,0.18), transparent 70%); }
.bg-fx .glow-3 { bottom: -120px; right: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(204,0,0,0.16), transparent 70%); }

/* ---------- LAYOUT HELPERS ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red-bright);
  padding: 7px 14px; border-radius: 100px;
  background: var(--red-soft);
  border: 1px solid rgba(204,0,0,0.28);
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.12; font-weight: 800; color: var(--heading);
  letter-spacing: -0.02em;
}
.section-title .accent { color: var(--red-bright); }
.section-sub {
  margin-top: 18px; font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted); line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem; line-height: 1;
  padding: 15px 26px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg, .btn i { font-size: 1.05em; }
.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff; box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 60px -14px rgba(204,0,0,0.6); }
.btn-ghost {
  background: var(--glass); color: var(--white);
  border-color: var(--glass-border-strong); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--glass-2); border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }
.btn-text {
  color: var(--text); font-weight: 600; font-size: 0.9rem; gap: 7px;
  padding: 8px 2px;
}
.btn-text:hover { color: var(--red-bright); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 32px; font-size: 1rem; }

/* ---------- NAVBAR ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,10,0.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255,255,255,0.07);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.8);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 74px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; padding: 4px; object-fit: contain;
  box-shadow: 0 0 0 1.5px rgba(204,0,0,0.5), 0 0 18px rgba(204,0,0,0.4);
}
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--white); }
.brand-name span { color: var(--red-bright); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; position: relative;
}
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-cta { padding: 11px 20px; font-size: 0.88rem; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--glass-border); background: var(--glass);
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 74px; left: 0; right: 0; z-index: 999;
  background: rgba(8,8,10,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 24px 22px; flex-direction: column; gap: 2px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s; display: flex;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a:not(.btn) {
  color: var(--text); font-size: 1rem; font-weight: 500; padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav .btn { margin-top: 14px; }

/* ---------- HERO ---------- */
.hero { padding: 150px 0 90px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center;
}
.hero-grid > * { min-width: 0; } /* prevent nowrap children from forcing track overflow */
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--glass-border-strong);
  font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 26px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); position: relative; }
.pulse-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red-bright); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 70% { transform: scale(3); opacity: 0; } 100% { opacity: 0; } }

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.85rem); line-height: 1.08;
  font-weight: 800; letter-spacing: -0.025em; color: var(--white);
  overflow-wrap: break-word;
}
.section-title, .price-panel h2, .auto-wrap h2 { overflow-wrap: break-word; }
.hero-title .accent {
  background: linear-gradient(120deg, var(--red-bright), #ff6a6a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: 22px; font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text); max-width: 560px; line-height: 1.72;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-mini { margin-top: 16px; min-height: 44px; }

.hero-trust {
  margin-top: 42px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-wrap: wrap; gap: 22px 30px;
}
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.trust-item i { color: var(--red-bright); font-size: 0.95rem; }

/* FBR registration chip — reads as a credential, not just another feature */
.trust-fbr {
  padding: 6px 14px 6px 11px; border-radius: 100px;
  background: var(--red-soft); border: 1px solid rgba(204,0,0,0.32);
  color: var(--heading); font-weight: 700; letter-spacing: 0.01em;
}

/* ---------- HERO VISUAL: circular logo medallion + floating cards ---------- */
.hero-visual { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; }

.medallion { position: relative; width: 270px; height: 270px; display: grid; place-items: center; }
.medallion .ring {
  position: absolute; border-radius: 50%; inset: 0;
}
.medallion .ring-outer {
  border: 1px dashed rgba(204,0,0,0.45);
  animation: spin 26s linear infinite;
}
.medallion .ring-mid {
  inset: 26px; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 40px rgba(204,0,0,0.12);
  animation: spin-rev 34s linear infinite;
}
.medallion .ring-glow {
  inset: -22px; background: radial-gradient(circle, rgba(204,0,0,0.4), transparent 62%);
  filter: blur(26px); animation: breathe 5s ease-in-out infinite;
}
.medallion .ring-outer::before,
.medallion .ring-outer::after {
  content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red-bright); box-shadow: 0 0 14px var(--red-bright);
}
.medallion .ring-outer::before { top: -4px; left: 50%; transform: translateX(-50%); }
.medallion .ring-outer::after { bottom: -4px; left: 50%; transform: translateX(-50%); background: #fff; box-shadow: 0 0 14px rgba(255,255,255,0.8); }

.logo-badge {
  position: relative; z-index: 2;
  width: 160px; height: 160px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  padding: 26px;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.04), 0 18px 50px -10px rgba(204,0,0,0.55);
}
.logo-badge img { width: 100%; height: 100%; object-fit: contain; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes breathe { 0%,100% { opacity: 0.5; transform: scale(0.95); } 50% { opacity: 0.85; transform: scale(1.08); } }

/* floating glass chips around medallion */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 14px;
  background: rgba(20,20,26,0.72); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow);
  font-size: 0.82rem; font-weight: 600; color: var(--white);
  white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red-bright); font-size: 0.95rem; flex-shrink: 0;
}
.float-card small { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 500; }
.fc-1 { top: 6%;  left: -6%;  animation-delay: 0s; }
.fc-2 { top: 30%; right: -10%; animation-delay: -1.5s; }
.fc-3 { bottom: 20%; left: -12%; animation-delay: -3s; }
.fc-4 { bottom: 2%; right: -2%; animation-delay: -4.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* mini browser mockup chip */
.float-browser {
  position: absolute; z-index: 1; top: -4%; right: 2%;
  width: 200px; border-radius: 14px; overflow: hidden;
  background: #16161c; border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow); animation: floaty 7s ease-in-out infinite; animation-delay: -2s;
  opacity: 0.96;
}
.fb-bar { display: flex; gap: 5px; padding: 9px 12px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.06); }
.fb-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.fb-bar span:first-child { background: var(--red); }
.fb-body { padding: 14px; }
.fb-line { height: 8px; border-radius: 5px; background: rgba(255,255,255,0.09); margin-bottom: 9px; }
.fb-line.w70 { width: 70%; } .fb-line.w90 { width: 90%; } .fb-line.w50 { width: 50%; background: rgba(204,0,0,0.5); }
.fb-thumb { height: 46px; border-radius: 8px; background: linear-gradient(120deg, rgba(204,0,0,0.4), rgba(255,255,255,0.06)); margin-bottom: 12px; }

.scroll-cue {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}
.scroll-cue .mouse { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,0.2); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 3px; background: var(--red-bright); animation: scrollwheel 1.8s ease-in-out infinite; }
@keyframes scrollwheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- SELECTED WORK ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
/* 7 project cards + this one spanning 2 = 9 columns, so the CTA fills the last
   row's remaining two columns instead of leaving a hole on the right.
   Keep the project-card count at a multiple of 3 minus 2 (4, 7, 10 …). */
.work-cta { grid-column: span 2; }
.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-8px); border-color: rgba(204,0,0,0.4); box-shadow: var(--shadow-red); }
.work-shot { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #16161c; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease); }
.work-card:hover .work-shot img { transform: scale(1.06); }
.work-shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,12,0.55), transparent 45%); }
.work-pill {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(8,8,10,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border-strong); color: #fff;
}
.work-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.work-name { font-size: 1.18rem; font-weight: 700; color: var(--white); }
.work-desc { margin-top: 9px; font-size: 0.9rem; color: var(--muted); line-height: 1.6; flex: 1; }
.work-link {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  /* vertical padding keeps this a comfortable tap target on touch devices */
  min-height: 44px; padding: 4px 2px;
  font-size: 0.88rem; font-weight: 700; color: var(--red-bright);
  transition: gap 0.25s;
}
.work-card:hover .work-link { gap: 13px; }

/* ---------- WHAT WE BUILD (services) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
}
.svc-card:hover { transform: translateY(-6px); background: var(--glass-2); border-color: rgba(204,0,0,0.35); }
.svc-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.3rem; color: var(--red-bright); margin-bottom: 18px;
  background: var(--red-soft); border: 1px solid rgba(204,0,0,0.25);
}
.svc-card h3 { font-size: 1.05rem; color: var(--white); font-weight: 700; }
.svc-card p { margin-top: 9px; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ---------- AUTOMATION ADD-ONS ---------- */
.auto-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(204,0,0,0.1), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border-strong); position: relative; overflow: hidden;
}
.auto-wrap::before { content: ''; position: absolute; top: -80px; right: -80px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(204,0,0,0.3), transparent 70%); filter: blur(40px); }
.auto-tag { display:inline-flex; align-items:center; gap:8px; font-size:0.74rem; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color: var(--red-bright); margin-bottom: 16px; }
.auto-wrap h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--white); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.auto-wrap > div:first-child p { margin-top: 16px; color: var(--text); font-size: 1.02rem; }
.auto-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.auto-item {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 13px;
  background: rgba(15,15,20,0.6); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); font-size: 0.9rem; font-weight: 600; color: var(--white);
}
.auto-item i { color: var(--red-bright); width: 20px; text-align: center; }

/* ---------- WHY CHOOSE US ---------- */
/* ---------- FBR REGISTRATION PANEL ----------
   Original brand-coloured badge. No FBR/government logo or seal is used. */
.fbr-panel {
  display: flex; align-items: center; gap: 26px; margin-bottom: 26px;
  padding: 26px 30px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(204,0,0,0.10), var(--glass) 55%);
  border: 1px solid rgba(204,0,0,0.28);
}
.fbr-badge { position: relative; flex: 0 0 auto; width: 84px; height: 84px; display: grid; place-items: center; }
.fbr-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed rgba(204,0,0,0.45);
  animation: fbrSpin 26s linear infinite;
}
.fbr-core {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; gap: 0;
  background: linear-gradient(160deg, var(--red), var(--red-dark));
  box-shadow: var(--shadow-red);
}
.fbr-core i { font-size: 1.15rem; color: #fff; opacity: 0.92; margin-top: -3px; }
.fbr-mark {
  position: absolute; bottom: 11px; font-size: 0.56rem; font-weight: 900;
  letter-spacing: 0.14em; color: #fff;
}
.fbr-copy h3 { font-size: 1.12rem; color: var(--white); font-weight: 800; }
.fbr-copy p { margin-top: 8px; font-size: 0.89rem; color: var(--text); line-height: 1.7; max-width: 70ch; }
.fbr-copy strong { color: var(--heading); font-weight: 700; }
@keyframes fbrSpin { to { transform: rotate(360deg); } }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card {
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(204,0,0,0.35); }
.why-num { font-size: 0.78rem; font-weight: 800; color: var(--red-bright); letter-spacing: 0.1em; }
.why-card h3 { margin-top: 12px; font-size: 1.02rem; color: var(--white); font-weight: 700; line-height: 1.3; }
.why-card p { margin-top: 9px; font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

/* ---------- PROCESS ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border); overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(204,0,0,0.35); }
.step-num {
  font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(204,0,0,0.55);
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.08rem; color: var(--white); font-weight: 700; }
.step-card p { margin-top: 10px; font-size: 0.88rem; color: var(--muted); line-height: 1.62; }
.step-card .step-ico { position: absolute; top: 26px; right: 24px; font-size: 1.2rem; color: rgba(255,255,255,0.14); }

/* ---------- WHAT'S INCLUDED ---------- */
.incl-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.incl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.incl-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border); font-size: 0.9rem; color: var(--text); font-weight: 500;
}
.incl-item i { color: var(--red-bright); margin-top: 3px; }
.incl-note {
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(204,0,0,0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(204,0,0,0.3);
}
.incl-note h4 { color: var(--white); font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.incl-note h4 i { color: var(--red-bright); }
.incl-note p { margin-top: 12px; font-size: 0.9rem; color: var(--text); line-height: 1.7; }

/* ---------- PRICING / QUOTE ---------- */
.price-panel {
  text-align: center; max-width: 820px; margin: 0 auto;
  padding: 56px 40px; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(204,0,0,0.14), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border-strong);
}
.price-panel::before { content:''; position:absolute; top:-120px; left:50%; transform:translateX(-50%); width:420px; height:420px; background:radial-gradient(circle, rgba(204,0,0,0.3), transparent 70%); filter:blur(50px); }
.price-panel > * { position: relative; z-index: 1; }
.price-panel h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--white); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.price-panel p { margin-top: 18px; color: var(--text); font-size: 1.05rem; line-height: 1.75; max-width: 640px; margin-left: auto; margin-right: auto; }
.price-cta { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.price-note { margin-top: 22px; font-size: 0.85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass); margin-bottom: 12px; overflow: hidden; transition: border-color 0.3s; }
.faq-item.open { border-color: rgba(204,0,0,0.4); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; background: none; border: none;
  font-size: 1rem; font-weight: 600; color: var(--white); text-align: left; font-family: inherit;
}
.faq-q .faq-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red-bright); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { padding: 0 22px 22px; color: var(--muted); font-size: 0.93rem; line-height: 1.7; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.contact-grid > *, .cm-item, .cm-item > span { min-width: 0; }
.cm-value, .footer-col a { overflow-wrap: anywhere; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.cm-item {
  display: flex; align-items: center; gap: 15px; padding: 16px 18px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-border); transition: all 0.25s var(--ease);
}
.cm-item:hover { transform: translateX(4px); border-color: rgba(204,0,0,0.4); background: var(--glass-2); }
.cm-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: var(--red-soft); color: var(--red-bright); flex-shrink: 0; }
.cm-label { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cm-value { font-size: 0.98rem; color: var(--white); font-weight: 600; }
.contact-extra { margin-top: 22px; font-size: 0.86rem; color: var(--muted); line-height: 1.7; padding: 16px 18px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-border); }
.contact-extra i { color: var(--red-bright); margin-right: 6px; }

.form-card { padding: 32px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-border-strong); }
.form-card h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 6px; }
.form-card .form-intro { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field label .req { color: var(--red-bright); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-family: inherit; font-size: 0.92rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,0.06); }
.field select option { background: #15151a; color: #fff; }
.field textarea { resize: vertical; min-height: 92px; }
.form-note {
  margin-top: 12px; font-size: 0.8rem; color: var(--faint); line-height: 1.6;
  display: flex; align-items: flex-start; gap: 8px;
}
.form-note i { color: var(--red-bright); margin-top: 3px; }

.form-success {
  display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px;
  background: rgba(40,180,90,0.12); border: 1px solid rgba(40,180,90,0.4); color: #7be0a3; font-size: 0.9rem;
  line-height: 1.6; gap: 11px;
}
.form-success.show { display: flex; align-items: flex-start; }
.form-success strong { color: #a8f0c4; font-weight: 700; }
.form-success i { margin-top: 3px; font-size: 1rem; }

/* Popup-blocked variant: same panel, amber, with the manual link doing the work */
.form-success.blocked { background: rgba(220,150,40,0.12); border-color: rgba(220,150,40,0.45); color: #f0c88a; }
.form-success.blocked strong { color: #ffdca8; }
.form-success .warn-ico, .form-success.blocked .ok-ico { display: none; }
.form-success.blocked .warn-ico { display: block; }
.form-success .fs-blocked, .form-success.blocked .fs-ok { display: none; }
.form-success.blocked .fs-blocked { display: inline; }

.wa-fallback {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 9px 15px; border-radius: 100px; background: #25D366; color: #062511;
  font-size: 0.84rem; font-weight: 700; transition: transform 0.25s var(--ease), filter 0.25s;
}
.wa-fallback:hover { transform: translateY(-2px); filter: brightness(1.08); }
.wa-fallback i { margin-top: 0; font-size: 1rem; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid rgba(255,255,255,0.07); padding: 60px 0 30px; background: var(--bg-2); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; color: var(--muted); line-height: 1.7; max-width: 300px; }
.footer-soc { display: flex; gap: 12px; margin-top: 20px; }
.footer-soc a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); transition: all 0.25s; }
.footer-soc a:hover { color: #fff; border-color: rgba(204,0,0,0.5); background: var(--red-soft); transform: translateY(-3px); }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--muted); padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--red-bright); }
.footer-reg {
  margin-top: 44px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--glass-border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  font-size: 0.8rem; color: var(--muted); line-height: 1.6;
}
.footer-reg-badge {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 5px 12px; border-radius: 100px;
  background: var(--red-soft); border: 1px solid rgba(204,0,0,0.32);
  color: var(--heading); font-weight: 700; font-size: 0.78rem; white-space: nowrap;
}
.footer-reg-badge i { color: var(--red-bright); }

.footer-bottom { margin-top: 22px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.82rem; color: var(--faint); }
.footer-bottom .loc i { color: var(--red-bright); margin-right: 6px; }

/* ---------- FLOATING WHATSAPP ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; font-size: 1.6rem;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,0.6); transition: transform 0.25s;
  animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .svc-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  /* With an odd number of project cards, a spanning CTA would leave the last
     card alone in its row — keep the CTA a normal cell in the 2-column layout. */
  .work-cta { grid-column: span 1; }
  .hero-grid { gap: 36px; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 120px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; margin: 12px auto 0; order: 2; max-width: 460px; width: 100%; }
  /* keep floating chips inside the centered visual on tablet/medium */
  .fc-1 { left: 0; } .fc-2 { right: 0; } .fc-3 { left: 0; } .fc-4 { right: 0; }
  .float-browser { right: 0; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-grid > div:first-child { text-align: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .fbr-panel { flex-direction: column; text-align: center; gap: 18px; padding: 28px 24px; }
  .fbr-copy p { margin-left: auto; margin-right: auto; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .auto-wrap { grid-template-columns: 1fr; gap: 30px; padding: 36px 28px; }
  .incl-wrap { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .container { padding: 0 18px; }
  .work-grid, .svc-grid, .why-grid, .process-grid { grid-template-columns: 1fr; }
  .work-cta { grid-column: span 1; }
  .auto-list, .incl-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .btn { white-space: normal; } /* allow CTA text to wrap instead of forcing overflow */
  .price-panel { padding: 40px 22px; }
  /* Simplify hero visual on small screens for performance + space */
  .hero-visual { min-height: 320px; }
  .medallion { width: 210px; height: 210px; }
  .logo-badge { width: 130px; height: 130px; padding: 20px; }
  .float-browser { display: none; }
  .fc-2 { right: -2%; } .fc-3 { left: -4%; } .fc-1 { left: -2%; }
  .float-card { font-size: 0.74rem; padding: 9px 12px; }
  .fbr-panel { padding: 26px 20px; }
  .footer-reg { flex-direction: column; align-items: flex-start; text-align: left; }
  /* Comfortable touch targets for the footer link columns */
  .footer-col a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; }
}

@media (max-width: 380px) {
  .fc-4 { display: none; }
}

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