/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0e1a2b;
  --navy-mid: #1a2e47;
  --accent: #2d7dd2;
  --accent-light: #e8f1fb;
  --text: #1a1a2e;
  --muted: #6b7a90;
  --border: #e2e8f0;
  --bg: #f9fafb;
  --white: #ffffff;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 16px rgba(14,26,43,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
.section-label {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem; display: block;
}
.section-intro {
  font-size: 1.05rem; color: var(--muted);
  max-width: 600px; margin-bottom: 3rem; line-height: 1.8;
}

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 66px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.3rem;
  color: var(--navy); text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 0.25rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.9rem; font-weight: 400;
  padding: 6px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg); }
.nav-links a.active { color: var(--navy); font-weight: 500; }
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--white) !important; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; color: var(--navy);
}
.nav-toggle svg { display: block; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; text-decoration: none;
  padding: 13px 26px; border-radius: 10px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  transition: background 0.2s, transform 0.15s, color 0.2s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: #c5d8f0; }

/* ===== HERO ===== */
.hero {
  min-height: 86vh; display: flex; align-items: center;
  padding: 5rem 0 4rem;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem; align-items: center;
}
.hero em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1.1rem; color: var(--muted);
  max-width: 480px; margin-bottom: 2.5rem; line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-ghost {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.hero-ghost:hover { color: var(--text); }
.hero-visual {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
}
.hero-visual::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: var(--accent-light); border-radius: 50%; z-index: 0;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  position: relative; z-index: 1;
}
.stat-icon {
  width: 42px; height: 42px; background: var(--accent-light);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.stat-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 1px; }
.stat-value { font-weight: 500; font-size: 0.95rem; color: var(--navy); }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.service-num {
  font-family: var(--serif); font-size: 2.4rem; font-style: italic;
  color: var(--border); line-height: 1; margin-bottom: 1rem;
}
.service-title { font-weight: 500; font-size: 1.05rem; color: var(--navy); margin-bottom: 0.6rem; }
.service-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }
.service-card-accent {
  position: relative; overflow: hidden;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s, transform 0.2s;
}
.service-card-accent:hover { border-color: var(--accent); transform: translateY(-4px); }

/* ===== STEPS ===== */
.steps { display: flex; flex-direction: column; }
.step {
  display: flex; gap: 2rem; align-items: flex-start;
  padding: 2rem 0; border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--serif); font-style: italic;
  font-size: 3rem; color: var(--accent-light);
  line-height: 1; flex-shrink: 0; width: 64px; text-align: center;
}
.step-title { font-weight: 500; font-size: 1.05rem; color: var(--navy); margin-bottom: 0.3rem; }
.step-desc { font-size: 0.92rem; color: var(--muted); }

/* ===== DARK SECTION ===== */
.dark-section { background: var(--navy); color: var(--white); }
.dark-section .section-label { color: #7eb8f5; }
.dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section p { color: rgba(255,255,255,0.7); }
.dark-section strong { color: var(--white); font-weight: 500; }

.trust-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1rem;
}
.trust-icon { font-size: 1.4rem; flex-shrink: 0; }
.trust-title { font-weight: 500; font-size: 0.95rem; color: var(--white); margin-bottom: 0.2rem; }
.trust-desc { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ===== CONTACT FORM ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-size: 0.82rem; font-weight: 500; color: var(--navy); display: block; margin-bottom: 5px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 14px;
  font-family: var(--sans); font-size: 0.92rem; color: var(--text);
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,125,210,0.12);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.success-msg {
  display: none; background: #eaf5e9; border: 1px solid #a8d5a2;
  border-radius: var(--radius); padding: 1rem 1.25rem;
  color: #2e6b2a; font-size: 0.92rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
}
.page-header .section-label { margin-bottom: 0.5rem; }

/* ===== BLOG / CASE ===== */
.posts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-tag {
  display: inline-block; background: var(--accent-light); color: var(--accent);
  font-size: 0.75rem; font-weight: 500; padding: 3px 10px;
  border-radius: 100px; margin-bottom: 0.75rem;
}
.post-title { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; }
.post-desc { font-size: 0.88rem; color: var(--muted); flex: 1; }
.post-meta { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  text-align: left; padding: 1.25rem 0;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q svg { flex-shrink: 0; transition: transform 0.25s; color: var(--accent); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { font-size: 0.92rem; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.25rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-logo { font-family: var(--serif); font-size: 1.2rem; color: var(--white); margin-bottom: 0.75rem; }
.footer-logo span { color: #7eb8f5; }
.footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-heading { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.82rem; text-align: center; }

/* ===== FADE IN ===== */
.fade { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 3rem 0; }
  .hero-visual { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 2rem; }
  .nav-links { 
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; width: 100%; }
  .nav-toggle { display: flex; }
  section { padding: 3.5rem 0; }
  .services-grid, .posts-grid { grid-template-columns: 1fr; }
}
