/*
Theme Name: Hymnbook Flat
Author: Hymnbook
Description: A simple flat-design landing page theme for showcasing hymn book apps in English and Hausa. Edit everything from Appearance → Customize.
Version: 2.0.0
Requires at least: 5.8
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: hymnbook-flat
*/

:root {
  --bg: #ffffff;
  --alt: #f3f6fa;
  --text: #1f2933;
  --muted: #6b7785;
  --line: #e3e8ee;
  --primary: #2563eb;
  --accent: #16a34a;
  --radius: 10px;
}
[data-theme="dark"] {
  --bg: #11161c;
  --alt: #1a212a;
  --text: #e8edf2;
  --muted: #98a3b0;
  --line: #29323d;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; }
.container { width: min(1040px, 100% - 2rem); margin-inline: auto; }

/* Header */
.site-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; flex-wrap: wrap; }
.site-title { margin: 0; font-size: 1.3rem; font-weight: 700; }
.site-title a { color: inherit; text-decoration: none; }
.site-title img { max-height: 40px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a { color: inherit; padding: .4rem .75rem; border-radius: var(--radius); display: block; text-decoration: none; }
.site-nav a:hover { background: rgba(255,255,255,.2); }
.icon-btn { background: rgba(255,255,255,.2); color: inherit; border: 0; border-radius: var(--radius); padding: .4rem .75rem; font: inherit; cursor: pointer; }

/* Buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.btn { display: inline-block; background: var(--text); color: var(--bg); padding: .8rem 1.4rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.btn:hover { filter: brightness(1.25); }

/* Hero */
.hero { background: var(--primary); color: #fff; padding: 4rem 0; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 800px) { .hero-grid:has(.phone) { grid-template-columns: 1.2fr 1fr; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1rem; }
.hero p { font-size: 1.15rem; opacity: .95; max-width: 540px; }
.hero .btn { background: #fff; color: var(--primary); }
.lang-pills { display: flex; gap: .5rem; }
.pill { padding: .25rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: #fff; }
.pill.en { background: rgba(255,255,255,.25); }
.pill.ha { background: var(--accent); }

/* Phone frames */
.phone { background: #0f1720; border-radius: 28px; padding: 10px; max-width: 280px; margin-inline: auto; }
.phone img { border-radius: 20px; width: 100%; }

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--alt); }
.section h2 { text-align: center; font-size: 2rem; margin: 0 0 2.5rem; }
.grid { display: grid; gap: 1.25rem; }
.grid.features { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { background: var(--alt); border-radius: var(--radius); padding: 1.5rem; }
.feature h3 { margin: .75rem 0 .35rem; }
.feature p { margin: 0; color: var(--muted); }
.feature-num { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }
.feature:nth-child(even) .feature-num { background: var(--accent); }

.lang-card { border-radius: var(--radius); padding: 2rem; color: #fff; }
.lang-card.en { background: var(--primary); }
.lang-card.ha { background: var(--accent); }
.lang-card h3 { margin: 0 0 .5rem; font-size: 1.5rem; }
.lang-card p { margin: 0; opacity: .95; }

.shots { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.cta { background: var(--alt); text-align: center; }
.cta .store-buttons { justify-content: center; }

/* Generic pages */
.entry { background: var(--alt); border-radius: var(--radius); padding: 2rem 1.5rem; margin: 2rem auto; }

/* Footer */
.site-footer { border-top: 2px solid var(--line); padding: 1.5rem 0; text-align: center; color: var(--muted); font-size: .9rem; }
