/* -------------------------------------------------------------
   GATE & GUIDE — GLOBAL DESIGN SYSTEM
   Luxury Real Estate & High-End Property Brand Styling
   ------------------------------------------------------------- */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Outfit:wght@300;400;500;600&display=swap');

/* Color Gamut & Interpolation Support detection */
:root {
  --in-oklab: ;
  --in-oklch: ;
}
@supports (linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

:root {
  /* Brand Orange — Primary Action Color */
  --color-orange: #F97B3D;
  --color-orange-deep: #E05E1E;
  --color-orange-light: #FCA96E;
  --color-orange-pale: #FEF0E6;

  /* Brand Green — Secondary Accent */
  --color-green: #00C060;
  --color-green-deep: #009948;
  --color-green-light: #4DD98A;
  --color-green-pale: #E6FAF0;

  /* Neutral & Base Colors */
  --color-bg-primary: #FAFAF8;       /* Warm Off-White */
  --color-bg-secondary: #F4F2EE;     /* Warm Light Gray */
  --color-bg-dark: #141414;          /* Near Black */
  --color-bg-charcoal: #1E1E1E;      /* Charcoal */

  --color-text-primary: #111111;     /* Near Black */
  --color-text-secondary: #3D3D3D;   /* Dark Gray */
  --color-text-muted: #888880;       /* Muted Warm Gray */
  --color-text-light: #F5F4F0;       /* Light Cream */
  --color-text-orange: #F97B3D;
  --color-text-green: #009948;

  --color-border: #E8E5DF;           /* Soft warm border */
  --color-border-dark: #2A2A2A;      /* Dark border for dark sections */
  --color-white: #FFFFFF;

  /* Typography */
  --font-display: 'Cormorant', serif;
  --font-body: 'Outfit', sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;       /* 12px */
  --text-sm: 0.875rem;      /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg: 1.125rem;      /* 18px */
  --text-xl: 1.25rem;       /* 20px */
  --text-2xl: 1.5rem;       /* 24px */
  --text-3xl: 2rem;         /* 32px */
  --text-4xl: 2.75rem;      /* 44px */
  --text-5xl: 3.75rem;      /* 60px */
  --text-6xl: 5rem;         /* 80px */
  --text-7xl: 6.5rem;       /* 104px */
  --text-8xl: 8.5rem;       /* 136px */

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Layout */
  --container-max: 1360px;
  --container-padding: 2.5rem;

  /* Borders & Radius */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows (Luxury, Soft Multi-Layered) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 48px rgba(20, 20, 20, 0.08), 0 4px 12px rgba(20, 20, 20, 0.03);
}

/* -------------------------------------------------------------
   RESET & BASE STYLES
   ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

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

input, button, textarea, select {
  font: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Premium Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-orange);
}

/* -------------------------------------------------------------
   GLOBAL UTILITIES
   ------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-padding {
  padding: var(--space-3xl) 0;
}

.section-padding-large {
  padding: var(--space-3xl) 0;
}

/* Helper utility classes for text contrast */
.text-light {
  color: var(--color-text-light) !important;
}
.text-muted {
  color: var(--color-text-muted) !important;
}

/* -------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------- */
.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 1rem 2.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  background: var(--color-orange-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(249, 123, 61, 0.28);
}

.btn-secondary {
  background: var(--color-green);
  color: var(--color-white);
  padding: 1rem 2.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.btn-secondary:hover {
  background: var(--color-green-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 192, 96, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  padding: 1rem 2.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid var(--color-text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: var(--color-text-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  padding: 1rem 2.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  transform: translateY(-3px);
}

/* -------------------------------------------------------------
   SECTION TYPOGRAPHY
   ------------------------------------------------------------- */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--color-orange);
  flex-shrink: 0;
}

.section-label-green {
  color: var(--color-green);
}
.section-label-green::before {
  background: var(--color-green);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-title-light {
  color: var(--color-text-light);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-text-secondary);
  max-width: 560px;
  line-height: 1.85;
}

.section-subtitle-light {
  color: rgba(245, 244, 240, 0.7);
}

/* Decorative Divider */
.divider {
  width: 48px;
  height: 2px;
  background: var(--color-orange);
  margin: 1.5rem 0;
}

.divider-green {
  background: var(--color-green);
}

.divider-center {
  margin: 1.5rem auto;
}

/* -------------------------------------------------------------
   GSAP REVEAL CLASSES (Initial state)
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(48px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
}

/* -------------------------------------------------------------
   BADGES / TAGS
   ------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-orange {
  background: var(--color-orange-pale);
  color: var(--color-orange-deep);
}

.badge-green {
  background: var(--color-green-pale);
  color: var(--color-green-deep);
}

/* -------------------------------------------------------------
   DECORATIVE STYLED PLACEHOLDER IMAGES
   Used to preserve editorial style without relying on stock photos.
   ------------------------------------------------------------- */
.media-placeholder {
  position: relative;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg var(--in-oklab), rgba(249, 123, 61, 0.02), rgba(0, 192, 96, 0.02));
  pointer-events: none;
}
.media-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}
.media-placeholder-dark {
  background-color: var(--color-bg-charcoal);
  border-color: var(--color-border-dark);
}
.media-placeholder-dark::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}
