/* Smart Web Solutions — dark navy + cyan theme. Mobile-first, no frameworks. */
:root {
  --navy: #0a1628;
  --navy-2: #0e1e36;
  --navy-3: #132a4a;
  --cyan: #22d3ee;
  --cyan-dim: #0e7490;
  --text: #e8eef7;
  --muted: #9fb0c9;
  --card-border: rgba(34, 211, 238, 0.14);
  --wa: #25d366;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Never let anything widen the page sideways: the closed drawer sits
   translated off-screen right (translateX(105%)) and its box would
   otherwise stretch the layout viewport on phones and zoom the whole
   page out. `clip` (not `hidden`) keeps the sticky header working —
   it hides the overflow without making a scroll container. */
html, body { overflow-x: clip; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; margin-bottom: 0.4rem; text-align: center; }
h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }

.section { padding: 3.5rem 0; }
.section-alt { background: var(--navy-2); }
.section-sub { color: var(--muted); text-align: center; margin-bottom: 2rem; }
.center { text-align: center; margin-top: 1.8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 0;
}
/* Header gets a wider container than the page so the full nav fits on one line. */
.site-header .container { width: min(1360px, 96%); }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand span { white-space: nowrap; }
.brand img { border-radius: 10px; }

.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Mobile menu: RIGHT-side drawer (2026-11-15) ----------
   The hamburger sits on the right, so the menu slides in from the RIGHT
   as a 300px side panel — never full-page. The header carries
   backdrop-filter, which makes it the containing block for fixed
   descendants, so the drawer uses an explicit viewport height (100dvh),
   never top+bottom. Hidden off-screen with translateX + visibility so
   the slide animates both ways. */
.main-nav {
  display: flex;
  position: fixed; top: 0; right: 0;
  width: 300px; max-width: 85vw;
  height: 100vh; height: 100dvh;
  background: var(--navy-2);
  flex-direction: column; gap: 0;
  border-left: 1px solid var(--card-border);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.45);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
  overflow-y: auto;
  padding-top: 0.4rem;
  z-index: 2;
}
.main-nav.open { transform: translateX(0); visibility: visible; transition: transform 0.3s ease; }
/* Dimmed overlay over the rest of the page while the drawer is open;
   injected by script.js as a body child. Tap = close. */
.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 10, 20, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
/* The drawer covers the hamburger, so it carries its own close button
   (injected by script.js as the nav's first child). */
.nav-close {
  display: flex; align-items: center; justify-content: center;
  align-self: flex-end; flex: 0 0 auto;
  width: 40px; height: 40px; margin: 0.3rem 0.8rem 0.4rem;
  background: none; border: 1px solid var(--card-border); border-radius: 50%;
  color: var(--text); font-size: 1.35rem; line-height: 1; cursor: pointer;
  font-family: var(--font);
}
.nav-close:hover { color: var(--cyan); border-color: var(--cyan); }
/* Lock the page behind the open drawer. */
body.menu-open { overflow: hidden; }
.main-nav a {
  color: var(--text); padding: 0.55rem 4%; font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.main-nav a:hover { text-decoration: none; color: var(--cyan); }
/* Compact mobile menu: normal-sized button, never full-width. In a flex
   column children stretch by default, so pin the button to its own size. */
.main-nav .btn { margin: 0.5rem 4% 0.7rem; align-self: flex-start; padding: 0.5rem 1.1rem; font-size: 0.9rem; text-align: center; }

/* ---------- Header social icons ---------- */
.header-socials { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; flex-shrink: 0; }
.header-social { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--card-border); color: var(--text); background: rgba(255, 255, 255, 0.04); flex: 0 0 auto; }
.header-social svg { width: 20px; height: 20px; }
/* Official brand colours on the dark header: WhatsApp green, Facebook blue. */
.header-social-wa { background: #25D366; border-color: #25D366; color: #fff; }
.header-social-fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.header-social:hover { text-decoration: none; filter: brightness(1.12); }
.header-social-wa:hover { color: #fff; border-color: #25D366; }
.header-social-fb:hover { color: #fff; border-color: #1877F2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); opacity: 0.94; }
.btn-whatsapp { background: var(--wa); color: #062b16; }
.btn-outline { border-color: var(--cyan); color: var(--cyan); background: transparent; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 0 0 3.5rem; text-align: center;
  background:
    radial-gradient(600px 320px at 50% -60px, rgba(34, 211, 238, 0.16), transparent 70%),
    var(--navy);
}
/* Full poster cover: the whole image stays visible (no cropping), and the
   hero text below it starts underneath the poster. */
.hero-cover img { width: 100%; height: auto; display: block; }
.hero-cover + .container { padding-top: 2.8rem; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 2.1rem; margin-bottom: 0.8rem; }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin: 0 auto 1.8rem; }
.hero-ctas { display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }
.hero-note { margin-top: 1.1rem; color: var(--cyan); font-size: 0.95rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card {
  background: var(--navy-3);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  /* Mobile tap: kill the grey/blue tap-highlight and stop double-tap zoom
     delays — but keep text selectable (long-press select/copy must work). */
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* Hover (mouse) + tap (touch, via .is-pressed from script.js) lift + zoom.
   JS is needed on touch screens: plain :hover/:active on a plain div is
   unreliable there, which is why the first version looked dead on mobile. */
.card:hover, .card.is-pressed,
.why-item:hover, .why-item.is-pressed {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(34, 211, 238, 0.08);
}
.why-item { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; -webkit-tap-highlight-color: transparent; tap-highlight-color: transparent; touch-action: manipulation; }
/* Fallback if JS ever misses a tap: native :active gets the same lift. */
.card:active, .why-item:active {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(34, 211, 238, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .card, .why-item { transition: none; }
  .card:hover, .card.is-pressed, .why-item:hover, .why-item.is-pressed { transform: none; box-shadow: none; }
}
.card p { color: var(--muted); font-size: 0.96rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--cyan); }

/* ---------- Portfolio ---------- */
.thumb { height: 120px; border-radius: 10px; margin-bottom: 1rem; }
.thumb-boutique { background: linear-gradient(135deg, #ec4899, #8b5cf6 60%, #22d3ee); }
.thumb-restaurant { background: linear-gradient(135deg, #f59e0b, #ef4444 60%, #7c2d12); }
.thumb-clinic { background: linear-gradient(135deg, #14b8a6, #0ea5e9 60%, #0a1628); }
.thumb-estates { background: linear-gradient(135deg, #f59e0b, #b45309 60%, #0a1628); }
.thumb-academy { background: linear-gradient(135deg, #3b82f6, #8b5cf6 60%, #0a1628); }
.thumb-store { background: linear-gradient(135deg, #22d3ee, #0e7490 60%, #0a1628); }
.thumb-salon { background: linear-gradient(135deg, #ec4899, #aa536a 60%, #0a1628); }
.thumb-solar { background: linear-gradient(135deg, #f59e0b, #16a34a 60%, #0a1628); }
.thumb-tools { background: linear-gradient(135deg, #8b5cf6, #3b82f6 60%, #0a1628); }
.thumb-cover { background-size: cover; background-position: center; }
.cover-rang { background-image: url('covers/cover-rang.jpg'); }
.cover-zaiqa { background-image: url('covers/cover-zaiqa.jpg'); }
.cover-shifa { background-image: url('covers/cover-shifa.jpg'); }
.cover-almeezan { background-image: url('covers/cover-almeezan.jpg'); }
.cover-afaq { background-image: url('covers/cover-afaq.jpg'); }
.cover-paktech { background-image: url('covers/cover-paktech.jpg'); }
.cover-noor { background-image: url('covers/cover-noor.jpg'); }
.cover-roshan { background-image: url('covers/cover-roshan.jpg'); }
.cover-safar { background-image: url('covers/cover-safar.jpg'); }
.cover-nexa { background-image: url('covers/cover-nexa.jpg'); }
.cover-hassam { background-image: url('covers/cover-hassam.jpg'); }
.portfolio-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Compact, horizontal portfolio cards (2026-11-15, v2) ----------
   Image ~42% on the left, short text on the right — the image is roughly
   half its old full-width size and the shortened descriptions shrink the
   boxes automatically. Card = flex row; the body is a flex column with
   the button pinned to the bottom (margin-top: auto), so buttons stay
   level in every row. Grid is 2-up on desktop, 1 column on tablet. */
.card.portfolio-card { display: flex; flex-direction: row; gap: 1rem; padding: 0.75rem; align-items: stretch; }
.card.portfolio-card .thumb { flex: 0 0 42%; height: auto; min-height: 110px; margin-bottom: 0; }
.card.portfolio-card .portfolio-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: 0.15rem 0.25rem 0.15rem 0; }
.card.portfolio-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.card.portfolio-card p { font-size: 0.86rem; line-height: 1.45; margin-bottom: 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.portfolio-card p strong { color: var(--text); }
.portfolio-grid { gap: 0.9rem; }
@media (min-width: 900px) {
  .cards.portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  /* Small phones: image 35%, tighter text/padding — cards stay compact. */
  .card.portfolio-card { gap: 0.7rem; padding: 0.6rem; }
  .card.portfolio-card .thumb { flex-basis: 35%; min-height: 88px; }
  .card.portfolio-card h3 { font-size: 0.92rem; }
  .card.portfolio-card p { font-size: 0.82rem; }
}
.blog-teaser-grid .card { padding: 1rem 1.1rem; }
.blog-teaser-grid h3 { font-size: 1rem; }
.blog-teaser-grid p { font-size: 0.9rem; }

/* ---------- Pricing ---------- */
.price-card { position: relative; }
.price-card.featured { border-color: var(--cyan); box-shadow: 0 0 24px rgba(34, 211, 238, 0.12); }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: #062b36; font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.price { font-size: 1.9rem; font-weight: 800; color: var(--cyan); margin: 0.4rem 0 0; }
.price .per { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; }
.price-card ul { list-style: none; margin: 0 0 1.1rem; }
.price-card li { padding: 0.28rem 0 0.28rem 1.5rem; position: relative; color: var(--muted); font-size: 0.93rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }

/* ---------- Why us ---------- */
.why-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.why-item { display: flex; gap: 0.9rem; background: var(--navy-3); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.why-item h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.why-item p { color: var(--muted); font-size: 0.93rem; }
.tick {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: rgba(34, 211, 238, 0.12); color: var(--cyan);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ---------- Blog ---------- */
.post-date { font-size: 0.82rem; color: var(--cyan-dim); margin-bottom: 0.5rem; }
.read-more { font-weight: 600; font-size: 0.95rem; display: inline-block; margin-top: 0.7rem; }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; }
.contact-buttons { display: flex; flex-direction: column; gap: 0.9rem; align-items: center; margin-top: 1.6rem; }

/* ---------- Quote form (WhatsApp-only, no backend) ---------- */
.quote-form { max-width: 560px; margin: 1.8rem auto 0; text-align: left; background: var(--navy-3); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.4rem; }
.quote-form h3 { text-align: center; font-size: 1.25rem; }
.quote-form label { display: block; margin-bottom: 0.9rem; font-weight: 600; font-size: 0.95rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.8rem;
  border-radius: 10px; border: 1px solid var(--card-border);
  background: var(--navy); color: var(--text); font: inherit; font-size: 1rem;
}
.quote-form button { width: 100%; margin-top: 0.4rem; }
.form-note { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 0.8rem; }

/* ---------- Reviews ---------- */
.reviews-list { max-width: 760px; margin: 0 auto 1.8rem; }
.reviews-empty { text-align: center; color: var(--muted); }
.review-form { margin-top: 0; }
.review-stars { border: 0; padding: 0; margin: 0 0 0.9rem; }
.review-stars legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.star-options { display: flex; flex-direction: column; gap: 0.35rem; }
.star-options label { font-weight: 400; cursor: pointer; margin: 0; }
.star-options input { accent-color: #f59e0b; }
.star-options span { color: #fbbf24; letter-spacing: 2px; }
.review-card { background: var(--navy-2); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1rem 1.1rem; text-align: left; }
.review-card + .review-card { margin-top: 0.9rem; }
.review-card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.review-card-name { font-weight: 700; }
.review-card-stars { color: #fbbf24; letter-spacing: 2px; margin: 0.15rem 0 0.35rem; }
.review-card-service { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.35rem; }
.review-card-text { margin: 0; }
.reviews-marquee { overflow: hidden; }
.reviews-track { display: flex; gap: 0.9rem; width: max-content; animation: reviews-scroll 40s linear infinite; }
.reviews-track .review-card { flex: 0 0 300px; margin-top: 0; }
.reviews-marquee:hover .reviews-track, .reviews-marquee:active .reviews-track { animation-play-state: paused; }
@keyframes reviews-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--card-border); padding: 2rem 0; text-align: center; }
.social-row { display: flex; gap: 1.6rem; justify-content: center; margin-bottom: 0.9rem; }
.social-row a { color: var(--muted); font-weight: 600; }
.social-row a:hover { color: var(--cyan); }
.site-footer p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Article pages ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 2.5rem 0 3rem; }
.article h1 { font-size: 1.8rem; margin: 0.6rem 0 1.2rem; }
.article p { margin-bottom: 1.1rem; color: var(--text); }
.article .post-date { margin-bottom: 0; }
.article-cta { margin-top: 2rem; padding: 1.4rem; background: var(--navy-3); border: 1px solid var(--card-border); border-radius: var(--radius); text-align: center; }
.back-link { display: inline-block; margin-bottom: 1.2rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.08); }
/* Soft pulsing ring around the WhatsApp button (2s loop). */
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wa-ring 2s ease-out infinite;
}
@keyframes wa-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::after { animation: none; }
}

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .hero h1 { font-size: 2.9rem; }
  .hero-ctas { flex-direction: row; justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-buttons { flex-direction: row; justify-content: center; }
  h2 { font-size: 2rem; }
}
@media (min-width: 1020px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .pricing-cards { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Desktop nav: full menu on one line (1280px and up) ----------
   Below 1280px the hamburger menu shows instead, so links never wrap. */
@media (min-width: 1280px) {
  .menu-toggle { display: none; }
  .main-nav {
    display: flex; position: static; flex-direction: row;
    align-items: center; gap: 0.85rem; background: none; border: 0;
    order: 2; width: auto; max-width: none; height: auto;
    transform: none; visibility: visible; box-shadow: none;
    padding-top: 0; overflow: visible; transition: none;
  }
  .nav-close, .nav-overlay { display: none; }
  .header-socials { order: 3; margin-left: 0; }
  .main-nav a { border: 0; padding: 0; white-space: nowrap; font-size: 0.95rem; }
  .main-nav .btn { margin: 0; white-space: nowrap; }
}

.addons-title{margin:2.2rem 0 1rem;font-size:1.25rem;text-align:center;color:var(--text)}

.hero-offer{margin-top:.9rem;background:rgba(34,211,238,.12);border:1px solid rgba(34,211,238,.35);border-radius:12px;padding:.7rem 1rem;font-size:.95rem}
.hero-offer a{color:var(--cyan);font-weight:700}

/* ---------- App Development samples ---------- */
.app-shot img{width:100%;height:300px;object-fit:cover;object-position:top center;border-radius:10px;margin-bottom:1rem}
.app-dev-cta{text-align:center;margin-top:2rem}
.app-dev-cta .price{margin-bottom:.2rem}
.app-dev-cta .btn{margin-top:1rem}
.refer-box{text-align:center;background:linear-gradient(135deg,rgba(34,211,238,.12),rgba(34,211,238,.04));border:1px solid rgba(34,211,238,.3);border-radius:16px;padding:2rem 1.5rem}
.refer-box h2{margin-top:0}
.refer-box p{color:var(--muted)}
.pay-box{margin-top:1.6rem;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:1.2rem 1.4rem;max-width:440px;margin-left:auto;margin-right:auto;text-align:left}
.pay-box h3{margin:0 0 .3rem}
.pay-box p{margin:0;color:var(--muted);font-size:.92rem}
.pay-box ul{list-style:none;margin:.6rem 0 0;padding:0}
.pay-box li{padding:.35rem 0}
.pay-box li span{color:var(--muted);font-size:.9rem}

.pay-box .wallet{font-size:.82rem;word-break:break-all;color:var(--cyan)}
.pay-note{font-size:.85rem;color:var(--muted);margin-top:.5rem}

/* Same box style as the 4 sample sites (2026-10-27): coloured border normal, amber + zoom on hover/tap */
.card,.why-item{border:2px solid rgba(34,211,238,.45);position:relative}
.card:hover,.card.zoomed,.why-item:hover,.why-item.zoomed{transform:translateY(-4px) scale(1.07);box-shadow:0 16px 32px rgba(0,0,0,.35);border-color:#f59e0b;z-index:2}
@media (prefers-reduced-motion: reduce){.card:hover,.card.zoomed,.why-item:hover,.why-item.zoomed{transform:none;box-shadow:none}}

/* Same scroll-reveal as the sample sites (2026-10-27): sections/cards fade + slide up on scroll */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .65s ease,transform .65s ease}
.reveal.visible{opacity:1;transform:none}
/* Zoom must win over reveal.visible on hover/tap */
.card.reveal.visible:hover,.card.reveal.visible.zoomed,.why-item.reveal.visible:hover,.why-item.reveal.visible.zoomed{transform:translateY(-4px) scale(1.07);border-color:#f59e0b;box-shadow:0 16px 32px rgba(0,0,0,.35);z-index:2}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none;transition:none}}

/* Payment details hidden until the customer asks (order time), not open on the page */
.pay-box[hidden]{display:none}
#payToggle{margin-top:1.6rem}

.cards.cards-center { grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; }

/* ---------- FAQ + domain section (audit 2026-11-06) ---------- */
.faq-group h3 { text-align: left; margin: 1.4rem 0 0.8rem; }
details.faq-item { background: var(--navy-3); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 0.8rem; }
details.faq-item summary { cursor: pointer; font-weight: 600; color: var(--text); }
details.faq-item[open] summary { color: var(--cyan); }
details.faq-item p { color: var(--muted); margin-top: 0.5rem; }
.domain-list { list-style: none; margin: 0 0 1.1rem; }
.domain-list li { padding: 0.28rem 0 0.28rem 1.5rem; position: relative; color: var(--muted); font-size: 0.93rem; }
.domain-list li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }

/* ---------- Quote form success message ---------- */
.form-success { background: var(--navy-3); border: 1px solid var(--card-border); border-radius: var(--radius); color: var(--text); padding: 1.4rem; margin: 1.8rem auto 0; max-width: 560px; text-align: center; }
.form-success[hidden] { display: none; }
.form-success .btn { margin-top: 0.8rem; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  background: var(--navy-2); border-top: 1px solid var(--card-border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45); }
.cookie-banner[hidden] { display: none; }
.cookie-inner { width: min(1100px, 92%); margin: 0 auto; padding: 0.9rem 0;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cookie-inner p { flex: 1 1 280px; font-size: 0.9rem; color: var(--muted); margin: 0; }
.cookie-inner p a { color: var(--cyan); }
.cookie-actions { display: flex; gap: 0.6rem; align-items: center; }
.cookie-accept { background: var(--cyan); color: var(--navy); border: none; border-radius: 8px;
  padding: 0.55rem 1.2rem; font-weight: 700; font-size: 0.92rem; cursor: pointer; font-family: var(--font); }
.cookie-accept:hover { filter: brightness(1.08); }
.cookie-decline { background: transparent; color: var(--muted); border: 1px solid var(--card-border);
  border-radius: 8px; padding: 0.55rem 1rem; font-size: 0.92rem; cursor: pointer; font-family: var(--font); }
.cookie-decline:hover { color: var(--text); }

/* ---------- Multi-page restructure (v2 §7): active nav link ---------- */
.main-nav a.active { color: var(--cyan); font-weight: 700; }
@media (min-width: 1280px) {
  .main-nav a.active { border-bottom: 2px solid var(--cyan); padding-bottom: 2px; }
}

/* Sticky header must never cover a section heading on anchor jumps. */
section[id] { scroll-margin-top: 90px; }

/* Screen-reader-only text (e.g. the review-form honeypot label). */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Breadcrumb under the header on subpages (reuses existing colours).
   Markup: <nav class="breadcrumb"><div class="container"><a>Home</a> /
   <span aria-current="page">…</span></div></nav> — the "/" text node
   between the links is the separator, styled muted via the container. */
.breadcrumb { font-size: 0.9rem; color: var(--muted); padding: 1.1rem 0 0; }
.breadcrumb .container { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

/* Page intro on the new subpages: short centred lead under the
   breadcrumb (markup: <section class="section page-intro"> with an h1
   and a .section-sub paragraph). Tighter than a full .section. */
.page-intro { padding: 2.5rem 0 1.5rem; text-align: center; }
.page-intro h1 { font-size: 1.9rem; margin-bottom: 0.6rem; }
.page-intro .section-sub { margin-bottom: 0; font-size: 1.05rem; }
.lead-answer { max-width: 720px; margin: 1rem auto 0; font-size: 1.05rem; line-height: 1.6; }

/* "Load more reviews" button row (created by script.js when the page
   does not already provide #loadMoreReviews). */
.reviews-more { text-align: center; margin-top: 1.2rem; }
.reviews-more[hidden] { display: none; }
#loadMoreReviews[hidden] { display: none; }

/* Teaser cards on the homepage reuse the existing .card / .section
   classes — no extra teaser styles needed. */

/* ---------- App install popup ---------- */
.install-overlay { position: fixed; inset: 0; z-index: 9100; display: flex; align-items: center;
  justify-content: center; padding: 1rem; background: rgba(4, 10, 20, 0.72); }
.install-overlay[hidden] { display: none; }
.install-card { position: relative; width: min(380px, 100%); background: var(--navy-3);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem; text-align: center; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55); }
.install-card img { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 0.9rem; }
.install-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.install-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 1.1rem; }
.install-card .install-steps { text-align: left; font-size: 0.9rem; color: var(--muted);
  background: var(--navy-2); border: 1px solid var(--card-border); border-radius: 10px;
  padding: 0.8rem 1rem; margin-bottom: 1.1rem; }
.install-card .install-steps li { margin-left: 1.1rem; padding: 0.15rem 0; }
.install-btn { display: block; width: 100%; background: var(--cyan); color: var(--navy);
  border: none; border-radius: 10px; padding: 0.75rem; font-weight: 700; font-size: 1rem;
  cursor: pointer; font-family: var(--font); }
.install-btn:hover { filter: brightness(1.08); }
.install-close { position: absolute; top: 0.5rem; right: 0.7rem; background: transparent;
  border: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0.3rem; }
.install-close:hover { color: var(--text); }
.install-later { display: inline-block; margin-top: 0.7rem; background: none; border: none;
  color: var(--muted); font-size: 0.88rem; cursor: pointer; font-family: var(--font); }
.install-later:hover { color: var(--text); text-decoration: underline; }

/* ---------- Flying bird (2026-11-16, Lottie + wandering flight) ----------
   Layer 1: the bird is INLINE SVG in the HTML, so it renders the moment
   the HTML paints — no network, no JS needed. Layer 3 (script.js) plays
   the hand-made Lottie animation (/lottie/bird-sws.json) into the
   .bird-lottie layer and fades it in over the SVG once loaded.
   Wandering (script.js, setInterval — no rAF, no visualViewport): every
   ~4.5s a new waypoint anywhere in the viewport is picked and the bird
   glides there on a 3.5s transform transition (compositor thread).
   The motions live on separate nested wrappers so they never fight:
   #flying-bird carries the enter animation, then the wander translate;
   .bird-flip carries the horizontal direction flip (the artwork faces
   LEFT, so moving right flips it); .bird-bob carries the gentle
   vertical bob; .bird-wing (inside the SVG) carries the CSS wing flap,
   so the wing moves from first paint, before the Lottie player loads.
   .bird-drift is a plain structural wrapper.
   Reduced motion (prefers-reduced-motion: reduce) = GENTLE, never
   frozen: the bird still wanders (9s waypoints, 6s glides), still bobs
   (8s), still flaps its wing (2.5s) and the Lottie still plays at
   half speed — only the fly-in enter animation is dropped, so the
   bird simply appears at its perch. pointer-events: none. */
#flying-bird {
  position: fixed; left: 12px; top: 32vh; z-index: 9999;
  width: 76px; height: 84px; pointer-events: none;
  visibility: visible; opacity: 1; contain: layout paint;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
  animation: bird-enter 1.2s ease-out both;
}
/* Wandering state (added by script.js once the enter animation ends):
   the enter keyframes are dropped so the JS-driven translate takes
   over, and each glide runs on a 3.5s transform transition. */
#flying-bird.bird-wandering { animation: none; transition: transform 3.5s ease-in-out; }
/* Slow wander (reduced motion): the 6s glide, see the media query below. */
#flying-bird.bird-wandering.bird-slow { transition-duration: 6s; }
#flying-bird .bird-drift { width: 100%; height: 100%; }
#flying-bird .bird-flip { width: 100%; height: 100%; transition: transform 0.6s ease; }
#flying-bird .bird-flip.facing-right { transform: scaleX(-1); }
#flying-bird .bird-bob { width: 100%; height: 100%; animation: bird-bob 5s ease-in-out 1.2s infinite alternate; }
#flying-bird .bird-svg, #flying-bird .bird-lottie { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#flying-bird .bird-svg { transition: opacity 0.6s ease; }
#flying-bird .bird-lottie { opacity: 0; transition: opacity 0.6s ease; }
#flying-bird .bird-lottie svg { width: 100%; height: 100%; display: block; }
#flying-bird.lottie-ready .bird-lottie { opacity: 1; }
#flying-bird.lottie-ready .bird-svg { opacity: 0; }
@keyframes bird-enter { from { transform: translateX(-110px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes bird-bob { from { transform: translateY(0); } to { transform: translateY(-13px); } }
/* CSS wing flap on the inline SVG (g.bird-wing wraps the two wing paths):
   flaps from first paint, before the Lottie player loads. The group sits
   inside .bird-bob, so it never fights the flip wrapper above it. */
.bird-wing { transform-box: view-box; transform-origin: 42px 70px; animation: bird-flap 1.2s ease-in-out infinite alternate; }
@keyframes bird-flap { from { transform: rotate(-18deg); } to { transform: rotate(10deg); } }
/* While the mobile menu drawer is open, the bird stays out of the way. */
body.menu-open #flying-bird { display: none; }
@media (max-width: 600px) {
  #flying-bird { left: 5px; top: 35vh; width: 62px; height: 70px; }
}
/* Reduced motion = GENTLE, never frozen and never hidden: the enter
   animation is dropped (the bird simply appears) and the flip stays
   animation-free, but the bird still wanders slowly (6s glides, 9s
   waypoints — script.js adds .bird-slow), still bobs on an 8s cycle,
   and still flaps its wing on a slow 2.5s cycle. Android "Remove
   animations" maps to this. */
@media (prefers-reduced-motion: reduce) {
  #flying-bird, #flying-bird .bird-flip { animation: none; }
  #flying-bird .bird-bob { animation: bird-bob 8s ease-in-out 1.2s infinite alternate; }
  #flying-bird.bird-wandering { transition: transform 6s ease-in-out; }
  #flying-bird .bird-wing { animation: bird-flap 2.5s ease-in-out infinite alternate; }
}

/* ---------- Price calculator (2026-11-15) ---------- */
.calc-form { max-width: 680px; margin: 0 auto; text-align: left; }
.calc-group { background: var(--navy-3); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.calc-group legend { font-weight: 700; font-size: 1.1rem; padding: 0 0.4rem; }
.calc-option { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.45rem 0; cursor: pointer; font-size: 0.98rem; }
.calc-option input { margin-top: 0.25rem; accent-color: var(--cyan); flex: 0 0 auto; }
.calc-option small { display: block; color: var(--muted); font-size: 0.86rem; }
.calc-option .calc-price { margin-left: auto; white-space: nowrap; font-weight: 700; color: var(--cyan); }
.calc-total { background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.04)); border: 1px solid rgba(34, 211, 238, 0.35); border-radius: var(--radius); padding: 1.3rem 1.4rem; text-align: center; margin-bottom: 1rem; }
.calc-total .calc-total-line { font-size: 1.35rem; font-weight: 800; margin: 0.2rem 0; }
.calc-total .calc-total-line span { color: var(--cyan); }
.calc-total .calc-monthly { font-size: 1.05rem; font-weight: 600; margin: 0; }
.calc-total .calc-note { color: var(--muted); font-size: 0.88rem; margin: 0.5rem 0 0; }
.calc-cta { text-align: center; }
.calc-cta .btn { margin-top: 0.4rem; }

/* ---------- Price calculator wizard (2026-11-15, v2) ---------- */
.calc-progress { margin-bottom: 1.2rem; }
.calc-progress-bar { height: 8px; background: var(--navy-3); border: 1px solid var(--card-border); border-radius: 999px; overflow: hidden; }
.calc-progress-bar span { display: block; height: 100%; width: 25%; background: var(--cyan); border-radius: 999px; transition: width 0.35s ease; }
.calc-steps { list-style: none; display: flex; justify-content: space-between; margin: 0.55rem 0 0; padding: 0; font-size: 0.85rem; color: var(--muted); }
.calc-steps li { flex: 1; text-align: center; }
.calc-steps li.active { color: var(--cyan); font-weight: 700; }
.calc-steps li.done { color: var(--text); }
.calc-panel { border: 0; padding: 0; margin: 0; animation: calc-fade 0.3s ease; }
@keyframes calc-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.calc-panel legend { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.4rem; }
.calc-hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; }
.calc-option.calc-card { display: flex; gap: 0.6rem; align-items: flex-start; border: 1px solid var(--card-border); border-radius: 10px; padding: 0.8rem 0.9rem; margin-bottom: 0.6rem; background: var(--navy-3); }
.calc-option.calc-card:has(input:checked) { border-color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
.calc-error { color: #f87171; font-weight: 700; font-size: 0.92rem; margin: 0.2rem 0 0.8rem; }
.calc-nav { display: flex; gap: 0.8rem; justify-content: space-between; margin-top: 1rem; }
.calc-nav .btn:only-child { margin-left: auto; }
.calc-breakdown { list-style: none; margin: 0 0 1rem; padding: 0; }
.calc-breakdown li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--card-border); font-size: 0.95rem; }
.calc-breakdown li span:last-child { font-weight: 700; color: var(--cyan); white-space: nowrap; }

/* ---------- Lottie animations (2026-11-16) ---------- */
/* Decorative only: transparent, no layout shift (explicit aspect-ratio),
   pointer-events none, aria-hidden in markup. The player + JSON load
   lazily via script.js — nothing here fetches anything. On any load
   failure script.js removes the container, so no empty box remains. */
.lottie-anim { pointer-events: none; background: transparent; margin-left: auto; margin-right: auto; }
.lottie-anim svg { display: block; width: 100%; height: auto; }
.lottie-rocket { width: 100%; max-width: 1010px; aspect-ratio: 1010 / 550; margin-top: 2.2rem; }
.lottie-handshake { width: 200px; max-width: 200px; aspect-ratio: 1 / 1; margin-top: 1.2rem; }
.lottie-plan { width: 260px; max-width: 260px; aspect-ratio: 1 / 1; margin-top: 1.2rem; }
@media (max-width: 600px) {
  .lottie-handshake { width: 160px; }
  .lottie-plan { width: 200px; }
}
