/* ParlezPlus — Main Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

:root {
  --pp-navy:        #0D1B2A;
  --pp-blue:        #1A3A5C;
  --pp-gold:        #C9A84C;
  --pp-gold-light:  #E8C97A;
  --pp-cream:       #FAF8F2;
  --pp-text:        #1A1A2E;
  --pp-muted:       #4A5568;
  --pp-border:      rgba(201, 168, 76, 0.25);
  --pp-serif:       'Cormorant Garamond', Georgia, serif;
  --pp-sans:        'DM Sans', sans-serif;
  --pp-transition:  200ms ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--pp-sans); color: var(--pp-text); background-color: var(--pp-cream); -webkit-font-smoothing: antialiased; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--pp-serif); font-weight: 400; line-height: 1.15; }
h4, h5, h6 { font-family: var(--pp-sans); font-weight: 600; }
em { font-style: italic; }
a { color: var(--pp-blue); text-decoration: none; transition: color var(--pp-transition); }
a:hover { color: var(--pp-gold); }
p { line-height: 1.75; }

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.header-inner {
  padding: 1.1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-wordmark a, .footer-logo {
  font-family: var(--pp-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: #FAF8F2;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.logo-wordmark em, .footer-logo em { color: var(--pp-gold); font-style: italic; }
.logo-text-fallback { display: block; }

/* Nav */
.primary-nav .wp-block-navigation-item__content {
  color: rgba(250, 248, 242, 0.8) !important;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 0;
  transition: color var(--pp-transition);
}
.primary-nav .wp-block-navigation-item__content:hover,
.primary-nav .current-menu-item .wp-block-navigation-item__content { color: var(--pp-gold) !important; }
.primary-nav .wp-block-button__link {
  background: var(--pp-gold) !important;
  color: var(--pp-navy) !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem !important;
  border-radius: 0 !important;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.wp-block-button__link {
  border-radius: 0 !important;
  transition: all var(--pp-transition);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.btn-primary-gold .wp-block-button__link {
  background-color: var(--pp-gold) !important;
  color: var(--pp-navy) !important;
  padding: 0.9rem 2rem !important;
}
.btn-primary-gold .wp-block-button__link:hover {
  background-color: var(--pp-gold-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}
.btn-outline-light .wp-block-button__link {
  background: transparent !important;
  color: rgba(250,248,242,0.85) !important;
  border: 1px solid rgba(250,248,242,0.35) !important;
  padding: 0.9rem 2rem !important;
}
.btn-outline-light .wp-block-button__link:hover {
  border-color: var(--pp-gold) !important;
  color: var(--pp-gold) !important;
}
.pp-submit {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--pp-gold);
  color: var(--pp-navy);
  font-family: var(--pp-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: all var(--pp-transition);
  width: 100%;
}
.pp-submit:hover { background: var(--pp-gold-light); transform: translateY(-1px); }

/* ─── TRICOLOR HERO ─────────────────────────────────────────── */
.hero-tricolor { margin-bottom: 2.5rem; gap: 0 !important; }
.tricolor-bar { width: 2.5rem; height: 4px; display: block; flex-shrink: 0; }
.blue-bar  { background: #002395; }
.white-bar { background: #fff; }
.red-bar   { background: #ED2939; }

/* ─── STATS STRIP ───────────────────────────────────────────── */
.stats-strip .wp-block-group { padding: 0 2rem; max-width: 1200px; margin: 0 auto; gap: 1rem; }
.stat-item { white-space: nowrap; }

/* ─── COURSE CARDS ──────────────────────────────────────────── */
.course-cards .wp-block-column { transition: transform var(--pp-transition); }
.course-cards .wp-block-column:hover { transform: translateY(-3px); }

/* ─── CONTACT FORM ──────────────────────────────────────────── */
.pp-form { display: flex; flex-direction: column; gap: 1.25rem; }
.pp-field { display: flex; flex-direction: column; gap: 0.4rem; }
.pp-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pp-text);
}
.pp-field input[type="text"],
.pp-field input[type="email"],
.pp-field select,
.pp-field textarea {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 0;
  font-family: var(--pp-sans);
  font-size: 0.9rem;
  color: var(--pp-text);
  background: #fff;
  transition: border-color var(--pp-transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.pp-field input:focus,
.pp-field select:focus,
.pp-field textarea:focus { border-color: var(--pp-gold); box-shadow: 0 0 0 2px rgba(201,168,76,0.15); }
.pp-field textarea { resize: vertical; min-height: 120px; }

/* ─── SCHEDULE TABLE ────────────────────────────────────────── */
.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.schedule-table th {
  background: var(--pp-navy);
  color: var(--pp-gold);
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.schedule-table td { padding: 0.85rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.07); }
.schedule-table tr:nth-child(even) td { background: rgba(201,168,76,0.04); }
.schedule-table tr:hover td { background: rgba(201,168,76,0.08); }

/* ─── DETAILS / ACCORDION ───────────────────────────────────── */
details.wp-block-details {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 0.85rem 0;
}
details summary {
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--pp-gold);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--pp-transition);
}
details[open] summary::after { content: '−'; }
details p { padding-top: 0.75rem; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer { padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; gap: 3rem; }
.footer-brand { flex: 0 0 260px; }
.footer-logo { font-family: var(--pp-serif); font-size: 1.6rem; color: #FAF8F2; }
.footer-links a, .footer-info a { color: rgba(250,248,242,0.75); transition: color var(--pp-transition); }
.footer-links a:hover, .footer-info a:hover { color: var(--pp-gold); }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }

/* ─── PAGE HERO ─────────────────────────────────────────────── */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 35%;
  background: linear-gradient(135deg, transparent 0%, rgba(201,168,76,0.04) 100%);
  pointer-events: none;
}

/* ─── CREDENTIALS BOX ───────────────────────────────────────── */
.credentials-box ul { list-style: none; padding: 0; }
.credentials-box li { padding: 0.35rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.875rem; }
.credentials-box li:last-child { border-bottom: none; }

/* ─── REASON ITEMS ──────────────────────────────────────────── */
.reason-item { transition: transform var(--pp-transition); }
.reason-item:hover { transform: translateX(4px); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { padding: 0.9rem 1.25rem; }
  .stats-strip .wp-block-group { flex-direction: column; gap: 0.5rem; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-brand { flex: none; }
  .schedule-table { overflow-x: auto; display: block; }
  .hero-section { padding: 4rem 1.5rem 3rem !important; }
  .course-cards .wp-block-columns { flex-direction: column; }
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-section h1,
.hero-section p,
.hero-section .wp-block-buttons {
  animation: fadeUp 0.7s ease both;
}
.hero-section h1 { animation-delay: 0.1s; }
.hero-section p  { animation-delay: 0.25s; }
.hero-section .wp-block-buttons { animation-delay: 0.4s; }

/* ─── WORDPRESS ALIGNMENT ───────────────────────────────────── */
.wp-block-group.alignfull { padding-left: max(2rem, env(safe-area-inset-left)); padding-right: max(2rem, env(safe-area-inset-right)); }
.is-layout-constrained > .alignwide { max-width: var(--wp--style--global--wide-size); }
