/* The IELTS Club — "members' club" look: emerald + black + cream, membership-card motif */
:root {
  --black: #0c0d0c;
  --black-2: #17191a;
  --emerald: #0f6b4f;
  --emerald-d: #0a4a37;
  --emerald-l: #d7eadf;
  --cream: #f4ecd9;
  --cream-2: #fbf7ee;
  --brass: #c8a24a;
  --ink: #141614;
  --muted: #5b6159;
  --line: #ddd2b9;
  --head: "DM Serif Display", Georgia, serif;
  --body: "Space Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--emerald); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.08; margin: 0 0 12px; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 5.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 14px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.lead { font-size: 1.06rem; color: var(--muted); max-width: 640px; }
.note { font-size: 0.9rem; color: var(--muted); }
.no { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--emerald); margin-bottom: 14px; }
.no::before { content: attr(data-n); font-family: var(--head); font-size: 1.05rem; letter-spacing: 0; color: var(--ink); border: 1.5px solid currentColor; border-radius: 999px; padding: 1px 10px; }
.dark .no { color: var(--brass); }
.dark .no::before, .page-hero .no::before { color: var(--cream); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 13px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; font-size: 0.98rem; letter-spacing: 0.01em; }
.btn svg { width: 20px; height: 20px; }
.btn-em { background: var(--emerald); color: #fff; }
.btn-em:hover { background: var(--emerald-d); }
.btn-cream { background: var(--cream); color: var(--black); }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.dark .btn-line, .hero .btn-line { color: var(--cream); }
.btn-sm { padding: 9px 15px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--black); color: var(--cream); border-bottom: 1px solid #262826; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); min-width: 0; }
.brand .mark { flex: none; width: 38px; height: 38px; }
.brand b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.brand small { display: block; color: var(--brass); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--cream); font-weight: 600; font-size: 0.9rem; padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.nav a.cta { background: var(--emerald); }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* Hero */
.hero { background: var(--black); color: var(--cream); padding: 40px 0 60px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(15,107,79,0.55), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 70px 0 90px; } }
.hero h1 { color: var(--cream); }
.hero h1 em { color: var(--brass); }
.hero .lead { color: rgba(244,236,217,0.75); }
.rate { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(244,236,217,0.25); border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; margin-bottom: 18px; }
.rate .s { color: var(--brass); letter-spacing: 2px; }

/* Membership card */
.card-wrap { perspective: 1200px; padding: 10px 6px 0; }
.mcard {
  position: relative; aspect-ratio: 1.586; width: 100%; max-width: 460px; margin-inline: auto; border-radius: 20px; padding: 7% 7% 6%; color: var(--cream);
  background: linear-gradient(135deg, #12805e 0%, var(--emerald) 40%, #08392b 100%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.2); transform: rotate(-4deg); z-index: 2; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.mcard::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px); pointer-events: none; }
.mcard .top { display: flex; justify-content: space-between; align-items: flex-start; }
.mcard .club { font-family: var(--head); font-size: clamp(1.2rem, 5vw, 1.7rem); line-height: 1; }
.mcard .club small { display: block; font-family: var(--body); font-size: 0.6rem; letter-spacing: 0.25em; color: var(--brass); margin-top: 6px; }
.chip { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #e7cb7f, var(--brass)); position: relative; }
.chip::before { content: ""; position: absolute; inset: 7px 0; border-block: 1px solid rgba(0,0,0,0.25); }
.mcard .num { font-family: "Space Grotesk", monospace; letter-spacing: 0.16em; font-size: clamp(0.95rem, 4.4vw, 1.3rem); }
.mcard .row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,236,217,0.7); }
.mcard .row b { display: block; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--cream); text-transform: none; }
.hero-photo { margin-top: -28px; max-width: 300px; margin-left: auto; border: 6px solid var(--cream); border-radius: 8px; transform: rotate(3deg); position: relative; z-index: 1; }
.hero-photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; }

/* Perks strip */
.perks { background: var(--emerald); color: var(--cream); }
.perks .wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
.perks .wrap > div { padding: 18px 10px 18px 0; font-size: 0.85rem; color: rgba(244,236,217,0.8); }
.perks b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.3rem; color: #fff; }
@media (min-width: 760px) { .perks .wrap { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
.section { padding: 66px 0; }
.section.alt { background: var(--cream-2); }
.section.dark { background: var(--black-2); color: var(--cream); }
.section.dark h2 { color: var(--cream); }
.section.dark .lead { color: rgba(244,236,217,0.7); }
.grid { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 700px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

/* Tier (course) cards */
.tier { background: var(--cream-2); border: 1.5px solid var(--black); border-radius: 14px; padding: 22px 20px 20px; display: flex; flex-direction: column; position: relative; }
.tier::before { content: ""; position: absolute; top: 18px; right: 18px; width: 30px; height: 22px; border-radius: 5px; background: linear-gradient(135deg, #e7cb7f, var(--brass)); }
.tier .lvl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; color: var(--emerald); }
.tier h3 { margin: 8px 0 10px; padding-right: 40px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; font-size: 0.95rem; color: var(--muted); }
.tier li { padding: 6px 0 6px 22px; border-top: 1px dashed var(--line); position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.tier .btn { align-self: flex-start; }
.tier.black { background: var(--black); color: var(--cream); }
.tier.black h3 { color: var(--cream); }
.tier.black ul { color: rgba(244,236,217,0.75); }
.tier.black li { border-color: #333; }
.tier.black .lvl { color: var(--brass); }
.tier.black .btn-line { color: var(--cream); }

/* Rules list (why) */
.rules { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid rgba(244,236,217,0.18); }
@media (min-width: 800px) { .rules { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
.rule { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid rgba(244,236,217,0.18); }
.rule .n { font-family: var(--head); font-size: 2rem; color: var(--brass); line-height: 1; }
.rule h3 { font-size: 1.2rem; margin-bottom: 4px; }
.rule p { margin: 0; color: rgba(244,236,217,0.7); font-size: 0.95rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; filter: saturate(0.9); }
.gallery .big { grid-column: span 2; }
.gallery .big img { aspect-ratio: 16 / 9; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Visit */
.visit { display: grid; gap: 28px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; align-items: start; } }
.addr { font-style: normal; margin: 8px 0 16px; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }
.map { width: 100%; height: 340px; border: 1.5px solid var(--black); border-radius: 14px; background: var(--emerald-l); }

/* Join box (ticket-like) */
.join { background: var(--emerald); color: var(--cream); border-radius: 16px; padding: 34px 22px; position: relative; overflow: hidden; }
.join::before, .join::after { content: ""; position: absolute; top: 50%; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); transform: translateY(-50%); }
.join::before { left: -14px; }
.join::after { right: -14px; }
.join h2 { color: #fff; }
.join p { color: rgba(244,236,217,0.85); }
.join pre { background: rgba(0,0,0,0.2); border-radius: 10px; padding: 14px; font-family: var(--body); font-size: 0.92rem; white-space: pre-wrap; margin: 0 0 18px; color: #fff; }
.join .no { color: var(--brass); }
.join .no::before { color: var(--cream); }
@media (min-width: 800px) { .join { padding: 48px 56px; } }

/* Fees page */
.page-hero { background: var(--black); color: var(--cream); padding: 46px 0 52px; }
.page-hero h1 { color: var(--cream); }
.page-hero p { color: rgba(244,236,217,0.75); max-width: 620px; }
.fees-grid { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 760px) { .fees-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .fees-grid { grid-template-columns: repeat(3, 1fr); } }
.fee { background: var(--cream-2); border: 1.5px solid var(--black); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: end; }
.fee h3 { font-size: 1.2rem; margin: 0; grid-column: 1 / -1; }
.fee small { color: var(--muted); font-size: 0.86rem; }
.fee .amt { font-family: var(--head); font-size: 1.6rem; color: var(--emerald); white-space: nowrap; line-height: 1; }
.fee.black { background: var(--black); color: var(--cream); }
.fee.black small { color: rgba(244,236,217,0.65); }
.fee.black .amt { color: var(--brass); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-top: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1.5px solid var(--cream); background: transparent; color: var(--cream); font: 700 0.88rem var(--body); padding: 8px 15px; border-radius: 6px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--cream); color: var(--black); }
.tt { display: grid; gap: 12px; margin-top: 10px; }
@media (min-width: 800px) { .tt { grid-template-columns: repeat(2, 1fr); } }
.slot { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: #202322; border: 1px solid #303331; border-left: 5px solid var(--emerald); border-radius: 10px; padding: 14px 16px; }
.slot[hidden] { display: none; }
.slot .t { font-weight: 700; color: var(--cream); font-size: 1.05rem; }
.slot .d { font-size: 0.9rem; color: rgba(244,236,217,0.65); }
.slot .btn { grid-column: 2; grid-row: 1 / span 2; }
.pill { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: var(--brass); color: var(--black); vertical-align: middle; }

/* Footer */
.site-foot { background: var(--black); color: rgba(244,236,217,0.7); padding: 46px 0 96px; font-size: 0.94rem; }
.site-foot .wrap { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: 2fr 1fr 1fr; } .site-foot .note { grid-column: 1 / -1; } }
.site-foot h3 { color: var(--cream); font-size: 1.2rem; }
.site-foot a { color: var(--cream); }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0,0,0,0.5); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
