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

:root {
  --navy: #0f1a2e;
  --navy-light: #1a2a45;
  --slate: #2d3a4f;
  --stone: #64748b;
  --silver: #94a3b8;
  --pearl: #e2e8f0;
  --cream: #f8fafc;
  --white: #ffffff;
  --accent: #8b7355;
  --accent-light: #a68e6e;
  --accent-soft: rgba(139, 115, 85, 0.08);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-width: 1140px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }

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

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}
.btn:hover { background: var(--navy-light); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--cream); color: var(--navy); }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 400; color: var(--slate); text-decoration: none; }
.nav-links a:hover { color: var(--navy); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px;
  border-bottom: 1px solid var(--pearl);
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu a { font-size: 1rem; color: var(--slate); padding: 8px 0; }
.mobile-menu.active { display: flex; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, var(--cream) 0%, var(--white) 40%, rgba(139,115,85,0.04) 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,115,85,0.06) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.15rem; color: var(--stone); max-width: 580px; margin-bottom: 36px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 60px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 48px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 0.8rem; color: var(--stone); margin-top: 2px; }

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-light { background: var(--cream); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3, .section-dark p, .section-dark .section-tag { color: var(--pearl); }
.section-dark .step-content p { color: var(--silver); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-desc { font-size: 1.05rem; color: var(--stone); margin-top: 16px; line-height: 1.8; }

/* ===== Grid ===== */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ===== Cards ===== */
.card {
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--accent); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--stone); font-size: 0.95rem; }

/* ===== Service Cards ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
  padding: 40px 32px;
  border: 1px solid var(--pearl);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.service-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pearl);
  display: block;
  margin-bottom: 20px;
}
.service-card:hover .service-num { color: var(--accent); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--stone); font-size: 0.95rem; margin-bottom: 20px; }
.service-list { list-style: none; }
.service-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--slate);
  border-top: 1px solid var(--cream);
}
.service-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

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

/* ===== Process Steps ===== */
.process-steps { max-width: 640px; margin: 0 auto; }
.step { display: flex; gap: 24px; margin-bottom: 40px; }
.step:last-child { margin-bottom: 0; }
.step-marker {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.step-content h3 { color: var(--white); margin-bottom: 8px; }

/* ===== Industry Cards ===== */
.industry-card {
  padding: 40px 32px;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.industry-card h3 { margin-bottom: 12px; }
.industry-card p { color: var(--stone); font-size: 0.95rem; }

/* ===== About ===== */
.about-content { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.about-text p { color: var(--stone); margin-bottom: 20px; font-size: 1.02rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-values { display: flex; flex-direction: column; gap: 28px; }
.value { padding: 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.value h4 { color: var(--navy); }
.value p { color: var(--stone); font-size: 0.9rem; margin-top: 4px; }

@media (max-width: 768px) {
  .about-content { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== CTA ===== */
.section-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
  padding: 80px 0;
}
.section-cta h2 { color: var(--white); margin-bottom: 16px; }
.section-cta p { color: var(--silver); font-size: 1.1rem; margin-bottom: 32px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--slate); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--pearl);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; }

.contact-info { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.info-block h4 { color: var(--navy); }
.info-block p { color: var(--stone); font-size: 0.95rem; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--pearl);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-copy { font-size: 0.8rem; color: var(--silver); }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .card, .service-card, .step, .industry-card, .value {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .card.visible, .service-card.visible, .step.visible, .industry-card.visible, .value.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
