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

:root {
  --bg: #ffffff;
  --fg: #181c30;
  --primary: hsl(174,100%,36%);
  --primary-dark: hsl(174,100%,30%);
  --primary-light: hsl(174,100%,44%);
  --secondary: #181c30;
  --secondary-fg: #ffffff;
  --muted: #f4f5f8;
  --muted-fg: #6b7280;
  --card: #ffffff;
  --border: #e5e7ef;
  --section-alt: #f6f7fa;
  --radius: 0.75rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline-white {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-white-inv { background: #fff; color: var(--primary); }
.btn-white-inv:hover { background: #f0fefe; }
.btn-block { width: 100%; }

/* ── HEADER ── */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }

.topbar {
  background: var(--secondary);
  color: var(--secondary-fg);
  font-size: 0.8125rem;
}
.topbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1.25rem;
  max-width: 1200px; margin: 0 auto;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar a {
  display: flex; align-items: center; gap: 0.35rem;
  opacity: 0.8; transition: opacity 0.2s;
}
.topbar a:hover { opacity: 1; color: var(--primary); }

.main-nav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1200px; margin: 0 auto;
}
.logo-img { height: 2.5rem; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--fg);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.dropdown { position: relative; }
.dropdown-toggle {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.875rem; font-weight: 500;
  color: var(--fg); display: flex; align-items: center; gap: 0.25rem;
  transition: color 0.2s;
}
.dropdown-toggle:hover { color: var(--primary); }
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0; margin-top: 0.5rem;
  min-width: 14rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0.5rem 0; z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 0.5rem 1rem;
  font-size: 0.875rem; color: var(--fg);
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover { background: var(--muted); color: var(--primary); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--fg); padding: 0.25rem;
}

.mobile-menu {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a, .mobile-menu .btn-mobile {
  display: block; padding: 0.625rem 0;
  font-size: 0.9375rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}
.mobile-menu .btn-mobile {
  margin-top: 0.75rem;
  text-align: center;
  border-bottom: none;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); padding: 0.75rem 1rem;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .topbar-phone { display: none; }
}

/* ── HERO ── */
.hero {
  background: var(--secondary);
  padding: 8rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.hero-eyebrow {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 1.5rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.125rem; color: rgba(255,255,255,0.75);
  max-width: 30rem; margin-bottom: 2rem; line-height: 1.65;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Image placeholder */
.img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: #2a2f4a;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 0.75rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem; font-weight: 500;
  text-align: center; padding: 1rem;
}
.img-placeholder svg { opacity: 0.4; }
.img-placeholder span { font-size: 0.75rem; opacity: 0.6; font-family: monospace; }

.img-placeholder-light {
  background: #e8eaf0;
  border-color: #c5c9d8;
  color: #8a90a8;
}
.img-placeholder-light svg { opacity: 0.5; }
.img-placeholder-light span { opacity: 0.7; }

.hero-img-wrap {
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.hero-img-wrap img,
.hero-img-wrap .img-placeholder {
  width: 100%; height: auto; display: block;
  border-radius: 0;
}
.hero-fade {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 5rem;
  background: linear-gradient(to top, var(--bg), transparent);
}

@media (max-width: 1023px) {
  .hero { padding: 7rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img-col { display: none; }
}

/* ── TRUST BAR ── */
.trustbar { padding: 3rem 0; background: var(--bg); }
.trustbar p {
  text-align: center; margin-bottom: 2rem;
  font-size: 0.9375rem; color: var(--muted-fg);
}
.trustbar p strong { color: var(--fg); }
.trust-logos {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center; gap: 1.5rem;
}
.trust-logo-pill {
  background: var(--muted); border-radius: 0.5rem;
  padding: 0.5rem 1.5rem; font-size: 0.75rem;
  color: var(--muted-fg); font-weight: 500;
}

/* ── SECTIONS COMMON ── */
section { padding: 5rem 0; }
.section-alt { background: var(--section-alt); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 800; margin-bottom: 1rem; line-height: 1.2;
}
.section-header p {
  font-size: 1.0625rem; color: var(--muted-fg);
  max-width: 36rem; margin: 0 auto; line-height: 1.65;
}

/* ── SERVICES ── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: box-shadow 0.25s, border-color 0.25s;
  cursor: default;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-color: rgba(0,185,160,0.25);
}
.service-icon {
  width: 3rem; height: 3rem; border-radius: 0.625rem;
  background: hsla(174,100%,36%,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: background 0.25s;
}
.service-card:hover .service-icon { background: hsla(174,100%,36%,0.18); }
.service-icon svg { color: var(--primary); }
.service-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; margin-bottom: 1rem; }
.service-card a { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.service-card a:hover { text-decoration: underline; }

@media (max-width: 1023px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

/* ── WHY VOIPZO ── */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.why-img { border-radius: 1rem; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.15); }
.why-img img,
.why-img .img-placeholder { width: 100%; display: block; }
.why-content h2 { font-size: clamp(1.875rem,3vw,2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 1.25rem; }
.why-content > p { font-size: 1.0625rem; color: var(--muted-fg); line-height: 1.65; margin-bottom: 2rem; }
.usp-list { display: flex; flex-direction: column; gap: 1.25rem; }
.usp-item { display: flex; align-items: flex-start; gap: 1rem; }
.usp-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: hsla(174,100%,36%,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.usp-icon svg { color: var(--primary); }
.usp-item p { font-weight: 600; font-size: 0.9375rem; margin-top: 0.4rem; }

@media (max-width: 1023px) { .why-grid { grid-template-columns: 1fr; } .why-img { display: none; } }

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2rem; max-width: 56rem; margin: 0 auto;
}
.step { text-align: center; }
.step-circle {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px hsla(174,100%,36%,0.4);
}
.step-circle svg { color: #fff; }
.step-label {
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary); margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }

@media (max-width: 767px) { .steps-grid { grid-template-columns: 1fr; max-width: 28rem; } }

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.25rem; max-width: 62rem; margin: 0 auto;
}
.testimonial-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column;
}
.stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.stars svg { color: var(--primary); fill: var(--primary); }
.testimonial-card blockquote {
  font-size: 0.875rem; line-height: 1.65; color: var(--fg);
  flex: 1; margin-bottom: 1.5rem;
}
.testimonial-author strong { display: block; font-size: 0.875rem; font-weight: 700; }
.testimonial-author span { font-size: 0.8125rem; color: var(--muted-fg); }

@media (max-width: 640px)  { .testimonials-grid { grid-template-columns: 1fr; max-width: 28rem; margin: 0 auto; } }
@media (min-width: 641px) and (max-width: 1023px) { .testimonials-grid { grid-template-columns: repeat(2,1fr); } }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--primary); padding: 5rem 0;
  position: relative; overflow: hidden;
}
.cta-circle1 {
  position: absolute; top: 0; right: 0;
  width: 16rem; height: 16rem; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transform: translate(25%, -50%);
}
.cta-circle2 {
  position: absolute; bottom: 0; left: 0;
  width: 12rem; height: 12rem; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transform: translate(-25%, 33%);
}
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-inner h2 {
  font-size: clamp(1.75rem,3vw,2.375rem); font-weight: 800;
  color: #fff; margin-bottom: 1rem;
}
.cta-inner p { font-size: 1.0625rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; max-width: 62rem; margin: 0 auto;
}
.contact-info h2 { font-size: clamp(1.875rem,3vw,2.5rem); font-weight: 800; margin-bottom: 1rem; }
.contact-info > p { font-size: 1.0625rem; color: var(--muted-fg); line-height: 1.65; margin-bottom: 2rem; }
.contact-detail { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.75rem; }
.contact-office { margin-bottom: 1rem; }
.contact-office strong {
  display: block; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-fg); margin-bottom: 0.25rem; font-weight: 700;
}
.contact-office p { font-size: 0.875rem; color: var(--muted-fg); }

.form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }
input, textarea {
  width: 100%; padding: 0.625rem 0.875rem;
  border: 1px solid var(--border); border-radius: calc(var(--radius) * 0.75);
  background: var(--bg); color: var(--fg);
  font-family: inherit; font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(174,100%,36%,0.15);
}
textarea { resize: vertical; min-height: 7rem; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: #1a1a2e; color: #fff;
  padding: 0.875rem 1.5rem; border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  font-size: 0.9rem; font-weight: 500;
  transform: translateY(120%); transition: transform 0.3s ease;
  z-index: 1000;
}
.toast.show { transform: translateY(0); }
.toast-icon { color: var(--primary); margin-right: 0.5rem; }

@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px)  { .form-row { grid-template-columns: 1fr; } }

/* ── FOOTER ── */
footer { background: var(--secondary); color: var(--secondary-fg); padding: 4rem 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}
.logo-text { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.logo-text span { color: var(--primary); }
.footer-brand .logo-text { margin-bottom: 0.5rem; }
.footer-brand > p { font-size: 0.875rem; color: rgba(255,255,255,0.55); margin-bottom: 1rem; }
.social-links { display: flex; gap: 0.625rem; }
.social-btn {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--primary); }
.social-btn svg { width: 1rem; height: 1rem; }

.footer-col h3 {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--primary); }
.footer-contact-item { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 0.875rem; }
.footer-contact-item strong {
  display: block; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.9); margin-bottom: 0.2rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--primary); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 3rem; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
}
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--primary); }

@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ── ANIMATIONS ── */
.animate-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

svg { display: inline-block; vertical-align: middle; }
