/* ─── DESIGN TOKENS ──────────────────────────────── */
:root {
  /* Colors - Verdro Inspired */
  --bg-primary: #F6F6F1;     /* Pure Mist / Off-white */
  --bg-secondary: #EBEBE6;   /* Slightly darker for alternating sections */
  --bg-card: #FFFFFF;        /* Pure white for cards to pop */
  
  --primary: #6B8E00;        /* Leaf Essence Green */
  --primary-hover: #5A7800;
  --primary-light: rgba(107, 142, 0, 0.1);
  
  --text-main: #020101;      /* Deep Charcoal */
  --text-muted: #555555;     /* Urban Stone */
  --text-light: #838383;     /* Lighter gray */
  
  --border-light: #DCDDDC;   /* Soft Cloud */
  --border-medium: #C5C5C5;
  
  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout & Spacing */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-pill: 100px;
  
  --container-w: 1200px;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ─── TYPOGRAPHY ──────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
}

.italic {
  font-style: italic;
  font-weight: 400;
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* ─── LAYOUT UTILS ──────────────────────────────── */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 5%;
}

.pill {
  border-radius: var(--radius-pill);
}

.mt-4 { margin-top: 1rem; }

/* ─── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.btn.lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--primary-light);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}
.btn-outline:hover {
  border-color: var(--text-main);
  transform: translateY(-2px);
}

/* ─── NAVIGATION ──────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background-color: rgba(246, 246, 241, 0.85); /* var(--bg-primary) with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: padding 0.3s ease;
}

.nav-container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-main); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.social-icon {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icon:hover { color: var(--primary); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

/* ─── MOBILE MENU ──────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-primary);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mob-link {
  font-size: 1.5rem;
  font-weight: 600;
}
.mob-social {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
}

/* ─── HERO SECTION ──────────────────────────────── */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(255,255,255, 0.6);
  border: 1px solid var(--border-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 32px;
}
.dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 142, 0, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(107, 142, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 142, 0, 0); }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 32px;
}
.metric {
  display: flex;
  flex-direction: column;
}
.metric-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.metric-lbl {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.metric-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-light);
}

/* ─── HERO VISUAL (CSS ART) ──────────────────────────────── */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
  border: 1px solid var(--border-light);
}

.main-card {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 2;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.chart-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.card-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.big-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.sub-text {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 100px;
}
.bar {
  flex: 1;
  background-color: var(--bg-secondary);
  border-radius: 6px 6px 0 0;
  transition: height 1s ease-out;
}
.bar.h-20 { height: 20%; }
.bar.h-40 { height: 40%; }
.bar.h-60 { height: 60%; }
.bar.h-90 { height: 90%; }
.bar.h-100 { height: 100%; }
.bar.highlight { background-color: var(--primary); }

.floating-card {
  position: absolute;
  top: 10%;
  right: -5%;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -15px); }
}

.icon-circle {
  width: 32px;
  height: 32px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.float-text {
  display: flex;
  flex-direction: column;
}
.float-text strong {
  font-size: 0.875rem;
  line-height: 1.2;
}
.float-text span {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero { align-items: flex-start; padding-top: 120px; }
  .badge { margin: 0 auto 24px; }
  .hero-description { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-metrics { justify-content: center; flex-wrap: wrap; }
  
  .hero-visual { margin-top: 40px; }
  .floating-card { right: 5%; }
}

@media (max-width: 768px) {
  .nav-links, .desktop-social, .nav-actions .btn { display: none; }
  .nav-actions { gap: 0; }
  .menu-toggle { display: flex; }
  
  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  
  .hero-visual { height: auto; padding-bottom: 40px; }
  
  .logo img { max-height: 36px; }
}

/* ─── SECTION BASE ──────────────────────────────── */
.section {
  padding: 100px 0;
}
.bg-secondary {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-header {
  margin-bottom: 60px;
}
.section-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-title span {
  color: var(--primary);
  font-style: italic;
  font-weight: 400;
}
.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
}
.section-desc strong {
  color: var(--text-main);
  font-weight: 600;
}
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

/* ─── ABOUT ME ──────────────────────────────── */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content .section-title {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}
.about-content .section-desc {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.metric-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
}
.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: 0 12px 24px rgba(0,0,0,0.03);
}
.metric-card.highlight-card {
  background: var(--primary-light);
  border-color: var(--primary-light);
}
.m-val {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
}
.m-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.m-lbl {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}
.m-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 600px) {
  .about-metrics {
    grid-template-columns: 1fr;
  }
}

/* ─── PROCESS / EXPERIENCE ──────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.process-card {
  background: var(--bg-card);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.process-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: 0 12px 24px rgba(0,0,0,0.03);
}
.step-num {
  font-family: monospace;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 24px;
  font-weight: 600;
}
.process-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.process-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.mt-5 { margin-top: 60px; }
.industries-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: center;
}
.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.industry-pill {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}
.industry-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ─── CASES / TABS ──────────────────────────────── */
.cases-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.cases-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tab-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  padding: 16px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.tab-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}
.tab-btn.active {
  background: var(--bg-card);
  border-color: transparent;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.case-card {
  display: none;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 30px rgba(0,0,0,0.02);
  animation: fadeIn 0.4s ease-out;
}
.case-card.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.case-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.case-title {
  font-size: 2.5rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.case-meta {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.case-body p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 800px;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.stat-box {
  padding: 24px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--border-medium);
}
.stat-box.br-green { border-left-color: var(--primary); }
.stat-box.br-primary { border-left-color: #00e5ff; }
.s-val {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}
.s-lbl {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.case-action {
  background: var(--bg-primary);
  padding: 24px 32px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
}
.case-action strong {
  color: var(--text-main);
  margin-right: 8px;
}

@media (max-width: 992px) {
  .cases-container {
    grid-template-columns: 1fr;
    max-width: 100vw;
  }
  .cases-tabs {
    flex-direction: column; 
    gap: 8px;
    width: 100%;
  }
  .tab-btn {
    white-space: normal;
    padding: 16px 20px;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .case-card { padding: 32px 24px; }
  .case-title { font-size: 2rem; }
  .case-action { border-radius: var(--radius-md); padding: 20px; }
}

/* ─── CONTACT FORM ──────────────────────────────── */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.c-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.125rem;
}
.c-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.contact-form-wrapper {
  background: var(--bg-card);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  border: 1px solid var(--border-light);
}
.custom-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-control {
  font-family: var(--font-sans);
  font-size: 16px; /* explicitly 16px to prevent iOS zoom */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  transition: var(--transition);
}
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 24px center;
  background-size: 16px;
  padding-right: 48px;
}
textarea.form-control {
  border-radius: var(--radius-md);
  resize: vertical;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox-group input {
  margin-top: 4px;
}
.checkbox-label span {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
}
.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.form-error {
  margin-top: 16px;
  padding: 16px;
  background: #fff0f0;
  color: #c0392b;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.submit-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ─── THANK YOU OVERLAY ──────────────────────────────── */
.thank-you-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(246,246,241,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.thank-you-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.thank-you-card {
  background: var(--bg-card);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  max-width: 500px;
  width: 90%;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}
.thank-you-overlay.visible .thank-you-card {
  transform: translateY(0);
}
.ty-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 32px;
}

/* ─── FOOTER ──────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 992px) {
  .contact-container { grid-template-columns: 1fr; gap: 60px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-container { flex-direction: column; text-align: center; justify-content: center; }
}

@media (max-width: 768px) {
  .contact-form-wrapper { padding: 32px 24px; }
  .form-control { padding: 16px; }
  select.form-control { background-position: right 16px center; padding-right: 40px; }
}

@media (max-width: 480px) {
  .contact-form-wrapper { padding: 24px 16px; }
  .section { padding: 60px 0; }
  .hero-title { font-size: 2.25rem; }
  .s-val { font-size: 1.75rem; }
  .checkbox-label span { font-size: 0.8rem; }
  .btn { padding: 14px 24px; font-size: 0.95rem; }
}
