@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@700&display=swap');

:root {
  /* Colors */
  --color-background: #FCFBF8;
  --color-foreground: #1E293B;
  --color-primary: #2C4C3B;
  --color-primary-foreground: #FFFFFF;
  --color-accent: #D97757;
  --color-accent-foreground: #FFFFFF;
  --color-sage-light: #F1F5F2;
  --color-sage-dark: #4A6354;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
  --color-card: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Inter', sans-serif;
  color: var(--color-foreground);
  background-color: var(--color-background);
  line-height: 1.5;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

/* Custom Base Classes */
.min-h-screen { min-height: 100vh; }
.max-h-screen { max-height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Layout & Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.flex-shrink-0 { flex-shrink: 0; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-5xl { font-size: 3rem; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }

/* Colors - Backgrounds & Text */
.bg-background { background-color: var(--color-background); }
.bg-foreground { background-color: var(--color-foreground); }
.bg-primary { background-color: var(--color-primary); }
.bg-accent { background-color: var(--color-accent); }
.bg-sage-light { background-color: var(--color-sage-light); }
.bg-card { background-color: var(--color-card); }

.text-foreground { color: var(--color-foreground); }
.text-background { color: var(--color-background); }
.text-primary { color: var(--color-primary); }
.text-primary-foreground { color: var(--color-primary-foreground); }
.text-accent-foreground { color: var(--color-accent-foreground); }
.text-sage-dark { color: var(--color-sage-dark); }
.text-muted-foreground { color: var(--color-muted); }

/* Spacing & Utilities */
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.pt-24 { padding-top: 6rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-12 { padding: 3rem; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }

/* Fixed Dimensions */
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.w-48 { width: 12rem; }
.h-48 { height: 12rem; }

/* Positioning */
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.-bottom-4 { bottom: -1rem; }
.-right-4 { right: -1rem; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[100\] { z-index: 100; }
.-z-10 { z-index: -10; }

/* Visual Effects */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-border { border-color: var(--color-border); }

.object-cover { object-fit: cover; }
.object-top { object-position: top; }

.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }

/* Transitions & Hover Effects */
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-duration: 150ms; }
.transition-all { transition-property: all; transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }

.hover\:text-foreground:hover { color: var(--color-foreground); }
.hover\:bg-accent:hover { background-color: var(--color-accent); }
.hover\:bg-sage-light:hover { background-color: var(--color-sage-light); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); }
.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }
.group-hover\:underline:hover { text-decoration: underline; }

.group:hover .group-hover\:bg-primary { background-color: var(--color-primary); }
.group:hover .group-hover\:text-primary-foreground { color: var(--color-primary-foreground); }

/* Specific Overrides & Combinations */
.bg-background\/80 { background-color: rgba(252, 251, 248, 0.8); }
.bg-background\/95 { background-color: rgba(252, 251, 248, 0.95); }
.bg-background\/85 { background-color: rgba(252, 251, 248, 0.85); }
.bg-background\/50 { background-color: rgba(252, 251, 248, 0.5); }
.bg-primary\/10 { background-color: rgba(44, 76, 59, 0.1); }
.text-background\/70 { color: rgba(252, 251, 248, 0.7); }

.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-background\/95 { --tw-gradient-from: rgba(252, 251, 248, 0.95); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(252, 251, 248, 0)); }
.via-background\/85 { --tw-gradient-stops: var(--tw-gradient-from), rgba(252, 251, 248, 0.85), var(--tw-gradient-to, rgba(252, 251, 248, 0)); }
.to-background\/50 { --tw-gradient-to: rgba(252, 251, 248, 0.5); }

/* Specific Components */
.heading-hero {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
}
.heading-section {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Animations */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

/* Responsive queries */
.hidden { display: none; }
@media (min-width: 640px) { /* sm */
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:bottom-0 { bottom: 0; }
  .sm\:right-0 { right: 0; }
  .sm\:top-auto { top: auto; }
  .sm\:flex-col { flex-direction: column; }
}

@media (min-width: 768px) { /* md */
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:flex-row { flex-direction: row; }
  .md\:max-w-\[420px\] { max-width: 420px; }
  .heading-hero { font-size: 3.5rem; }
  .heading-section { font-size: 2.5rem; }
}

@media (min-width: 1024px) { /* lg */
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#mobile-menu {
  display: none;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
}
#mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
