/* ==========================================================================
   ChessMate by Alltechzone — Luxury Royal Club Website & Public Privacy Policy
   Warm Champagne Ivory, Sovereign Gold, Royal Espresso & Terracotta Palette
   ========================================================================== */

:root {
  --bg-top: #fbf6ed;
  --bg-main: #f5ecde;
  --bg-warm: #ede0cc;
  --surface: #ffffff;
  --surface-soft: #fcf8f2;
  --surface-tint: #f7efe2;
  --border: #e6d7c1;
  --border-gold: #d9b87c;
  --text-main: #1d140d;
  --text-body: #433224;
  --text-muted: #755e49;
  --accent: #b84f2b;
  --accent-deep: #93391a;
  --accent-soft: rgba(184, 79, 43, 0.10);
  --gold: #a67314;
  --gold-bright: #d49a2a;
  --gold-soft: rgba(212, 154, 42, 0.14);
  --emerald: #18794e;
  --emerald-soft: rgba(24, 121, 78, 0.11);
  --sq-light: #f6ead4;
  --sq-dark: #a67246;
  --shadow-lg: 0 22px 50px rgba(36, 22, 10, 0.09);
  --shadow-md: 0 10px 28px rgba(36, 22, 10, 0.06);
  --shadow-sm: 0 4px 12px rgba(36, 22, 10, 0.04);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 50% -120px, #fffaf0 0%, var(--bg-top) 55%, var(--bg-main) 100%) no-repeat,
    var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-deep);
}

/* ---- Sticky Luxury Header ------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main) !important;
  text-decoration: none !important;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff8eb, #f0dfc3);
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 4px 12px rgba(166, 115, 20, 0.15);
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 28px;
  height: 28px;
}

.brand-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.2px;
  color: var(--text-main);
}

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none;
  transition: all 0.18s ease;
}

.nav a:hover {
  background: var(--surface-tint);
  color: var(--text-main);
}

.nav a.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(184, 79, 43, 0.25);
}

/* ---- Page Container ------------------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.container.narrow {
  max-width: 920px;
}

.stack {
  display: grid;
  gap: 28px;
}

@media (max-width: 860px) {
  .topbar-inner {
    padding: 12px 18px;
  }
  .container {
    padding: 24px 18px 60px;
  }
}

/* ---- Hero Banner ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(700px 380px at 90% 10%, rgba(212, 154, 42, 0.16), transparent 70%),
    linear-gradient(145deg, #ffffff 0%, #fcf6ec 60%, #f5e8d3 100%);
  border: 1.5px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  padding: 44px 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero {
    padding: 28px 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(166, 115, 20, 0.28);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
}

h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.68;
  color: var(--text-body);
  max-width: 620px;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-main);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none !important;
}

.btn:hover {
  border-color: var(--border-gold);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, #c85a34 0%, #9e3d1c 100%);
  border-color: #9e3d1c;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(184, 79, 43, 0.28);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #b84f2b 0%, #873215 100%);
  color: #ffffff;
}

/* ---- Interactive 3D Board Preview Card in Hero ---------------------------- */
.royal-board-card {
  background: linear-gradient(160deg, #2b1d12 0%, #1a110a 100%);
  border-radius: 22px;
  padding: 20px;
  border: 2px solid #d49a2a;
  box-shadow: 0 20px 44px rgba(29, 20, 13, 0.28);
  color: #fdf7ec;
}

.royal-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #f3c86b;
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  aspect-ratio: 4 / 2;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #cfa048;
  border-bottom-width: 8px;
  border-bottom-color: #694322;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.mini-sq {
  display: grid;
  place-items: center;
  padding: 8px;
}

.mini-sq.light {
  background: #f5e6cc;
}

.mini-sq.dark {
  background: #9e6b40;
}

.mini-sq img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.28));
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.hero-metric {
  background: rgba(255, 248, 235, 0.08);
  border: 1px solid rgba(243, 200, 107, 0.22);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.hero-metric b {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.05;
  color: #f7cf75;
}

.hero-metric span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #dfd0bc;
  margin-top: 2px;
}

/* ---- Section Headings & Cards --------------------------------------------- */
.section-head {
  margin-bottom: 18px;
}

.section-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  color: var(--text-main);
}

h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  color: var(--text-main);
}

p {
  margin: 0 0 12px;
  color: var(--text-body);
}

p:last-child {
  margin-bottom: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 32px;
  box-shadow: var(--shadow-md);
}

.card.warm {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
  border-color: var(--border-gold);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

@media (max-width: 780px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px 20px;
  }
}

.feature-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
}

.pill-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--surface-tint);
  color: var(--gold);
  border: 1px solid rgba(166, 115, 20, 0.22);
  margin-bottom: 10px;
}

.pill-tag.terracotta {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(184, 79, 43, 0.22);
}

.pill-tag.emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: rgba(24, 121, 78, 0.22);
}

/* ---- Clean Legal Policy Styling ------------------------------------------- */
.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 780px) {
  .policy-card {
    padding: 24px 20px;
  }
}

.policy-section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--border);
}

.policy-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.policy-section h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.policy-list {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text-body);
}

.highlight-box {
  background: var(--surface-soft);
  border: 1px solid var(--border-gold);
  border-left: 4px solid var(--gold-bright);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 14px 0;
}

/* ---- Clean Tables --------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-tint);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

tr:last-child td,
tr:last-child th {
  border-bottom: 0;
}

/* ---- Form Controls -------------------------------------------------------- */
.form-stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-main);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  background: #ffffff;
}

/* ---- Footer --------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: #efe4d2;
  padding: 36px 28px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 13.5px;
}
