/*
Theme Name: Cloud 4K Player
Theme URI: https://cloud4k.ca/
Author: Cloud 4K Player
Author URI: https://cloud4k.ca/
Description: A black-and-gold landing theme for Cloud 4K Player. Home, Features and Contact pages are built in.
Version: 1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cloud4k
*/

:root {
  --bg: #0b0b0e;
  --bg-2: #14141a;
  --card: #1a1a22;
  --line: rgba(230, 190, 100, 0.25);
  --gold: #e3b95c;
  --gold-light: #f6dc95;
  --gold-dark: #a87a2a;
  --text: #f2efe8;
  --muted: #b9b4a8;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

.gold-text {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-name {
  font-family: "Cinzel", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.brand-tagline {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: rgba(227, 185, 92, 0.14);
  color: var(--gold-light);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: #1a1407;
  box-shadow: 0 8px 24px rgba(227, 185, 92, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  color: #1a1407;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(227, 185, 92, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  box-shadow: none;
}

.btn-outline:hover { color: var(--gold-light); background: rgba(227, 185, 92, 0.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 100px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(227, 185, 92, 0.22), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(168, 122, 42, 0.18), transparent 55%),
    var(--bg);
}

.hero-logo {
  display: block;
  width: 230px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 30px;
  filter: drop-shadow(0 0 28px rgba(227, 185, 92, 0.25));
}

.hero-kicker {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.02em;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 19px;
}

.hero .btn-row {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero { padding: 80px 0 60px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p { color: var(--muted); margin: 0; }

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

.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--card), #121218);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: rgba(230, 190, 100, 0.55); transform: translateY(-3px); }

.card h3 { font-size: 20px; color: var(--gold-light); }
.card p { margin: 0; color: var(--muted); }

.icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(246, 220, 149, 0.2), rgba(168, 122, 42, 0.15));
  border: 1px solid var(--line);
}

.icon svg { width: 26px; height: 26px; stroke: var(--gold-light); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- App preview (recreated home screen) ---------- */
.app-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background:
    radial-gradient(ellipse at 72% 35%, rgba(70, 90, 120, 0.55), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(227, 185, 92, 0.18), transparent 50%),
    linear-gradient(110deg, #050507 30%, #10151f 70%, #1b2230);
}

.app-logo {
  position: absolute;
  top: 5%;
  left: 4%;
  width: 11%;
  border-radius: 12px;
}

.app-feature {
  position: absolute;
  top: 34%;
  left: 4%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-feature-title {
  font-weight: 700;
  font-size: clamp(14px, 2.4vw, 28px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.app-feature-meta {
  font-size: clamp(10px, 1.4vw, 16px);
  color: var(--muted);
}

.app-tiles {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  width: 78%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.2%;
}

.app-tile {
  aspect-ratio: 1 / 0.95;
  border-radius: 10%;
  background: linear-gradient(180deg, #2a3442 0%, #6b5a33 70%, #b08a45 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8%;
  color: #fff;
  font-weight: 600;
  font-size: clamp(9px, 1.4vw, 17px);
  text-align: center;
  line-height: 1.1;
  padding: 4%;
}

.app-tile .icon {
  width: 46%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  background: none;
  border: 0;
}

.app-tile .icon svg { width: 100%; height: 100%; stroke-width: 1.6; }

/* ---------- Categories strip ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category {
  text-align: center;
  padding: 26px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(246, 220, 149, 0.12), rgba(20, 20, 26, 0.9));
  font-weight: 600;
  color: var(--gold-light);
}

.category .icon { margin: 0 auto 12px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }

.step { position: relative; padding-top: 58px; }

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 24px;
  left: 26px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1a1407;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

.step { padding-top: 76px; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 70px 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(227, 185, 92, 0.25), transparent 65%),
    var(--card);
}

.cta h2 { font-family: "Cinzel", Georgia, serif; font-size: clamp(26px, 4vw, 38px); }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-card { text-align: center; padding: 40px 28px; }
.contact-card .icon { margin: 0 auto 18px; }
.contact-value { font-size: 20px; font-weight: 600; color: var(--text); word-break: break-word; }
.contact-note { font-size: 14px; color: var(--muted); margin-top: 8px !important; }
.contact-card .btn { margin-top: 22px; }

/* ---------- Generic page content ---------- */
.entry {
  max-width: 780px;
  margin: 0 auto;
}

.entry h1 { font-family: "Cinzel", Georgia, serif; font-size: clamp(30px, 5vw, 44px); }
.entry p, .entry li { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08080a;
  padding: 60px 0 30px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 36px;
}

.site-footer h4 {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p { color: var(--muted); margin: 0 0 8px; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--muted); }
.site-footer li a:hover { color: var(--gold-light); }

.disclaimer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #8d887d;
  text-align: center;
}

.disclaimer p { color: #8d887d; margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .brand-tagline { display: none; }
  .grid, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 70px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}

.app-tile.is-focused { outline: 3px solid #fff; outline-offset: -3px; }

.app-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(227, 185, 92, 0.12);
}
