/* ==========================================================================
   PINEORRA HHILLS — THE RESIDENCES EDITORIAL DESIGN SYSTEM
   Bespoke Architectural Luxury | Light Palette | Editorial Whitespace
   ========================================================================== */

:root {
  --res-porcelain-ivory: #F7F4ED;
  --res-warm-stone:      #EAE3D7;
  --res-champagne-gold:  #C5A36B;
  --res-soft-taupe:      #D7CBB9;
  --res-pure-white:      #FFFFFF;
  --res-warm-taupe-text: #6F665A;
  --res-deep-heading:    #3A322A;
  --res-border-subtle:   rgba(215, 203, 185, 0.45);
  --res-border-gold:     rgba(197, 163, 107, 0.50);

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Base Styles & Reset Overrides (Strict Light Theme)
   -------------------------------------------------------------------------- */
body.residences-editorial-body {
  background-color: var(--res-porcelain-ivory) !important;
  color: var(--res-warm-taupe-text) !important;
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll Progress Indicator */
#residences-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: transparent;
  z-index: 10001;
  pointer-events: none;
}

#residences-scroll-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--res-champagne-gold) 0%, #DFCEB0 100%);
  transition: width 0.08s ease-out;
}

/* --------------------------------------------------------------------------
   Header Overrides for Residences Section
   -------------------------------------------------------------------------- */
.residences-editorial-body .header_wrapper__MJ5bn {
  background-color: rgba(247, 244, 237, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--res-border-subtle) !important;
  box-shadow: 0 4px 20px rgba(111, 102, 90, 0.04) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.residences-editorial-body .header_wrapper__MJ5bn .nav_link {
  color: var(--res-deep-heading) !important;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.residences-editorial-body .header_wrapper__MJ5bn .nav_link:hover,
.residences-editorial-body .header_wrapper__MJ5bn .nav_link.active {
  color: var(--res-champagne-gold) !important;
}

/* Dropdown Menu - Warm Ivory Surface with Subtle Stone Border */
.residences-editorial-body .header_dropdown_menu {
  background: transparent;
}

.residences-editorial-body .dropdown_inner {
  background: var(--res-porcelain-ivory) !important;
  border: 1px solid var(--res-warm-stone) !important;
  box-shadow: 0 16px 36px rgba(111, 102, 90, 0.08) !important;
  border-radius: 4px;
  padding: 18px 22px;
}

.residences-editorial-body .dropdown_link {
  color: var(--res-deep-heading) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 7px 0 !important;
  transition: color 0.25s ease, transform 0.25s ease !important;
  position: relative;
}

.residences-editorial-body .dropdown_link:hover,
.residences-editorial-body .dropdown_link.active {
  color: var(--res-champagne-gold) !important;
  transform: translateX(4px);
}

.residences-editorial-body .dropdown_link::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--res-champagne-gold);
  transition: width 0.3s ease;
}

.residences-editorial-body .dropdown_link:hover::after,
.residences-editorial-body .dropdown_link.active::after {
  width: 100%;
}

/* Header CTA Button */
.residences-editorial-body .header_cta_btn {
  background: var(--res-champagne-gold) !important;
  border-color: var(--res-champagne-gold) !important;
  color: var(--res-porcelain-ivory) !important;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.residences-editorial-body .header_cta_btn:hover {
  background: var(--res-deep-heading) !important;
  border-color: var(--res-deep-heading) !important;
  color: var(--res-porcelain-ivory) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(111, 102, 90, 0.15);
}

.residences-editorial-body .header_tablet_cta {
  background: var(--res-champagne-gold) !important;
  border-color: var(--res-champagne-gold) !important;
  color: var(--res-porcelain-ivory) !important;
}

/* Mobile Nav Toggle */
.residences-editorial-body .burger-line {
  background: var(--res-deep-heading) !important;
}

/* Mobile Drawer - Warm Ivory Surface */
.residences-editorial-body .mobile-menu-overlay {
  background: var(--res-porcelain-ivory) !important;
  color: var(--res-deep-heading) !important;
}

.residences-editorial-body .mobile-menu-header {
  border-bottom: 1px solid var(--res-border-subtle);
}

.residences-editorial-body .mobile-menu-close svg {
  stroke: var(--res-deep-heading);
}

.residences-editorial-body .mobile-nav-item > a,
.residences-editorial-body .mobile-submenu-toggle {
  color: var(--res-deep-heading) !important;
}

.residences-editorial-body .mobile-submenu-toggle:hover,
.residences-editorial-body .mobile-submenu-toggle.active {
  color: var(--res-champagne-gold) !important;
}

.residences-editorial-body .mobile-submenu-toggle .mobile-sub-arrow {
  stroke: var(--res-deep-heading);
}

.residences-editorial-body .mobile-submenu li a {
  color: var(--res-warm-taupe-text) !important;
}

.residences-editorial-body .mobile-submenu li a:hover,
.residences-editorial-body .mobile-submenu li a.active {
  color: var(--res-champagne-gold) !important;
}

.residences-editorial-body .mobile-cta-btn {
  background: var(--res-champagne-gold) !important;
  color: var(--res-porcelain-ivory) !important;
}

.residences-editorial-body .mobile-menu-tagline {
  color: var(--res-warm-taupe-text) !important;
}

/* --------------------------------------------------------------------------
   Editorial Typography & Components
   -------------------------------------------------------------------------- */
.res-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 4.5vw, 70px);
  box-sizing: border-box;
}

.res-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--res-champagne-gold);
  margin-bottom: 20px;
}

.res-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--res-champagne-gold);
}

.res-headline {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--res-deep-heading);
  text-transform: uppercase;
  margin: 0 0 24px 0;
}

.res-intro {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.48;
  color: var(--res-warm-taupe-text);
  max-width: 820px;
  margin: 0 0 20px 0;
}

.res-body-p {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.05vw, 16.5px);
  font-weight: 300;
  line-height: 1.82;
  color: var(--res-warm-taupe-text);
  margin: 0 0 22px 0;
}

.res-divider {
  width: 48px;
  height: 1px;
  background: var(--res-champagne-gold);
  margin: 28px 0;
}

.res-divider-full {
  width: 100%;
  height: 1px;
  background: var(--res-border-subtle);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Editorial Page Hero (Light, Architectural, Airy)
   -------------------------------------------------------------------------- */
.res-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding-top: 150px;
  padding-bottom: clamp(60px, 7vw, 100px);
  background-color: var(--res-porcelain-ivory);
  overflow: hidden;
}

.res-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.res-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.02) saturate(1.03);
}

.res-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(247, 244, 237, 0.45) 0%,
    rgba(247, 244, 237, 0.72) 45%,
    rgba(247, 244, 237, 0.96) 100%
  );
  z-index: 2;
}

.res-hero-content {
  position: relative;
  z-index: 3;
  max-width: 980px;
}

.res-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--res-warm-taupe-text);
  margin-bottom: 24px;
}

.res-breadcrumb a {
  color: var(--res-warm-taupe-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.res-breadcrumb a:hover {
  color: var(--res-champagne-gold);
}

.res-breadcrumb .sep {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Editorial Asymmetrical Storytelling Blocks
   -------------------------------------------------------------------------- */
.res-narrative-sec {
  padding: clamp(70px, 8vw, 120px) 0;
  background-color: var(--res-porcelain-ivory);
  position: relative;
}

.res-narrative-sec.alt-stone {
  background-color: var(--res-warm-stone);
}

.res-narrative-sec.alt-white {
  background-color: var(--res-pure-white);
}

.res-asymmetric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.res-asymmetric-grid.reverse {
  direction: rtl;
}

.res-asymmetric-grid.reverse > * {
  direction: ltr;
}

.res-img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 16px 40px rgba(111, 102, 90, 0.08);
  border: 1px solid var(--res-border-subtle);
  background-color: var(--res-warm-stone);
}

.res-img-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.res-img-frame:hover img {
  transform: scale(1.03);
}

.res-img-caption {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--res-warm-taupe-text);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-img-caption::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--res-champagne-gold);
}

.res-chapter-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--res-champagne-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

/* Large Statement Quote Callout */
.res-editorial-statement {
  margin: 36px 0;
  padding: 24px 0 24px 28px;
  border-left: 2px solid var(--res-champagne-gold);
}

.res-editorial-statement p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 25px);
  font-style: italic;
  line-height: 1.45;
  color: var(--res-deep-heading);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Editorial Chapter Gateway & Section Index Cards
   -------------------------------------------------------------------------- */
.res-gateways-sec {
  padding: clamp(70px, 7vw, 110px) 0;
  background-color: var(--res-warm-stone);
  border-top: 1px solid var(--res-border-subtle);
  border-bottom: 1px solid var(--res-border-subtle);
}

.res-gateways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.res-gateway-card {
  display: block;
  text-decoration: none;
  background-color: var(--res-porcelain-ivory);
  border: 1px solid var(--res-border-subtle);
  padding: clamp(32px, 3.5vw, 48px) clamp(24px, 3vw, 36px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.res-gateway-card:hover {
  transform: translateY(-4px);
  border-color: var(--res-champagne-gold);
  box-shadow: 0 16px 36px rgba(111, 102, 90, 0.1);
  background-color: var(--res-pure-white);
}

.res-gateway-card .res-chapter-badge {
  margin-bottom: 12px;
}

.res-gateway-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--res-deep-heading);
  margin: 0 0 12px 0;
}

.res-gateway-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.68;
  color: var(--res-warm-taupe-text);
  margin: 0 0 24px 0;
}

.res-gateway-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--res-champagne-gold);
}

.res-gateway-arrow svg {
  transition: transform 0.3s ease;
}

.res-gateway-card:hover .res-gateway-arrow svg {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   Verified Amenities & Categories Layout (Light Theme)
   -------------------------------------------------------------------------- */
.res-amenities-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 50px;
}

.res-amenity-cat-item {
  background: var(--res-pure-white);
  border: 1px solid var(--res-border-subtle);
  padding: clamp(34px, 4vw, 46px);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.res-amenity-cat-item:hover {
  border-color: var(--res-champagne-gold);
  box-shadow: 0 12px 30px rgba(111, 102, 90, 0.08);
}

.res-amenity-cat-item h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  color: var(--res-deep-heading);
  text-transform: uppercase;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.res-amenity-cat-item p {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--res-warm-taupe-text);
  margin: 0;
}

.res-amenity-note-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--res-champagne-gold);
  background: rgba(197, 163, 107, 0.12);
  padding: 4px 10px;
  border-radius: 2px;
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Light Luxury Final CTA Section
   -------------------------------------------------------------------------- */
.res-final-cta-sec {
  padding: clamp(90px, 10vw, 140px) 0;
  background-color: var(--res-warm-stone);
  text-align: center;
  position: relative;
  border-top: 1px solid var(--res-border-subtle);
}

.res-final-cta-content {
  max-width: 780px;
  margin: 0 auto;
}

.res-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.res-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background-color: var(--res-champagne-gold);
  color: var(--res-porcelain-ivory);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: 1px solid var(--res-champagne-gold);
}

.res-btn-primary:hover {
  background-color: var(--res-deep-heading);
  border-color: var(--res-deep-heading);
  color: var(--res-porcelain-ivory);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(111, 102, 90, 0.15);
}

.res-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background-color: transparent;
  color: var(--res-deep-heading);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--res-soft-taupe);
  transition: all 0.3s ease;
}

.res-btn-secondary:hover {
  background-color: var(--res-porcelain-ivory);
  border-color: var(--res-champagne-gold);
  color: var(--res-champagne-gold);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Light Luxury Footer
   -------------------------------------------------------------------------- */
.residences-editorial-body .luxury-footer {
  background-color: var(--res-porcelain-ivory) !important;
  color: var(--res-warm-taupe-text) !important;
  border-top: 1px solid var(--res-border-subtle) !important;
  padding: 80px clamp(24px, 5vw, 80px) 40px !important;
}

.residences-editorial-body .luxury-footer .footer-tagline {
  color: var(--res-champagne-gold) !important;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.residences-editorial-body .luxury-footer h4 {
  color: var(--res-champagne-gold) !important;
}

.residences-editorial-body .luxury-footer .footer-links a {
  color: var(--res-warm-taupe-text) !important;
  transition: color 0.25s ease;
}

.residences-editorial-body .luxury-footer .footer-links a:hover {
  color: var(--res-champagne-gold) !important;
}

.residences-editorial-body .luxury-footer .footer-bottom {
  border-top: 1px solid var(--res-border-subtle) !important;
  color: rgba(111, 102, 90, 0.7) !important;
}

/* Floating WhatsApp button */
.residences-editorial-body .floating-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

/* Mobile Sticky Action Bar */
.residences-editorial-body .mobile-sticky-action-bar {
  background: rgba(247, 244, 237, 0.96) !important;
  border-top: 1px solid var(--res-warm-stone) !important;
}

.residences-editorial-body .mobile-action-item {
  color: var(--res-deep-heading) !important;
}

/* --------------------------------------------------------------------------
   Responsive Layout Rules
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .res-asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .res-asymmetric-grid.reverse {
    direction: ltr;
  }
  .res-gateways-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .res-amenities-categories {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .res-headline {
    font-size: clamp(32px, 7vw, 44px);
  }
  .res-intro {
    font-size: 19px;
  }
  .res-narrative-sec {
    padding: 60px 0;
  }
  .res-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .res-btn-primary,
  .res-btn-secondary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 430px) {
  .res-container {
    padding: 0 20px;
  }
  .res-hero {
    min-height: 75vh;
    padding-top: 130px;
  }
}

/* --------------------------------------------------------------------------
   Accessibility: prefers-reduced-motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .res-img-frame img,
  .res-hero-bg img {
    transform: none !important;
  }
}
