
:root {
  /* Colors */
  --color-background: rgba(252, 252, 249, 1);
  --color-surface: rgba(255, 255, 253, 1);
  --color-text: rgba(19, 52, 59, 1);
  --color-text-secondary: rgba(98, 108, 113, 1);
  --color-primary: rgba(33, 128, 141, 1);
  --color-primary-hover: rgba(29, 116, 128, 1);
  --color-primary-active: rgba(26, 104, 115, 1);
  --color-secondary: rgba(94, 82, 64, 0.12);
  --color-secondary-hover: rgba(94, 82, 64, 0.2);
  --color-secondary-active: rgba(94, 82, 64, 0.25);
  --color-border: rgba(94, 82, 64, 0.2);
  --color-btn-primary-text: rgba(252, 252, 249, 1);
  --color-card-border: rgba(94, 82, 64, 0.12);
  --color-card-border-inner: rgba(94, 82, 64, 0.12);
  --color-error: rgba(192, 21, 47, 1);
  --color-success: rgba(33, 128, 141, 1);
  --color-warning: rgba(168, 75, 47, 1);
  --color-info: rgba(98, 108, 113, 1);
  --color-focus-ring: rgba(33, 128, 141, 0.4);
  --color-select-caret: rgba(19, 52, 59, 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' 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");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' 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");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: rgba(31, 33, 33, 1);
    --color-surface: rgba(38, 40, 40, 1);
    --color-text: rgba(245, 245, 245, 1);
    --color-text-secondary: rgba(167, 169, 169, 0.7);
    --color-primary: rgba(50, 184, 198, 1);
    --color-primary-hover: rgba(45, 166, 178, 1);
    --color-primary-active: rgba(41, 150, 161, 1);
    --color-secondary: rgba(119, 124, 124, 0.15);
    --color-secondary-hover: rgba(119, 124, 124, 0.25);
    --color-secondary-active: rgba(119, 124, 124, 0.3);
    --color-border: rgba(119, 124, 124, 0.3);
    --color-error: rgba(255, 84, 89, 1);
    --color-success: rgba(50, 184, 198, 1);
    --color-warning: rgba(230, 129, 97, 1);
    --color-info: rgba(167, 169, 169, 1);
    --color-focus-ring: rgba(50, 184, 198, 0.4);
    --color-btn-primary-text: rgba(19, 52, 59, 1);
    --color-card-border: rgba(119, 124, 124, 0.2);
    --color-card-border-inner: rgba(119, 124, 124, 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(119, 124, 124, 0.2);
    --color-border-secondary: rgba(119, 124, 124, 0.2);
    --color-select-caret: rgba(245, 245, 245, 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' 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");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' 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");

    /* RGB versions for dark mode */
    --color-success-rgb: 50, 184, 198;
    --color-error-rgb: 255, 84, 89;
    --color-warning-rgb: 230, 129, 97;
    --color-info-rgb: 167, 169, 169;
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  --color-background: rgba(31, 33, 33, 1);
  --color-surface: rgba(38, 40, 40, 1);
  --color-text: rgba(245, 245, 245, 1);
  --color-text-secondary: rgba(167, 169, 169, 0.7);
  --color-primary: rgba(50, 184, 198, 1);
  --color-primary-hover: rgba(45, 166, 178, 1);
  --color-primary-active: rgba(41, 150, 161, 1);
  --color-secondary: rgba(119, 124, 124, 0.15);
  --color-secondary-hover: rgba(119, 124, 124, 0.25);
  --color-secondary-active: rgba(119, 124, 124, 0.3);
  --color-border: rgba(119, 124, 124, 0.3);
  --color-error: rgba(255, 84, 89, 1);
  --color-success: rgba(50, 184, 198, 1);
  --color-warning: rgba(230, 129, 97, 1);
  --color-info: rgba(167, 169, 169, 1);
  --color-focus-ring: rgba(50, 184, 198, 0.4);
  --color-btn-primary-text: rgba(19, 52, 59, 1);
  --color-card-border: rgba(119, 124, 124, 0.15);
  --color-card-border-inner: rgba(119, 124, 124, 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(119, 124, 124, 0.2);
  --color-select-caret: rgba(245, 245, 245, 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' 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");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' 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");

  /* RGB versions for dark mode */
  --color-success-rgb: 50, 184, 198;
  --color-error-rgb: 255, 84, 89;
  --color-warning-rgb: 230, 129, 97;
  --color-info-rgb: 167, 169, 169;
}

[data-color-scheme="light"] {
  --color-background: rgba(252, 252, 249, 1);
  --color-surface: rgba(255, 255, 253, 1);
  --color-text: rgba(19, 52, 59, 1);
  --color-text-secondary: rgba(98, 108, 113, 1);
  --color-primary: rgba(33, 128, 141, 1);
  --color-primary-hover: rgba(29, 116, 128, 1);
  --color-primary-active: rgba(26, 104, 115, 1);
  --color-secondary: rgba(94, 82, 64, 0.12);
  --color-secondary-hover: rgba(94, 82, 64, 0.2);
  --color-secondary-active: rgba(94, 82, 64, 0.25);
  --color-border: rgba(94, 82, 64, 0.2);
  --color-btn-primary-text: rgba(252, 252, 249, 1);
  --color-card-border: rgba(94, 82, 64, 0.12);
  --color-card-border-inner: rgba(94, 82, 64, 0.12);
  --color-error: rgba(192, 21, 47, 1);
  --color-success: rgba(33, 128, 141, 1);
  --color-warning: rgba(168, 75, 47, 1);
  --color-info: rgba(98, 108, 113, 1);
  --color-focus-ring: rgba(33, 128, 141, 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

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

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

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

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

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

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

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

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

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
  box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
  padding-top: var(--space-96);
  padding-bottom: var(--space-96);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* Custom styles for Ranch Rocha website */

/* Additional Fonts */
@font-face {
  font-family: 'Playfair Display';
  src: url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');
}

/* Base Layout */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* Header & Navigation Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: #000 !important; /* 🔒 fixo e escuro */
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.header a,
.header svg,
.header .menu-toggle {
  color: #fff !important;
  fill: #fff !important;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-24);
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.logo-link {
  display: block;
  height: 100%;
  max-height: 80px;
  line-height: 0;
}

.logo-img {
  height: 80%;            /* Scales relative to header height (80px) */
  max-height: 80px;       /* Absolute safety cap */
  width: auto;
  object-fit: contain;
  display: block;
  padding-top: var(--space-12); /* try 16px or adjust as needed */
}


@media (max-width: 1200px) {
  .logo-img {
    max-height: 80px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    max-height: 42px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    max-height: 36px;
  }
}

/* Hamburger Menu Button */
.hamburger {
  width: 30px;
  height: 24px;
  position: absolute;
  top: 20px;
  right: 70px;
  z-index: 1000; /* make sure it stays above */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}



.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #fff !important;
  transition: transform 0.3s ease;
  transform-origin: right;
  outline: 1px solid red; /* temp test: helps you see if the rule is applying */
}

}

.hamburger.active span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:last-child {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: var(--space-16);
  transition: background-color 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--color-secondary);
}

.theme-icon {
  font-size: var(--font-size-xl);
}

/* Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(252, 252, 249, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-start;  /* push content to top */
  justify-content: flex-end; /* push content to right */
  padding: 80px 60px; /* top/right spacing (adjust as needed) */
}


[data-color-scheme="dark"] .nav-overlay {
  background-color: rgba(31, 33, 33, 0.95);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.nav-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: var(--space-32);
}

.nav-close {
  position: absolute;
  top: -60px;
  right: 0;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-close span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff !important;
  position: absolute;
  top: 50%;
}


.nav-close span:first-child {
  transform: translateY(-50%) rotate(45deg);
}

.nav-close span:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.nav-link {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  color: white;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--color-primary);
  transform: translateX(var(--space-8));
}

.nav-sub {
  font-size: var(--font-size-lg);
  margin-left: var(--space-16);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.nav-section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
  url("images/backriver.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35; /* tune for readability */
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: var(--space-32);
  z-index: 1;
}

.hero-title {
  font-size: clamp(var(--font-size-3xl), 5vw, 52px);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-16);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text);
  margin-bottom: var(--space-32);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-8) var(--space-16);
  background-color: var(--color-primary);
  color: var(--color-surface);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-16);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  margin-top: var(--space-32);
  flex-wrap: wrap;
}

.hero-motto {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-24);
  color: var(--color-text-secondary);
}

.hero-motto em {
  font-style: italic;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-4);
}

/* Page Layout */
.page {
  display: none;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  padding: var(--space-32) 0;
  background-color: var(--color-secondary);
  margin-bottom: var(--space-32);
}

.page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-32) 0;
}

.page-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-top: var(--space-8);
}

/* Projects Overview */
.projects-overview {
  background-image: url('/images/wolfbear.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--space-96) var(--space-24);
  position: relative;
  width: 100%;
  margin: 0;
}

.projects-overview {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.projects-overview.visible {
  opacity: 1;
  transform: translateY(0);
}

.projects-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* darkens the image slightly */
  z-index: 0;
  border-radius: var(--radius-xl); /* optional */
}

.projects-overview > * {
  position: relative;
  z-index: 1;
}

.projects-grid {
  margin-top: var(--space-64); /* creates space between subtitle and cards */
}


.projects-overview h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Bigger on all screen sizes */
  font-weight: var(--font-weight-bold);
  color: white;
  line-height: 1.6;
  margin-top: 0; /* remove default vertical push-down */
  margin-bottom: 0 var(--space-16); /* or 32px if you want more space below title */
}

.section-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem); /* Responsive scaling */
  color: white;
  margin-top: var(--space-8);
  margin-bottom: var(--space-64);
}

.projects-overview h2,
.projects-overview .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px; /* optional, keeps text readable */
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px; /* or var(--space-32) */
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}


@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.projects-header {
  max-width: 1800px;
  margin: 0 auto;
  padding: var(--space-24);
  margin-bottom: var(--space-96); /* space between subtitle and cards */
  text-align: center;
}


.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  margin-bottom: var(--space-12);
  font-size: var(--font-size-lg);
}

.project-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
  flex-grow: 1;
  line-height: 1.5;
}

.status-badge {
  display: inline-flex;
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
  margin-top: auto;
}

/* Mission Section */
.mission-section {
  background-image: url('/images/footer-background.jpg'); /* use your actual image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: var(--space-96);
  padding: var(--space-96) 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.county-header {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 200px;
  height: auto;
  z-index: 3;
  opacity: 0.95;
}

.mission-spacer {
  height: 240px; /* Adjust as needed to create vertical space */
}

.mission {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 150px;
  text-align: center;
}

.mission-text-wrapper {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.6) 100%);
  padding: 80px 120px;
  border-radius: 60px;
  backdrop-filter: blur(3px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-96) var(--space-24) var(--space-48);
  position: relative;
  z-index: 2;
}

.large-text {
  font-size: var(--font-size-xl);
  line-height: 1.6;
  margin-bottom: var(--space-32);
}

.mission h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  color: #000;
  font-weight: 800;
}

.mission p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #000;
  margin: var(--space-24) 0;
}

.mission .btn {
  background-color: var(--color-primary);
  color: #fff;
  padding: var(--space-16) var(--space-32);
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-block;
  margin-top: var(--space-16);
}

.section-separator {
  height: var(--space-96);
}

@media (max-width: 768px) {
  .mission-text-wrapper {
    padding: 40px 20px;
    border-radius: 20px;
  }
}

/* About Page */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
  margin-bottom: 0; /* ← add this if needed */
}

.about-background {
  background-image: url('images/quinta2.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed; /* ← creates parallax effect */
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

.about-background {
  background-attachment: scroll; /* allow JS control */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: background-position 0.2s ease-out;
}


.about-header-wrap {
  margin: 0;
  padding: 0;
}

.about-background .container {
  padding-top: 0; /* or whatever looks best */
  padding-bottom: 0;
}


.video-section {
  display: flex;
  justify-content: center;
  margin-top: var(--space-16);
  margin-bottom: var(--space-32);
}

.video-section video {
  max-width: 80%;       /* Adjust width visually */
  width: 100%;
  height: auto;
  border-radius: var(--radius-base);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}



.heritage-section {
  margin-top: var(--space-48);  /* Ensures clear space from video */
}

.about-background h2,
.about-background h3,
.about-background p {
  color: #d4af37;
}

.about-background input,
.about-background textarea {
  background-color: rgba(255, 255, 255, 0.9);
  color: #d4af37;
}

.about-title-bg {
  padding-top: 0;
  padding-bottom: 0;
}

.about-background {
  padding-top: 0;
}

.about-title-bg h1,
.about-title-bg .page-subtitle {
  margin: 0;
}

.about-background p:first-of-type {
  margin-top: 0;
}

  @media (min-width: 768px) {
  .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .content-main,
  .content-sidebar {
    width: 100%;
  }
}

.text-boundary {
  max-width: 680px; /* adjust until it lines up with your yellow mark */
  margin-left: 0;
  margin-right: auto;
}

.text-boundary {
  padding-right: var(--space-16);
  
}

.justified-intro {
  text-align: justify;
}

.text-boundary {
  font-size: 1.1rem;         /* Increase or decrease as needed (default is ~1rem) */
  line-height: 1.7;          /* Creates nice breathing space between lines */
  letter-spacing: 0.1px;     /* Optional: improves readability slightly */
  color: #fff;               /* Reconfirm, in case something got overwritten */
}

.text-boundary p {
  margin-bottom: var(--space-16); /* Creates spacing between paragraphs */
  text-align: justify;
}


.text-boundary h2,
.text-boundary h3 {
  margin-top: var(--space-32);    /* Space above section headings */
  margin-bottom: var(--space-16); /* Space below section headings */
}



.content-main {
  width: 100%;
}

.content-sidebar {
  width: 100%;
  position: sticky;
  top: 10px;
}

.heritage-section,
.vision-section {
  margin-top: var(--space-16); /* try smaller */
  margin-bottom: var(--space-24);
}

.timeline {
  margin-top: var(--space-16);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 2px;
  background-color: #d4af37;
}

.timeline-item {
  position: relative;
  padding-left: var(--space-32);
  padding-bottom: var(--space-24);
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #d4af37;
  border: 4px solid var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border);
}

.timeline-content h3 {
  margin-bottom: var(--space-8);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8); /* tighter spacing between boxes */
  margin-top: 0;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-item {
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 8px;
  padding-right: 8px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-base);
  line-height: 1.5;
}


.value-item h3 {
  text-align: center;
  margin-top: 8px;
  margin-bottom: var(--space-8);
  padding-left: 8px;
  padding-right: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}



.about-title-bg {
  background-image: url('images/labelaboutus.png'); /* ← update path to your new image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  max-width: none;
  width: 100%;
  padding-left: var(--space-48);
  padding-right: var(--space-48);
}

.about-title-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-image: url('images/labelaboutus.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.about-title-bg {
  min-height: auto;
  height: auto;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.about-title-bg h1 {
  margin-bottom: var(--space-8); /* smaller gap below title */
  font-size: 3.5rem;
  color: #fff;
}

.about-title-bg .page-subtitle {
  margin-top: 0;
  font-size: 2.2rem;
  color: #fff;
}

.page-hero .page-header {
  margin-bottom: 0;
}

.page-hero .container {
  padding-bottom: 0;
}

.about-header-wrap {
  margin-bottom: 0;
  padding-bottom: 0;
}

.content-main {
  margin-top: 0;
  padding-top: 0;
}

.page-hero {
  margin-bottom: 0;
  padding-bottom: 0;
}

.about-title-bg {
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-header {
  margin-bottom: 0;
}

.about-background .container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.text-boundary {
  margin-top: 0;
  padding-top: var(--space-24);
}

.text-boundary p:first-of-type {
  margin-top: 0;
}




/* Newsletter & Contact Forms */
.newsletter-card,
.contact-card {
  margin-top: var(--space-24);
  margin-bottom: var(--space-24);
  width: 100%;
  background-color: var(--color-surface, #fff);
  color: var(--color-text, #000);
  border: 1px solid var(--color-card-border, #ccc);
  padding: var(--space-16);
  border-radius: var(--radius-base);
}

/* Center the headings */
.newsletter-card h3,
.contact-card h3 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-8);
}

/* Ensure text styles inside cards follow theme */
.newsletter-card p,
.contact-card p,
.newsletter-card label,
.contact-card label {
  color: var(--color-text, #000);
}

/* Forms inside the cards */
.newsletter-form,
.contact-form {
  margin-top: var(--space-16);
  width: 100%;
}

/* Input fields and textarea */
.form-group {
  width: 100%;
  margin-bottom: var(--space-16);
}

.form-control {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--color-surface, #fff);
  color: var(--color-text, #000);
  border: 1px solid var(--color-border, #bbb);
  padding: var(--space-8);
  border-radius: var(--radius-sm);
}

/* Center the Submit/Subscribe buttons */
.newsletter-form button,
.contact-form button {
  display: block;
  margin: var(--space-16) auto 0 auto;
}



/* Project Pages */
.projects-overview h2 {
  margin-bottom: var(--space-48);
}

.projects-grid {
  margin-top: var(--space-32);
  padding-bottom: var(--space-64); /* replaces margin-bottom */
}

.section-spacer {
  height: var(--space-96);
}

.project-badge {
  font-size: 48px;
  margin-bottom: var(--space-16);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-secondary);
  border-radius: var(--radius-lg);
  margin-left: auto;
  margin-right: auto;
}

.project-content {
  margin-bottom: var(--space-64);
}

.project-description {
  margin-bottom: var(--space-48);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.features-grid,
.specs-grid,
.community-stats,
.features-list,
.amenities-grid,
.operations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
  margin: var(--space-48) 0;
}

@media (min-width: 768px) {
  .features-grid,
  .specs-grid,
  .community-stats,
  .features-list,
  .amenities-grid,
  .operations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid,
  .specs-grid,
  .community-stats,
  .features-list,
  .amenities-grid,
  .operations-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item,
.spec-item,
.stat-item,
.amenity-item,
.operation-item,
.feature-highlight {
  background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-base);
  padding: var(--space-24);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-item h3,
.amenity-item h3,
.operation-item h3,
.feature-highlight h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-12);
}

.spec-number,
.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

.spec-label,
.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-timeline h2,
.neighborhood-vision h2,
.features-section h2,
.amenities-section h2,
.operations-section h2,
.chateau-features h2 {
  text-align: center;
  margin-bottom: var(--space-32);
}

.timeline-item.completed .timeline-marker {
  background-color: var(--color-success);
}

.timeline-item.current .timeline-marker {
  background-color: var(--color-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--color-primary-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0);
  }
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
  margin-bottom: var(--space-64);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.contact-details {
  margin-top: var(--space-32);
}

.contact-item {
  margin-bottom: var(--space-16);
}

.contact-item h3 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.contact-form-section {
  width: 100%;
}

/* Footer */
.footer {
  background-color: #000;
  color: #fff;
  padding: var(--space-24) 0;
  border-top: 1px solid #111; /* subtle separation if needed */
  margin-top: var(--space-48); /* ← this is the key */
}

.footer-info {
  color: #d4af37;
  font-size: var(--font-size-sm);
  text-align: right;
  line-height: 0.5;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  padding-right: var(--space-8); /* gives breathing room from right edge */
}


.footer a {
  color: #d4af37;
}

.footer a:hover {
  color: var(--color-primary); /* optional: your accent color on hover */
}

.footer-content {
  display: flex;
  justify-content: right;
  text-align: right;
}

.footer-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-6);
}

.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  text-align: right;
}

.footer-logo-block {
  flex: 0 0 auto;
  padding-left: var(--space-24); /* or use margin-left if preferred */
}

.footer-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-12);
  padding-left: var(--space-12); /* or use margin-left if preferred */
}

@media (max-width: 767px) {
  .footer-block {
    align-items: right;
    text-align: right;
  }

/* Helper Classes */
.space-y-16 > * + * {
  margin-top: var(--space-16);
}

.space-y-32 > * + * {
  margin-top: var(--space-32);
}

.section-separator {
  margin-top: var(--space-96);
  margin-bottom: var(--space-96);
}


/* Custom Variables */
:root {
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-32: 32px;
  --space-64: 64px;
  --space-96: 96px;
  --space-128: 128px;
  --color-primary-rgb: 33, 128, 141;
}

[data-color-scheme="dark"] {
  --color-primary-rgb: 50, 184, 198;
}

/* Additional Responsive Styles */
@media (max-width: 767px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .header-content {
    padding: 0 var(--space-16);
  }
  
  .nav-content {
    padding: var(--space-24);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
 
  .content-sidebar {
    position: static;
 }

/* Section Spacer Utility */
.section-spacer {
  height: 96px;
  width: 100%;
  display: block;
  clear: both;
}
}