/* Base */
:root {
  --bg: #0b1220;
  --surface: #0f172a;
  --surface-alt: #0b132a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #0ea5e9;
  --primary-700: #0284c7;
  --accent: #22d3ee;
  --ring: rgba(14,165,233,0.35);
  --grad-primary: linear-gradient(90deg, #0ea5e9 0%, #22d3ee 50%, #38bdf8 100%);
  --grad-surface: linear-gradient(180deg, rgba(15,23,42,0.92), rgba(15,23,42,0.72));
  --grad-hover: linear-gradient(90deg, rgba(148,163,184,0.18), rgba(148,163,184,0.28));
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(148,163,184,0.15);
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; }
.brand-name { color: var(--text); }
.brand-logo { display: block; height: 32px; width: auto; object-fit: contain; }
.footer-brand .brand-logo { height: 28px; }
.brand-placeholder { display: block; height: 32px; width: 120px; background: rgba(148,163,184,0.18); border: 1px dashed rgba(148,163,184,0.4); border-radius: 8px; }
.footer-brand .brand-placeholder { height: 28px; width: 100px; }
.nav { display: flex; gap: 18px; }
.nav-link { padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(148,163,184,0.08); }

/* Mobile nav toggle */
.nav-toggle { display: none; align-items: center; justify-content: center; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(148,163,184,0.3); background: var(--surface); color: var(--text); }
.nav-toggle:focus { outline: none; box-shadow: 0 0 0 4px var(--ring); }

@media (max-width: 740px) {
  .header-inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid rgba(148,163,184,0.2); border-radius: 12px; padding: 10px; }
  .nav.is-open { display: flex; }
  .brand-logo { height: 24px; }
  .section { padding: 52px 0; }
  .hero-content { padding: 36px 0; }
}

@media (max-width: 620px) {
  .contact-form .form-row { display: flex; flex-direction: column; gap: 12px; }
}

/* Hero */
.hero { position: relative; min-height: 420px; display: grid; align-items: center; }
.hero-bg {
  position: absolute; inset: 0;
  /* Use local hero image without color overlay so the image's true colors show */
  background-image: url('images/main_image.png');
  background-position: center; background-size: cover; filter: none;
}
.hero-content { position: relative; padding: 48px 0; }
.hero h1 { font-size: clamp(28px, 5vw, 42px); margin: 0 0 10px; color: #ffffff; text-shadow: 0 2px 10px rgba(2,6,23,0.6); }
.hero p { margin: 0 0 20px; color: #ffffff; opacity: 0.95; text-shadow: 0 1px 6px rgba(2,6,23,0.5); }
.hero-cta { display: flex; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: transform 180ms ease, box-shadow 180ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #091222; box-shadow: 0 0 0 8px var(--ring); }
.btn-primary:hover { background: var(--primary-700); }
.hero-cta .btn-primary { /* explicit rule to make both CTAs identical */
  background: var(--primary);
  color: #091222;
  box-shadow: 0 0 0 8px var(--ring);
}
.hero-cta .btn-primary:hover { background: var(--primary-700); }
.btn-ghost { border: 1px solid rgba(148,163,184,0.3); color: var(--text); }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: linear-gradient(180deg, rgba(35, 76, 106, 0.6), rgba(35, 76, 106, 0.3)); }
.section-title { font-size: clamp(22px, 4vw, 32px); margin: 0 0 8px; }
.section-subtitle { margin: 0 0 28px; color: var(--muted); }

/* Solutions Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 14px;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(34,211,238,0.45); box-shadow: 0 10px 30px rgba(2,132,199,0.08); }
.card-icon { font-size: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; }

@media (max-width: 920px) {
  .card { grid-column: span 6; }
}
@media (max-width: 620px) {
  .card { grid-column: span 12; }
}

/* Carousel */
.carousel { position: relative; background: var(--surface); border: 1px solid rgba(148,163,184,0.15); border-radius: 14px; padding: 16px; overflow: hidden; }
.slides { display: flex; transition: transform 380ms ease; will-change: transform; }
.testimonial { width: 100%; flex: 0 0 100%; padding: 12px; }
.testimonial p { font-size: 18px; line-height: 1.6; }
.author { margin-top: 12px; color: var(--muted); }
.carousel-controls { position: absolute; inset: 0 0 auto auto; display: flex; gap: 8px; padding: 8px; }
.carousel-btn { background: rgba(148,163,184,0.15); color: var(--text); border: none; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.carousel-btn:hover { background: rgba(148,163,184,0.28); }
.carousel-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0 0; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(148,163,184,0.25); cursor: pointer; }
.carousel-dots button.active { background: var(--primary); }

/* Form embed */
.form-embed { background: var(--surface); border: 1px solid rgba(148,163,184,0.15); border-radius: 14px; padding: 0; overflow: hidden; }
/* Contact Form */
.contact-form { background: var(--surface); border: 1px solid rgba(148,163,184,0.15); border-radius: 14px; padding: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { color: var(--muted); font-weight: 500; }
.form-field input { background: rgba(15,23,42,0.7); border: 1px solid rgba(148,163,184,0.2); color: var(--text); border-radius: 10px; padding: 10px 12px; outline: none; }
.form-field input::placeholder { color: #64748b; }
.form-field input:focus { border-color: rgba(34,211,238,0.5); box-shadow: 0 0 0 6px var(--ring); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.form-status { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.35); }

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

/* WhatsApp */
/* Contact actions: place WhatsApp and Email links in a row with spacing */
.contact-actions { display: flex; gap: 18px; align-items: center; }
.contact-actions a { display: inline-flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.45); border: 1px solid rgba(148,163,184,0.12); border-radius: 12px; padding: 10px 12px; }
.contact-actions a .wa-text, .contact-actions a .email-text { color: var(--text); }
/* Inline icon style for circular small icons (replaces fixed FABs) */
.contact-actions .icon-circle { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 8px 18px rgba(0,0,0,0.28); }
.contact-actions .icon-circle.wa { background: #25D366; }
.contact-actions .icon-circle.email { background: #0A66C2; }

/* Footer */
.site-footer { border-top: 1px solid rgba(148,163,184,0.15); padding: 26px 0; background: rgba(15,23,42,0.5); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-nav { display: flex; gap: 14px; justify-content: center; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.footer-meta { text-align: right; color: var(--muted); }

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-meta { text-align: center; }
}

/* Animations */
[data-animate] { opacity: 0; transform: translateY(18px); transition: opacity 400ms ease, transform 400ms ease; }
.in-view { opacity: 1; transform: translateY(0); }