/* =========================================================
   RCMA Valet — Locations Page Styles (Royal Blue Theme)
   ========================================================= */

:root {
  --bg: #000; --text: #eee; --text-light: #fff;
  --blue: #2563eb; --blue-2: #60a5fa;
  --line: rgba(37,99,235,0.15); --border: rgba(37,99,235,0.25);
  --glass: rgba(15,15,15,0.42); --blur: 12px;
  --radius: 16px; --container: 1320px; --container-xl: 1680px; --nav-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif; 
  color: var(--text); overflow-x: hidden;
  background-color: var(--bg); 
  background-image: url("../../pictures/RCMA%20Valet%20%26%20%C3%98rchard%20Bar%20%26%20Table.jpg");
  background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; position: relative;
}
body::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: -1; }
@media (prefers-reduced-motion: reduce) { * { animation: none!important; transition: none!important; } }

.fade-section { opacity: 0; transform: translateY(60px); transition: opacity .6s ease, transform .6s ease; }
.fade-section.visible { opacity: 1; transform: none; }
.text-center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  height: 100svh; height: 100dvh; min-height: 760px; display: grid; place-items: center; text-align: center; position: sticky; top: 0; z-index: 0;
  background-image: url("../../pictures/RCMA%20Valet%20%26%20%C3%98rchard%20Bar%20%26%20Table.jpg"); background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; isolation: isolate;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.75)); pointer-events: none; }
.hero-content, .hero-cta { position: relative; z-index: 1; }
.hero-content { max-width: 1100px; padding: 20px; margin-bottom: 36px; will-change: opacity, transform; }
.hero-title {
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: clamp(2.7rem, 7.2vw, 6rem);
  background: linear-gradient(270deg, var(--blue), #fff, var(--blue)); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { 0% { background-position: 220% center; } 100% { background-position: -220% center; } }
.hero-subtitle { color: #d8d8d8; margin-top: 10px; font-size: 1.1rem; line-height: 1.6; max-width: 800px; margin-inline: auto; }
.hero-btn-huge {
  background: var(--blue); color: #fff; border: 0; cursor: pointer; padding: 20px 56px; border-radius: 14px; font-weight: 900;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem); box-shadow: 0 10px 24px rgba(37,99,235,.25); transition: .25s;
}
.hero-btn-huge:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(37,99,235,.4); }

.hero-cta.fixed {
  position: fixed; top: calc(var(--nav-h) + var(--safe-top)); left: 0; right: 0; background: rgba(0,0,0,.92); padding: 12px 16px; text-align: center; z-index: 1300;
}
.hero-cta.fixed .hero-btn-huge { width: 100%; border-radius: 0; padding: 18px 0; box-shadow: none; }

/* ---------- Locations Grid ---------- */
.locations-wrap {
  width: 100%; max-width: var(--container-xl); margin: clamp(48px, 6vw, 80px) auto; padding: 0 24px; position: relative; z-index: 2;
}
.locations-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px;
}

.glass-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--glass);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 14px 32px rgba(0,0,0,.38); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-4px); border-color: rgba(37,99,235,.5); box-shadow: 0 20px 40px rgba(0,0,0,.5);
}

/* Card Specifics */
.location-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0; /* Override padding so image sits flush */
}
.loc-image {
  width: 100%; height: 240px; overflow: hidden; background: #111; border-bottom: 1px solid var(--border);
}
.loc-image img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease;
}
.location-card:hover .loc-image img { transform: scale(1.06); }

.loc-content {
  padding: 32px 28px; display: flex; flex-direction: column; flex-grow: 1;
}
.loc-content h2 {
  font-family: "Montserrat", sans-serif; color: var(--blue); font-size: 1.5rem; margin-bottom: 8px;
}
.loc-content address {
  font-style: normal; color: #a1a1aa; font-size: 0.95rem; margin-bottom: 16px; line-height: 1.5;
}
.loc-desc {
  color: #ededed; line-height: 1.6; margin-bottom: 24px; flex-grow: 1;
}
.venue-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; font-weight: 700;
  padding: 12px 20px; border-radius: 12px; background: rgba(37,99,235, 0.1); color: var(--blue-2);
  border: 1px solid rgba(37,99,235, 0.3); transition: 0.25s; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px;
}
.venue-link span { font-size: 1.2rem; transition: transform 0.2s; }
.venue-link:hover {
  background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 8px 20px rgba(37,99,235,.3);
}
.venue-link:hover span { transform: translateX(4px); }

/* ---------- Social / Mobile overrides ---------- */
.social { background: rgba(0,0,0,0.85) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

.sticky-cta { display: none; }
@media (max-width: 768px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; background: var(--blue);
    padding: 12px env(safe-area-inset-right) calc(12px + var(--safe-bottom)) env(safe-area-inset-left); box-shadow: 0 -8px 24px rgba(0,0,0,.35); text-align: center;
  }
  .sticky-cta button { width: 100%; padding: 16px; border: 0; border-radius: 12px; cursor: pointer; background: #000; color: var(--blue); font-weight: 900; font-size: 1.05rem; }
  .sticky-cta button:hover { background: #111; }
  
  body { background-attachment: scroll; }
  .hero { background-attachment: scroll; }
  .locations-grid { grid-template-columns: 1fr; }
}