/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2440;
  --primary-light: #2a5a8c;
  --accent: #c9a84c;
  --accent-hover: #b8942e;
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-dark: #1a1a2e;
  --border: #e0e0e0;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --max-width: 1140px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; background: var(--bg); }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ─── Skip Link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 8px; z-index: 9999;
  background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; clip: auto; width: auto; height: auto; }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--primary-dark);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 12px 20px;
}
.site-logo { display: flex; flex-direction: column; }
.site-name { font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.site-tagline { font-size: 0.75rem; color: var(--accent); }
.site-tagline a { color: var(--accent); }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav-list {
  display: flex; list-style: none; gap: 4px; align-items: center;
}
.nav-list a {
  display: block; padding: 8px 14px; color: rgba(255,255,255,0.85); font-size: 0.9rem;
  border-radius: 4px; transition: all 0.2s;
}
.nav-list a:hover, .nav-list a:focus { color: #fff; background: rgba(255,255,255,0.1); }
.nav-list .current-menu-item > a { color: var(--accent); }

/* Dropdown */
.menu-item-has-children { position: relative; }
.menu-item-has-children > a::after {
  content: '\25BE'; margin-left: 4px; font-size: 0.7rem;
}
.sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 220px; box-shadow: var(--shadow-hover);
  border-radius: var(--radius); padding: 8px 0; z-index: 200;
}
.sub-menu a { color: var(--text); padding: 8px 16px; font-size: 0.85rem; white-space: nowrap; }
.sub-menu a:hover { background: var(--bg-alt); color: var(--primary); }
.menu-item-has-children:hover .sub-menu, .menu-item-has-children:focus-within .sub-menu { display: block; }

/* CTA Button */
.nav-cta a {
  background: var(--accent); color: var(--primary-dark) !important;
  font-weight: 600; padding: 8px 18px; border-radius: 4px;
}
.nav-cta a:hover { background: var(--accent-hover); }

/* Toggle (mobile) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Hero Section ────────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; padding: 80px 20px; text-align: center;
}
.home-hero h1 {
  font-size: 2.2rem; line-height: 1.3; margin-bottom: 20px;
  max-width: 800px; margin-left: auto; margin-right: auto;
}
.home-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.85);
  max-width: 700px; margin: 0 auto 30px; line-height: 1.7;
}
.home-hero .btn-primary {
  display: inline-block; background: var(--accent); color: var(--primary-dark);
  padding: 14px 32px; border-radius: 4px; font-weight: 600; font-size: 1rem;
  margin: 0 6px 10px; transition: background 0.2s;
}
.home-hero .btn-primary:hover { background: var(--accent-hover); color: var(--primary-dark); }
.home-hero .btn-secondary {
  display: inline-block; background: transparent; color: #fff;
  padding: 14px 32px; border-radius: 4px; font-weight: 600; font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3); margin: 0 6px 10px; transition: all 0.2s;
}
.home-hero .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Sections ────────────────────────────────────────────────── */
.home-section { padding: 60px 0; }
.home-section:nth-child(even) { background: var(--bg-alt); }
.home-section h2 {
  text-align: center; font-size: 1.8rem; margin-bottom: 40px; color: var(--primary);
}

/* Stats */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; max-width: 800px; margin: 0 auto;
}
.stat-card {
  text-align: center; padding: 24px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat-number { font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* About */
.about-text { max-width: 800px; margin: 0 auto; }
.about-text h2 { text-align: center; }
.about-text p { margin-bottom: 16px; font-size: 1.05rem; }

/* Stats — centered below about text */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 800px; margin: 40px auto 0;
}
.stat-card {
  text-align: center; padding: 24px 16px; background: var(--bg-alt);
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Services Grid */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow 0.3s, transform 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.service-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.6; }
.service-card a { color: var(--primary-light); font-weight: 500; font-size: 0.9rem; }
.service-card a:hover { color: var(--primary); }

/* CTA Section */
.cta-section {
  background: var(--bg-dark); color: #fff; padding: 60px 20px; text-align: center;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 24px; }

/* ─── Testimonials ─────────────────────────────────────────────── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.testimonial-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.testimonial-card::before {
  content: '\201C'; font-size: 3rem; color: var(--accent);
  position: absolute; top: 8px; left: 16px; line-height: 1; opacity: 0.4;
}
.testimonial-text { font-style: italic; color: var(--text); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.testimonial-author { font-weight: 600; color: var(--primary); font-size: 0.85rem; }
.testimonial-location { font-size: 0.8rem; color: var(--text-light); }

/* ─── Button ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--primary-dark) !important;
  padding: 12px 28px; border-radius: 4px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); }

/* ─── Page Content ────────────────────────────────────────────── */
.main { min-height: 60vh; }
.content-wrap {
  max-width: var(--max-width); margin: 0 auto; padding: 48px 20px;
}
.page-title { font-size: 1.8rem; color: var(--primary); margin-bottom: 24px; }
.post-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 20px; }
.post-meta time { margin-right: 12px; }
.post-list { display: grid; gap: 24px; }
.post-item { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.post-item h2 { font-size: 1.2rem; margin-bottom: 8px; }
.post-item h2 a { color: var(--text); }
.post-item h2 a:hover { color: var(--primary); }
.post-item p { color: var(--text-light); font-size: 0.9rem; }
.read-more { font-weight: 600; font-size: 0.9rem; }
.content-wrap p { margin-bottom: 16px; }
.content-wrap ul, .content-wrap ol { margin: 0 0 16px 20px; }
.content-wrap li { margin-bottom: 6px; }

/* ─── Contact Form ────────────────────────────────────────────── */
.contact-form {
  max-width: 600px; margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 4px;
  font-family: var(--font); font-size: 0.95rem; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(42,90,140,0.1);
}

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 48px 0 0;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-col p { font-size: 0.85rem; line-height: 1.6; }
.footer-links { list-style: none; padding: 0; }
.footer-links a {
  display: block; padding: 4px 0; color: rgba(255,255,255,0.6); font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center; padding: 20px 0; font-size: 0.8rem;
}

/* ─── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav { display: none; width: 100%; position: absolute; top: 100%; left: 0;
    background: var(--primary-dark); padding: 12px 20px; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 10px 0; }
  .sub-menu { position: static; box-shadow: none; background: transparent; padding: 0 0 0 16px; }
  .sub-menu a { color: rgba(255,255,255,0.7); }
  .menu-item-has-children:hover .sub-menu { display: none; }
  .menu-item-has-children.open .sub-menu { display: block; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .home-hero h1 { font-size: 1.6rem; }
  .home-hero { padding: 48px 20px; }
  .home-section { padding: 40px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
