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

:root {
  --navy: #1a2e42;
  --blue: #3a7cb8;
  --blue-light: #eaf1f7;
  --blue-mid: #b8ccdf;
  --text: #1a2e42;
  --muted: #5a7a96;
  --border: #dde6f0;
  --bg: #f8f9fb;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  backdrop-filter: blur(8px);
}
.nav-brand { text-decoration: none; display: flex; align-items: center; }
.nav-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.nav-links a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); font-weight: 500; }

/* HEADER */
.site-header {
  position: relative; overflow: hidden;
  background: #f8f9fb;
  padding: 48px 48px 44px;
  min-height: 150px;
}
.site-header > svg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.header-content {
  position: relative; z-index: 2;
  display: flex; align-items: flex-start; gap: 0;
}
.header-accent {
  width: 3px; background: var(--blue); opacity: 0.7;
  border-radius: 2px; min-height: 82px; margin-right: 16px; flex-shrink: 0;
  margin-top: 4px;
}
.header-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px; font-weight: 400; color: var(--navy);
  line-height: 1.25; margin-bottom: 10px;
}
.header-divider {
  width: 120px; height: 1px;
  background: var(--blue); opacity: 0.4; margin-bottom: 10px;
}
.header-text p {
  font-size: 12px; color: var(--muted); max-width: 520px; line-height: 1.6;
}

/* PAGE HEADER (inner pages) */
.page-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 48px 48px 40px;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 40%; height: 100%;
  background: linear-gradient(135deg, transparent 40%, #dde6f0 100%);
  pointer-events: none;
}
.page-header .section-label { margin-bottom: 8px; }
.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px; font-weight: 400; color: var(--navy);
  line-height: 1.2; margin-bottom: 12px;
}
.page-header p {
  font-size: 16px; color: var(--muted);
  max-width: 580px; line-height: 1.7;
}

/* SECTIONS */
section { padding: 80px 48px; }
section.bg-alt { background: var(--bg); }

.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  color: var(--blue); text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px; font-weight: 400; color: var(--navy);
  margin-bottom: 16px; line-height: 1.2;
}
.section-intro {
  font-size: 16px; color: var(--muted);
  max-width: 560px; margin-bottom: 48px; line-height: 1.7;
}

/* SERVICE CARDS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--blue-mid); transform: translateY(-2px); }
.service-icon {
  width: 36px; height: 36px;
  background: var(--blue-light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 1.5; }
.service-card h3 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* CASE CARDS */
.cases-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.case-card:hover { transform: translateY(-2px); border-color: var(--blue-mid); }
.case-band { height: 6px; background: var(--blue); opacity: 0.6; }
.case-card-body { padding: 24px; }
.case-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  color: var(--blue); background: var(--blue-light);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.case-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.case-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ABOUT */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 15px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; text-align: center;
}
.stat-card .stat-title {
  font-family: 'DM Serif Display', serif;
  font-size: 16px; color: var(--blue); display: block;
  line-height: 1.3; margin-bottom: 8px; font-weight: 400;
}
.stat-card .stat-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* TESTIMONIAL CARDS */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.testimonial-card:hover { transform: translateY(-2px); border-color: var(--blue-mid); }
.testimonial-band { height: 4px; background: var(--blue); }
.testimonial-body { padding: 28px 24px; }
.testimonial-quote {
  font-size: 16px; color: var(--navy); line-height: 1.7;
  font-style: italic; margin-bottom: 16px;
  font-family: 'DM Serif Display', serif; font-weight: 400;
}
.testimonial-source { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }

/* CALLOUT BLOCK */
.callout-block {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin-top: 40px;
}
.callout-block p { font-size: 15px; color: var(--navy); line-height: 1.8; }

/* CONTACT */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.contact-form-wrap { }
.contact-info { }
.contact-info h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px; font-weight: 400; color: var(--navy);
  margin-bottom: 20px;
}
.contact-info p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 8px; }
.contact-info a { color: var(--blue); text-decoration: none; }
.address-block {
  margin-top: 28px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.address-block p { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 0; }
.address-block strong { color: var(--navy); font-weight: 600; display: block; margin-bottom: 6px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--navy); }
.form-group input, .form-group textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text);
  background: var(--white); transition: border-color 0.2s; outline: none; width: 100%;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--blue); color: white;
  border: none; border-radius: 8px;
  padding: 13px 28px; font-size: 15px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background 0.2s;
  text-align: center; text-decoration: none;
}
.btn:hover { background: #2f6aa3; }
.btn-full { width: 100%; }
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--blue); color: var(--blue);
  border-radius: 8px; padding: 10px 24px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--blue); color: white; }

/* CTA BAND */
.cta-band { background: var(--navy); padding: 80px 48px; }

/* HOME INTRO */
.home-intro { background: var(--white); }
.home-intro-text { max-width: 640px; }

/* FOOTER */
footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  padding: 32px 48px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-brand { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 14px; }
.footer-address { color: rgba(255,255,255,0.45); font-size: 12px; }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 56px 20px; }
  .site-header, .page-header { padding: 32px 20px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 28px 20px; flex-direction: column; align-items: flex-start; }
  .screenshot-grid { grid-template-columns: 1fr !important; }
}
