/* Reset & base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  line-height: 1.6;
  background: #ffffff;
}

/* Containers */
.container { width: min(1200px, 92%); margin: 0 auto; }

/* Buttons */
.btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #1d4ed8;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 20px rgba(29,78,216,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent; color: #1d4ed8; border-color: #1d4ed8;
  box-shadow: none;
}
.btn.ghost {
  background: #f1f5f9; color: #0f172a; border-color: #e2e8f0; box-shadow: none;
}
.btn.primary { background: #2563eb; }

.linklike {
  background: none; border: none; color: #2563eb; cursor: pointer; padding: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #0b2353;
  color: #fff;
  box-shadow: 0 8px 24px rgba(2,6,23,.25);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo { height: 44px; width: auto; }
.logo.small { height: 34px; }
.main-nav { margin-left: auto; display: flex; gap: 18px; }
.main-nav a { color: #e2e8f0; text-decoration: none; font-weight: 600; }
.main-nav a:hover { color: #fff; }
#ctaHeader { margin-left: 8px; }
.nav-toggle { display:none; margin-left: 4px; background: transparent; border: none; cursor: pointer; }
.nav-toggle span { display:block; width:26px; height:3px; background:#e2e8f0; margin:5px 0; border-radius:2px; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(380px, 70vh, 720px);
  display: grid; place-items: center;
  background: url('https://images.unsplash.com/photo-1584438784894-089d6a62b8fa?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,.60), rgba(2,6,23,.65));
}
.hero-content { position: relative; text-align: center; color: #fff; }
.hero h1 { font-size: clamp(28px, 4.2vw + 8px, 46px); margin: 0 0 10px; }
.hero p { font-size: clamp(16px, 1.5vw + 6px, 20px); opacity: .95; }
.hero-cta { margin-top: 20px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 60px 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.about-photo img { width: 100%; border-radius: 16px; box-shadow: 0 10px 30px rgba(2,6,23,.25); }
.benefits { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }

/* Services */
.services { background: #f8fafc; }
.services h2, .offers h2, .testimonials h2 { text-align: center; margin-top: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 24px rgba(2,6,23,.06);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(2,6,23,.12); }
.card img { width: 100%; height: 170px; object-fit: cover; }
.card-body { padding: 14px; display: grid; gap: 8px; }

/* Offers */
.offers { background: #0b2353; color: #e2e8f0; }
.offer-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 18px; }
.offer {
  background: #0f2c69;
  padding: 20px; border-radius: 16px; position: relative;
  border: 1px solid rgba(226,232,240,.15);
}
.offer .badge {
  position: absolute; top: -10px; left: 14px;
  background: #22c55e; color: #052e16; font-weight: 800; padding: 6px 10px; border-radius: 10px;
}
.offers .btn.primary { background: #22c55e; color: #052e16; box-shadow: 0 8px 26px rgba(34,197,94,.25); }
.offers h3 { color: #fff; margin: 6px 0; }

/* Testimonials */
.testimonials { background: #f1f5f9; }
.testimonial {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px;
  box-shadow: 0 6px 24px rgba(2,6,23,.06);
}

/* CTA final */
.cta-final { text-align: center; background: linear-gradient(180deg, #e2e8f0, #f8fafc); }
.cta-final h2 { margin-top: 0; }

/* Footer */
.site-footer { background: #0b2353; color: #e2e8f0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; padding: 24px 0; }
.footer-col h4 { margin: 4px 0 8px; color: #fff; }
.footer-col a { color: #93c5fd; text-decoration: none; }
.footer-bottom { padding: 8px 0 24px; border-top: 1px solid rgba(226,232,240,.12); text-align: center; }

/* Modal */
.modal[aria-hidden="true"] { display: none; }
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(2,6,23,.55); backdrop-filter: blur(2px);
}
.modal-dialog {
  position: fixed; inset: 0; margin: auto; max-width: 520px; width: 92%;
  background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: 0 20px 60px rgba(2,6,23,.35);
}
.modal-close {
  position: absolute; top: 8px; right: 10px; font-size: 24px;
  background: transparent; border: none; cursor: pointer; color: #334155;
}
.lead-form { display: grid; gap: 10px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #cbd5e1;
  font: inherit; background: #fff;
}
.form-note { font-size: 12px; color: #475569; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display:block; }
  .hero { min-height: 60vh; }
  .logo { height: 38px; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .card:hover { transition-duration: .25s; }
}

/* Language switch */
.lang-switch { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.lang-btn { padding: 6px 10px; border-radius: 10px; background: transparent; color: #e2e8f0; border: 1px solid rgba(226,232,240,.3); cursor: pointer; font-weight: 700; }
.lang-btn[aria-pressed="true"] { background: #1e40af; border-color: #93c5fd; color: #fff; }
.lang-sep { color: #93c5fd; opacity: .7; }
@media (max-width: 720px) {
  .lang-switch { margin-left: 0; }
}

/* === Debug UI === */
.debug-toggle{
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  background:#0ea5e9; color:#00131a; border:1px solid rgba(0,0,0,.1);
  border-radius: 999px; padding:10px 14px; font-weight:800; cursor:pointer;
  box-shadow: 0 6px 18px rgba(14,165,233,.35);
}
.debug-panel{
  position: fixed; right: 14px; bottom: 60px; z-index: 60;
  width: 340px; max-width: 96vw; height: 240px; background:#0b1220; color:#e2e8f0;
  border:1px solid #1f2937; border-radius: 12px; box-shadow:0 16px 40px rgba(0,0,0,.45);
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
}
.debug-head{ display:flex; align-items:center; justify-content:space-between; padding:8px 10px; background:#111827; color:#fff; }
.debug-actions{ display:flex; align-items:center; gap:8px; }
.debug-output{
  margin:0; padding:10px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:12px; overflow:auto; white-space:pre-wrap;
}
