/* ============================================================
   PAITHAL HILL CLUB — STYLESHEET
   Theme: Rustic Luxury / Misted Mountain Club
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --forest-green: #1F4D36;
  --forest-green-dark: #14332390;
  --forest-green-deep: #123526;
  --earthy-brown: #7A5C3E;
  --misty-white: #F8F7F4;
  --gold: #B88A44;
  --gold-light: #D9B679;
  --text: #222222;
  --text-soft: #4A4A45;
  --white: #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-w: 1200px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 50px -20px rgba(18, 53, 38, 0.25);
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--misty-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--forest-green);
  line-height: 1.2;
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 32px;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--white);
  padding: 12px 20px;
  z-index: 9999;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Reusable Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold-light); }
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}
.section-title.center { text-align: center; }
.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 620px;
  margin-bottom: 48px;
}
.section-subtitle.center { margin-inline: auto; text-align: center; }

.section-text {
  color: var(--text-soft);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  isolation: isolate;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(184, 138, 68, 0.6);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(184, 138, 68, 0.7); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }

.btn-lg { padding: 18px 44px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Ripple */
.btn::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  width: 10px; height: 10px;
  transform: translate(-50%, -50%) scale(0);
  left: var(--rx, 50%); top: var(--ry, 50%);
  opacity: 0;
  z-index: -1;
}
.btn.rippling::after {
  animation: ripple 0.6s ease-out;
}
@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar {
  max-width: var(--container-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  transition: padding var(--transition);
}
.site-header.scrolled {
  background: var(--forest-green);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.35);
}
.site-header.scrolled .navbar { padding-block: 14px; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo { width: 42px; height: 42px; }
.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { padding: 11px 24px; font-size: 0.85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 1100;
}
.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,30,22,0.55) 0%, rgba(13,30,22,0.55) 40%, rgba(9,22,16,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding-inline: 24px;
  max-width: 900px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-title span { color: var(--gold-light); font-style: italic; }
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -20px; left: 0;
  width: 100%; height: 20px;
  background: var(--gold-light);
  animation: scrollMove 1.8s infinite ease-in-out;
}
@keyframes scrollMove {
  0% { top: -20px; }
  100% { top: 44px; }
}

/* ---------- Ridge Divider (signature motif) ---------- */
.ridge-divider {
  width: 100%;
  line-height: 0;
  margin-top: 60px;
}
.ridge-divider svg { width: 100%; height: 70px; }
.ridge-divider path { fill: var(--forest-green); opacity: 0.08; }

/* ---------- About ---------- */
.about { padding-block: 120px 0; background: var(--misty-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-image { position: relative; }
.about-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.about-image-badge {
  position: absolute;
  bottom: -28px; right: -28px;
  background: var(--forest-green);
  color: var(--white);
  padding: 22px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--gold);
}
.badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
}
.badge-label { font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.pill {
  border: 1px solid var(--earthy-brown);
  color: var(--earthy-brown);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- Benefits ---------- */
.benefits { padding-block: 130px; background: var(--white); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.benefit-card {
  background: var(--misty-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px -18px rgba(31, 77, 54, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 46px -20px rgba(31, 77, 54, 0.35);
}
.benefit-image { height: 180px; overflow: hidden; }
.benefit-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.benefit-card:hover .benefit-image img { transform: scale(1.1); }
.benefit-body { padding: 28px 24px 32px; }
.benefit-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.benefit-body h3 { font-size: 1.3rem; margin-bottom: 12px; }
.benefit-body p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Stats ---------- */
.stats { position: relative; padding-block: 130px; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; }
.stats-bg img { width: 100%; height: 100%; object-fit: cover; }
.stats-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(18,53,38,0.92), rgba(18,53,38,0.8));
}
.stats .container { position: relative; z-index: 1; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.stat-card {
  text-align: center;
  padding: 40px 20px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 10px;
}
.stat-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- Gallery ---------- */
.gallery { padding-block: 130px; background: var(--misty-white); }
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  grid-column: span 1;
  grid-row: span 1;
}
.gallery-item.span-tall { grid-row: span 2; }
.gallery-item.span-wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.14); }
.gallery-item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(18,53,38,0.85) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::before { opacity: 1; }
.gallery-caption {
  position: absolute;
  left: 16px; bottom: 12px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(9, 20, 15, 0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  color: var(--white);
  font-size: 1.6rem;
  background: rgba(255,255,255,0.1);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); }
.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- Membership CTA ---------- */
.membership { position: relative; padding-block: 160px; overflow: hidden; }
.membership-bg { position: absolute; inset: 0; }
.membership-bg img { width: 100%; height: 100%; object-fit: cover; }
.membership-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,53,38,0.85), rgba(9,20,15,0.92));
}
.membership-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
}
.membership-text {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ---------- Inquiry Form ---------- */
.inquiry { padding-block: 130px; background: var(--misty-white); }
.inquiry-card {
  max-width: 660px;
  margin-inline: auto;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(184,138,68,0.25);
  border-radius: var(--radius-md);
  padding: 56px 48px;
  box-shadow: var(--shadow-soft);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-green);
  margin-bottom: 8px;
}
.optional { font-weight: 400; color: var(--text-soft); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(122,92,62,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.7);
  transition: border var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.form-group.invalid input, .form-group.invalid textarea { border-color: #b23b3b; }
.form-error {
  display: block;
  color: #b23b3b;
  font-size: 0.78rem;
  margin-top: 6px;
  min-height: 16px;
}
.form-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 16px;
  text-align: center;
}
.form-success {
  margin-top: 20px;
  text-align: center;
  color: var(--forest-green);
  background: rgba(31,77,54,0.08);
  border: 1px solid rgba(31,77,54,0.25);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact { padding-block: 130px; background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-list { margin-top: 28px; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  font-size: 1.3rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(31,77,54,0.08);
  border-radius: 50%;
  flex-shrink: 0;
}
.contact-list strong { display: block; color: var(--forest-green); margin-bottom: 4px; }
.contact-list p { color: var(--text-soft); font-size: 0.94rem; }
.contact-list a:hover { color: var(--gold); }

.social-icons { display: flex; gap: 14px; margin-top: 34px; }
.social-icons a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--forest-green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.social-icons a:hover { background: var(--gold); transform: translateY(-3px); }

.map-placeholder {
  height: 100%;
  min-height: 340px;
  background: linear-gradient(135deg, rgba(31,77,54,0.08), rgba(122,92,62,0.1));
  border: 1.5px dashed var(--earthy-brown);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-soft);
  text-align: center;
}
.map-pin { font-size: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-green-deep); color: rgba(255,255,255,0.85); padding-top: 90px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { width: 60px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.8; }
.footer-links h3, .footer-contact h3 {
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 10px; color: rgba(255,255,255,0.7); }

.footer-bottom {
  text-align: center;
  padding: 26px 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--forest-green);
  color: var(--white);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); }

/* ---------- Scroll Animations ---------- */
.fade-up, .fade-left, .fade-right, .fade-scale {
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-up { transform: translateY(50px); }
.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }
.fade-scale { transform: scale(0.92); }
.in-view { opacity: 1; transform: translate(0, 0) scale(1); }

.benefit-grid .benefit-card:nth-child(1) { transition-delay: 0s; }
.benefit-grid .benefit-card:nth-child(2) { transition-delay: 0.1s; }
.benefit-grid .benefit-card:nth-child(3) { transition-delay: 0.2s; }
.benefit-grid .benefit-card:nth-child(4) { transition-delay: 0.3s; }
.stat-grid .stat-card:nth-child(1) { transition-delay: 0s; }
.stat-grid .stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-grid .stat-card:nth-child(3) { transition-delay: 0.2s; }
.stat-grid .stat-card:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Laptop / small desktop */
@media (max-width: 1140px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(78vw, 340px);
    background: var(--forest-green);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    transition: right var(--transition);
  }
  .nav-menu.open { right: 0; box-shadow: -20px 0 50px rgba(0,0,0,0.3); }
  .nav-cta-wrap { margin-top: 10px; }
  .hamburger { display: flex; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image img { height: 360px; }
  .about-image-badge { right: 16px; bottom: -20px; }

  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.span-wide { grid-column: span 2; }

  .inquiry-card { padding: 40px 28px; }
}

/* Mobile */
@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .about, .benefits, .stats, .gallery, .membership, .inquiry, .contact { padding-block: 80px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .masonry-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 14px; right: 14px; }
}
