/* ============================================================
   Coral Island Casino — Main Stylesheet
   coralisland.online | UK | 2025
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --navy:      #061527;
  --navy-card: #0B1F3A;
  --navy-mid:  #0d2440;
  --coral:     #FF5533;
  --coral-dk:  #e04020;
  --teal:      #00C9C8;
  --gold:      #FFD700;
  --white:     #FFFFFF;
  --muted:     #94A3B8;
  --border:    rgba(0,201,200,0.18);
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --radius:    10px;
  --radius-lg: 18px;
  --shadow:    0 4px 24px rgba(0,0,0,0.45);
  --trans:     0.22s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 70px; /* space for popup bar */
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--coral); }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.35em; }
strong { color: var(--white); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(6,21,39,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--coral);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo-name span { color: var(--coral); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--trans), background var(--trans);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: var(--white); background: rgba(255,255,255,0.06); }

/* Header CTA */
.btn-header-cta {
  background: var(--coral);
  color: var(--white) !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background var(--trans), transform var(--trans);
  flex-shrink: 0;
}
.btn-header-cta:hover { background: var(--coral-dk); color: var(--white) !important; transform: translateY(-1px); }

/* Mobile nav toggle (CSS-only) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle-label span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6,21,39,0.55) 0%,
    rgba(6,21,39,0.72) 60%,
    rgba(6,21,39,0.96) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,85,51,0.15);
  border: 1px solid rgba(255,85,51,0.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-headline .accent { color: var(--coral); }
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 4px 20px rgba(255,85,51,0.4);
}
.btn-primary:hover {
  background: var(--coral-dk);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255,85,51,0.55);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.35);
  transition: border-color var(--trans), background var(--trans), transform var(--trans);
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0,201,200,0.08);
  transform: translateY(-2px);
}
.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 6px;
  width: 100%;
  transition: background var(--trans);
  text-align: center;
}
.btn-play:hover { background: var(--coral-dk); color: var(--white); }

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 6px 14px;
}
.trust-badge .badge-icon { font-size: 14px; }

/* ============================================================
   SLOTS GRID SECTION
   ============================================================ */
.slots-section {
  background: var(--navy-card);
  padding: 70px 20px;
  border-top: 1px solid var(--border);
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.slot-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.slot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(0,201,200,0.4);
}
.slot-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.slot-card-body {
  padding: 12px 14px 14px;
}
.slot-card-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--white);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-rtp {
  font-size: 0.72rem;
  color: var(--teal);
  margin-bottom: 10px;
}

/* ============================================================
   CONTENT / ARTICLE SECTION
   ============================================================ */
.content-section {
  padding: 70px 20px;
}
.content-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* Article typography */
.article-content { color: rgba(255,255,255,0.88); }
.article-content h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  margin-top: 0;
  letter-spacing: -0.02em;
}
.article-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0,201,200,0.25);
}
.article-content h3 {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--teal);
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-content p {
  margin-bottom: 16px;
  font-size: 0.97rem;
  line-height: 1.8;
}
.article-content ul, .article-content ol {
  margin-bottom: 16px;
  padding-left: 1.6em;
}
.article-content li {
  margin-bottom: 6px;
  font-size: 0.97rem;
  line-height: 1.7;
}
.article-content ul li::marker { color: var(--coral); }
.article-content ol li::marker { color: var(--teal); font-weight: 700; }
.article-content strong { color: var(--white); font-weight: 700; }
.article-content a { color: var(--teal); }
.article-content a:hover { color: var(--coral); }

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border-radius: var(--radius);
}
.article-content table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.article-content table thead tr {
  background: var(--navy-mid);
}
.article-content table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--teal);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.article-content table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: rgba(255,255,255,0.85);
  vertical-align: top;
}
.article-content table tr:last-child td { border-bottom: none; }
.article-content table tr:nth-child(even) td { background: rgba(11,31,58,0.4); }
.article-content table tr:hover td { background: rgba(0,201,200,0.06); }

/* Numbered steps as styled list */
.article-content ol { counter-reset: step-counter; list-style: none; padding-left: 0; }
.article-content ol li {
  counter-increment: step-counter;
  padding-left: 2.2em;
  position: relative;
}
.article-content ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5em; height: 1.5em;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  margin-top: 3px;
}

/* CTA image in content */
.content-cta-img {
  width: 100%;
  max-width: 700px;
  border-radius: var(--radius-lg);
  margin: 36px auto;
  display: block;
  box-shadow: var(--shadow);
  cursor: pointer;
}

/* Highlight box */
.highlight-box {
  background: rgba(0,201,200,0.06);
  border: 1px solid rgba(0,201,200,0.25);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box p { margin-bottom: 0; }

/* ============================================================
   POPUP BANNER (fixed bottom)
   ============================================================ */
.popup-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 990;
  background: linear-gradient(90deg, #0B1F3A 0%, #0d2a50 100%);
  border-top: 2px solid var(--coral);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
  transform: translateY(0);
  transition: transform 0.35s ease;
}
.popup-bar.hidden { transform: translateY(100%); }
.popup-bar-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.popup-bar-icon { font-size: 1.5rem; flex-shrink: 0; }
.popup-bar-text { font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.popup-bar-text strong { color: var(--gold); font-family: var(--font-head); }
.popup-bar-text span { color: var(--muted); font-size: 0.78rem; }
.popup-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--trans);
}
.popup-bar-cta:hover { background: var(--coral-dk); color: var(--white); }
.popup-bar-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 4px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color var(--trans);
  line-height: 1;
}
.popup-bar-close:hover { color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #040e1d;
  border-top: 1px solid var(--border);
  padding: 48px 20px 30px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--teal); }
.resp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.resp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ============================================================
   UTILITY / MISC
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE — TABLET  ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — MOBILE  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  /* Nav collapse */
  .nav-toggle-label { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(6,21,39,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav a { padding: 10px 12px; font-size: 1rem; }
  .btn-header-cta { font-size: 0.8rem; padding: 8px 14px; }

  /* Hero */
  .hero { min-height: 90vh; padding: 100px 16px 50px; }
  .hero-ctas { gap: 10px; }
  .btn-primary, .btn-secondary { padding: 12px 22px; font-size: 0.9rem; }
  .trust-badges { gap: 8px; }
  .trust-badge { font-size: 0.72rem; padding: 5px 10px; }

  /* Slots grid */
  .slots-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Content */
  .article-content h2 { margin-top: 36px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: auto; }

  /* Popup */
  .popup-bar { padding: 10px 14px; }
  .popup-bar-text span { display: none; }
  .popup-bar-cta { padding: 9px 16px; font-size: 0.8rem; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE  ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  .slots-grid { gap: 10px; }
  .slot-card-name { font-size: 0.75rem; }
  .hero-headline { font-size: 1.75rem; }
  .article-content h1 { font-size: 1.45rem; }
  .article-content h2 { font-size: 1.15rem; }
}
