/* QAF UNIFIED SUBPAGES STYLESHEET */
:root {
  --ink: #0B0D1C;
  --ink-2: #0F1226;
  --ink-3: #161A34;
  --ink-4: #1F2447;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .055);
  --fg: #ECEAF6;
  --muted: #9EA1C0;
  --muted-2: #6F729A;
  
  --gold: #F3C57A;
  --gold-hi: #FFDBA1;
  --gold-deep: #D9A24E;
  --mint: #5FE3B8;
  --danger: #FF7A7A;
  
  --font-ios: 'Thmanyah Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "Segoe UI", monospace;
  
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --maxw: 980px;
  --max: 980px;
  --radius: 12px;
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ios);
  background: var(--ink);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--r-sm); }

.wrap { width: min(var(--maxw), calc(100% - 24px)); margin-inline: auto; }
.section { padding: 42px 0; position: relative; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.mono { font-family: var(--font-mono); letter-spacing: -.02em; }

/* AMBIENT BACKGROUND */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .25; }
.orb.g { width: 440px; height: 440px; background: radial-gradient(circle, rgba(20,184,166,.18), transparent 70%); top: -140px; inset-inline-start: -100px; }
.orb.m { width: 400px; height: 400px; background: radial-gradient(circle, rgba(37,99,235,.14), transparent 70%); top: 35%; inset-inline-end: -120px; }
.grid-fx { position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%); opacity: .35; }

/* NAV HEADER */
.nav, .site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 60;
  background: rgba(11, 13, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: all .25s ease;
}

.nav-in, .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.brand img, .brand-logo-img { width: 36px; height: 44px; object-fit: contain; }
.brand b { font-size: 17px; letter-spacing: .02em; color: var(--fg); }
.brand span { color: var(--muted); font-size: 11.5px; font-weight: 500; display: block; margin-top: -3px; }

.nav-links, .site-nav { display: flex; align-items: center; gap: 18px; }
.nav-links a, .site-nav a { color: var(--muted); font-size: 13.5px; font-weight: 600; transition: color .2s; position: relative; }
.nav-links a:hover, .site-nav a:hover, .nav-links a.active, .site-nav a[aria-current="page"] { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
  border: 1px solid var(--line);
  color: var(--fg);
  background: var(--ink-3);
}

.btn-gold, .btn-primary {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(243,197,122,.6);
}
.btn-gold:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(243,197,122,.8);
  border-color: transparent;
  color: var(--ink);
}

.btn-ghost, .btn-secondary {
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--fg);
}
.btn-ghost:hover, .btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--r-sm); min-height: 32px; }

/* BREADCRUMB & PAGE HERO */
.breadcrumb { padding: 76px 0 0; color: var(--muted); font-size: 12px; }
.breadcrumb ol { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb li:not(:last-child)::after { content: '←'; margin-inline-start: 6px; color: var(--gold); }

.page-hero { padding: 80px 0 36px; position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(243,197,122,.25);
  background: rgba(243,197,122,.06);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(24px, 3.8vw, 38px);
  line-height: 1.3;
  margin-bottom: 14px;
  font-weight: 800;
}

.page-hero p {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* CARDS & BENTO GRID */
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(18px, 2.8vw, 24px); margin-bottom: 8px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 13.5px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card {
  background: linear-gradient(145deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(243,197,122,.35);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 15px; margin-bottom: 6px; color: var(--fg); font-weight: 700; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* STEPS */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step {
  counter-increment: step;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  background: rgba(243,197,122,.12);
  padding: 2px 8px;
  border-radius: var(--r-sm);
}
.step h3 { font-size: 14px; margin-bottom: 4px; font-weight: 700; }
.step p { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* FAQ */
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 16px;
}
.faq summary { font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--fg); }
.faq p { color: var(--muted); font-size: 13px; padding-top: 8px; line-height: 1.7; }

/* CTA PANEL */
.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(243,197,122,.12), rgba(95,227,184,.06));
  border: 1px solid rgba(243,197,122,.3);
  border-radius: var(--r-lg);
  padding: 24px;
}
.cta-panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.cta-panel p { color: var(--muted); font-size: 13px; }

/* SERVICE LINKS GRID */
.service-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.service-link {
  border: 1px solid var(--line);
  background: var(--ink-3);
  border-radius: var(--r-md);
  padding: 14px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--fg);
  transition: border-color .2s, transform .2s;
}
.service-link:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--gold); }
.service-link span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; margin-top: 2px; }

/* CONTACT GRID */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.contact-card, .contact-form { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font-weight: 700; font-size: 12px; color: var(--gold); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--fg);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-family: var(--font-ios);
  font-size: 12px;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }

/* PROSE & LEGAL */
.prose { display: grid; gap: 12px; max-width: 860px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.prose h2, .prose h3 { color: var(--fg); margin-top: 14px; }
.legal { max-width: 860px; }
.legal h2 { font-size: 20px; color: var(--fg); margin-top: 24px; margin-bottom: 8px; }
.legal p { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; line-height: 1.8; }
.legal ul { padding-inline-start: 18px; color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }

/* RICH FOOTER */
.site-footer-rich {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 40px 0 24px;
  position: relative;
  z-index: 1;
}

.home-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.home-footer-grid strong {
  display: block;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 12px;
  font-weight: 700;
}

.home-footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
  transition: color .2s;
}

.home-footer-grid a:hover { color: var(--gold); }

.home-copyright {
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
  color: var(--muted-2);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  background: #20b15a;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(32,177,90,.4);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* RESPONSIVE MOBILE */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service-links { grid-template-columns: repeat(2, 1fr); }
  .home-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links, .site-nav { display: none; }
}

@media (max-width: 560px) {
  .cards, .steps, .service-links, .home-footer-grid { grid-template-columns: 1fr; }
  .cta-panel { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .btn { width: 100%; }
}


/* PORTFOLIO & SPECIFIC SUBPAGE STYLES */
.port-hero { padding: 90px 0 40px; }
.port-hero h1 { font-size: clamp(24px, 3.8vw, 36px); font-weight: 800; margin-bottom: 12px; }
.port-hero h1 span { color: var(--gold); }
.port-hero p { color: var(--muted); font-size: 14px; max-width: 760px; line-height: 1.8; margin-bottom: 24px; }

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.f-tab {
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all .2s;
}
.f-tab:hover, .f-tab.active {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: var(--ink);
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-card {
  background: linear-gradient(145deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243,197,122,.35);
  box-shadow: var(--shadow);
}

.portfolio-img-box {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--ink-4);
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
}

.portfolio-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(243,197,122,.12);
  border: 1px solid rgba(243,197,122,.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.seo-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(145deg, var(--ink-3), var(--ink-2));
}
.seo-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--gold); font-weight: 700; }
.seo-card p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.seo-card a { display: inline-block; margin-top: 10px; color: var(--mint); font-size: 12px; font-weight: 700; }

.trust-list { display: grid; gap: 10px; }
.trust-item { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; background: var(--ink-2); }
.trust-item strong { display: block; color: var(--mint); margin-bottom: 4px; font-size: 13px; }
.trust-item span { color: var(--muted); font-size: 12px; line-height: 1.7; }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
