/* ============================================
   WEBEVI — Site statique SEO-ready
   Palette: navy #1a3050, blue #2a7ab5, teal #5bb5b0
   Fonts: Montserrat (headings), Poppins (body)
   ============================================ */

:root {
  --navy: #1a3050;
  --navy-dk: #0f1f33;
  --blue: #2a7ab5;
  --blue-l: #4a9fd4;
  --teal: #5bb5b0;
  --white: #ffffff;
  --off: #f7f9fb;
  --gray: #6b7d8e;
  --gray-l: #e8edf2;
  --text: #2c3e50;
  --text-l: #5a6d7e;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 650px; margin: 0 auto; padding: 0 24px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(15,31,51,0.97);
  backdrop-filter: blur(10px);
  padding: 12px 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 100px; width: auto; }
.nav-logo span { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 500; letter-spacing: 0.3px; }
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white) !important; padding: 10px 22px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 15px rgba(42,122,181,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42,122,181,0.5); color: var(--white) !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy-dk) 0%, var(--navy) 50%, #1a4060 100%);
  position: relative; overflow: hidden; padding: 120px 24px 80px; text-align: center;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,122,181,0.08), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -50px; left: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,181,176,0.06), transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-tag { color: var(--teal); font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: 48px; font-weight: 800; color: var(--white); margin-bottom: 24px; letter-spacing: -1px; }
.hero h1 .gradient { background: linear-gradient(135deg, var(--blue-l), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { color: rgba(255,255,255,0.7); font-size: 18px; line-height: 1.7; max-width: 600px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white); padding: 16px 36px; border-radius: 10px;
  font-size: 16px; font-weight: 600; font-family: 'Poppins', sans-serif;
  box-shadow: 0 8px 30px rgba(42,122,181,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(42,122,181,0.4); color: var(--white); }
.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.8);
  padding: 16px 36px; border-radius: 10px;
  font-size: 16px; font-weight: 500; font-family: 'Poppins', sans-serif;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-dark {
  display: inline-block;
  border: 1.5px solid var(--gray-l); color: var(--text);
  padding: 14px 30px; border-radius: 10px;
  font-size: 15px; font-weight: 500; font-family: 'Poppins', sans-serif;
  transition: all 0.3s;
}
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }

/* ============ STATS BAR ============ */
.stats-bar {
  max-width: 900px; margin: -40px auto 0; position: relative; z-index: 10;
  background: var(--white); border-radius: var(--radius); padding: 36px 24px;
  box-shadow: var(--shadow-lg);
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px;
}
.stat { text-align: center; min-width: 140px; }
.stat-num { font-family: 'Montserrat', sans-serif; font-size: 36px; font-weight: 800; color: var(--navy); }
.stat-num span { font-size: 20px; color: var(--blue); }
.stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ============ SECTIONS ============ */
.section { padding: 80px 24px; }
.section-dark { background: linear-gradient(135deg, var(--navy), var(--navy-dk)); color: var(--white); }
.section-alt { background: var(--off); }
.section-tag { color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 800; color: var(--navy); margin-bottom: 48px; line-height: 1.2; }
.section-dark .section-title { color: var(--white); }

/* ============ PROBLEM CARDS ============ */
.problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.problem-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 24px;
  box-shadow: var(--shadow); border-top: 3px solid rgba(42,122,181,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.problem-icon { font-size: 32px; margin-bottom: 16px; }
.problem-card h3 { font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.problem-card p { font-size: 14px; color: var(--text-l); line-height: 1.6; }

/* ============ SERVICE CARDS ============ */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card {
  border-radius: var(--radius); padding: 36px 28px;
  background: var(--off); border-left: 4px solid var(--blue);
  transition: transform 0.3s;
}
.service-card:hover { transform: translateX(6px); }
.service-card.teal { border-left-color: var(--teal); }
.service-card.mid { border-left-color: #3a7ca5; }
.service-card.dark { border-left-color: #2a6a7a; }
.service-card h3 { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-card p { font-size: 15px; color: var(--text-l); line-height: 1.65; margin-bottom: 16px; }
.service-card a { font-size: 14px; font-weight: 600; }

/* ============ TESTIMONIALS ============ */
.testi-wrapper { position: relative; min-height: 220px; }
.testi-item {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transition: opacity 0.6s ease; pointer-events: none;
}
.testi-item.active { position: relative; opacity: 1; pointer-events: auto; }
.testi-card {
  background: var(--white); border-radius: 16px; padding: 40px 36px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}
.testi-card p.quote { font-size: 17px; color: var(--text); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testi-card .author { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.testi-card .role { font-size: 13px; color: var(--gray); }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 4px; border: none; cursor: pointer;
  background: var(--gray-l); transition: all 0.3s;
}
.testi-dot.active { width: 28px; background: var(--blue); }

/* ============ REALISATIONS ============ */
.real-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.real-card {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
  background: var(--white);
}
.real-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.real-card img { width: 100%; height: 180px; object-fit: cover; }
.real-card-body { padding: 20px; }
.real-card h3 { font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.real-card p { font-size: 13px; color: var(--text-l); line-height: 1.5; }

/* ============ ABOUT SHORT ============ */
.about-row { display: flex; gap: 48px; align-items: center; }
.about-avatar {
  flex: 0 0 200px; width: 200px; height: 200px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px rgba(26,48,80,0.2);
}
.about-avatar span { font-family: 'Montserrat', sans-serif; font-size: 64px; color: var(--white); font-weight: 800; }
.about-text h2 { font-size: 30px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.about-text p { font-size: 15px; color: var(--text-l); line-height: 1.7; margin-bottom: 12px; }

/* ============ CTA SECTION ============ */
.cta-section { text-align: center; }
.cta-section h2 { font-size: 34px; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 32px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  background: linear-gradient(160deg, var(--navy-dk) 0%, var(--navy) 100%);
  padding: 140px 24px 60px; text-align: center;
}
.page-hero h1 { font-size: 40px; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; }

/* ============ CONTENT SECTIONS (10§ pages) ============ */
.content-section { padding: 60px 24px; }
.content-section:nth-child(even) { background: var(--off); }
.content-section h2 { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.content-section h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.content-section p { font-size: 16px; color: var(--text-l); line-height: 1.7; margin-bottom: 16px; max-width: 750px; }
.content-section ul { list-style: none; padding: 0; margin-bottom: 16px; }
.content-section ul li { padding: 6px 0 6px 24px; position: relative; font-size: 15px; color: var(--text-l); }
.content-section ul li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ============ SCROLL TO TOP ============ */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white); border: none; cursor: pointer;
  font-size: 20px; line-height: 48px; text-align: center;
  box-shadow: 0 4px 15px rgba(42,122,181,0.3);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.2s;
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { box-shadow: 0 6px 25px rgba(42,122,181,0.5); transform: translateY(-2px); }

/* ============ FAQ ============ */
.faq-list { max-width: 750px; }
.faq-item { border-bottom: 1px solid var(--gray-l); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; cursor: pointer; font-family: 'Montserrat', sans-serif;
  font-size: 16px; font-weight: 600; color: var(--navy);
  background: none; border: none; width: 100%; text-align: left;
}
.faq-q:hover { color: var(--blue); }
.faq-q .arrow { transition: transform 0.3s; font-size: 14px; color: var(--gray); }
.faq-q.open .arrow { transform: rotate(180deg); }
.faq-a { padding: 0 0 18px; font-size: 15px; color: var(--text-l); line-height: 1.7; display: none; }
.faq-a.open { display: block; }

/* ============ CONTACT FORM ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 700px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px; border: 1.5px solid var(--gray-l); border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 15px; color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============ FOOTER ============ */
.footer { background: var(--navy-dk); padding: 40px 24px 24px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 13px; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.4); }

/* ============ ANIMATIONS ============ */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.d4 { transition-delay: 0.4s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(15,31,51,0.97); padding: 20px 40px; gap: 16px; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .stats-bar { flex-direction: column; gap: 16px; margin-top: -20px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-row { flex-direction: column; text-align: center; }
  .about-avatar { flex: none; }
  .form-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .page-hero h1 { font-size: 30px; }
  .real-grid { grid-template-columns: 1fr; }
}
