/*
Theme Name: King Family Reunion 2025
Theme URI: https://kingfamilyreunion.com
Author: King Family Reunion Committee
Author URI: https://kingfamilyreunion.com
Description: A warm, mobile-first family reunion theme built for the 2025 King Family Reunion. Includes homepage, registration, and confirmation page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: king-reunion
Tags: one-page, custom-colors, custom-logo, responsive-layout, event
*/

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────────────────────── */
:root {
  --terracotta:       #C0614D;
  --terracotta-dark:  #9E4A39;
  --terracotta-light: #E8907E;
  --sage:             #7A9E7E;
  --sage-dark:        #5A7E5E;
  --sage-light:       #A8C4A8;
  --cream:            #FAF8F4;
  --warm-white:       #FFF9F5;
  --charcoal:         #2C2C2A;
  --charcoal-light:   #4A4A47;
  --gold:             #D4A853;
  --gold-light:       #E8CC8A;
  --border:           rgba(44,44,42,0.12);
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Lato', system-ui, sans-serif;
  --radius:           4px;
  --max-width:        1200px;
}

/* ── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); }
ul { list-style: none; }

/* ── BASE TYPOGRAPHY ───────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--charcoal);
}
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── WORDPRESS ALIGNMENT CLASSES ───────────────────────────────────────── */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide  { max-width: 1400px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: none; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

/* ── WORDPRESS REQUIRED: SCREEN-READER TEXT ────────────────────────────── */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--cream); border-radius: var(--radius);
  clip: auto; clip-path: none; color: var(--charcoal);
  display: block; font-size: 0.875rem; font-weight: 700;
  height: auto; left: 5px; padding: 15px 23px;
  text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

/* ── SKIP LINK ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -9999px; left: 5px; z-index: 999999;
  background: var(--terracotta); color: white; padding: 8px 16px;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── LAYOUT UTILITIES ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}
.section-pad { padding-top: 100px; padding-bottom: 100px; }

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.8125rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 36px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--terracotta); color: #fff;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  box-shadow: 0 8px 24px rgba(192,97,77,0.35);
  color: #fff;
}
.btn-secondary {
  background: transparent; color: var(--charcoal);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; background: rgba(255,255,255,0.07); }

/* ── SECTION LABELS ────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.6875rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700;
  color: var(--terracotta); margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; display: block; width: 24px; height: 1px;
  background: currentColor;
}
.eyebrow-light { color: var(--gold); }
.eyebrow-light::before { background: var(--gold); }

/* ── FORMS (WPForms override layer) ────────────────────────────────────── */
.wpforms-container .wpforms-form { max-width: 100%; }
.wpforms-field-label {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--charcoal-light) !important;
  margin-bottom: 6px !important;
}
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="number"],
.wpforms-field textarea,
.wpforms-field select {
  width: 100% !important;
  padding: 13px 16px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  color: var(--charcoal) !important;
  background: white !important;
  transition: border-color 0.2s !important;
}
.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus {
  outline: none !important;
  border-color: var(--terracotta) !important;
  box-shadow: 0 0 0 3px rgba(192,97,77,0.12) !important;
}
.wpforms-submit-container .wpforms-submit {
  background: var(--terracotta) !important;
  color: white !important;
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 15px 40px !important;
  border: none !important;
  border-radius: var(--radius) !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.15s !important;
}
.wpforms-submit-container .wpforms-submit:hover {
  background: var(--terracotta-dark) !important;
  transform: translateY(-2px) !important;
}

/* ── HEADER / NAV ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(250,248,244,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(44,44,42,0.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
}
.site-branding a {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 700;
  color: var(--terracotta); text-decoration: none;
}
.site-branding .site-tagline {
  font-size: 0.75rem; color: var(--charcoal-light);
  display: none;
}
.main-navigation ul {
  display: flex; gap: 32px; align-items: center;
}
.main-navigation a {
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal-light); text-decoration: none;
  transition: color 0.2s;
}
.main-navigation a:hover { color: var(--terracotta); }
.nav-cta-item a {
  background: var(--terracotta) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: var(--radius);
}
.nav-cta-item a:hover { background: var(--terracotta-dark) !important; color: white !important; }

/* Mobile nav */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--charcoal); border-radius: 2px; transition: all 0.3s;
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem; color: white; margin-bottom: 12px;
}
.footer-col-title {
  font-size: 0.6875rem; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,0.6); margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.4); text-decoration: none;
  font-size: 0.875rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--terracotta-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.8125rem;
}
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .section-pad { padding-top: 72px; padding-bottom: 72px; }
  .header-inner { padding: 16px 24px; }
  .main-navigation {
    display: none; position: fixed; inset: 0;
    background: var(--cream); flex-direction: column;
    justify-content: center; align-items: center;
    z-index: 9998;
  }
  .main-navigation.open { display: flex; }
  .main-navigation ul { flex-direction: column; gap: 0; width: 100%; text-align: center; }
  .main-navigation a { display: block; padding: 18px; font-size: 1rem; }
  .menu-toggle { display: flex; position: relative; z-index: 9999; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .btn { width: 100%; justify-content: center; }
}
