/*
================================================================================
RIDGEVIEW ADVISORS — MASTER DESIGN SYSTEM & STYLESHEET
Specification: Version 1.0 | October 2026
Brand: Deep Navy #082641, Warm Orange #EA741C, Soft Gray #F2F5F6, Dark Text #24313B
Typography: Cormorant Garamond / Georgia (Serif Display) + Inter / Montserrat (Sans Body)
================================================================================
*/

:root {
  --navy: #082641;
  --navy-dark: #051A2D;
  --navy-light: #0D375D;
  --orange: #EA741C;
  --orange-hover: #D46211;
  --orange-soft: #FEF4EC;
  --gray-soft: #F2F5F6;
  --gray-card: #F8FAFB;
  --white: #FFFFFF;
  --text-dark: #24313B;
  --text-muted: #5B6C84;
  --text-light: #94A3B8;
  --border-light: #E2E8F0;
  --border-subtle: #EEF2F6;
  
  --font-serif: 'Cormorant Garamond', 'Georgia', 'Linotype Didot', serif;
  --font-sans: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 2px 6px rgba(8, 38, 65, 0.04);
  --shadow-md: 0 8px 24px rgba(8, 38, 65, 0.08);
  --shadow-lg: 0 16px 40px rgba(8, 38, 65, 0.12);
  --shadow-orange: 0 8px 25px rgba(234, 116, 28, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  
  --ease: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  padding-top: 132px; /* Desktop navbar offset */
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.35;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--ease);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.section-padding {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-tint {
  background-color: var(--gray-soft);
}

.section-dark {
  background-color: var(--navy);
  color: var(--white);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: #CBD5E1;
}

.text-center { text-align: center; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-soft);
  color: var(--orange);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(234, 116, 28, 0.25);
}

.section-dark .section-tag {
  background: rgba(234, 116, 28, 0.15);
  border-color: rgba(234, 116, 28, 0.4);
  color: #FFA559;
}

.section-lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
}

.section-dark .section-lead {
  color: #94A3B8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--ease);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(234, 116, 28, 0.48);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
}

/* -------------------------------------------------------------
   NAVBAR & HEADER ARCHITECTURE
   ------------------------------------------------------------- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 38px;
  background-color: var(--navy-dark);
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 500;
  z-index: 10001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-left a, .top-bar-right a {
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-left a:hover, .top-bar-right a:hover {
  color: var(--orange);
}

.site-header {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(8, 38, 65, 0.05);
  transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

body.has-scrolled .top-bar {
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}

body.has-scrolled .site-header {
  top: 0;
  box-shadow: 0 8px 30px rgba(8, 38, 65, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
  gap: 1.5rem;
}

body.has-scrolled .nav-inner {
  height: 82px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 68px;
  max-height: 68px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  transition: var(--ease);
}

body.has-scrolled .brand-logo-img {
  height: 60px;
  max-height: 60px;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 0.5vw, 0.8rem);
  list-style: none;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--orange);
  background: var(--orange-soft);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 270px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.65rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: var(--ease);
  z-index: 10005;
}

/* Bridge gap so hover doesn't break */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-item a {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
}

.dropdown-item a span {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.dropdown-item a:hover {
  background: var(--orange-soft);
  color: var(--orange);
}

.dropdown-item a:hover span {
  color: var(--text-dark);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-client-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--gray-soft);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--ease);
}

.btn-client-login:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--navy);
  cursor: pointer;
}

/* -------------------------------------------------------------
   HERO SECTIONS
   ------------------------------------------------------------- */
.hero-editorial {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #0B3356 100%);
  color: var(--white);
  padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(4rem, 7vw, 6.5rem) 0;
  overflow: hidden;
}

.hero-editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(234, 116, 28, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-editorial h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-editorial h1 span {
  color: var(--orange);
  font-style: italic;
}

.hero-editorial p.lead {
  color: #CBD5E1;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  line-height: 1;
}

.metric-item span {
  font-size: 0.82rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
  display: block;
}

.hero-card-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.hero-badge-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(8, 38, 65, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   CARDS & GRIDS
   ------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(234, 116, 28, 0.3);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 0.85rem;
}

.card p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9rem;
}

.card-link:hover {
  gap: 0.65rem;
  color: var(--orange-hover);
}

/* -------------------------------------------------------------
   FOUR-STEP PROCESS
   ------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  transition: var(--ease);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.75rem;
  display: block;
}

.process-step h4 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.process-step p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   CHECKLIST PANELS
   ------------------------------------------------------------- */
.checklist {
  list-style: none;
  margin-top: 1.25rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
  color: var(--text-dark);
}

.checklist li i {
  color: var(--orange);
  margin-top: 4px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   MOUNTAIN LANDSCAPE CTA BANNER
   ------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 50% 120%, rgba(234, 116, 28, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #CBD5E1;
  max-width: 650px;
  margin: 0 auto 2.25rem auto;
  font-size: 1.15rem;
}

.cta-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

/* -------------------------------------------------------------
   CONTACT FORM & CARD
   ------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--ease);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234, 116, 28, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
  color: #94A3B8;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* -------------------------------------------------------------
   FLOATING WHATSAPP BUTTON
   ------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--ease);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (ZERO OVERLAP GUARANTEED)
   ------------------------------------------------------------- */
@media (max-width: 1200px) {
  body {
    padding-top: 86px;
  }
  .top-bar {
    display: none !important;
  }
  .site-header {
    top: 0 !important;
  }
  .nav-inner {
    height: 76px;
  }
  .brand-logo-img {
    height: 56px;
    max-height: 56px;
  }
  nav.primary-nav, .nav-actions .btn-primary, .nav-actions .btn-client-login {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-card-media img {
    height: 320px;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .hero-trust-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner-buttons .btn {
    width: 100%;
  }
}

/* Mobile Off-Canvas Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(8, 38, 65, 0.7);
  backdrop-filter: blur(10px);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: var(--ease);
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 380px;
  background: var(--white);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.drawer-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.6rem 0;
  display: block;
}

.drawer-links a:hover {
  color: var(--orange);
}
