/* ============================================================
   Horny Villa — promotional site stylesheet
   Theme: Mediterranean villa resort, light scheme.
   Terracotta coral + palm teal + warm ivory + gold accents.
   ============================================================ */

:root {
  --bg: #fff8f0;
  --surface: #ffffff;
  --surface-soft: #fdf0e3;
  --ink: #33251f;
  --ink-soft: #6b574c;
  --accent: #e2603f;
  --accent-dark: #c74a2c;
  --teal: #3e8e7e;
  --teal-dark: #2f6f63;
  --gold: #d9a441;
  --line: #ecd9c4;
  --shadow: 0 10px 30px rgba(120, 74, 45, 0.12);
  --shadow-sm: 0 4px 14px rgba(120, 74, 45, 0.10);
  --radius: 18px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.logo:hover { text-decoration: none; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo .logo-accent { color: var(--accent); }

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.active { color: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.3rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.btn-play {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 0.98rem;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-play:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }

.btn-play-lg {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 15px 38px;
  border-radius: 999px;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-play-lg:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  border: 2px solid var(--teal);
  color: var(--teal-dark) !important;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 1.02rem;
  transition: background 0.2s ease;
}
.btn-ghost:hover { background: rgba(62, 142, 126, 0.1); text-decoration: none; }

/* ---------- Hero (index) ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(217, 164, 65, 0.18), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(62, 142, 126, 0.14), transparent 45%),
    linear-gradient(160deg, #fff3e4 0%, #ffe9d2 55%, #fde4c8 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: 64px 0 60px;
}

.hero-kicker {
  display: inline-block;
  background: rgba(62, 142, 126, 0.12);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 3.1rem;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--accent); }

.hero-tagline {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 30px;
  max-width: 30em;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  left: 24px;
  background: var(--teal);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero (sub-pages) ---------- */
.hero-subpage {
  background: linear-gradient(160deg, #fff3e4 0%, #ffe9d2 60%, #fde4c8 100%);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
}

.hero-subpage .crumbs {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.hero-subpage .crumbs a { color: var(--teal-dark); font-weight: 600; }

.hero-subpage h1 {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-subpage .lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46em;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 34px 0; }

.section-title {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 8px;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--ink-soft);
  max-width: 44em;
  margin: 0 auto 34px;
}

.section-desc-left {
  text-align: left;
  margin: 0 0 22px;
  max-width: none;
}

.section-divider {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 0;
}

/* ---------- Facts (game info) ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fact-card .fact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.fact-card .fact-value {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.feature-card-gold { border-top: 4px solid var(--gold); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-soft);
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Gallery / lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.gallery-item:hover { box-shadow: var(--shadow); }
.gallery-item img { transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(51, 37, 31, 0.75));
  color: #fff;
  font-size: 0.85rem;
  padding: 22px 12px 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 14, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1080px, 92vw);
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- Quotes ---------- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.quote-card blockquote { color: var(--ink); font-size: 1.02rem; font-style: italic; }

.quote-card .quote-author {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  border-radius: 22px;
  color: #fff;
  padding: 44px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.cta-banner p { opacity: 0.92; max-width: 40em; }

.cta-wrapper { text-align: center; margin-top: 32px; }

/* ---------- Article (sub-page prose) ---------- */
.article { max-width: 780px; margin: 0 auto; }

.article h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
  margin: 34px 0 12px;
  padding-top: 6px;
}

.article h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--teal-dark);
  margin: 24px 0 10px;
}

.article p { margin-bottom: 16px; color: var(--ink); }

.article ul, .article ol { margin: 0 0 18px 24px; color: var(--ink); }
.article li { margin-bottom: 8px; }

.article blockquote {
  border-left: 4px solid var(--gold);
  background: var(--surface-soft);
  padding: 14px 20px;
  border-radius: 0 12px 12px 0;
  margin: 18px 0;
  font-style: italic;
  color: var(--ink-soft);
}

.shot-inline {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 4px solid #fff;
  margin: 20px 0 24px;
}

.shot-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  margin: -16px 0 22px;
}

/* ---------- Tables ---------- */
.info-table, .sysreq-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 18px 0 24px;
}

.info-table th, .info-table td,
.sysreq-table th, .sysreq-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table th, .sysreq-table th {
  background: var(--surface-soft);
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  width: 34%;
}

.info-table tr:last-child td, .sysreq-table tr:last-child td { border-bottom: 0; }

/* ---------- Characters ---------- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.char-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.char-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 2px solid var(--line);
}

.char-card h3 { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); margin-bottom: 4px; }
.char-card .char-role { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; margin-bottom: 10px; display: block; }
.char-card p { color: var(--ink-soft); font-size: 0.95rem; text-align: left; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 22px;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq-item.open .faq-q::after { content: "–"; }

.faq-a { padding: 0 22px 18px; color: var(--ink-soft); display: none; }
.faq-item.open .faq-a { display: block; }

.faq-sysreq { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 40px;
}

.footer-inner {
  padding: 26px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-copy { color: var(--ink-soft); font-size: 0.9rem; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.lang-switch a {
  display: inline-block;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.lang-switch a:hover { color: var(--accent); text-decoration: none; border-color: var(--accent); }
.lang-switch a.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 4%;
  }

  .site-nav a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav .btn-play { text-align: center; margin: 8px 0; }

  .hero-inner { grid-template-columns: 1fr; padding: 40px 0; gap: 30px; }
  .hero h1 { font-size: 2.3rem; }
  .hero-subpage h1 { font-size: 2rem; }

  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0; }
}

@media (max-width: 480px) {
  .container { width: 94%; }
  .hero h1 { font-size: 1.9rem; }
  .hero-subpage h1 { font-size: 1.65rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-play-lg, .hero-actions .btn-ghost { text-align: center; }
  .facts-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 30px 22px; flex-direction: column; text-align: center; }
  .logo { font-size: 1.15rem; }
  .lightbox { padding: 14px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
