/* ===================================================================
   Computer Club — one-page vitrine
   =================================================================== */

:root {
  --navy: #0b2c4d;
  --navy-2: #123a66;
  --blue: #164b83;
  --blue-2: #2f6bb0;
  --steel: #7fa3cc;
  --accent: #ec6933;
  --accent-2: #fb6b04;
  --ink: #1c2a3a;
  --muted: #5c7086;
  --bg: #f4f7fb;
  --bg-soft: #eef2f8;
  --white: #ffffff;
  --border: #e2e8f2;
  --shadow-sm: 0 2px 10px rgba(11, 44, 77, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 44, 77, 0.1);
  --shadow-lg: 0 20px 50px rgba(11, 44, 77, 0.16);
  --radius: 16px;
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section.section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
}
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--white); box-shadow: 0 8px 20px rgba(236, 105, 51, 0.3); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(236, 105, 51, 0.4); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--bg-soft); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1eb857; transform: translateY(-2px); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.topbar-contacts { display: flex; align-items: center; gap: 22px; }
.topbar-item { display: flex; align-items: center; gap: 7px; color: inherit; opacity: 0.9; }
.topbar-item:hover { opacity: 1; color: var(--steel); }
.topbar-item .icon { width: 14px; height: 14px; }
.topbar-hours { display: flex; align-items: center; gap: 7px; opacity: 0.8; }
.topbar-hours .icon { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

.brand { display: flex; align-items: center; height: 100%; }
.brand-logo { height: 52px; width: auto; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7faff 0%, var(--bg) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(650px circle at 82% 10%, rgba(47, 107, 176, 0.14), transparent 60%),
    radial-gradient(500px circle at 100% 60%, rgba(236, 105, 51, 0.08), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero-text .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(236,105,51,0.1); padding: 6px 14px; border-radius: 999px; }

.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 20px;
}
.hero-text h1 span {
  background: linear-gradient(135deg, var(--blue-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 46px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.hero-stat span { color: var(--muted); font-size: 0.88rem; }

.hero-visual { position: relative; display: flex; flex-direction: column; gap: 18px; }
.hero-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
}
.hero-card .icon { width: 26px; height: 26px; }
.hero-card div { display: flex; flex-direction: column; }
.hero-card strong { font-family: var(--font-head); font-size: 1rem; color: var(--navy); }
.hero-card span { color: var(--muted); font-size: 0.85rem; }
.hero-card-1 { align-self: flex-start; margin-left: 10%; }
.hero-card-1 .icon { color: var(--blue); }
.hero-card-1 svg { background: rgba(22,75,131,0.08); border-radius: 10px; padding: 6px; box-sizing: content-box; }
.hero-card-2 { align-self: center; width: 92%; }
.hero-card-2 .icon { color: #1a9e5c; }
.hero-card-2 svg { background: rgba(26,158,92,0.1); border-radius: 10px; padding: 6px; box-sizing: content-box; }
.hero-card-3 { align-self: flex-end; margin-right: 4%; }
.hero-card-3 .icon { color: var(--accent); }
.hero-card-3 svg { background: rgba(236,105,51,0.1); border-radius: 10px; padding: 6px; box-sizing: content-box; }

/* ---------- Partners strip ---------- */
.partners { background: var(--navy); padding: 46px 0; }
.partners-label { text-align: center; color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 26px; }
.partners-grid { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.partner-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 14px 26px;
  transition: all 0.2s ease;
}
.partner-badge span { color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; }
.partner-badge:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }

/* ---------- Services ---------- */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 42px;
  transition: all 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; background: var(--white); }
.service-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg { width: 30px; height: 30px; fill: var(--white); }
.service-icon-blue { background: linear-gradient(135deg, var(--blue), var(--navy-2)); }
.service-icon-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.service-card h3 { font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); margin-bottom: 12px; }
.service-card p { color: var(--muted); margin-bottom: 22px; }
.service-list { display: flex; flex-wrap: wrap; gap: 10px; }
.service-list li {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue);
}
.service-card:hover .service-list li { background: var(--bg); }

/* ---------- Why us ---------- */
.why { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-card {
  background: var(--white);
  border-radius: 18px;
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card .icon {
  width: 48px; height: 48px;
  color: var(--blue);
  background: rgba(22,75,131,0.08);
  border-radius: 14px;
  padding: 12px;
  box-sizing: content-box;
  margin: 0 auto 20px;
}
.why-card h4 { font-family: var(--font-head); color: var(--navy); font-size: 1.08rem; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Agences ---------- */
.agences { background: var(--white); }
.agences-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.agence-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  transition: all 0.25s ease;
}
.agence-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: var(--white); }
.agence-card.agence-highlight { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); }
.agence-card.agence-highlight .agence-addr { color: rgba(255,255,255,0.75); }
.agence-card.agence-highlight .agence-hours { color: rgba(255,255,255,0.85); border-top-color: rgba(255,255,255,0.15); }
.agence-card.agence-highlight h3 { color: var(--white); }
.agence-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.agence-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(22,75,131,0.08);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.agence-highlight .agence-icon { background: rgba(255,255,255,0.12); color: var(--white); }
.agence-icon svg { width: 22px; height: 22px; }
.agence-card h3 { font-family: var(--font-head); color: var(--navy); font-size: 1.15rem; margin-bottom: 6px; }
.agence-addr { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.agence-hours {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.82rem; color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.agence-hours .icon-sm { margin-top: 2px; color: var(--accent); }

/* ---------- Contact ---------- */
.contact { background: var(--bg); }
.contact-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: stretch; }
.contact-text .section-lead { margin-bottom: 34px; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.contact-method {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  transition: all 0.2s ease;
}
.contact-method:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.contact-method-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(22,75,131,0.08);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.contact-method-icon svg { width: 22px; height: 22px; fill: currentColor; }
.contact-method-icon-whatsapp { background: rgba(37,211,102,0.12); color: #25d366; }
.contact-method strong { display: block; color: var(--navy); font-size: 0.95rem; }
.contact-method span { color: var(--muted); font-size: 0.88rem; }

.contact-hours-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 26px 28px;
}
.contact-hours-card h4 { font-family: var(--font-head); margin-bottom: 16px; font-size: 1.02rem; }
.contact-hours-row {
  display: flex; justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
}
.contact-hours-row:last-child { border-bottom: none; }
.contact-hours-row span { color: rgba(255,255,255,0.7); }
.contact-hours-note { color: var(--steel); }
.contact-hours-note span, .contact-hours-note strong { color: var(--steel); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: #081f38; color: rgba(255,255,255,0.7); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 0 46px;
}
.footer-logo { height: 46px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 { color: var(--white); font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col span { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--steel); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner { padding: 20px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Floating buttons ---------- */
.float-whatsapp {
  position: fixed; right: 26px; bottom: 26px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform 0.2s ease;
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 30px; height: 30px; fill: var(--white); }

.back-to-top {
  position: fixed; right: 26px; bottom: 96px;
  width: 44px; height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; fill: var(--blue); }
.back-to-top:hover svg { fill: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .agences-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .topbar-hours { display: none; }
  .nav { display: none; }
  .header-actions .btn-whatsapp span { display: none; }
  .nav-toggle { display: flex; }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav.open .nav-link { padding: 12px 0; border-bottom: 1px solid var(--bg-soft); width: 100%; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card-1, .hero-card-3 { margin: 0; }
  .hero-card-2 { width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 26px; }

  .services-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section.section { padding: 64px 0; }
  .topbar-contacts { gap: 14px; }
  .topbar-item span { display: none; }
  .header-inner { height: 68px; }
  .brand-logo { height: 40px; }
  .why-grid { grid-template-columns: 1fr; }
  .agences-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; padding: 50px 0 30px; }
}
