/*
Theme Name: American Boba
Theme URI: https://www.americanbobasupply.com/
Author: American Boba
Author URI: https://www.americanbobasupply.com/
Description: Heritage American craft theme for American Boba — dye-free, USA-manufactured popping boba wholesale. Upload, activate, and the site (pages, menu, lead form) is ready. Leads email via wp_mail.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: american-boba
*/

:root {
  --paper: #f4efe6;
  --paper-deep: #ebe4d6;
  --cream: #faf8f4;
  --ink: #121212;
  --ink-soft: #2c2a27;
  --muted: #6b6560;
  --line: #d4cbba;
  --display: "Oswald", ui-sans-serif, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, [type="submit"] { font: inherit; cursor: pointer; }
h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img { width: 3rem; height: 3rem; }
.brand-name {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand-sub { font-size: 0.75rem; color: var(--muted); }

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { margin: 0; }
.nav a {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover, .nav .current-menu-item a { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
}
.btn:hover { background: var(--ink-soft); }
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
.kicker {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-visual { position: relative; }
.hero-visual img.cover { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-seal {
  position: absolute;
  left: -0.5rem;
  bottom: -1.5rem;
  width: 8rem;
  background: var(--paper);
  padding: 4px;
}

.ticker {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 0.75rem;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.4rem; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 1.5rem;
}
.card h3 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }
.muted { color: var(--ink-soft); }

.band { background: var(--paper-deep); }
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { width: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.dot { width: 6px; height: 6px; background: var(--ink); margin-top: 0.55rem; flex: none; }

.product-card { border: 1px solid var(--line); background: var(--cream); text-decoration: none; }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-card div { padding: 1.25rem; }

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; }
}
.site-footer a { color: var(--paper); }
.footer-bar {
  border-top: 1px solid rgba(244, 239, 230, 0.15);
  margin-top: 2.5rem;
  padding: 1.1rem 0;
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.45);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lead-form {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 1.5rem;
}
@media (min-width: 640px) { .lead-form { padding: 2rem; } }
.lead-form h2 { font-size: 2rem; }
.fields { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } }
.span-2 { grid-column: 1 / -1; }
.lead-form label, .lead-form legend {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0 0.75rem;
}
.lead-form textarea { min-height: 7rem; padding: 0.6rem 0.75rem; }
.checks { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.4rem 0.75rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.notice {
  border: 1px solid var(--ink);
  background: var(--cream);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.notice.error { border-color: #8a2b2b; }

.faq dt {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}
.faq dd { margin: 0.4rem 0 0; color: var(--ink-soft); }
.faq div { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
}
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { min-height: 2.75rem; display: flex; align-items: center; }
}

.page-hero { padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); }

.invert {
  background: var(--ink);
  color: var(--paper);
}
.invert .kicker { color: rgba(244, 239, 230, 0.5); }
.invert .muted { color: rgba(244, 239, 230, 0.85); }
