/* ==========================================================================
   CUMBUCA CONSULTING LANDING PAGE STYLESHEET
   Brand Identity: "Modern Organic-Executive"
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  /* Colors */
  --primary-color: #2B2318;      /* Umber-Black (cast iron anchor) */
  --secondary-color: #8A7B5C;    /* Tactile warm-neutral / gold tone */
  --accent-color: #E0A429;       /* Gold-Amber (ESG/progressive) */
  --bg-color: #FBF7EE;           /* Cerrado Clay / Cream background */
  
  /* Fonts */
  --font-headlines: 'Fraunces', serif;
  --font-body: 'Archivo', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

/* Reset & Base Elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--primary-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Defaults */
h1, h2, h3, h4 {
  font-family: var(--font-headlines);
  font-weight: 600;
  color: var(--primary-color);
}

p, a, li, label, input, button, select {
  font-family: var(--font-body);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Grid System */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
}

.col-left-60 {
  grid-column: span 7;
}

.col-right-40 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

/* Section Spacing (Strict Minimum 64px, Executive scale) */
section {
  padding: 6.5rem 0; /* 104px top/bottom padding */
  position: relative;
}

/* Buttons (Executive aesthetic, 2px border radius) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(224, 164, 41, 0.2);
}

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

.btn-secondary:hover {
  background-color: rgba(138, 123, 92, 0.08);
  border-color: var(--primary-color);
}

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

.btn-accent:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
  border-color: var(--bg-color);
  box-shadow: 0 4px 20px rgba(251, 247, 238, 0.15);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Logo CSS Filters to change dynamically */
.logo {
  height: 36px;
  width: auto;
  transition: var(--transition-smooth);
}

/* Convert default black logo to #2B2318 (Dark Umber) */
.logo-dark {
  filter: brightness(0) saturate(100%) invert(11%) sepia(18%) saturate(902%) hue-rotate(314deg) brightness(97%) contrast(93%);
}

/* Convert default black logo to #FBF7EE (Cerrado Clay / Cream) */
.logo-light {
  filter: brightness(0) saturate(100%) invert(98%) sepia(3%) saturate(760%) hue-rotate(338deg) brightness(101%) contrast(97%);
}

/* Convert default black logo to #E0A429 (Gold-Amber) */
.logo-gold {
  filter: brightness(0) saturate(100%) invert(70%) sepia(74%) saturate(836%) hue-rotate(352deg) brightness(93%) contrast(91%);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(251, 247, 238, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(138, 123, 92, 0.15);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-color);
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 0.7rem 1.4rem;
  font-size: 0.8rem;
}

/* Mobile Nav Toggle Icon */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 1100;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  position: absolute;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

/* Open mobile menu toggles */
.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  padding-top: 10rem;
  padding-bottom: 7rem;
}

.hero-container {
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-subheadline {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(43, 35, 24, 0.85);
  margin-bottom: 3rem;
  font-weight: 400;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.hero-image-container {
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(138, 123, 92, 0.2);
  filter: contrast(1.02) saturate(0.95);
}

/* Section 1: The Core Challenge */
.challenge {
  background-color: rgba(138, 123, 92, 0.03);
  border-top: 1px solid rgba(138, 123, 92, 0.1);
  border-bottom: 1px solid rgba(138, 123, 92, 0.1);
}

.challenge-container {
  display: flex;
  justify-content: center;
}

.challenge-content {
  max-width: 800px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.challenge-body {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--primary-color);
  font-weight: 400;
}

/* Section 2: Solutions Architecture */
.solutions .section-title {
  margin-bottom: 4rem;
  text-align: center;
}

.solutions-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card {
  grid-column: span 1;
  background-color: var(--bg-color);
  border: 1px solid rgba(138, 123, 92, 0.25);
  border-radius: 2px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.solution-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(138, 123, 92, 0.1);
}

.card-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--secondary-color);
  transition: var(--transition-smooth);
}

.solution-card:hover .card-title::after {
  width: 60px;
  background-color: var(--accent-color);
}

.card-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card-list li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(43, 35, 24, 0.85);
  font-weight: 400;
  position: relative;
  padding-left: 1.25rem;
}

.card-list li::before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  display: inline-block;
  width: 1rem;
  position: absolute;
  left: 0;
  top: 0;
}

/* Section 3: The Leadership Advantage */
.leadership {
  background-color: rgba(138, 123, 92, 0.02);
  border-top: 1px solid rgba(138, 123, 92, 0.08);
}

.leadership-container {
  align-items: flex-start;
  row-gap: 4rem;
}

.leadership-left {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.leadership-left .section-title {
  margin-bottom: 3.5rem;
  text-align: left;
}

.leadership-text-block {
  margin-bottom: 2.5rem;
}

.leadership-text-block:last-child {
  margin-bottom: 0;
}

.leadership-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(43, 35, 24, 0.9);
  font-weight: 400;
}

.subsection-title {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.leadership-right {
  display: flex;
  flex-direction: column;
  padding-top: 2.8rem; /* Align with H2 start */
}

.leadership-image-wrapper {
  width: 100%;
  height: 100%;
}

.leadership-image {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(138, 123, 92, 0.2);
  filter: contrast(1.01) saturate(0.92);
}

/* Section 4: The Cumbuca Advantage */
.advantage {
  border-top: 1px solid rgba(138, 123, 92, 0.15);
  padding-bottom: 8rem;
}

.advantage .section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.advantage-grid {
  gap: 3rem 4rem;
}

.advantage-item {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

.advantage-quote-style {
  font-family: var(--font-headlines);
  font-size: 2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.advantage-subhead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--primary-color);
}

/* Footer / Final CTA */
.footer {
  background-color: var(--primary-color);
  color: var(--bg-color);
  padding: 0;
  border-top: 1px solid rgba(224, 164, 41, 0.1);
  width: 100%;
}

.footer-cta-section {
  padding: 7.5rem 2rem;
  border-bottom: 1px solid rgba(251, 247, 238, 0.1);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.pre-footer-statement-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 5rem !important;
}

.pre-footer-eyebrow {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

.pre-footer-logo {
  height: 32px !important;
  width: auto !important;
  margin-bottom: 1.5rem !important;
  display: block !important;
}

.pre-footer-statement {
  font-family: var(--font-headlines) !important;
  font-size: 3.25rem !important;
  font-weight: 500 !important;
  color: var(--bg-color) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  text-align: center !important;
  width: 100% !important;
}

.footer-cta-content {
  width: 100% !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.footer-cta-title {
  font-family: var(--font-headlines);
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--bg-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: center;
}

.footer-cta-body {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(251, 247, 238, 0.85);
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 680px;
}

.footer-bottom {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand .logo {
  height: 38px;
}

.footer-contact {
  font-size: 0.9375rem;
  color: rgba(251, 247, 238, 0.7);
  letter-spacing: 0.02em;
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: rgba(251, 247, 238, 0.1);
  margin: 3rem 0;
}

.footer-legal {
  font-size: 0.8125rem;
  color: rgba(251, 247, 238, 0.5);
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer-link {
  color: rgba(251, 247, 238, 0.6);
  transition: var(--transition-fast);
}

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

/* Interactive Elements: Strategy Call Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(43, 35, 24, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-color);
  width: 100%;
  max-width: 580px;
  border-radius: 3px;
  border: 1px solid rgba(138, 123, 92, 0.3);
  padding: 3.5rem 3rem;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--secondary-color);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0.5rem;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
}

.modal-title {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.modal-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(43, 35, 24, 0.85);
  margin-bottom: 2.2rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.form-group input, .form-group select {
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid rgba(138, 123, 92, 0.4);
  border-radius: 2px;
  background-color: rgba(251, 247, 238, 0.6);
  color: var(--primary-color);
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--accent-color);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(224, 164, 41, 0.1);
}

.modal-success-message {
  text-align: center;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(224, 164, 41, 0.15);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.modal-success-message h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.modal-success-message p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(43, 35, 24, 0.8);
}

/* Animations / Reveal on Scroll */
.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-fade.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delays for grouped reveals */
.hero-content .reveal-fade:nth-child(1) { transition-delay: 0.1s; }
.hero-content .reveal-fade:nth-child(2) { transition-delay: 0.25s; }
.hero-content .reveal-fade:nth-child(3) { transition-delay: 0.4s; }
.hero-image-container.reveal-fade { transition-delay: 0.3s; }

/* Responsive Adjustments */

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .grid-12 {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  
  .hero-container {
    gap: 3rem;
  }
  
  .hero-image {
    height: 380px;
  }
  
  .solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .solution-card {
    grid-column: span 1;
  }
  
  .leadership-container {
    gap: 3rem;
  }
  
  .leadership-right {
    padding-top: 0;
  }

  .leadership-image {
    height: 380px;
  }
}

@media (max-width: 768px) {
  /* Whitespace adjustments for smaller viewports (minimum 64px = 4rem) */
  section {
    padding: 4.5rem 0;
  }
  
  .hero {
    padding-top: 8rem;
    padding-bottom: 4.5rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 4rem 2rem;
    gap: 3rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
    border-top: 1px solid rgba(138, 123, 92, 0.1);
    z-index: 1000;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 1.25rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2.1rem;
  }
  
  .advantage-grid {
    gap: 3rem 0;
  }
  
  .footer-cta-title {
    font-size: 2.2rem;
  }
  
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .modal-container {
    padding: 2.5rem 1.5rem;
  }
  
  .modal-title {
    font-size: 1.8rem;
  }

  .pre-footer-statement {
    font-size: 2.2rem;
  }
  
  .pre-footer-statement-block {
    margin-bottom: 4rem; /* At least 64px whitespace on mobile */
  }

  .pre-footer-logo {
    height: 20px;
  }
}
