/*
Theme Name: BOKD
Theme URI: https://bokd.app
Author: BOKD
Author URI: https://bokd.app
Description: Landing page theme for the BOKD app — book salons & spas near you. Warm cream design with orange accent sections, one prominent phone preview, and official store badges.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: bokd
Tags: landing-page, one-page, app, custom-colors
*/

/* ---------------------------------------------------------------------------
   Design tokens
--------------------------------------------------------------------------- */
:root {
  --background: oklch(0.97 0.008 85);
  --foreground: oklch(0.205 0.006 45);
  --ink: oklch(0.11 0.004 60);
  --ember: oklch(0.63 0.17 35);
  --primary: oklch(0.205 0.006 45);
  --secondary: oklch(0.925 0.018 48);
  --muted-foreground: oklch(0.47 0.01 45);
  --border: oklch(0.84 0.01 65);
  --sage: oklch(0.89 0.035 145);
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --shadow-phone: 0 34px 60px -28px oklch(0.18 0.01 45 / 0.52);
  --radius: 0.5rem;
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; margin: 0; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------------------
   Layout helpers
--------------------------------------------------------------------------- */
.bokd-container { max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .bokd-container { padding-inline: 2rem; } }

.bokd-eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--primary); }
.bokd-eyebrow--on-ember { color: oklch(0.11 0.004 60 / 0.7); }
.bokd-eyebrow--sage { color: var(--sage); }

.bokd-h2 { margin-top: 1rem; font-size: 1.875rem; font-weight: 500; line-height: 1.2; max-width: 36rem; }
@media (min-width: 768px) { .bokd-h2 { font-size: 3.75rem; } }
.bokd-h2 u, .bokd-underline { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; text-decoration-color: oklch(0.205 0.006 45 / 0.3); }
.bokd-underline--ink { text-decoration-color: oklch(0.11 0.004 60 / 0.4); }

.bokd-section-head { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; }
@media (min-width: 768px) { .bokd-section-head { flex-direction: row; align-items: flex-end; } }
.bokd-section-head aside { max-width: 20rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.bokd-section-head--on-ember aside { color: oklch(0.11 0.004 60 / 0.7); }

.bokd-section { padding-block: 3rem; }
@media (min-width: 768px) { .bokd-section { padding-block: 6rem; } }

/* ---------------------------------------------------------------------------
   Announcement bar
--------------------------------------------------------------------------- */
.bokd-announce { background: var(--foreground); color: var(--background); }
.bokd-announce p {
  max-width: 80rem; margin-inline: auto; padding: 0.625rem 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-align: center; font-size: 0.75rem; font-weight: 600;
}
.bokd-announce .code { color: var(--sage); }

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.bokd-hero { overflow: hidden; border-bottom: 1px solid var(--border); }
.bokd-hero__inner { padding: 3rem 1.25rem 2.5rem; text-align: center; max-width: 80rem; margin-inline: auto; }
@media (min-width: 768px) { .bokd-hero__inner { padding: 5rem 2rem 3.5rem; } }
.bokd-hero h1 {
  margin: 1.5rem auto 0; max-width: 56rem;
  font-size: clamp(2.6rem, 10.5vw, 6rem); font-weight: 700; line-height: 0.98;
}
.bokd-hero h1 span { color: var(--primary); }
.bokd-hero__sub { margin: 1.5rem auto 0; max-width: 36rem; font-size: 1rem; line-height: 1.625; color: var(--muted-foreground); }
@media (min-width: 768px) { .bokd-hero__sub { font-size: 1.25rem; } }

.bokd-store-buttons { display: flex; width: 100%; align-items: stretch; gap: 0.625rem; margin: 2rem auto 0; max-width: 28rem; justify-content: center; }
.bokd-store-buttons a { min-width: 0; flex: 1 1 0%; transition: transform 0.2s ease; }
.bokd-store-buttons a:hover { transform: translateY(-2px); }
.bokd-store-buttons img { display: block; width: 100%; height: auto; }
@media (min-width: 640px) {
  .bokd-store-buttons { width: auto; }
  .bokd-store-buttons a { flex: none; width: 11rem; }
}

.bokd-phone {
  position: relative; margin: 2.5rem auto 0; width: fit-content;
  border-radius: 2.8rem; background: var(--foreground); padding: 7px;
  box-shadow: var(--shadow-phone);
}
.bokd-phone__screen { position: relative; overflow: hidden; border-radius: 2.3rem; background: #fff; }
.bokd-phone__screen img { display: block; height: 520px; width: auto; }
@media (min-width: 768px) { .bokd-phone__screen img { height: 760px; } }
.bokd-phone__island {
  position: absolute; left: 50%; top: 2.7%; height: 4.1%; width: 30%;
  transform: translate(-50%, -50%); border-radius: 9999px; background: var(--foreground);
}

.bokd-stats {
  margin: 2rem auto 0; max-width: 36rem;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1rem 0 1.5rem; text-align: center;
}
.bokd-stats span + span { border-left: 1px solid var(--border); }
.bokd-stats strong { display: block; font-family: var(--font-display); font-size: 1.125rem; }
.bokd-stats small { color: var(--muted-foreground); }

/* ---------------------------------------------------------------------------
   Card grids (How it works, Deals)
--------------------------------------------------------------------------- */
.bokd-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .bokd-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.bokd-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 1.5rem; background: var(--background); text-align: left; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.bokd-card--bordered { border: 1px solid var(--border); transition: transform 0.2s ease; }
.bokd-card--bordered:hover { transform: translateY(-4px); }
.bokd-card__media { overflow: hidden; }
.bokd-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bokd-card--bordered:hover .bokd-card__media img { transform: scale(1.03); }
.bokd-card__media--45 { aspect-ratio: 4 / 5; }
.bokd-card__media--43 { aspect-ratio: 4 / 3; }
.bokd-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.bokd-card__row { display: flex; align-items: center; justify-content: space-between; }
.bokd-chip {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 9999px; background: var(--foreground); color: var(--background);
  font-family: var(--font-display); font-weight: 700;
}
.bokd-card__icon { width: 1.5rem; height: 1.5rem; color: var(--ember); }
.bokd-card__icon--chip { width: 1.25rem; height: 1.25rem; color: var(--background); }
.bokd-card h3 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 600; }
.bokd-card__body p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.bokd-card__arrow { width: 1.5rem; height: 1.5rem; color: var(--muted-foreground); transition: transform 0.2s ease; }
.bokd-card--bordered:hover .bokd-card__arrow { transform: translate(4px, -4px); }

/* ---------------------------------------------------------------------------
   Ember (orange) sections
--------------------------------------------------------------------------- */
.bokd-ember { background: var(--ember); color: var(--ink); }
.bokd-ember .bokd-h2 { color: var(--ink); }

/* ---------------------------------------------------------------------------
   Coverage
--------------------------------------------------------------------------- */
.bokd-coverage { border-bottom: 1px solid var(--border); }
.bokd-coverage__grid { display: grid; align-items: center; gap: 2.5rem; }
@media (min-width: 768px) { .bokd-coverage__grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
.bokd-coverage h2 { font-weight: 300; }
.bokd-coverage h2 strong { font-weight: 500; color: var(--primary); }
.bokd-coverage__copy { margin-top: 1.25rem; max-width: 28rem; line-height: 1.625; color: var(--muted-foreground); }
.bokd-city-form { margin-top: 2rem; display: flex; max-width: 32rem; align-items: flex-end; gap: 0.75rem; border-bottom: 1px solid var(--foreground); padding-bottom: 0.5rem; }
.bokd-city-form svg { margin-bottom: 0.5rem; width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--primary); }
.bokd-city-form input { min-width: 0; flex: 1; background: transparent; border: 0; padding: 0.5rem 0; font-size: 1.125rem; font-family: inherit; color: inherit; outline: none; }
.bokd-city-form input::placeholder { color: var(--muted-foreground); }
.bokd-city-form button {
  margin-bottom: 0.25rem; display: inline-flex; align-items: center; gap: 0.375rem;
  border: 0; border-radius: 9999px; background: var(--foreground); color: var(--background);
  padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600;
}
.bokd-city-form button:hover { opacity: 0.9; }
.bokd-city-form button svg { margin: 0; width: 1rem; height: 1rem; color: inherit; }
.bokd-city-result { margin-top: 0.75rem; min-height: 1.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.bokd-coverage__map { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1.5rem; background: var(--secondary); }
.bokd-coverage__map img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------------
   Partners
--------------------------------------------------------------------------- */
.bokd-partners { overflow: hidden; }
.bokd-partners__grid { display: grid; align-items: center; gap: 2.5rem; }
@media (min-width: 768px) { .bokd-partners__grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
.bokd-partners__copy { margin-top: 1.5rem; max-width: 28rem; line-height: 1.625; color: oklch(0.11 0.004 60 / 0.8); }
.bokd-benefits { margin-top: 2rem; display: grid; gap: 0.75rem; }
.bokd-benefit { display: flex; align-items: center; gap: 1rem; border-radius: 1rem; background: var(--background); color: var(--foreground); padding: 1rem; }
@media (min-width: 768px) { .bokd-benefit { padding: 1.25rem; } }
.bokd-benefit span:last-child { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.bokd-benefit .bokd-chip { flex-shrink: 0; }
.bokd-partners__cta {
  margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; background: var(--foreground); color: var(--background);
  padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; transition: transform 0.2s ease;
}
.bokd-partners__cta:hover { transform: translateY(-2px); }
.bokd-partners__cta svg { width: 1rem; height: 1rem; }
.bokd-partners__photos { position: relative; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .bokd-partners__photos { padding-bottom: 0; } }
.bokd-partners__photo-main { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1.5rem; }
.bokd-partners__photo-main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bokd-partners__photo-overlay {
  position: absolute; bottom: -0.5rem; left: -0.5rem; width: 55%;
  overflow: hidden; border-radius: 1.5rem; border: 4px solid var(--ember);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
@media (min-width: 768px) { .bokd-partners__photo-overlay { bottom: -2rem; left: -2rem; } }
.bokd-partners__photo-overlay img { display: block; aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; }

/* ---------------------------------------------------------------------------
   Testimonials
--------------------------------------------------------------------------- */
.bokd-story { margin-top: 2.5rem; overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--border); background: var(--background); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.bokd-story__grid { display: grid; }
@media (min-width: 768px) { .bokd-story__grid { grid-template-columns: repeat(2, 1fr); } }
.bokd-story__media { aspect-ratio: 4 / 3; overflow: hidden; }
.bokd-story__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bokd-story__panel { display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; }
@media (min-width: 768px) { .bokd-story__panel { padding: 2.5rem; } }
.bokd-stars { display: flex; gap: 0.25rem; }
.bokd-stars svg { width: 1rem; height: 1rem; fill: var(--primary); color: var(--primary); }
.bokd-story blockquote { margin: 1.25rem 0 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; line-height: 1.375; }
@media (min-width: 768px) { .bokd-story blockquote { font-size: 1.875rem; } }
.bokd-story__footer { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bokd-story__name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.bokd-story__role { font-size: 0.875rem; color: var(--muted-foreground); }
.bokd-story__nav { display: flex; flex-shrink: 0; gap: 0.5rem; }
.bokd-round-btn {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 9999px; border: 1px solid var(--foreground);
  background: var(--foreground); color: var(--background);
}
.bokd-round-btn:hover { background: oklch(0.205 0.006 45 / 0.9); }
.bokd-round-btn svg { width: 1.25rem; height: 1.25rem; }
.bokd-dots { margin-top: 1.5rem; display: flex; justify-content: center; gap: 0.5rem; }
@media (min-width: 768px) { .bokd-dots { justify-content: flex-start; } }
.bokd-dots button { width: 0.625rem; height: 0.625rem; border-radius: 9999px; border: 0; padding: 0; background: var(--border); transition: background 0.2s ease; }
.bokd-dots button[aria-current="true"] { background: var(--primary); }

/* ---------------------------------------------------------------------------
   FAQ
--------------------------------------------------------------------------- */
.bokd-faq-list { margin-top: 2.5rem; display: grid; gap: 0.75rem; }
.bokd-faq-item { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--background); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.bokd-faq-item > button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 0.75rem;
  border: 0; background: transparent; border-radius: 1.5rem; padding: 1.25rem;
  text-align: left; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; color: inherit;
}
@media (min-width: 768px) { .bokd-faq-item > button { padding-inline: 1.75rem; } }
.bokd-faq-item .bokd-faq-chevron {
  margin-left: 0.75rem; display: grid; flex-shrink: 0; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 1px solid var(--border);
  transition: background 0.2s ease, color 0.2s ease;
}
.bokd-faq-item .bokd-faq-chevron svg { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.bokd-faq-item[data-open="true"] .bokd-faq-chevron { background: var(--foreground); color: var(--background); }
.bokd-faq-item[data-open="true"] .bokd-faq-chevron svg { transform: rotate(180deg); }
.bokd-faq-item .bokd-faq-answer { display: none; padding: 0 1.25rem 1.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
@media (min-width: 768px) { .bokd-faq-item .bokd-faq-answer { padding-inline: 1.75rem; font-size: 1rem; } }
.bokd-faq-item[data-open="true"] .bokd-faq-answer { display: block; }

/* ---------------------------------------------------------------------------
   Footer CTA
--------------------------------------------------------------------------- */
.bokd-footer { background: var(--ink); color: var(--background); }
.bokd-footer__inner { padding: 3rem 1.25rem 2rem; max-width: 80rem; margin-inline: auto; }
@media (min-width: 768px) { .bokd-footer__inner { padding: 6rem 2rem 2rem; } }
.bokd-footer__cta { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; border-bottom: 1px solid oklch(0.99 0.002 85 / 0.25); padding-bottom: 4rem; }
@media (min-width: 768px) { .bokd-footer__cta { flex-direction: row; align-items: flex-end; } }
.bokd-footer__cta h2 { margin-top: 1rem; font-size: 2.25rem; font-weight: 300; line-height: 1.2; }
@media (min-width: 768px) { .bokd-footer__cta h2 { font-size: 4.5rem; } }
.bokd-footer__cta h2 span { color: var(--sage); }
.bokd-footer__cta .bokd-note { margin-top: 1rem; font-size: 0.875rem; color: oklch(0.99 0.002 85 / 0.65); }
.bokd-footer__cta .bokd-store-buttons { margin: 0; }
.bokd-footer__bar { display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem; padding-top: 2rem; }
@media (min-width: 768px) { .bokd-footer__bar { flex-direction: row; align-items: center; } }
.bokd-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.bokd-logo span { color: var(--primary); }
.bokd-footer .bokd-logo span { color: var(--sage); }
.bokd-footer__tagline { margin-top: 0.25rem; font-size: 0.75rem; color: oklch(0.99 0.002 85 / 0.65); }
.bokd-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; font-size: 0.75rem; font-weight: 500; color: oklch(0.99 0.002 85 / 0.7); }
.bokd-footer__links a:hover { color: var(--background); }
.bokd-footer__social { display: flex; align-items: center; gap: 0.75rem; }
.bokd-footer__social a {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 9999px; border: 1px solid oklch(0.99 0.002 85 / 0.35); transition: background 0.2s ease;
}
.bokd-footer__social a:hover { background: oklch(0.99 0.002 85 / 0.15); }
.bokd-footer__social svg { width: 1rem; height: 1rem; }

/* ---------------------------------------------------------------------------
   Generic WP content (index.php fallback)
--------------------------------------------------------------------------- */
.bokd-page-content { max-width: 48rem; margin-inline: auto; padding: 4rem 1.25rem; }
.bokd-page-content h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.bokd-page-content p { margin-bottom: 1rem; line-height: 1.75; }
