/* =============================================
   GLOBAL.CSS — Reset, Variables, Typography
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&family=Manrope:wght@300;400;500;700&display=swap');

/* === CSS Variables — Urban Nest Real Estate (Deep Slate + Electric Teal) === */
:root {
  /* Brand Primary (Deep Slate) */
  --color-dark-brown:    #121826;   /* Main background / Rich text */
  --color-navy:          #121826;
  --color-navy-dark:     #0F1520;
  --color-navy-light:    #1E293B;

  /* Brand Accent (Electric Teal) */
  --color-red:           #00E5FF;   /* Vibrant accent */
  --color-red-dark:      #00B8D4;   /* Darker accent */
  --color-red-light:     #E0F7FA;   /* Very light accent */

  /* Neutrals */
  --color-cream:         #F9FAFB;
  --color-white:         #FFFFFF;
  --color-black:         #020617;
  --color-muted:         #64748B;
  --color-border:        #E2E8F0;
  --color-light-gray:    #F1F5F9;
  --color-warm-gray:     #94A3B8;

  /* Aliases for better compatibility */
  --color-gold:          #00E5FF;
  --color-gold-dark:     #00B8D4;
  --color-gold-light:    #E0F7FA;
  --color-orange-accent: #00E5FF;

  --font-display:  'Outfit', sans-serif;
  --font-serif:    'Outfit', sans-serif; /* Simplified, no serif in Urban look */
  --font-body:     'Manrope', sans-serif;

  --section-padding-desktop: 140px 0;
  --section-padding-tablet:  100px 0;
  --section-padding-mobile:  70px 0;
  --container-max:           1400px;
  --container-padding:       60px;
  --container-padding-mobile: 24px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.44, 0, 0.56, 1);
  --duration-fast: 0.3s;
  --duration-base: 0.6s;
  --duration-slow: 1s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-dark-brown);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
}

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--color-dark-brown);
}

h1 { font-size: clamp(60px, 8vw, 112px); }
h2 { font-size: clamp(40px, 6vw, 100px); }
h3 { font-size: clamp(24px, 3vw, 44px); }
h4 { font-size: clamp(18px, 2vw, 24px); }

p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-muted);
}

/* === Label / Tag === */
.label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--color-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* === Buttons === */
.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  transform: translateY(-1px);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  border: 1.5px solid var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-dark-brown);
  border: 1.5px solid var(--color-dark-brown);
}
.btn-secondary:hover {
  background: rgba(30, 53, 94, 0.08); /* light navy hover */
  border-color: var(--color-dark-brown);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--color-dark-brown);
  color: var(--color-white);
  border: 1.5px solid var(--color-dark-brown);
}
.btn-dark:hover {
  background: #3a1600;
  transform: translateY(-1px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-dark-brown);
  border: 1.5px solid var(--color-white);
}
.btn-white:hover {
  background: var(--color-cream);
  transform: translateY(-1px);
}

/* === Image Placeholder === */
.img-placeholder {
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.img-placeholder svg {
  opacity: 0.4;
  transition: opacity 0.3s;
}

.img-placeholder[data-loaded="true"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.img-placeholder[data-loaded="true"] svg {
  display: none;
}

/* === Section === */
.section {
  padding: var(--section-padding-desktop);
}

/* === Divider === */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* === Tag/Badge === */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-gold {
  background: var(--color-gold-light);
  color: var(--color-gold);
}

.tag-dark {
  background: rgba(0,0,0,0.6);
  color: var(--color-white);
  backdrop-filter: blur(8px);
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb { background: var(--color-warm-gray); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }

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

/* === Selection === */
::selection {
  background: var(--color-gold);
  color: var(--color-white);
}

/* === Focus === */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* === Responsive === */
@media (max-width: 809px) {
  .container {
    padding: 0 var(--container-padding-mobile);
  }

  .section {
    padding: var(--section-padding-mobile);
  }
}

@media (min-width: 810px) and (max-width: 1199px) {
  .section {
    padding: var(--section-padding-tablet);
  }
}


