/* ===== Variables ===== */
:root {
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-bg: #ffffff;
  --color-bg-alt: #FCF7F1;
  --color-primary: #877167;
  --color-primary-dark: #6d5a52;
  --color-border: #e5e7eb;
  --color-accent: #A59E97;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --container-width: 1200px;
  --spacing-unit: 1rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

main {
  min-height: calc(100vh - 200px);
}

/* ===== Header ===== */
.site-header {
  padding: calc(var(--spacing-unit) * 0.5) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo .logo-img {
  height: 180px;
  width: auto;
}

.site-logo:hover {
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
}

.site-nav a {
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-text);
}

.nav-cta {
  background: var(--color-primary);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

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

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  padding: calc(var(--spacing-unit) * 6) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero h1 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto calc(var(--spacing-unit) * 1.5);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto calc(var(--spacing-unit) * 2);
}

.hero-cta {
  margin-top: calc(var(--spacing-unit) * 2);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

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

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

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

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

/* ===== Page Layout ===== */
.page-header {
  padding: calc(var(--spacing-unit) * 4) 0;
  background: var(--color-bg-alt);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: var(--color-text-light);
  font-size: 1.125rem;
}

.page-content {
  padding: calc(var(--spacing-unit) * 4) 0;
}

.page-content h2 {
  margin-top: calc(var(--spacing-unit) * 3);
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.page-content p {
  margin-bottom: var(--spacing-unit);
}

.page-content ul, .page-content ol {
  margin-bottom: var(--spacing-unit);
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* ===== Home Sections ===== */
.home-section {
  padding: calc(var(--spacing-unit) * 5) 0;
}

.home-section:nth-child(even) {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.125rem;
}

/* ===== Problem Cards ===== */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
}

.problem-card {
  padding: calc(var(--spacing-unit) * 2);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}

.problem-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.problem-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.problem-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== Ventures Grid ===== */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
}

.venture-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.venture-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.venture-card-content {
  padding: calc(var(--spacing-unit) * 1.5);
}

.venture-card .venture-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.venture-card h3 {
  margin-bottom: 0.75rem;
}

.venture-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.venture-card .card-link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Testimonials ===== */
.testimonial {
  background: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  padding: calc(var(--spacing-unit) * 1.5);
  margin: calc(var(--spacing-unit) * 2) 0;
  border-radius: 0 8px 8px 0;
}

.testimonial blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.testimonial cite {
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-style: normal;
}

/* ===== Contact ===== */
.contact-info {
  max-width: 600px;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-unit);
}

.contact-methods {
  margin-top: calc(var(--spacing-unit) * 2);
}

.contact-methods a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: calc(var(--spacing-unit) * 2);
  margin-bottom: var(--spacing-unit);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary);
  color: white;
  padding: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 2);
  margin-top: calc(var(--spacing-unit) * 4);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 4);
  padding-bottom: calc(var(--spacing-unit) * 3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 4);
}

.footer-section h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  padding-top: calc(var(--spacing-unit) * 2);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ===== Certifications ===== */
.certifications {
  display: flex;
  gap: var(--spacing-unit);
  flex-wrap: wrap;
  margin-top: calc(var(--spacing-unit) * 2);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg-alt);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    padding: calc(var(--spacing-unit) * 4) 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: var(--spacing-unit);
    border-bottom: 1px solid var(--color-border);
    gap: 0;
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav a {
    padding: var(--spacing-unit);
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .nav-cta {
    margin-top: var(--spacing-unit);
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 2);
  }

  .footer-links {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
  }
}
