/* ════════════════════════════════════════════
   RIDGE — Global CSS
   Color System:
   --blue-primary: #1A73E8
   --blue-dark:    #0D47A1
   --navy:         #1C2B4A
   --gray-light:   #F4F7FB
   --gray-mid:     #5A6E85
   --white:        #FFFFFF
   ════════════════════════════════════════════ */

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

:root {
  --blue: #1a73e8;
  --blue-dark: #0d47a1;
  --navy: #1c2b4a;
  --gray-bg: #f4f7fb;
  --gray-mid: #5a6e85;
  --gray-border: #dce6f0;
  --white: #ffffff;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-border);
  z-index: 1000;
  transition: box-shadow 0.2s;
  backdrop-filter: blur(8px);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(28,43,74,0.1);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
/* Legacy: keep .logo-mark & .logo-text for footer text fallback */
.logo-mark { width: 36px; height: 40px; }
.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
}

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-mid);
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: var(--gray-bg); }
.chevron { width: 10px; height: 7px; stroke: currentColor; transition: transform 0.2s; }
.has-dropdown:hover .chevron { transform: rotate(180deg); }

/* Inquire button */
.nav-inquire {
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 4px;
  padding: 9px 18px !important;
  transition: background 0.2s !important;
}
.nav-inquire:hover { background: var(--blue-dark) !important; color: #fff; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(28,43,74,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  min-width: 480px;
  z-index: 200;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 24px; }
.dropdown-col { padding: 0 16px; }
.dropdown-col:first-child { border-right: 1px solid var(--gray-border); padding-left: 0; }
.dropdown-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ab0c8;
  margin-bottom: 12px;
}
.dropdown-col a {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--gray-mid);
  padding: 7px 0;
  border-bottom: 1px solid #f0f5fa;
  transition: color 0.15s;
}
.dropdown-col a:hover { color: var(--blue); }
.dropdown-col a:last-child { border-bottom: none; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.25s; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { color: #fff; }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.65; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: var(--blue); color: #fff; }
.social-link svg { width: 16px; height: 16px; }
.social-link.whatsapp:hover { background: #25d366; }
.footer-links h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom { padding: 20px 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-inner span { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-cert-badges { display: flex; gap: 8px; }
.cert-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 8px;
  border-radius: 3px;
}

/* ── WhatsApp Float ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px; height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 900;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.wa-float svg { width: 28px; height: 28px; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: calc(var(--header-h) + 52px) 0 52px;
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6e 100%);
  text-align: center;
}
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  justify-content: center;
  margin-top: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: 0.35; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav-list { gap: 0; }
  .nav-link { padding: 8px 10px; font-size: 0.84rem; }
}
@media (max-width: 820px) {
  .mobile-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-top: 1px solid var(--gray-border);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; width: 100%; gap: 4px; }
  .nav-link { width: 100%; padding: 12px 16px; font-size: 1rem; }
  .has-dropdown .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    min-width: unset;
    padding: 0;
    margin: 0;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
