/* ============================================================
   JORAMLOCKS — Shared Stylesheet
   Used by: ALL pages
   Brand: Navy + Gold | Keep Calm & Loc On
   Typography: Playfair Display + Poppins
   Version: 7.0 (Final — mobile menu fully working)
   ============================================================ */

/* ---------- 1. CSS VARIABLES ---------- */
:root {
  --navy: #0E1E3C;
  --navy-light: #1A2E52;
  --navy-dark: #071228;
  --gold: #F2C230;
  --gold-deep: #D4A017;
  --gold-soft: #F5D76E;
  --white: #FFFFFF;
  --grey: #B8BCC7;
  --whatsapp: #25D366;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Poppins', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --container: 1200px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-md: 0 8px 24px rgba(0,0,0,0.25);
  --shadow-gold: 0 6px 24px rgba(242,194,48,0.25);
  --transition: all 0.3s ease;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }

.section-label {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* ---------- 4. LAYOUT ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section { padding: var(--space-2xl) 0; }

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title h2 { color: var(--white); margin-bottom: var(--space-sm); }

.section-title p {
  color: var(--grey);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ---------- 5. HOURS TICKER ---------- */
.hours-ticker {
  background: #000;
  color: #fff;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  overflow: hidden;
  white-space: nowrap;
  height: 34px;
  line-height: 34px;
  position: relative;
  z-index: 1001;
}

.hours-ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: hours-ticker-scroll 34s linear infinite;
  will-change: transform;
}

.hours-ticker-track span {
  padding: 0 28px;
  text-transform: uppercase;
}

.hours-ticker-track i {
  margin-right: 6px;
  opacity: 0.9;
  color: var(--gold);
}

.hours-ticker:hover .hours-ticker-track { animation-play-state: paused; }

@keyframes hours-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------- 6. NAVIGATION ---------- */
.nav {
  background: rgba(14,30,60,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242,194,48,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--space-md);
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.nav__brand { display: flex; align-items: center; gap: 0.75rem; }
.nav__brand-logo { height: 52px; width: auto; }

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav__brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav__brand-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold-soft);
  letter-spacing: 1px;
  margin-top: 2px;
  opacity: 0.85;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__menu a {
  font-family: var(--font-accent);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 0.25rem 0;
  letter-spacing: 0.3px;
}

.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav__menu a:hover::after,
.nav__menu a.active::after { width: 100%; }

.nav__menu a:hover { color: var(--gold); }

.nav__cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 50px;
  font-weight: 600;
}

.nav__cta::after { display: none; }

.nav__cta:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

/* ---------- Hamburger button ---------- */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1003;
  position: relative;
  transition: transform 0.3s ease;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X when open */
.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Backdrop for mobile menu ---------- */
.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;              /* BELOW the nav bar */
  cursor: pointer;
  pointer-events: auto;
}

.nav__backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- 7. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
              background 0.3s ease, color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-3px); }

.btn i { transition: transform 0.3s ease; }
.btn:hover i { transform: translateX(4px); }

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

.btn--whatsapp:hover {
  background: #1EBE5A;
  box-shadow: 0 10px 26px rgba(37,211,102,0.4);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(242,194,48,0.45),
              0 0 0 1px rgba(242,194,48,0.2) inset;
  border: 1px solid rgba(242,194,48,0.6);
}

.btn--gold:hover {
  background: var(--gold-soft);
  box-shadow: 0 10px 28px rgba(242,194,48,0.6),
              0 0 0 1px rgba(242,194,48,0.3) inset;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.82rem; }

/* ---------- 8. TRUST BAR ---------- */
.trust-bar {
  background: var(--navy-light);
  border-top: 1px solid rgba(242,194,48,0.15);
  border-bottom: 1px solid rgba(242,194,48,0.15);
  padding: var(--space-md) 0;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.trust-bar__item .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.trust-bar__item .num i { font-size: 1.8rem; }

.trust-bar__item .label {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grey);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  line-height: 1.4;
}

.trust-bar__item .google-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.trust-bar__item .google-rating svg { width: 26px; height: 26px; }

.trust-bar__item .stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 2px;
  display: block;
  margin-top: 0.15rem;
}

/* ---------- 9. WHY SECTION ---------- */
.why__item { text-align: center; padding: var(--space-md); }
.why__icon { margin-bottom: var(--space-sm); display: inline-block; }

.why__item h3 {
  color: var(--gold);
  margin-bottom: var(--space-xs);
  font-size: 1.4rem;
}

.why__item p { color: var(--grey); font-size: 0.95rem; line-height: 1.7; }

/* ---------- 10. CARDS & GRID ---------- */
.grid { display: grid; gap: var(--space-md); }

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--navy-light);
  border: 1px solid rgba(242,194,48,0.35);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(242, 194, 48, 0.12);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.4s ease, height 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 14px 40px rgba(242, 194, 48, 0.3),
              0 0 0 1px rgba(242, 194, 48, 0.2) inset;
}

.card:hover::before { height: 4px; }

.card__icon { margin-bottom: var(--space-xs); }
.card h3 { color: var(--white); margin-bottom: 0.5rem; font-size: 1.35rem; }
.card p { color: var(--grey); font-size: 0.92rem; margin-bottom: var(--space-sm); line-height: 1.65; }

.card__price {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

/* ---------- 11. LOCATION CARDS ---------- */
.location-card {
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid rgba(242,194,48,0.15);
}

.location-card h3 { color: var(--gold); margin-bottom: var(--space-xs); font-size: 1.6rem; }
.location-card p { color: var(--grey); margin-bottom: 0.5rem; font-size: 0.92rem; line-height: 1.7; }

.location-card .phone {
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-accent);
}

.location-card iframe { width: 100%; height: 220px; border-radius: var(--radius); border: 0; }

.location-card__placeholder {
  height: 220px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---------- 12. CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  text-align: center;
}

.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { color: var(--grey); max-width: 600px; margin: 0 auto 2rem; }

/* =========================================================
   13. FOOTER
   ========================================================= */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 20px;
  border-top: 1px solid rgba(242,194,48,0.15);
}

.footer__main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__brand h4,
.footer__brand-name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.footer__brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 320px;
}

.footer__col h4 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__col li { margin-bottom: 8px; }

.footer__col a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 400;
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer__col a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer__contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__contact h4 {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer__contact p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.footer__contact p:last-child { margin-bottom: 0; }

.footer__contact i {
  color: var(--gold);
  width: 16px;
  text-align: center;
  margin-top: 4px;
  flex-shrink: 0;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
}

.footer__contact a:hover { color: var(--gold); }

.footer__social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__social-list li { margin-bottom: 8px; }

.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer__social-link:hover { transform: translateX(4px); }

.footer__social-link i {
  font-size: 1.05rem;
  width: 18px;
  text-align: center;
  transition: transform 0.25s ease;
}

.footer__social-link:hover i { transform: scale(1.15); }

.footer__social-link--whatsapp i { color: #25D366; }
.footer__social-link--whatsapp:hover { color: #25D366; }

.footer__social-link--instagram i { color: #E4405F; }
.footer__social-link--instagram:hover { color: #E4405F; }

.footer__social-link--facebook i { color: #1877F2; }
.footer__social-link--facebook:hover { color: #1877F2; }

.footer__social-link--tiktok i { color: #FFFFFF; }
.footer__social-link--tiktok:hover { color: #FFFFFF; }

.footer__social-link--youtube i { color: #FF0000; }
.footer__social-link--youtube:hover { color: #FF0000; }

.footer__bottom {
  text-align: center;
  padding: 24px var(--space-md) 0;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__bottom p { margin: 0; }

.footer__copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* =========================================================
   14. FOOTER RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .footer__brand {
    grid-column: 1 / -1;
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer__brand p { margin: 0 auto; max-width: 500px; }

  .footer__brand h4,
  .footer__brand-name { justify-content: center; }
}

@media (max-width: 768px) {
  .site-footer { padding: 40px 0 20px; }

  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-bottom: 30px;
  }

  .footer__brand h4,
  .footer__brand-name {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
  }

  .footer__brand p { font-size: 0.85rem; line-height: 1.6; }

  .footer__col h4 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
  }

  .footer__col a { font-size: 0.8rem; }
  .footer__col li { margin-bottom: 6px; }

  .footer__contact {
    margin-top: 18px;
    padding-top: 16px;
  }

  .footer__contact h4 { font-size: 0.9rem; margin-bottom: 10px; }

  .footer__contact p {
    font-size: 0.82rem;
    align-items: flex-start;
  }

  .footer__social-link { font-size: 0.8rem; }
  .footer__social-link i { font-size: 1rem; }

  .footer__bottom {
    padding-top: 18px;
    padding-bottom: 80px;
  }

  .footer__copyright { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .footer__brand h4,
  .footer__brand-name {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .footer__brand p { font-size: 0.78rem; }

  .footer__col h4 {
    font-size: 0.78rem;
    margin-bottom: 8px;
  }

  .footer__col a { font-size: 0.75rem; }

  .footer__contact p { font-size: 0.78rem; }

  .footer__social-link { font-size: 0.75rem; }
  .footer__social-link i { font-size: 0.95rem; width: 16px; }
}

/* =========================================================
   15. SCROLL REVEAL
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.grid--3 .reveal:nth-child(1) { transition-delay: 0ms; }
.grid--3 .reveal:nth-child(2) { transition-delay: 120ms; }
.grid--3 .reveal:nth-child(3) { transition-delay: 240ms; }

.grid--4 .reveal:nth-child(1) { transition-delay: 0ms; }
.grid--4 .reveal:nth-child(2) { transition-delay: 100ms; }
.grid--4 .reveal:nth-child(3) { transition-delay: 200ms; }
.grid--4 .reveal:nth-child(4) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   16. MOBILE NAV & GLOBAL RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {

  /* ---------- Fixed hamburger top-right ---------- */
  .nav__toggle {
    display: flex;
    position: fixed;
    top: 0.85rem;
    right: var(--space-md);
    z-index: 1004;
    background: var(--navy);
    border-radius: 8px;
    padding: 4px;
    transition: transform 0.3s ease;
  }

  .nav__toggle span { background: var(--gold); }

  /* ---------- Menu panel slides from right ---------- */
  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 82vw);
    height: 100vh;
    height: 100dvh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid rgba(242,194,48,0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    z-index: 1002;
    pointer-events: auto;
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  .nav__menu li { width: 100%; }

  .nav__menu a {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 0.6rem 0;
    color: var(--white);
  }

  .nav__menu a::after { display: none; }

  .nav__menu a:hover,
  .nav__menu a.active {
    color: var(--gold);
    padding-left: 6px;
  }

  .nav__cta {
    text-align: center;
    padding: 0.75rem 1.25rem !important;
    margin-top: 0.5rem;
    width: 100%;
    display: block;
  }

  /* ---------- Backdrop below everything ---------- */
  .nav__backdrop {
    z-index: 999;
  }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .hours-ticker { font-size: 11px; height: 30px; line-height: 30px; }
  .hours-ticker-track { animation-duration: 26s; }
  .hours-ticker-track span { padding: 0 20px; }
}

@media (max-width: 480px) {
  .section { padding: var(--space-xl) 0; }
  .trust-bar__grid { grid-template-columns: 1fr; }
}