:root {
  --primary: #1a2a3a;
  --primary-light: #2c4a6a;
  --accent: #c8a45c;
  --accent-hover: #b8923f;
  --bg: #f8f7f4;
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #7a7a7a;
  --border: #e0ddd8;
  --footer-bg: #0f1a24;
  --footer-text: #b0b8c0;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.navbar .logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { background: var(--bg); color: var(--primary); }

.nav-links a.active { font-weight: 600; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-white) !important;
  padding: 8px 20px !important;
  border-radius: 6px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; color: var(--bg-white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* Page hero band */
.page-hero {
  padding: 140px 0 60px;
  background: var(--primary);
  color: var(--bg-white);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: #b0b8c0;
  max-width: 640px;
  margin: 0 auto;
}

/* Sections */
.section { padding: 80px 0; }

.section-light { background: var(--bg-white); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 680px;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-white);
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
}

.btn-outline:hover { background: var(--bg-white); color: var(--primary); }

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-dark:hover { background: var(--primary); color: var(--bg-white); }

/* Hero (index) */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--bg-white);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.15rem;
  color: #b0b8c0;
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg { width: 100%; max-width: 420px; height: auto; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* About strip (homepage) */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-strip h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-strip p {
  color: var(--text-mid);
  margin-bottom: 16px;
}

.about-strip-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-strip-visual svg { max-width: 380px; width: 100%; height: auto; }

/* Credentials strip */
.credentials {
  background: var(--primary);
  color: var(--bg-white);
  padding: 48px 0;
  text-align: center;
}

.credentials-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cred-item .label {
  font-size: 0.85rem;
  color: #8899aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cred-item .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

/* CTA band */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--accent) 0%, #d4b46a 100%);
  text-align: center;
  color: var(--primary);
}

.cta-band h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer h4 {
  color: var(--bg-white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer p, .footer a {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--footer-text);
  text-decoration: none;
}

.footer a:hover { color: var(--accent); }

.footer-brand .logo-foot {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 12px;
  display: block;
}

.footer-brand .logo-foot span { color: var(--accent); }

.footer ul { list-style: none; }

.footer ul li { margin-bottom: 8px; }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6a7a8a;
}

/* About page */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 16px;
}

.about-content h2:first-child { margin-top: 0; }

.about-content p {
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.value-card {
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  background: var(--bg-white);
}

.value-card .icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.value-card h4 { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: var(--text-mid); }

/* Services page detail */
.service-detail { margin-bottom: 32px; }
.service-detail:last-child { margin-bottom: 0; }

.service-detail h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-detail .icon { font-size: 1.6rem; margin-right: 8px; }

.service-detail p {
  color: var(--text-mid);
  line-height: 1.8;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-mid);
  margin-bottom: 12px;
}

.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-detail { margin-bottom: 28px; }

.contact-detail .icon { font-size: 1.5rem; margin-right: 10px; }

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg-white);
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea { resize: vertical; min-height: 140px; }

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 12px;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 28px 0 10px;
}

.legal-content p {
  color: var(--text-mid);
  margin-bottom: 14px;
  line-height: 1.8;
}

.legal-content ul {
  margin: 0 0 14px 24px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-links a { width: 100%; padding: 12px 16px; }

  .hamburger { display: flex; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }

  .hero-content h1 { font-size: 2.2rem; }

  .services-grid { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; text-align: center; }
  .about-strip-visual { display: none; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .page-hero h1 { font-size: 1.8rem; }
  .page-hero { padding: 120px 0 40px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.6rem; }
  .credentials-grid { gap: 24px; flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.7rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}
