@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --accent: #2a2e71;
  --accent-hover: #1d2057;
  --text: #2d2d2d;
  --muted: #6b7280;
  --bg: #fff;
  --surface: #f5f6fa;
  --dark: #0f1029;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Libre Baskerville', serif;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid #e5e7eb;
  padding: 0 0;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
}
.header-logo img { height: 44px; width: auto; }
.header-nav { display: flex; gap: 32px; align-items: center; }
.header-nav a {
  font-size: 15px; font-weight: 500; color: var(--text);
  position: relative; padding: 4px 0;
}
.header-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .3s;
}
.header-nav a:hover { color: var(--accent); }
.header-nav a:hover::after { width: 100%; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  min-height: 600px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,16,41,.85) 0%, rgba(15,16,41,.4) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 600px; padding: 80px 0; color: #fff;
}
.hero-content h1 { color: #fff; margin-bottom: 20px; }
.hero-content p { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 32px; line-height: 1.7; }
.hero-btn {
  display: inline-block; padding: 14px 36px;
  background: var(--accent); color: #fff; border-radius: 6px;
  font-weight: 600; font-size: 15px; transition: background .2s;
}
.hero-btn:hover { background: var(--accent-hover); color: #fff; }

.stats-bar {
  background: var(--dark); padding: 28px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-item .stat-num { font-family: 'Libre Baskerville', serif; font-size: 2rem; font-weight: 700; color: #fff; }
.stat-item .stat-label { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 4px; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-surface { background: var(--surface); }
.section-dark { background: var(--dark); color: #fff; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.card {
  background: var(--bg); border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card-body p { color: var(--muted); font-size: 15px; }

/* CTA BAND */
.cta-band {
  background: var(--accent); padding: 60px 0; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 17px; }
.cta-band .btn-white {
  display: inline-block; padding: 14px 40px;
  background: #fff; color: var(--accent); border-radius: 6px;
  font-weight: 600; transition: background .2s;
}
.cta-band .btn-white:hover { background: #f0f0f0; color: var(--accent-hover); }

/* ABOUT SPLIT */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { border-radius: 12px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; color: var(--muted); }
.about-text p:last-child { margin-bottom: 0; }

/* CAPABILITIES GRID */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cap-item {
  background: var(--bg); border-radius: 10px; padding: 28px;
  border: 1px solid #e5e7eb; transition: border-color .3s;
}
.cap-item:hover { border-color: var(--accent); }
.cap-icon { width: 48px; height: 48px; margin-bottom: 16px; color: var(--accent); }
.cap-item h3 { font-size: 1.1rem; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.cap-item p { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 16px;
}
.faq-q::after { content: '+'; font-size: 24px; color: var(--accent); transition: transform .3s; }
.faq-item.active .faq-q::after { content: '-'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a-inner { padding: 0 0 20px 0; color: var(--muted); line-height: 1.7; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { margin-bottom: 16px; }
.contact-detail { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-detail svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; margin-bottom: 16px;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--accent);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.btn-primary {
  display: inline-block; padding: 14px 36px;
  background: var(--accent); color: #fff; border: none; border-radius: 6px;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--accent-hover); }

/* FOOTER */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* PAGE HERO */
.page-hero {
  background: var(--dark); padding: 80px 0 60px; text-align: center; color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 17px; }

/* LEGAL */
.legal-content { padding: 60px 0; }
.legal-content h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 10px; font-family: 'DM Sans', sans-serif; }
.legal-content p { margin-bottom: 14px; color: var(--muted); }
.legal-content ul { margin: 12px 0 18px 24px; color: var(--muted); }
.legal-content li { margin-bottom: 6px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 14px; border: 1px solid #e5e7eb; font-size: 14px; }
.legal-content th { background: var(--surface); font-weight: 600; }

/* TEAM GRID */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.team-member { text-align: center; }
.team-member-img { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; }
.team-member-img img { width: 100%; height: 100%; object-fit: cover; }
.team-member h3 { font-size: 1.1rem; margin-bottom: 4px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.team-member .role { color: var(--accent); font-size: 14px; font-weight: 500; }
.team-member p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* PORTFOLIO */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.portfolio-item { position: relative; border-radius: 12px; overflow: hidden; }
.portfolio-item img { width: 100%; height: 280px; object-fit: cover; transition: transform .4s; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(15,16,41,.85));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.portfolio-overlay h3 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.portfolio-overlay span { color: rgba(255,255,255,.7); font-size: 14px; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--dark); color: #fff; padding: 20px 24px;
  transform: translateY(100%); transition: transform .4s;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { max-width: 1200px; margin: 0 auto; }
.cookie-inner p { font-size: 14px; margin-bottom: 12px; color: rgba(255,255,255,.8); }
.cookie-inner a { color: rgba(255,255,255,.9); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.cookie-btn--accept { background: var(--accent); color: #fff; }
.cookie-btn--accept:hover { background: var(--accent-hover); }
.cookie-btn--settings { background: rgba(255,255,255,.15); color: #fff; }
.cookie-btn--reject { background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); }
.cookie-settings { display: none; margin: 16px 0 8px; }
.cookie-settings.show { display: block; }
.cookie-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.cookie-opt input[type=checkbox] { accent-color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 16px 24px; border-bottom: 1px solid #e5e7eb; gap: 12px; }
  .header-nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero { min-height: 400px; }
  .hero-content { padding: 40px 0; }
}
