/* =========================================================
   THE GROOT OOTY — Base, Reset & Typography
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFFFFF;
}
::-webkit-scrollbar-thumb {
  background: var(--color-mantis);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8EBF3E;
}

/* Focus outline */
:focus-visible {
  outline: 2px solid var(--color-obsidian);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 4K Image Rendering Rules */
img {
  display: block;
  max-width: 100%;
  height: auto;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

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

ul, ol {
  list-style: none;
}

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

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  line-height: 1.16;
  font-weight: 600;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.25;
  font-weight: 500;
}

/* Section Overline / Eyebrow */
.section-overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111111;
  background: rgba(159, 207, 73, 0.16);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  border: 1px solid rgba(159, 207, 73, 0.35);
}

.section-overline.on-dark {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 600;
  color: #111111;
  margin-bottom: var(--space-4);
}

.section-title.on-dark {
  color: #FFFFFF;
}

.section-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
  max-width: 680px;
}

.section-subtitle.center {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle.on-dark {
  color: var(--card-text-muted);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.center {
  text-align: center;
}

/* =========================================================
   Layout Utilities
   ========================================================= */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-pad {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.section-pad-sm {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.flex-wrap { flex-wrap: wrap; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .hide-desktop { display: none !important; }
}
