/* ============================================
   BlanConsulting — Styles
   ============================================ */

/* --- Variables --- */
:root {
  --primary: #0F6E56;
  --primary-dark: #085041;
  --primary-light: #5DCAA5;
  --accent: #9FE1CB;
  --surface: #E1F5EE;
  --text: #1E1E1E;
  --text-muted: #888888;
  --text-light: #EAEAEA;
  --dark-bg: #0A1A14;
  --dark-surface: #0F2A20;
  --dark-border: #1a4a3a;
  --border-light: #e8e8e8;
  --white: #ffffff;

  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 20px;

  --max-width: 1080px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

::selection {
  background: var(--surface);
  color: var(--primary-dark);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.875rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.625rem); }
h3 { font-size: 0.9375rem; font-weight: 600; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.625rem;
}

.label-light {
  color: var(--primary-light);
}

.section-title {
  margin-bottom: 1.75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6875rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  outline: none;
  text-decoration: none;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
}

/* ================================ NAVBAR ================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

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

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

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-menu .btn {
  margin-top: 0.5rem;
  text-align: center;
}

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

/* ================================ HERO ================================ */
.hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
}

.hero .container {
  max-width: var(--max-width);
}

.hero h1 {
  max-width: 620px;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    text-align: center;
  }
}

/* ================================ METRICS ================================ */
.metrics {
  background: var(--surface);
  padding: 2.75rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.metric-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .metric-value {
    font-size: 1.75rem;
  }
}

/* ================================ SERVICES ================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.375rem 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(15, 110, 86, 0.08);
}

.service-card.accent-light {
  border-left-color: var(--primary-light);
}

.service-card h3 {
  margin-bottom: 0.375rem;
}

.service-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

/* ================================ STACK ================================ */
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: transform 0.2s;
}

.pill:hover {
  transform: translateY(-1px);
}

.pill-brand {
  background: var(--surface);
  color: var(--primary-dark);
}

.pill-neutral {
  background: #f3f3f3;
  color: var(--text-muted);
}

/* ================================ CONTACT ================================ */
.contact {
  background: var(--dark-bg);
  padding: 5rem 0;
}

.contact h2 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  font-size: 0.875rem;
  color: #7a8899;
  margin-bottom: 1.75rem;
  max-width: 480px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.25s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #556;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-light);
}

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

.contact-form .btn {
  width: fit-content;
}

.form-status {
  font-size: 0.8125rem;
  min-height: 1.25rem;
}

.form-status.success {
  color: var(--primary-light);
}

.form-status.error {
  color: #e87070;
}

/* ================================ FOOTER ================================ */
.footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: -0.3px;
}

.footer-info {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: #667788;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-info {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ================================ ANIMATIONS ================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.metrics-grid .fade-in:nth-child(1) { transition-delay: 0s; }
.metrics-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.metrics-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.metrics-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

.services-grid .fade-in:nth-child(1) { transition-delay: 0s; }
.services-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .contact { padding: 3.5rem 0; }
}
