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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e1e1e;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===========================
   VARIABLES
   =========================== */
:root {
  --blue: #1A73E8;
  --blue-light: #e8f0fe;
  --blue-dark: #1558c0;
  --white: #ffffff;
  --gray-50: #f5f5f5;
  --gray-100: #eeeeee;
  --gray-400: #9e9e9e;
  --gray-600: #666666;
  --dark: #1e1e1e;
  --dark-footer: #0d1b2e;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --shadow-blue: 0 8px 24px rgba(26,115,232,.25);
  --transition: 0.25s ease;
  --max-w: 1200px;
}

/* ===========================
   UTILITIES
   =========================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad { padding: 6rem 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-divider {
  width: 5rem;
  height: 4px;
  background: var(--blue);
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem;
}

.section-divider--left { margin: 0 0 1.5rem; }

.section-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26,115,232,.35);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--gray-100);
}

.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.9rem 2rem;
}

.btn-full { width: 100%; justify-content: center; }

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow var(--transition), padding var(--transition);
  padding: 1.1rem 0;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  padding: 0.65rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition);
}

.logo:hover img { opacity: 0.85; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover { color: var(--blue); }
.nav-link:hover::after { width: 100%; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 8px 16px rgba(0,0,0,.06);
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
}

.nav-mobile .nav-link:hover { background: var(--gray-50); }

.nav-mobile .btn { margin-top: 0.75rem; }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 10rem 0 7rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gray-50);
}

.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.92) 100%);
}

.hero-float {
  position: absolute;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  display: none;
  animation: float 6s ease-in-out infinite;
}

.hero-float--left  { top: 28%; left: 8%; animation-duration: 6s; }
.hero-float--right { bottom: 30%; right: 8%; animation-duration: 7s; animation-delay: 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(4deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26,115,232,.1);
  color: var(--blue);
  border: 1px solid rgba(26,115,232,.2);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.hero-title--accent {
  background: linear-gradient(135deg, var(--blue) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===========================
   SERVICES
   =========================== */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover .service-icon { background: var(--blue); }
.service-card:hover .service-icon svg { stroke: var(--white); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background var(--transition);
}

.service-icon svg { stroke: var(--blue); transition: stroke var(--transition); }

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===========================
   BENEFITS
   =========================== */
.benefits { background: var(--gray-50); }

.benefits-inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: flex-start;
}

.benefits-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  aspect-ratio: 4 / 3;
  margin-top: 1.5rem;
  display: none;
}

.benefits-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

.benefit-card {
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.benefit-card:hover { box-shadow: var(--shadow-md); }

.benefit-card svg { margin-bottom: 1rem; }

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===========================
   CONTACT
   =========================== */
.contact { background: var(--white); }

.contact-card {
  background: var(--dark);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
}

.contact-info {
  position: relative;
  padding: 3rem;
  color: var(--white);
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: -4rem; right: -4rem;
  width: 16rem; height: 16rem;
  background: var(--blue);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.18;
  pointer-events: none;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.contact-info > p {
  color: #9ca3af;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form-wrap {
  background: var(--white);
  padding: 3rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--gray-50);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}

.form-group input { height: 48px; }
.form-group textarea { min-height: 120px; }

.form-group input.invalid,
.form-group textarea.invalid { border-color: #ef4444; }

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1em;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--dark-footer);
  color: var(--white);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.logo--footer img { height: 38px; filter: brightness(1.05); }

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.9rem;
  color: #9ca3af;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--white); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-bottom p { font-size: 0.875rem; color: #6b7280; }

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #6b7280;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

/* ===========================
   POPUP
   =========================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: 1rem;
}

.popup-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.popup {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  transform: scale(0.9);
  transition: transform var(--transition);
}

.popup-overlay.visible .popup { transform: scale(1); }

.popup-icon {
  width: 64px; height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.popup h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.popup p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (min-width: 640px) {
  .hero-float { display: block; }
}

@media (min-width: 768px) {
  .contact-card { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: row; justify-content: space-between; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
  .benefits-inner { flex-direction: row; gap: 5rem; }
  .benefits-left { flex: 0 0 33%; }
  .benefits-right { flex: 1; }
  .benefits-img-wrap { display: block; }
}

@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
  .benefits-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 4rem 0; }
  .hero { padding: 8rem 0 5rem; min-height: auto; }
  .contact-info, .contact-form-wrap { padding: 2rem; }
}

@media (max-width: 500px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
