/* ==========================================================================
   Design tokens — adapted from the Nocturne system used in the source
   design canvas (claude.ai/design). Keep this block in sync if the brand
   kit changes; site-specific rules live below it.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* Roseguard brand */
  --rg-red: #d0202f;
  --rg-red-dark: #a81825;
  --rg-red-tint: #ffe3e5;
  --rg-whatsapp: #4ad06a;
  --rg-whatsapp-bg: #1f6b36;

  /* Layered dark grounds (darkest to lightest) */
  --rg-bg-0: #0e0f1a;
  --rg-bg-1: #101223;
  --rg-bg-2: #161826;
  --rg-bg-3: #232532;

  /* Nocturne tokens */
  --color-accent: #9184d9;
  --color-accent-2: #a7a1db;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);
  --color-text: #e9e9ed;

  --color-neutral-100: #f3f5fe;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-800: #3f424d;

  --color-accent-400: #b5abfc;
  --color-accent-2-400: #b5afe8;

  --color-section: #262a60;
  --color-section-ghost: #1a1c3a;

  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --space-2: 6px;
  --space-3: 9px;
  --space-4: 12px;
  --space-6: 17px;
  --space-8: 22px;

  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-card: 0 0 0 1px var(--color-neutral-800);
  --header-h: 68px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--rg-bg-0);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}
h1, h2, h3, h4{
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  color: #fff;
}
p{ margin: 0; }
a{ color: var(--color-accent); text-decoration: none; }
img{ display: block; max-width: 100%; }
ul{ margin: 0; padding: 0; list-style: none; }
input, textarea, button{ font: inherit; }
:focus-visible{ outline: 2px solid var(--color-accent); outline-offset: 2px; }
.lighten{ mix-blend-mode: lighten; background-color: transparent; }

.container{ max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.text-muted{ color: var(--color-neutral-400); }
.kicker{
  font: 500 11px var(--font-heading);
  letter-spacing: .11em; text-transform: uppercase; color: var(--color-accent);
}
.todo-flag{ color: var(--color-neutral-600); }

/* — buttons — */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; text-decoration: none; border: none;
  font: 600 15px var(--font-heading); line-height: 1.2; white-space: nowrap;
  padding: 14px 24px; border-radius: var(--radius-md);
}
.btn i{ font-size: 16px; }
.btn-primary{ background: var(--rg-red); color: #fff; }
.btn-primary:hover{ background: var(--rg-red-dark); }
.btn-outline{ background: transparent; color: var(--color-accent-400); border: 1px solid var(--color-accent); }
.btn-outline:hover{ background: color-mix(in srgb, var(--color-accent) 14%, transparent); }
.btn-ghost{ background: transparent; color: var(--color-text); border: 1px solid var(--color-neutral-800); }
.btn-ghost:hover{ background: color-mix(in srgb, #fff 6%, transparent); }
.btn-whatsapp{ background: var(--rg-whatsapp-bg); color: #fff; }
.btn-whatsapp:hover{ filter: brightness(1.12); }
.btn-block{ width: 100%; }
.btn-sm{ padding: 10px 16px; font-size: 13.5px; }

/* — header / nav — */
.site-header{
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h); padding: 0 32px;
  background: var(--rg-bg-1); border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand img{ height: 32px; width: auto; }
.nav-links{ display: flex; gap: 22px; margin-left: 8px; font: 500 13.5px var(--font-heading); color: #cfd3e5; }
.nav-links a{ color: inherit; padding-bottom: 4px; }
.nav-links a[aria-current="page"]{ color: #fff; box-shadow: inset 0 -2px 0 var(--rg-red); }
.nav-links a:hover{ color: #fff; }
.header-actions{ margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-phone{ display: flex; align-items: center; gap: 8px; font: 500 14px var(--font-heading); color: var(--color-text); }
.header-phone i{ color: var(--rg-red); font-size: 18px; }
.nav-toggle{
  display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 8px;
  background: transparent; border: 1px solid var(--color-neutral-800); color: var(--color-text);
  align-items: center; justify-content: center; font-size: 20px;
}
.mobile-panel{ display: none; }

@media (max-width: 900px){
  .site-header{ padding: 0 16px; gap: 12px; }
  .nav-links, .header-phone{ display: none; }
  .header-actions .btn{ display: none; }
  .nav-toggle{ display: flex; }
  .mobile-panel{
    display: none; flex-direction: column; gap: 2px; padding: 10px 16px 18px;
    background: var(--rg-bg-1); border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .mobile-panel.is-open{ display: flex; }
  .mobile-panel a{
    padding: 12px 4px; font: 500 15px var(--font-heading); color: var(--color-text);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .mobile-panel a[aria-current="page"]{ color: var(--rg-red); }
  .mobile-panel .btn{ margin-top: 12px; }
}

/* — hero (home) — */
.hero{
  position: relative; display: grid; grid-template-columns: 1fr 470px;
  background: linear-gradient(160deg,#171a30 0%,#121426 55%,#0e1020 100%);
}
.hero-copy{ padding: 66px 44px 54px 32px; }
.hero-badge{
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px;
  border-radius: 6px; border: 1px solid rgba(208,32,47,.55);
  font: 500 11px var(--font-heading); letter-spacing: .09em; text-transform: uppercase;
  color: #f0b9be;
}
.hero-badge i{ color: var(--rg-red); font-size: 14px; }
.hero h1{ margin-top: 20px; font-size: 56px; max-width: 600px; }
.hero-copy > p{ margin-top: 20px; max-width: 500px; font-size: 16.5px; line-height: 1.6; color: var(--color-neutral-400); }
.hero-ctas{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats{
  display: flex; gap: 34px; margin-top: 44px; padding-top: 26px;
  background: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent) no-repeat top / 100% 1px;
}
.hero-stats .stat-value{ font: 500 26px var(--font-heading); color: #fff; }
.hero-stats .stat-value .accent{ color: var(--rg-red); }
.hero-stats .stat-label{ font-size: 12px; color: var(--color-neutral-500); margin-top: 2px; }
.hero-media{ position: relative; overflow: hidden; min-height: 420px; }
.hero-media-clip{
  position: absolute; inset: 0; background: #0b0d18;
  clip-path: polygon(16% 0,100% 0,100% 100%,0 100%);
}
.hero-media-clip img{ width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-media-edge{ position: absolute; top: 0; left: 15%; width: 3px; height: 100%; background: var(--rg-red); transform: skewX(-9deg); transform-origin: top; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .hero-copy{ padding: 40px 20px 32px; }
  .hero h1{ font-size: 34px; max-width: none; }
  .hero-media{ min-height: 260px; order: -1; }
  .hero-stats{ flex-wrap: wrap; row-gap: 16px; }
}

/* — trust bar — */
.trust-bar{
  display: flex; background: var(--rg-bg-1);
  border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07);
}
.trust-item{ flex: 1; display: flex; align-items: center; gap: 10px; padding: 16px 24px; font: 500 13px var(--font-heading); color: #cfd3e5; border-left: 1px solid rgba(255,255,255,.1); }
.trust-item:first-child{ border-left: none; }
.trust-item i{ font-size: 19px; color: var(--color-accent); }
@media (max-width: 900px){
  .trust-bar{ flex-wrap: wrap; }
  .trust-item{ flex: 1 1 50%; border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
}

/* — generic section layout — */
.section{ padding: 60px 32px; background: var(--rg-bg-2); }
.section-alt{ background: var(--rg-bg-1); }
.section-head{ display: flex; align-items: flex-end; gap: 24px; }
.section-head h2{ margin-top: 10px; font-size: 34px; }
.section-head .link-more{ margin-left: auto; font: 500 13px var(--font-heading); color: var(--color-accent-400); display: flex; align-items: center; gap: 6px; }

.services-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 30px; }
.service-card{
  display: flex; flex-direction: column; gap: 9px; padding: 20px;
  border-radius: var(--radius-md); background: var(--rg-bg-3); box-shadow: var(--shadow-card);
}
.service-card i{ font-size: 24px; color: var(--rg-red); }
.service-card .service-title{ font: 500 17px var(--font-heading); color: #fff; }
.service-card p{ font-size: 13px; line-height: 1.5; color: var(--color-neutral-400); }
@media (max-width: 900px){ .services-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .container, .section{ padding-left: 16px; padding-right: 16px; } }

/* — academy split — */
.academy{ display: grid; grid-template-columns: 1.05fr 1fr; background: var(--rg-bg-1); border-top: 1px solid rgba(255,255,255,.07); }
.academy-copy{ padding: 52px 36px 52px 32px; }
.academy-copy h2{ margin-top: 10px; font-size: 32px; max-width: 470px; }
.academy-copy > p{ margin-top: 16px; max-width: 470px; font-size: 15px; color: var(--color-neutral-400); }
.academy-tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.academy-tags span{ padding: 5px 11px; border-radius: 6px; background: var(--color-neutral-800); font-size: 12px; color: var(--color-neutral-100); }
.academy-media{ position: relative; min-height: 380px; background: #0b0d18; overflow: hidden; }
.academy-media img{ width: 100%; height: 100%; object-fit: cover; }
.academy-media figcaption{ position: absolute; left: 0; bottom: 0; padding: 14px 18px; background: rgba(14,15,26,.86); font: 500 12px var(--font-heading); color: var(--color-text); }
@media (max-width: 900px){ .academy{ grid-template-columns: 1fr; } .academy-media{ order: -1; min-height: 220px; } }

/* — testimonials — */
.testimonials-grid{ display: grid; grid-template-columns: 1fr 1fr 300px; gap: 14px; align-items: stretch; margin-top: 26px; }
.testimonial-card{ display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-md); background: var(--rg-bg-3); box-shadow: var(--shadow-card); }
.stars{ font: 500 15px var(--font-heading); color: var(--rg-red); letter-spacing: 2px; }
.testimonial-card p{ flex: 1; font-size: 15px; line-height: 1.6; color: var(--color-text); }
.testimonial-card .attribution{ font-size: 12.5px; color: var(--color-neutral-500); }
.rating-card{ display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px; border-radius: var(--radius-md); background: linear-gradient(150deg,var(--color-section),var(--color-section-ghost)); }
.rating-card .rating-value{ font: 500 44px var(--font-heading); color: #fff; }
.rating-card .rating-stars{ font: 500 14px var(--font-heading); color: var(--color-accent-2-400); }
.rating-card p{ font-size: 12.5px; line-height: 1.5; color: #b5afe8; }
@media (max-width: 900px){ .testimonials-grid{ grid-template-columns: 1fr; } }

/* — CTA banner — */
.cta-banner{
  position: relative; display: flex; align-items: center; gap: 36px; overflow: hidden;
  padding: 44px 32px; background: var(--rg-red);
}
.cta-banner::before{ content:""; position: absolute; right: -40px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.07); }
.cta-banner h2{ font-size: 30px; }
.cta-banner p{ margin-top: 8px; max-width: 560px; font-size: 15px; line-height: 1.55; color: var(--rg-red-tint); }
.cta-actions{ margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-actions .btn-primary{ background: var(--rg-bg-0); }
.cta-actions .btn-outline{ border-color: rgba(255,255,255,.7); color: #fff; }
@media (max-width: 900px){ .cta-banner{ flex-direction: column; align-items: flex-start; } .cta-actions{ margin-left: 0; } }

/* — footer — */
.site-footer{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 28px; padding: 44px 32px 34px; background: var(--rg-bg-0); }
.site-footer img{ height: 30px; }
.site-footer .about p{ margin-top: 14px; max-width: 280px; font-size: 13px; color: var(--color-neutral-500); }
.site-footer .licence{ margin-top: 14px; font-size: 12px; color: var(--color-neutral-600); }
.footer-col{ display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--color-neutral-400); }
.footer-col h4{ font: 500 11px var(--font-heading); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text); margin-bottom: 4px; }
@media (max-width: 900px){ .site-footer{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .site-footer{ grid-template-columns: 1fr; } }

/* — mobile sticky call bar — */
.mobile-callbar{ display: none; }
@media (max-width: 640px){
  .mobile-callbar{
    display: flex; align-items: center; gap: 10px; position: sticky; bottom: 0; z-index: 40;
    padding: 12px 16px; background: var(--rg-bg-0); border-top: 1px solid rgba(255,255,255,.1);
  }
  .mobile-callbar .btn{ flex: 1; }
  .mobile-callbar .whatsapp-icon{
    display: flex; align-items: center; justify-content: center; width: 48px; height: 46px;
    border-radius: 8px; background: var(--rg-whatsapp-bg); color: var(--rg-whatsapp); font-size: 22px; flex: none;
  }
  body{ padding-bottom: 0; }
}

/* ==========================================================================
   Services page
   ========================================================================== */
.page-hero{ padding: 52px 32px 34px; background: linear-gradient(160deg,#171a30,#121426); }
.page-hero .breadcrumb{ font-size: 12px; color: var(--color-neutral-600); }
.page-hero h1{ margin-top: 14px; max-width: 720px; font-size: 46px; line-height: 1.08; }
.page-hero > p{ margin-top: 16px; max-width: 620px; font-size: 16px; line-height: 1.6; color: var(--color-neutral-400); }

.pill-nav{
  display: flex; gap: 10px; padding: 16px 32px; background: var(--rg-bg-1);
  border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07);
  overflow-x: auto; scrollbar-width: thin;
}
.pill-nav a{ flex: none; padding: 7px 13px; border-radius: 8px; font: 500 13px var(--font-heading); color: var(--color-neutral-400); box-shadow: inset 0 0 0 1px transparent; }
.pill-nav a:hover{ color: var(--color-text); }
.pill-nav a.is-active{ box-shadow: inset 0 0 0 1px var(--color-accent); color: var(--color-accent-400); }

.services-layout{ display: grid; grid-template-columns: 1fr 440px; gap: 40px; padding: 48px 32px; background: var(--rg-bg-2); align-items: start; }
.service-detail{ scroll-margin-top: 84px; }
.service-detail + .service-detail{ margin-top: 56px; padding-top: 56px; border-top: 1px solid rgba(255,255,255,.07); }
.service-detail-head{ display: flex; align-items: center; gap: 12px; }
.service-detail-head i{ font-size: 26px; color: var(--rg-red); }
.service-detail-head h2{ font-size: 30px; }
.service-detail > p{ margin-top: 16px; font-size: 15.5px; line-height: 1.65; color: var(--color-neutral-400); }
.feature-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.feature-item{ display: flex; gap: 10px; padding: 16px; border-radius: var(--radius-md); background: var(--rg-bg-3); box-shadow: var(--shadow-card); }
.feature-item i{ font-size: 19px; color: var(--color-accent); flex: none; }
.feature-item .feature-title{ font: 500 14px var(--font-heading); color: #fff; }
.feature-item .feature-copy{ font-size: 12.5px; line-height: 1.5; color: var(--color-neutral-500); margin-top: 2px; }
@media (max-width: 560px){ .feature-grid{ grid-template-columns: 1fr; } }

.deploy-steps{
  display: flex; margin-top: 18px; padding-top: 24px;
  background: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent) no-repeat top / 100% 1px;
}
.deploy-step{ flex: 1; padding: 0 18px; border-left: 1px solid rgba(255,255,255,.1); }
.deploy-step:first-child{ padding-left: 0; border-left: none; }
.deploy-step .step-no{ font: 500 12px var(--font-heading); color: var(--rg-red); }
.deploy-step .step-title{ margin-top: 6px; font: 500 15px var(--font-heading); color: #fff; }
.deploy-step p{ margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--color-neutral-500); }
@media (max-width: 700px){ .deploy-steps{ flex-direction: column; gap: 14px; } .deploy-step{ border-left: none; padding-left: 0; } }

@media (max-width: 900px){ .services-layout{ grid-template-columns: 1fr; } }

.aside-stack{ display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.aside-media{ border-radius: var(--radius-md); overflow: hidden; background: #0b0d18; }
.aside-media img{ width: 100%; height: 210px; object-fit: cover; }
.aside-placeholder{
  width: 100%; height: 210px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--rg-bg-3) 0 14px, var(--rg-bg-1) 14px 28px);
  color: var(--color-neutral-600); font-size: 12.5px; text-align: center; padding: 0 20px;
}
.quote-card{ display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius-md); background: var(--rg-bg-3); box-shadow: 0 0 0 1px var(--color-neutral-700, #595d6c); }
.quote-card h3{ font-size: 19px; }
.quote-card p{ font-size: 13.5px; line-height: 1.55; color: var(--color-neutral-400); }
.quote-card .call-note{ text-align: center; font: 500 13px var(--font-heading); color: var(--color-neutral-400); }
.licence-note{ display: flex; gap: 10px; padding: 16px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-neutral-800); }
.licence-note i{ font-size: 20px; color: var(--color-accent); flex: none; }
.licence-note p{ font-size: 12.5px; line-height: 1.5; color: var(--color-neutral-400); }

.other-services{ padding: 42px 32px 48px; background: var(--rg-bg-1); border-top: 1px solid rgba(255,255,255,.07); }
.other-services h3{ margin-bottom: 20px; font-size: 22px; }
.other-services-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.other-service-link{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border-radius: var(--radius-md); background: var(--rg-bg-2); box-shadow: var(--shadow-card);
}
.other-service-link .label{ display: flex; align-items: center; gap: 10px; font: 500 14px var(--font-heading); color: #fff; }
.other-service-link .label i{ font-size: 19px; color: var(--rg-red); }
.other-service-link i.ph-arrow-right{ color: var(--color-neutral-600); font-size: 14px; }
@media (max-width: 900px){ .other-services-grid{ grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout{ display: grid; grid-template-columns: 1fr 1fr; background: var(--rg-bg-2); }
.contact-copy{ padding: 52px 36px 52px 32px; }
.contact-copy h1{ font-size: 42px; }
.contact-copy > p{ margin-top: 14px; max-width: 460px; font-size: 15.5px; line-height: 1.6; color: var(--color-neutral-400); }

.contact-channels{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.channel-card{ display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius-md); }
.channel-call{ background: var(--rg-red); }
.channel-call i{ color: #fff; }
.channel-call .channel-kicker{ color: #ffd7da; }
.channel-call .channel-value, .channel-call .channel-sub{ color: #fff; }
.channel-call .channel-sub{ color: #ffe3e5; }
.channel-whatsapp{ background: var(--rg-bg-3); box-shadow: var(--shadow-card); }
.channel-whatsapp i{ color: var(--rg-whatsapp); }
.channel-kicker{ font: 500 11px var(--font-heading); letter-spacing: .09em; text-transform: uppercase; color: var(--color-neutral-500); }
.channel-value{ font: 500 22px var(--font-heading); color: #fff; }
.channel-sub{ font-size: 12.5px; color: var(--color-neutral-400); }
.channel-card > i{ font-size: 22px; }

.contact-info{ display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.info-row{ display: flex; gap: 12px; }
.info-row i{ font-size: 20px; color: var(--color-accent); flex: none; }
.info-row .info-title{ font: 500 14px var(--font-heading); color: #fff; }
.info-row .info-sub{ font-size: 13px; line-height: 1.5; color: var(--color-neutral-400); }

.map-frame{ margin-top: 26px; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 0 0 1px var(--color-neutral-800); }
.map-embed{
  position: relative; height: 190px;
  background: repeating-linear-gradient(90deg,#1b1e2e 0 39px,#232532 39px 40px), repeating-linear-gradient(0deg,#1b1e2e 0 39px,#232532 39px 40px);
}
.map-embed .map-pin{ position: absolute; left: 150px; top: 64px; transform: translate(-50%,-100%); color: var(--rg-red); font-size: 30px; }
.map-embed .map-label{ position: absolute; left: 12px; bottom: 12px; padding: 8px 12px; border-radius: 6px; background: rgba(14,15,26,.85); font: 500 12px var(--font-heading); color: var(--color-text); }

.quote-form-col{ padding: 52px 32px 52px 36px; background: var(--rg-bg-1); border-left: 1px solid rgba(255,255,255,.07); }
.quote-form-col h2{ margin-top: 10px; font-size: 28px; }
.quote-form{ display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.field label{ display: block; font-size: 12px; margin-bottom: 5px; color: var(--color-neutral-400); }
.input{
  width: 100%; min-height: 42px; padding: 10px 12px; font-size: 14px; color: var(--color-text);
  background: var(--rg-bg-3); border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover{ border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible{ border-color: var(--color-accent); outline-offset: 0; }
textarea.input{ min-height: 96px; resize: vertical; }
.need-pills{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.need-pill{ position: relative; }
.need-pill input{ position: absolute; opacity: 0; width: 0; height: 0; }
.need-pill label{
  display: inline-flex; padding: 7px 12px; border-radius: 8px; margin: 0;
  font: 500 13px var(--font-heading); color: var(--color-neutral-400);
  box-shadow: inset 0 0 0 1px var(--color-neutral-800); cursor: pointer;
}
.need-pill input:checked + label{ box-shadow: inset 0 0 0 1px var(--color-accent); color: var(--color-accent-400); }
.form-note{ display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--color-neutral-500); }
.form-note i{ font-size: 17px; color: var(--color-accent); }
.form-status{ display: none; padding: 12px 14px; border-radius: var(--radius-md); background: var(--rg-bg-3); box-shadow: var(--shadow-card); font-size: 13.5px; color: var(--color-text); }
.form-status.is-visible{ display: block; }
.form-status.is-error{ color: var(--rg-red); box-shadow: inset 0 0 0 1px var(--rg-red); }
.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px){
  .contact-layout{ grid-template-columns: 1fr; }
  .quote-form-col{ border-left: none; border-top: 1px solid rgba(255,255,255,.07); }
}

/* ==========================================================================
   Chat widget
   ========================================================================== */
.chatbot-toggle{
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--rg-red); color: #fff; font-size: 25px;
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
  transition: background .15s, transform .15s;
}
.chatbot-toggle:hover{ background: var(--rg-red-dark); transform: translateY(-1px); }
.chatbot-toggle .ph-x{ display: none; }
.chatbot.is-open .chatbot-toggle .ph-chat-circle-dots{ display: none; }
.chatbot.is-open .chatbot-toggle .ph-x{ display: block; }

.chatbot-panel{
  position: fixed; right: 24px; bottom: 92px; z-index: 70;
  display: flex; flex-direction: column;
  width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 140px);
  background: var(--rg-bg-2); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.chatbot-panel[hidden]{ display: none; }

.chatbot-header{
  display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px;
  background: linear-gradient(160deg,#171a30,#121426); border-bottom: 1px solid rgba(255,255,255,.08); flex: none;
}
.chatbot-header-info{ display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chatbot-avatar{
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; background: var(--rg-red); color: #fff; font-size: 18px;
}
.chatbot-title{ font: 500 14px var(--font-heading); color: #fff; }
.chatbot-status{ display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-neutral-400); margin-top: 1px; }
.chatbot-status .status-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--rg-whatsapp); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rg-whatsapp) 25%, transparent); }
.chatbot-close{
  flex: none; width: 30px; height: 30px; border-radius: 8px; border: none; cursor: pointer;
  background: transparent; color: var(--color-neutral-400); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.chatbot-close:hover{ background: rgba(255,255,255,.08); color: #fff; }

.chatbot-messages{ flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg{ max-width: 84%; padding: 10px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.5; }
.chat-msg a{ color: inherit; text-decoration: underline; }
.chat-msg-bot{ align-self: flex-start; background: var(--rg-bg-3); color: var(--color-text); border-bottom-left-radius: 4px; }
.chat-msg-user{ align-self: flex-end; background: var(--rg-red); color: #fff; border-bottom-right-radius: 4px; }

.chatbot-quick-replies{ display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; flex: none; }
.chat-chip{
  padding: 7px 12px; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1px var(--color-neutral-800);
  font: 500 12.5px var(--font-heading); color: var(--color-accent-400);
}
.chat-chip:hover{ box-shadow: inset 0 0 0 1px var(--color-accent); }

.chatbot-form{ display: flex; gap: 8px; padding: 12px 14px; background: var(--rg-bg-1); border-top: 1px solid rgba(255,255,255,.08); flex: none; }
.chatbot-form .input{ flex: 1; min-height: 40px; }
.chatbot-form button{
  flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 16px;
}

@media (max-width: 640px){
  .chatbot-toggle{ bottom: 84px; }
  .chatbot-panel{ right: 16px; bottom: 148px; width: calc(100vw - 32px); height: min(480px, calc(100vh - 200px)); }
}
