/* ==========================================================================
   Iskinita Billiard House — Wise-inspired styles
   Reference: DESIGN.md
   ========================================================================== */

/* ---------- Design Tokens ----------------------------------------------- */
:root {
  /* Brand */
  --c-black:        #0e0f0c;
  --c-wise-green:   #9fe870;
  --c-dark-green:   #163300;
  --c-mint:         #e2f6d5;
  --c-pastel-green: #cdffad;
  --c-surface:      #e8ebe6;

  /* Neutral */
  --c-warm-dark: #454745;
  --c-gray:      #868685;

  /* Semantic */
  --c-positive: #054d28;
  --c-danger:   #d03238;
  --c-warning:  #ffd11a;
  --c-orange:   #ffc091;

  /* Backgrounds */
  --c-bg:     #ffffff;
  --c-bg-alt: #faf9f5;  /* warm off-white for section alternation */

  /* Borders & shadows */
  --border-subtle: rgba(14, 15, 12, 0.12);
  --border-soft:   rgba(14, 15, 12, 0.06);
  --ring:          0 0 0 1px rgba(14, 15, 12, 0.12);

  /* Radii */
  --r-sm:   16px;
  --r-md:   20px;
  --r-lg:   30px;
  --r-xl:   40px;
  --r-pill: 9999px;

  /* Typography */
  --font: "Inter", "Helvetica", "Arial", sans-serif;

  /* Layout */
  --page-max: 1200px;
  --gutter:   24px;
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; font-feature-settings: "calt" 1; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.44;
  letter-spacing: 0.18px;
  color: var(--c-black);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
strong { font-weight: 700; }

/* ---------- Layout primitives ------------------------------------------ */
.section__inner,
.hero__inner,
.cta__inner,
.footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

.section__head { max-width: 720px; margin-bottom: 56px; }

/* ---------- Typography helpers ----------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--c-dark-green);
  background: var(--c-mint);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
  line-height: 1;
}

.eyebrow--hero { background: var(--c-mint); }

.section__title {
  font-weight: 900;
  font-size: clamp(2.5rem, 5.8vw, 4rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--c-black);
  margin-bottom: 20px;
}

.section__sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-warm-dark);
  max-width: 560px;
}

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.108px;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease;
  transform-origin: center;
}

.btn:hover  { transform: scale(1.05); }
.btn:active { transform: scale(0.95); }
.btn:focus-visible {
  outline: 2px solid var(--c-dark-green);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--c-wise-green);
  color: var(--c-dark-green);
}
.btn--primary:hover { background: var(--c-pastel-green); }

.btn--secondary {
  background: rgba(22, 51, 0, 0.08);
  color: var(--c-black);
}
.btn--secondary:hover { background: rgba(22, 51, 0, 0.14); }

.btn--large { padding: 18px 30px; font-size: 19px; }

/* ---------- Navigation ------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--c-black);
}

.nav__logo {
  height: 48px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.108px;
  color: var(--c-black);
  transition: background 0.15s ease;
}
.nav__links a:hover { background: rgba(211, 242, 192, 0.4); }

.nav__cta { padding: 10px 18px; font-size: 15px; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__brand { margin-right: auto; }
}

/* ---------- Pool balls (decorative + brand) ---------------------------- */
.ball {
  position: relative;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ball > span {
  position: relative;
  z-index: 1;
  font-weight: 900;
  color: var(--c-black);
  line-height: 1;
}
.ball::before {
  content: "";
  position: absolute;
  inset: 28%;
  background: #fff;
  border-radius: 50%;
  z-index: 0;
}

/* Color variants */
.ball--8   { background: var(--c-black); }
.ball--9   { background: linear-gradient(180deg, #ffffff 0% 30%, #ffd11a 30% 70%, #ffffff 70% 100%); }
.ball--3   { background: #d03238; }
.ball--cue { background: #ffffff; box-shadow: inset 0 0 0 1px var(--border-subtle); }
.ball--cue::before { display: none; }

/* Size variants */
.ball--xs { width: 26px; height: 26px; }
.ball--xs > span { font-size: 11px; }

.ball--hero { width: 170px; height: 170px; }
.ball--hero > span { font-size: 56px; }

.ball--9.ball--float-b { width: 130px; height: 130px; }
.ball--9.ball--float-b > span { font-size: 44px; }

.ball--3.ball--float-c { width: 90px; height: 90px; }
.ball--3.ball--float-c > span { font-size: 32px; }

.ball--cue.ball--float-d { width: 70px; height: 70px; }

/* ---------- Hero ------------------------------------------------------- */
.hero {
  padding: 72px 0 112px;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--c-black);
  margin: 16px 0 24px;
}

.hero__sub {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-warm-dark);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  max-width: 560px;
}
.hero__meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__meta strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-black);
  letter-spacing: -0.2px;
}
.hero__meta span {
  font-size: 13px;
  color: var(--c-gray);
  font-weight: 500;
}

.hero__right {
  position: relative;
  min-height: 420px;
}

/* Floating positions */
.ball--float-a { position: absolute; top: 10%;  right: 10%; }
.ball--float-b { position: absolute; top: 45%;  right: 50%; }
.ball--float-c { position: absolute; bottom: 8%; right: 18%; }
.ball--float-d { position: absolute; top: 15%;  right: 55%; }

/* Gentle float animation */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.ball--float-a { animation: floatY 5.5s ease-in-out infinite; }
.ball--float-b { animation: floatY 6.5s ease-in-out infinite 0.4s; }
.ball--float-c { animation: floatY 7.2s ease-in-out infinite 1.1s; }
.ball--float-d { animation: floatY 5.8s ease-in-out infinite 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .ball--float-a, .ball--float-b, .ball--float-c, .ball--float-d { animation: none; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__right { min-height: 260px; order: 2; }
  .hero__meta { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero__meta strong { font-size: 16px; }
  .ball--hero         { width: 120px; height: 120px; }
  .ball--hero > span  { font-size: 40px; }
  .ball--9.ball--float-b { width: 90px; height: 90px; }
  .ball--9.ball--float-b > span { font-size: 30px; }
  .ball--3.ball--float-c { width: 62px; height: 62px; }
  .ball--3.ball--float-c > span { font-size: 22px; }
  .ball--cue.ball--float-d { width: 52px; height: 52px; }
}

/* ---------- About / What's here (cards) -------------------------------- */
.about { background: var(--c-bg-alt); }
.here  { background: var(--c-bg); }
.here .card { background: var(--c-bg-alt); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--c-bg);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--ring);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--c-wise-green), 0 12px 24px rgba(14, 15, 12, 0.06);
}

.card__num {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-gray);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.card__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.396px;
  color: var(--c-black);
  margin-bottom: 12px;
}

.card__body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-warm-dark);
}

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Find us (directions) --------------------------------------- */
.find__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.steps { display: flex; flex-direction: column; gap: 20px; }

.steps li {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--c-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--ring);
}

.steps__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-wise-green);
  color: var(--c-dark-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.steps li h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  color: var(--c-black);
}
.steps li h3 em {
  font-style: normal;
  background: var(--c-mint);
  padding: 1px 8px;
  border-radius: 6px;
}
.steps li p {
  font-size: 15px;
  color: var(--c-warm-dark);
  line-height: 1.5;
}

.find__card {
  background: var(--c-black);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 36px;
  position: sticky;
  top: 100px;
}

.find__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-wise-green);
  margin-bottom: 14px;
}

.find__address {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 28px;
  letter-spacing: -0.4px;
  color: #fff;
}
.find__address strong { color: var(--c-wise-green); }

.find__mapbtn {
  background: var(--c-wise-green);
  color: var(--c-dark-green);
  width: 100%;
  margin-bottom: 18px;
}
.find__mapbtn:hover { background: var(--c-pastel-green); }

.find__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 900px) {
  .find__grid { grid-template-columns: 1fr; }
  .find__card { position: static; }
}

/* ---------- Rates ------------------------------------------------------ */
.rates { background: var(--c-bg-alt); }

.rates__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.rate-card {
  position: relative;
  background: var(--c-bg);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  box-shadow: var(--ring);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--c-wise-green), 0 12px 24px rgba(14, 15, 12, 0.06);
}

.rate-card--featured {
  background: var(--c-black);
  color: #fff;
  box-shadow: 0 0 0 1px var(--c-black);
}
.rate-card--featured:hover {
  box-shadow: 0 0 0 1px var(--c-wise-green), 0 12px 28px rgba(14, 15, 12, 0.2);
}

.rate-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-dark-green);
  background: var(--c-mint);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.rate-card--featured .rate-card__tag {
  background: var(--c-wise-green);
  color: var(--c-dark-green);
}

.rate-card__name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 20px;
  color: inherit;
}

.rate-card__price {
  font-size: 64px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: inherit;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.rate-card__currency {
  font-size: 32px;
  font-weight: 900;
  color: var(--c-gray);
}
.rate-card--featured .rate-card__currency { color: var(--c-wise-green); }
.rate-card__unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-gray);
  letter-spacing: normal;
  margin-left: 4px;
}

.rate-card__note {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-warm-dark);
}
.rate-card--featured .rate-card__note { color: rgba(255, 255, 255, 0.7); }

.rate-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--c-black);
  background: var(--c-wise-green);
  padding: 5px 10px;
  border-radius: var(--r-pill);
}

/* Pustahan / no-price variant — name takes the price slot's visual weight */
.rate-card--no-price .rate-card__name {
  font-size: 44px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-top: 8px;
  margin-bottom: 28px;
}

.rates__footnote {
  font-size: 13px;
  color: var(--c-gray);
  font-style: italic;
}
.rates__footnote code {
  background: rgba(14, 15, 12, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 12px;
  font-style: normal;
}

@media (max-width: 820px) {
  .rates__grid { grid-template-columns: 1fr; }
}

/* ---------- Hours ------------------------------------------------------ */
.hours__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hours__head { margin-bottom: 0; }

.hours__list {
  background: var(--c-bg);
  border-radius: var(--r-xl);
  padding: 8px 16px;
  box-shadow: var(--ring);
}
.hours__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.108px;
}
.hours__list li:last-child { border-bottom: none; }
.hours__list li span:first-child { color: var(--c-black); }
.hours__list li span:last-child { color: var(--c-warm-dark); font-weight: 500; }

@media (max-width: 820px) {
  .hours__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Rules ------------------------------------------------------ */
.rules { background: var(--c-bg-alt); }

.rules__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rules__list li {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--c-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--ring);
  transition: box-shadow 0.2s ease;
}
.rules__list li:hover {
  box-shadow: 0 0 0 1px var(--c-wise-green);
}

.rules__num {
  flex-shrink: 0;
  font-weight: 900;
  font-size: 28px;
  color: var(--c-wise-green);
  -webkit-text-stroke: 1px var(--c-dark-green);
  line-height: 1;
  letter-spacing: -0.02em;
}

.rules__list li h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  line-height: 1.25;
  color: var(--c-black);
}
.rules__list li p {
  font-size: 15px;
  color: var(--c-warm-dark);
  line-height: 1.5;
}

@media (max-width: 820px) {
  .rules__list { grid-template-columns: 1fr; }
}

/* ---------- Final CTA -------------------------------------------------- */
.cta {
  background: var(--c-black);
  color: #fff;
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--c-wise-green);
  opacity: 0.12;
  filter: blur(60px);
}

.cta__inner {
  position: relative;
  text-align: center;
}

.cta__title {
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.cta__sub {
  font-size: clamp(18px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.cta .btn--secondary:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Footer ----------------------------------------------------- */
.footer {
  background: var(--c-bg);
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.footer__logo {
  height: 40px;
  width: auto;
  display: block;
}

.footer__links {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__links a {
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-warm-dark);
  transition: background 0.15s ease, color 0.15s ease;
}
.footer__links a:hover {
  background: rgba(211, 242, 192, 0.4);
  color: var(--c-black);
}

.footer__legal {
  font-size: 13px;
  color: var(--c-gray);
  font-weight: 500;
  text-align: right;
}

@media (max-width: 760px) {
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__brand   { justify-content: center; }
  .footer__legal   { text-align: center; }
}

/* ---------- Selection styling (small polish) --------------------------- */
::selection {
  background: var(--c-wise-green);
  color: var(--c-dark-green);
}
