/* Dalak Games website. Colors and type follow the 2024 WordPress site it replaces. */
:root {
  --blue: #135fff;
  --ink: #303030;
  --text: #444;
  --muted: #8a8a8a;
  --soft: #f4f6fc;
  --line: #e6e9f2;
  --radius: 24px;
  --container: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 15px/1.7 "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff; box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { width: 100px; height: auto; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: #111; text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover, .site-nav a.active { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #111; margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 0; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 15px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Shared blocks */
.section { padding: 72px 0; }
.title { font-size: clamp(30px, 5vw, 50px); margin: 0; }
.title .blue, .blue { color: var(--blue); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
address { overflow-wrap: anywhere; }
.split.reverse > :first-child { order: 2; }
.prose p { margin: 0 0 1em; text-align: justify; }
.prose p:last-child { margin-bottom: 0; }
.deco { position: relative; overflow: hidden; }
.deco::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  border: 90px solid var(--soft); right: -220px; top: -120px;
}
.deco.left::before { right: auto; left: -260px; top: 40%; }
@media (max-width: 760px) {
  .section { padding: 48px 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split.reverse > :first-child { order: 0; }
  .split img { max-width: 420px; margin: 0 auto; }
  .prose p { text-align: left; }
}

/* Store badges */
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.badges a { display: block; transition: transform .15s; }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 44px; width: auto; }

/* Home */
.hero { padding: 88px 0 40px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 52px); margin: 0; }
.carousel { position: relative; padding-bottom: 72px; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 32px) / 3); gap: 32px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 16px 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.game-card {
  scroll-snap-align: start; background: var(--soft); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; padding-bottom: 20px;
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(19,95,255,.12); }
.game-card h3 { font-size: 17px; margin: 4px 0 0; }
.game-card .badges { margin-top: 12px; gap: 8px; justify-content: center; }
.game-card .badges img { height: 34px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #d5dae6; cursor: pointer; }
.dots button.active { background: var(--blue); }
@media (max-width: 860px) { .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; } }
@media (max-width: 560px) { .carousel-track { grid-auto-columns: 82%; gap: 16px; } }

/* Our games */
.games { display: grid; gap: 40px; padding: 56px 0 80px; }
.game {
  background: var(--soft); border-radius: 48px; padding: 40px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.game:nth-child(even) > .game-text { order: 2; }
.game h2 { font-size: 26px; }
.game p { margin: 0 0 1em; }
.game img.shot { max-width: 420px; width: 100%; margin: 0 auto; }
@media (max-width: 760px) {
  .game { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 28px; gap: 16px; }
  .game:nth-child(even) > .game-text { order: 0; }
  .game img.shot { order: -1; max-width: 300px; }
}

/* Contact */
.contact-card {
  background: var(--soft); border: 1px solid #c9d6f5; border-radius: 22px; padding: 32px;
}
.contact-card h2 { color: var(--blue); font-size: 26px; }
.button {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600;
  padding: 14px 28px; border-radius: 999px; transition: background .15s;
}
.button:hover { background: #0a4ad6; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list strong { display: block; color: var(--ink); }
.address { display: flex; gap: 14px; align-items: flex-start; margin-top: 32px; }
.address img { width: 34px; flex: none; }
address { font-style: normal; }

/* Policy and text pages */
.policy { padding: 48px 0 72px; }
.policy .container { max-width: 880px; }
.policy h1 { font-size: 30px; }
.policy h2 { font-size: 26px; margin-top: 1.4em; }
.policy h3 { font-size: 21px; margin-top: 1.4em; }
.policy p, .policy li, .policy figure { overflow-wrap: anywhere; }
.policy figure { margin: 1em 0; }
.policy hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.policy table { border-collapse: collapse; display: block; overflow-x: auto; }
.policy td, .policy th { border: 1px solid var(--line); padding: 6px 10px; }

/* Footer */
.site-footer { background: var(--soft); padding: 48px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 32px; }
.footer-logo img { width: 62px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 15px; }
.footer-nav a:hover { color: var(--blue); }
.footer-contact h4 { font-size: 15px; margin: 0 0 10px; }
.footer-contact h4 + .social { margin-bottom: 18px; }
.social { display: flex; gap: 6px; }
.social img { width: 26px; height: 26px; }
.footer-contact address { color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 36px; color: var(--muted); font-size: 13px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: 64px; color: var(--blue); }
