/* ============================================================
   LENNY'S TANNING LTD — Contact, Footer, Animations, Responsive
   ============================================================ */

/* ============================================================
   CONTACT / LOCATION
   ============================================================ */
.contact {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.contact__bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact__bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.5) brightness(1.05);
}
.contact__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(253, 248, 242, 0.93);
}
.contact .container,
.contact__bg-glow {
  position: relative;
  z-index: 1;
}

.contact__bg-glow {
  position: absolute;
  top: 0; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 64px;
}

.contact__body {
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 36px;
  line-height: 1.75;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__detail-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--champagne), var(--rose-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--bronze);
  flex-shrink: 0;
  transition: var(--transition);
}
.contact__detail:hover .contact__detail-icon {
  background: linear-gradient(135deg, var(--bronze), var(--rose-gold));
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

.contact__detail strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-dk);
  margin-bottom: 6px;
}
.contact__detail p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.contact__link {
  color: var(--bronze);
  transition: color var(--transition);
}
.contact__link:hover { color: var(--rose-gold); }

/* ---- Contact Form ---- */
.contact__form-wrap {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: 0 12px 60px rgba(180,140,80,0.12), inset 0 1px 0 rgba(255,255,255,0.95);
  border: 1.5px solid rgba(255,255,255,0.7);
}

.contact__form-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.contact__form-sub {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form__group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(201, 169, 110, 0.25);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--text-light);
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
  background: var(--white);
}
.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a96e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form__group textarea { resize: vertical; min-height: 90px; }

.btn__icon { transition: transform var(--transition); }
.btn:hover .btn__icon { transform: rotate(90deg) scale(1.2); }

.form__success {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.12), rgba(200, 149, 108, 0.1));
  border: 1.5px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--bronze-dk);
  text-align: center;
  animation: fadeUp 0.5s ease forwards;
}
.form__success.visible { display: block; }

/* ---- Map ---- */
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(201, 169, 110, 0.2);
  box-shadow: var(--shadow-soft);
}

.map-label {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-dk);
  border: 1px solid rgba(201, 169, 110, 0.25);
}

.map-styled {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.map-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.map-styled:hover .map-svg {
  transform: scale(1.03);
}
/* Pin pulse animation */
.map-pulse {
  animation: mapPulse 2.4s ease-out infinite;
  transform-origin: center;
}
@keyframes mapPulse {
  0%   { r: 18; opacity: 0.5; }
  70%  { r: 36; opacity: 0; }
  100% { r: 36; opacity: 0; }
}
.map-open-link {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(253,248,242,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--bronze-dk);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.map-open-link:hover {
  background: var(--bronze);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text-dark);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--champagne);
  margin-bottom: 12px;
}
.footer__logo .nav__logo-mark { color: var(--bronze); }

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--bronze-lt);
  margin-bottom: 16px;
}

.footer__reg {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
}

.footer__col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-lt);
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer__col li a:hover { color: var(--bronze-lt); }

.footer__col address {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 12px;
}
.footer__email {
  font-size: 0.88rem;
  color: var(--bronze);
  transition: color var(--transition);
}
.footer__email:hover { color: var(--bronze-lt); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}
.footer__made {
  font-size: 0.78rem;
  color: var(--bronze);
  opacity: 0.7;
}

/* ============================================================
   SCROLL-TRIGGERED ANIMATION DELAYS
   ============================================================ */
.fade-in-up[style*="--delay"],
.fade-in-left[style*="--delay"],
.fade-in-right[style*="--delay"] {
  transition-delay: var(--delay, 0s);
}

/* ============================================================
   RIPPLE KEYFRAME (plist items)
   ============================================================ */
@keyframes rippleOut {
  to { transform: scale(2.5); opacity: 0; }
}

/* ============================================================
   CURSOR GLOW FOLLOWER
   ============================================================ */
#cursorGlow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: left 0.18s ease, top 0.18s ease;
  mix-blend-mode: multiply;
}

/* ============================================================
   ANIMATED SECTION NUMBERS
   ============================================================ */
.section-num {
  position: absolute;
  top: 60px;
  right: 0;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 300;
  color: rgba(201,169,110,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  animation: numDrift 8s ease-in-out infinite;
}
@keyframes numDrift {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ============================================================
   BENEFIT ITEM — enhanced hover glow
   ============================================================ */
.benefit-item {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.benefit-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(201,169,110,0.14);
}

/* ============================================================
   SERVICE CARD — shimmer sweep on hover
   ============================================================ */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.18) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position 0.55s ease;
  pointer-events: none;
  border-radius: inherit;
}
.service-card:hover::after {
  background-position: 200% 0;
}

/* ============================================================
   PLIST — mobile responsive
   ============================================================ */
@media (max-width: 768px) {
  .plist__item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 18px;
  }
  .plist__right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .about__grid {
    gap: 48px;
  }
  .about__img-wrap {
    width: 300px;
    height: 380px;
  }
  .about__glow-ring {
    width: 340px;
    height: 420px;
  }
  .shop__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .service-card--featured {
    transform: none;
  }
  .service-card--featured:hover {
    transform: translateY(-8px);
  }
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .contact__grid {
    gap: 48px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section--tight { padding: 48px 0; }

  /* Shop */
  .shop__grid { grid-template-columns: repeat(2, 1fr); }

  /* Nav */
  .nav__links { display: none; }
  .btn--nav { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: block; }

  /* Hero */
  .hero__headline { font-size: clamp(2.6rem, 10vw, 4rem); }
  .hero__orb--1 { width: 300px; height: 300px; }
  .hero__orb--2 { width: 250px; height: 250px; }
  .br-desktop { display: none; }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__visual { order: -1; }
  .about__img-wrap {
    width: 100%;
    max-width: 340px;
    height: 320px;
    margin: 0 auto;
  }
  .about__img-card {
    bottom: -16px;
    right: 0;
  }
  .about__glow-ring {
    width: calc(100% + 20px);
    height: calc(100% + 40px);
  }

  /* Shop */
  .shop__grid { grid-template-columns: 1fr; }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Benefits */
  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 40px;
  }
  .contact__form-wrap {
    padding: 28px 20px;
  }
  .form__row {
    grid-template-columns: 1fr;
  }

  /* Map */
  .map-frame { height: 260px; }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero__cta-group { flex-direction: column; align-items: center; }
  .hero__cta-group .btn { width: 100%; max-width: 280px; justify-content: center; }
  .section__heading { font-size: 1.8rem; }
  .contact__form-wrap { padding: 24px 16px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__eyebrow,
  .hero__headline,
  .hero__sub,
  .hero__cta-group,
  .hero__scroll {
    opacity: 1;
    transform: none;
  }
}
