/*
Theme Name: SEO iGaming
Theme URI: https://seo.casino
Author: SEO.Casino
Description: iGaming SEO agency homepage — editorial data-driven design, bone/ink/lime palette.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: seoigaming
*/

:root{
  --font-head: 'General Sans', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --bone: #F7F4EC;
  --card: #FCFAF4;
  --ink: #16181D;
  --ink-dark: #121317;
  --muted: #6B6759;
  --lime: #CBFF4D;
  --amber: #FF6A39;
  --line: #DFDACB;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle, rgba(22,24,29,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
img, svg{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,h4{ font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p{ margin: 0 0 1.1em; max-width: 66ch; }
p:last-child{ margin-bottom: 0; }
ul{ margin: 0; padding: 0; }

.container{ max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px){ .container{ padding: 0 20px; } }

/* ================= Buttons ================= */
.btn{
  font-family: var(--font-mono); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  display: inline-block; padding: 15px 30px; border-radius: 3px; text-decoration: none;
  background: var(--ink); color: var(--bone); border: 1.5px solid var(--ink);
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover{ background: var(--lime); color: var(--ink); border-color: var(--ink); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.section-dark .btn{ background: var(--lime); color: var(--ink); border-color: var(--lime); }
.section-dark .btn:hover{ background: var(--bone); border-color: var(--bone); box-shadow: 4px 4px 0 var(--lime); }

/* ================= Header ================= */
.site-header{
  position: sticky; top: 0; z-index: 500;
  background: rgba(247,244,236,.94); backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--ink);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled{ box-shadow: 0 6px 24px -12px rgba(22,24,29,.25); }
body.admin-bar .site-header{ top: 32px; }
@media screen and (max-width: 782px){ body.admin-bar .site-header{ top: 46px; } }
.site-header-row{
  display: flex; align-items: center; justify-content: space-between; padding: 16px 0;
}
.site-logo{
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--ink);
  flex: none; display: flex; align-items: center;
}
.site-logo-icon{ width: 34px; height: 34px; margin-right: 12px; flex: none; }
.site-logo b{ font-weight: 700; }
.site-logo span{ color: var(--muted); font-weight: 500; margin-left: .3em; }
.header-cta{ padding: 11px 22px; font-size: .82rem; flex: none; }

.site-nav{ display: flex; flex: 1 1 auto; justify-content: center; }
.site-nav a{
  font-family: var(--font-mono); font-size: .82rem; text-decoration: none; color: var(--muted);
  transition: color .15s ease; margin-right: 28px;
}
.site-nav a:last-child{ margin-right: 0; }
.site-nav a:hover{ color: var(--ink); }
@media (max-width: 900px){ .site-nav{ display: none; } }

/* ================= Section scaffolding ================= */
.section{ padding: 100px 0; border-top: 2px solid var(--ink); }
.section:first-of-type{ border-top: none; }
@media (max-width: 640px){ .section{ padding: 56px 0; } }

.section-dark{
  background: var(--ink-dark); color: var(--bone); border-top: none;
  background-image:
    radial-gradient(circle at 90% -10%, rgba(203,255,77,.09), transparent 50%),
    radial-gradient(circle at 0% 110%, rgba(255,106,57,.07), transparent 45%);
}
.section-dark h1, .section-dark h2, .section-dark h3{ color: var(--bone); }
.section-dark p{ color: #C7C4B8; }
.section-dark .muted{ color: #928E80; }
.section-card{ background: var(--card); }

.section-head{
  margin-bottom: 56px; max-width: 780px;
}
.section-head::before{
  content: ''; display: block; width: 46px; height: 4px; background: var(--lime); border-radius: 2px; margin-bottom: 22px;
}
.section-head h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .5em; }
.lead{ font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.section-dark .lead{ color: #C7C4B8; }
@media (max-width: 640px){
  .section-head{ margin-bottom: 36px; }
}

.muted{ color: var(--muted); }
strong{
  font-weight: 600;
  background: linear-gradient(180deg, transparent 60%, rgba(203,255,77,.55) 60%);
}
.section-dark strong{ background: linear-gradient(180deg, transparent 60%, rgba(203,255,77,.3) 60%); }

/* ================= Flex layout helpers (margin-based spacing — max compatibility, no flex "gap") ================= */
.flex-row{ display: flex; margin-left: -20px; }
.flex-row > *{ flex: 1 1 0; min-width: 0; margin-left: 20px; }
@media (max-width: 800px){ .flex-row{ flex-direction: column; margin-left: 0; } .flex-row > *{ margin-left: 0; margin-top: 32px; } .flex-row > *:first-child{ margin-top: 0; } }

.flex-row-3{ display: flex; flex-wrap: wrap; margin: -14px; }
.flex-row-3 > *{ flex: 1 1 300px; min-width: 0; margin: 14px; }

.flex-row-5{ display: flex; flex-wrap: wrap; margin: -12px; }
.flex-row-5 > *{ flex: 1 1 180px; min-width: 0; margin: 12px; }

/* ================= Hero ================= */
.hero{ padding: 84px 0 100px; border-top: none; }
.hero-row{ display: flex; margin-left: -32px; align-items: stretch; }
.hero-row > *{ margin-left: 32px; }
@media (max-width: 900px){ .hero-row{ flex-direction: column; align-items: stretch; margin-left: 0; } .hero-row > *{ margin-left: 0; } }
.hero-text{ flex: 1.05 1 0; min-width: 0; }
.hero-visual{ flex: .95 1 0; min-width: 0; margin-top: 6px; display: flex; }
.hero h1{ font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: .35em; }
.hero-sub{ font-size: 1.22rem; color: var(--muted); max-width: 50ch; margin-bottom: 1.7em; }

.hero-panel{
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px;
  padding: 32px; box-shadow: 8px 8px 0 var(--line);
  width: 100%; display: flex; flex-direction: column; justify-content: center;
}
.hero-tag{
  font-family: var(--font-mono); font-size: .88rem; font-weight: 600; background: var(--ink); color: var(--lime);
  display: inline-flex; align-self: flex-start; padding: .5em .9em; border-radius: 3px; margin-bottom: 20px;
}

/* ================= Two-col text ================= */
.split-text > div{ padding-right: 8px; }
.split-text > div:first-child{ padding-right: 40px; border-right: 1.5px solid var(--line); }
.split-text > div:last-child{ padding-left: 40px; padding-right: 0; }
@media (max-width: 800px){
  .split-text > div:first-child{ border-right: none; border-bottom: 1.5px solid var(--line); padding: 0 0 32px; }
  .split-text > div:last-child{ padding: 32px 0 0; }
}
.split-text h3{ font-size: 1.4rem; margin-bottom: .55em; }
.split-icon{ width: 34px; height: 34px; color: var(--lime); background: var(--ink); border-radius: 50%; padding: 8px; margin-bottom: 18px; }

/* ================= Cards ================= */
.card{
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; padding: 38px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--line); }
.card-icon{ width: 38px; height: 38px; margin-bottom: 20px; color: var(--ink); }
.section-dark .card-icon{ color: var(--lime); }
.card h3{ font-size: 1.28rem; margin-bottom: .55em; }

/* ================= Pillars (dark, 3-col) ================= */
.pillar-num{
  font-family: var(--font-mono); font-size: 2rem; color: var(--lime); display: block; margin-bottom: .4em;
}
.pillar h3{ font-size: 1.28rem; margin-bottom: .5em; }

/* ================= Accordion ================= */
.accordion{ border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.accordion details{ border-bottom: 1.5px solid var(--ink); }
.accordion details:last-child{ border-bottom: none; }
.accordion summary{
  font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; cursor: pointer; list-style: none;
  display: flex; align-items: center;
  position: relative; padding: 24px 60px 24px 28px;
}
.accordion summary::-webkit-details-marker{ display: none; }
.accordion summary span{ flex: 1 1 auto; min-width: 0; }
.acc-icon{
  flex: none; width: 30px; height: 30px; color: var(--ink); padding: 6px; margin-right: 18px;
  background: var(--bone); border: 1.5px solid var(--ink); border-radius: 50%;
}
.section-dark .acc-icon{ background: var(--ink-dark); border-color: var(--lime); color: var(--lime); }
.accordion details[open] .acc-icon{ background: var(--ink); color: var(--lime); }
.accordion summary::after{
  content: '+'; font-family: var(--font-mono); font-size: 1.5rem; color: var(--muted); line-height: 1;
  position: absolute; right: 32px; top: 24px;
}
.accordion details[open] summary::after{ content: '\2212'; color: var(--ink); }
.accordion details[open] summary{ background: var(--lime); }
.accordion .acc-body{ padding: 4px 32px 30px 32px; }
.accordion.has-icons .acc-body{ padding-left: 78px; }
.accordion ul{ list-style: none; margin-top: .8em; }
.accordion li{ padding-left: 1.5em; position: relative; margin-bottom: .6em; }
.accordion li::before{ content: '\2192'; position: absolute; left: 0; font-family: var(--font-mono); color: var(--ink); font-weight: 700; }

/* ================= Services section layout ================= */
.services-layout{ display: flex; align-items: flex-start; margin-left: -48px; }
.services-layout > *{ margin-left: 48px; }
.services-layout .accordion{ flex: 1.35 1 0; min-width: 0; }
.services-visual{ flex: 1 1 0; min-width: 0; position: sticky; top: 120px; }
.services-visual-panel{
  background: var(--bone); border: 1.5px solid var(--ink); border-radius: 6px; padding: 28px;
  box-shadow: 8px 8px 0 var(--line);
}
.services-visual svg{ width: 100%; height: auto; }
@media (max-width: 900px){
  .services-layout{ flex-direction: column; margin-left: 0; }
  .services-layout > *{ margin-left: 0; }
  .services-visual{ position: static; order: -1; margin-top: 0; margin-bottom: 32px; }
  .services-layout .accordion{ margin-top: 0; }
}

/* ================= Table ================= */
.table-wrap{ border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; margin: 24px 0; }
table{ width: 100%; border-collapse: collapse; }
th, td{ text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .96rem; }
th{
  font-family: var(--font-mono); text-transform: uppercase; font-size: .74rem; letter-spacing: .06em;
  color: var(--muted); background: var(--bone); border-bottom: 1.5px solid var(--ink);
}
tr:last-child td{ border-bottom: none; }
.section-dark .table-wrap{ border-color: rgba(247,244,236,.3); }
.section-dark th{ background: rgba(247,244,236,.06); color: #928E80; border-bottom-color: rgba(247,244,236,.3); }
.section-dark td{ border-bottom-color: rgba(247,244,236,.14); }
.result-cell{ font-family: var(--font-mono); font-weight: 700; color: var(--lime); }

/* ================= Results layout ================= */
.results-layout{ display: flex; align-items: stretch; margin-top: 8px; margin-left: -48px; }
.results-layout > *{ margin-left: 48px; }
.results-text{ flex: 1.4 1 0; min-width: 0; }
.mt-lg{ margin-top: 2em; }
.results-stat-panel{
  flex: 1 1 0; min-width: 0; background: rgba(247,244,236,.04); border: 1.5px solid rgba(247,244,236,.25);
  border-radius: 6px; padding: 36px; display: flex; flex-direction: column; justify-content: center;
}
.stat-big{ font-family: var(--font-mono); font-weight: 700; font-size: 3.4rem; color: var(--lime); line-height: 1; }
.stat-caption{ display: block; margin-top: 10px; font-size: .95rem; color: #C7C4B8; margin-bottom: 28px; }
.stat-chart{ width: 100%; height: auto; }
@media (max-width: 900px){ .results-layout{ flex-direction: column; margin-left: 0; } .results-layout > *{ margin-left: 0; margin-top: 32px; } .results-layout > *:first-child{ margin-top: 0; } }

/* ================= Steps ================= */
.step{ border-top: 2px solid var(--line); padding-top: 18px; }
.step-num{
  font-family: var(--font-mono); background: var(--ink); color: var(--lime);
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; font-size: .82rem; margin-bottom: 14px;
}
.step h3{ font-size: 1.08rem; margin-bottom: .5em; }

/* ================= Footer ================= */
.site-footer{ background: var(--ink-dark); color: #928E80; padding: 72px 0 0; }
.footer-top{
  display: flex; justify-content: space-between; flex-wrap: wrap; padding-bottom: 56px;
  border-bottom: 1px solid rgba(247,244,236,.14);
}
.footer-brand{ max-width: 340px; margin-bottom: 32px; }
.footer-brand .site-logo{ color: var(--bone); font-size: 1.25rem; }
.footer-brand .site-logo span{ color: #928E80; }
.footer-tagline{ margin-top: 14px; font-size: .96rem; color: #928E80; }
.footer-cols{ display: flex; flex-wrap: wrap; }
.footer-col{ margin-right: 56px; margin-bottom: 24px; }
.footer-col:last-child{ margin-right: 0; }
.footer-col-title{
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: #928E80; margin-bottom: 16px;
}
.footer-col a{
  display: block; color: #C7C4B8; text-decoration: none; font-size: .95rem; margin-bottom: 10px;
  transition: color .15s ease;
}
.footer-col a:hover{ color: var(--lime); }
.footer-row{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .82rem; padding: 24px 0;
}
.footer-row span{ margin-right: 14px; }
.footer-row span:last-child{ margin-right: 0; }
@media (max-width: 640px){
  .site-footer{ padding-top: 48px; }
  .footer-top{ padding-bottom: 36px; }
}

/* ================= Reveal (декоративный, не скрывает контент) ================= */
.reveal{ opacity: 1; }
