/* =========================================================
   Jenny's Nails Day Spa — theme layer (loads after Bootstrap)
   ========================================================= */
:root {
  --green: #2f5f57;
  --green-dark: #1f423c;
  --gold: #c9a227;
  --gold-light: #ecd27a;
  --cream: #faf6ef;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 66, 60, .10);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--font-body); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.7; }
a { color: var(--green); }
a:hover { color: var(--gold); }
h1, h2, h3, .section-title { font-family: var(--font-head); }

/* ---------- Buttons ---------- */
.btn-gold {
  background: linear-gradient(135deg, #f3dc86 0%, var(--gold) 50%, #b38b1d 100%);
  color: #2a210d; border: 0; border-radius: 50px; font-weight: 600;
  padding: .65rem 1.6rem; letter-spacing: .3px;
  box-shadow: 0 6px 18px rgba(201, 162, 39, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-gold:hover, .btn-gold:focus { color: #2a210d; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 162, 39, .45); }
.btn-gold.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.btn-green { background: var(--green); color: #fff; border-radius: 50px; padding: .55rem 1.5rem; font-weight: 500; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline-green { border: 2px solid var(--green); color: var(--green); border-radius: 50px; padding: .55rem 1.5rem; font-weight: 500; }
.btn-outline-green:hover { background: var(--green); color: #fff; }

/* ---------- Navigation ---------- */
.site-nav {
  background: rgba(31, 66, 60, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: .5rem 0; transition: background .3s ease, box-shadow .3s ease;
}
.site-nav.scrolled { background: var(--green-dark); box-shadow: 0 4px 20px rgba(0, 0, 0, .15); }
.site-nav .navbar-brand img { height: 64px; width: auto; }
.site-nav .nav-link { color: #fff !important; font-weight: 500; padding: .5rem .9rem !important; position: relative; }
.site-nav .nav-link:hover { color: var(--gold-light) !important; }
.site-nav .navbar-toggler { border-color: rgba(255, 255, 255, .5); }
.site-nav .dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; }
.site-nav .dropdown-item { border-radius: 8px; padding: .45rem .9rem; }
.site-nav .dropdown-item:hover { background: var(--cream); color: var(--green); }
.nav-phone { color: #fff; text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav-phone:hover { color: var(--gold-light); }
@media (max-width: 1199.98px) {
  .site-nav { background: var(--green-dark); }
  .site-nav .navbar-collapse { padding: 1rem 0; }
  .site-nav .dropdown-menu { background: rgba(255, 255, 255, .06); box-shadow: none; }
  .site-nav .dropdown-item { color: #fff; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  min-height: min(82vh, 720px); display: flex; align-items: center;
  padding: 140px 0 120px;
  background: #1b1b1b url("../img/hero-nails.jpg?v=2") center / cover no-repeat;
  background-image: image-set(url("../img/hero-nails.webp?v=2") type("image/webp"), url("../img/hero-nails.jpg?v=2") type("image/jpeg"));
}
@media (max-width: 767.98px) {
  .hero { background-image: url("../img/hero-nails-mobile.webp?v=2"); background-position: 70% center; }
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20, 45, 41, .92) 0%, rgba(31, 66, 60, .72) 45%, rgba(31, 66, 60, .2) 100%);
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.15; margin: .5rem 0 1rem; }
.hero-lead { font-size: 1.15rem; opacity: .92; max-width: 560px; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
}
.text-gold-light { color: var(--gold-light) !important; }

/* ---------- Info strip ---------- */
.info-strip-wrap { position: relative; margin-top: -56px; z-index: 5; }
.info-strip { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.info-item { display: flex; gap: 1rem; align-items: center; padding: 1.4rem 1.6rem; }
.info-item + .info-item { border-left: 1px solid #eee; }
.info-item > i { font-size: 1.6rem; color: var(--gold); flex-shrink: 0; }
.info-item a { color: var(--ink); text-decoration: none; }
.info-item a:hover { color: var(--green); }
.info-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 767.98px) { .info-item + .info-item { border-left: 0; border-top: 1px solid #eee; } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.bg-cream { background: var(--cream); }
.bg-forest, #gallery.bg-forest { background: var(--green-dark) !important; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin: .4rem 0 .6rem; color: var(--green-dark); }
.section-sub { color: var(--muted); margin: 0; }
.section-head .section-title::after {
  content: ""; display: block; width: 60px; height: 3px; margin: .9rem auto 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold)); border-radius: 3px;
}

/* ---------- Gift cards ---------- */
.gift-banner { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.gift-banner:hover, .gift-banner:focus { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.gift-banner img { width: 100%; height: auto; display: block; }

/* ---------- Service cards ---------- */
.service-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; text-decoration: none; color: #fff; box-shadow: var(--shadow);
}
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(20, 45, 41, .9) 100%);
}
.service-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem; z-index: 2; }
.service-card-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 .15rem; color: #fff; }
.service-card-price { display: block; font-size: .9rem; color: var(--gold-light); font-weight: 500; }
.service-card-link {
  display: inline-block; margin-top: .4rem; font-size: .85rem; font-weight: 500;
  opacity: .85; transition: opacity .3s ease, transform .3s ease;
}
.service-card:hover img { transform: scale(1.07); }
.service-card:hover .service-card-link { opacity: 1; transform: translateX(4px); }
.service-card:hover { color: #fff; }
@media (max-width: 575.98px) {
  .service-card-title { font-size: 1.05rem; }
  .service-card-body { padding: .9rem; }
}

/* ---------- About ---------- */
.lead-text { font-size: 1.12rem; color: var(--ink); }
.feature {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem;
  background: var(--cream); border-radius: 12px; padding: 1rem .5rem; font-weight: 500; font-size: .9rem; height: 100%;
}
.feature i { font-size: 1.6rem; color: var(--gold); }
.about-img { position: relative; }
.about-img::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 2px solid var(--gold-light); border-radius: var(--radius); z-index: 0;
}
.about-img img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 991.98px) { .about-img::before { display: none; } }

/* ---------- Menu ---------- */
.menu-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem;
}
.menu-pills a {
  padding: .4rem 1rem; border-radius: 50px; background: #fff; border: 1px solid #e6dfd2;
  color: var(--green-dark); text-decoration: none; font-size: .88rem; font-weight: 500; transition: all .2s ease;
}
.menu-pills a:hover { background: var(--green); border-color: var(--green); color: #fff; }

.menu-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 2rem; }
.menu-card-img { min-height: 240px; }
.menu-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 991.98px) { .menu-card-img img { height: 240px; } }
.menu-card-body { padding: 2rem 2.2rem; }
.menu-card-title { font-size: 1.8rem; font-weight: 700; color: var(--green-dark); margin-bottom: 1rem; }
.menu-card-title::after { content: ""; display: block; width: 40px; height: 3px; background: var(--gold); margin-top: .5rem; border-radius: 3px; }

.menu-table { width: 100%; border-collapse: collapse; }
.menu-table thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted);
  font-weight: 600; padding: 0 .5rem .6rem; border-bottom: 2px solid #eee8dc; text-align: right; white-space: nowrap;
}
.menu-table thead th:first-child { text-align: left; padding-left: 0; }
.menu-table tbody th { font-weight: 500; padding: .7rem .5rem .7rem 0; font-family: var(--font-body); }
.menu-table td { text-align: right; padding: .7rem .5rem; white-space: nowrap; vertical-align: middle; }
.menu-table td strong { color: var(--green-dark); font-weight: 600; }
.menu-table td small { display: block; color: var(--muted); font-size: .75rem; }
.menu-table .card-price { color: var(--muted); font-size: .9rem; }
.menu-table tbody tr { border-bottom: 1px dashed #e8e1d4; }
.menu-table tbody tr:last-child { border-bottom: 0; }
.menu-table tbody tr:hover { background: var(--cream); }
@media (max-width: 575.98px) {
  .menu-card-body { padding: 1.4rem 1.2rem; }
  .menu-table tbody th { font-size: .92rem; }
}

/* ---------- Gallery ---------- */
.bg-forest .section-title { color: #fff; }
.gallery-tile { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.gallery-tile:hover img { transform: scale(1.08); filter: brightness(1.05); }

/* ---------- Contact ---------- */
.contact-card { background: var(--cream); border-radius: var(--radius); padding: 2rem; }
.contact-row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #ebe3d4; }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row > i { font-size: 1.4rem; color: var(--gold); }
.contact-row a { text-decoration: none; }
.hours-table td { padding: .15rem 1.2rem .15rem 0; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #17332e; color: rgba(255, 255, 255, .8); padding: 70px 0 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-title { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-light); margin-bottom: 1rem; font-weight: 600; }
.footer-muted { color: rgba(255, 255, 255, .65); font-size: .92rem; }
.site-footer .social a {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; background: rgba(255, 255, 255, .08); margin-right: .4rem; font-size: 1.1rem; transition: background .2s ease;
}
.site-footer .social a:hover { background: var(--gold); color: #17332e; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  margin-top: 50px; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .55);
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; box-shadow: 0 -4px 20px rgba(0, 0, 0, .12);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .55rem 0; font-size: .78rem; font-weight: 600; color: var(--green-dark); text-decoration: none; }
.mobile-cta a i { font-size: 1.2rem; }
.mobile-cta a.is-primary { background: var(--green); color: #fff; }
@media (max-width: 767.98px) { body { padding-bottom: 64px; } }

/* Keep old floating promo button above the mobile bar */
@media (max-width: 767.98px) { .floating_box { bottom: 70px; } }

/* Override legacy footer styles from app.css */
.site-footer, .site-footer p, .site-footer a, .site-footer span { font-family: var(--font-body); font-weight: 400; }
.site-footer p { font-size: .95rem; line-height: 1.7; }

/* ---------- Hero E-Gift Card button (festive, high-contrast) ---------- */
.btn-egift {
  position: relative; overflow: visible;
  display: inline-flex; align-items: center; gap: .25rem;
  background: linear-gradient(135deg, #e3262f 0%, #b3121b 55%, #8b0f0f 100%);
  color: #fff; font-weight: 600; letter-spacing: .3px;
  border: 2px solid var(--gold-light); border-radius: 50px;
  padding: .65rem 1.6rem;
  box-shadow: 0 0 0 0 rgba(227, 38, 47, .6), 0 8px 22px rgba(179, 18, 27, .45);
  animation: egift-pulse 2.4s ease-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-egift:hover, .btn-egift:focus {
  color: #fff; transform: translateY(-2px);
  background: linear-gradient(135deg, #f0333c 0%, #c4161f 55%, #9a1212 100%);
  box-shadow: 0 12px 28px rgba(179, 18, 27, .55);
}
.btn-egift .bi { color: var(--gold-light); }
.egift-badge {
  position: absolute; top: -12px; right: -10px;
  background: linear-gradient(135deg, #f3dc86, var(--gold));
  color: #3a1a00; font-size: .68rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 50px; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
@keyframes egift-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 38, 47, .55), 0 8px 22px rgba(179, 18, 27, .45); }
  70%  { box-shadow: 0 0 0 14px rgba(227, 38, 47, 0), 0 8px 22px rgba(179, 18, 27, .45); }
  100% { box-shadow: 0 0 0 0 rgba(227, 38, 47, 0), 0 8px 22px rgba(179, 18, 27, .45); }
}
@media (prefers-reduced-motion: reduce) { .btn-egift { animation: none; } }
