/*
Theme Name: GospelFlame
Theme URI: https://gospelflame.org
Description: Minimal white-tone theme for GospelFlame
Version: 1.0.0
Author: Jean-Baptiste
Text Domain: gospelflame
*/

/* ─── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white:      #ffffff;
  --off-white:  #f7f7f5;
  --light-gray: #ebebeb;
  --mid-gray:   #c8c8c8;
  --ink:        #1c1a17;       /* near-black, warm */
  --text:       #1a1a1a;
  --text-muted: #6b6b6b;

  /* Bento Modern direction — magenta + blue */
  --accent:     #ea3d8a;       /* magenta */
  --accent-2:   #3b82f6;       /* blue */
  --accent-soft: #fdeaf3;      /* magenta tint for tiles */

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono:    'DM Mono', 'SFMono-Regular', ui-monospace, monospace;

  --header-h:   64px;
  --sidebar-w:  clamp(200px, 20%, 320px);
  --radius:     6px;
  --radius-lg:  14px;
  --transition: 180ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.site-header__brand {
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-header__brand span {
  color: var(--accent);
}

/* pushes nav to the right */
.site-header__spacer {
  flex: 1;
}

/* ─── Primary nav ───────────────────────────────────────────── */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--text);
  background: var(--off-white);
}

/* "Espace membre" gets a bordered pill treatment */
.primary-nav .menu-espace-membre > a,
.primary-nav li:last-child > a {
  border: 1.5px solid var(--mid-gray);
  color: var(--text);
}

.primary-nav .menu-espace-membre > a:hover,
.primary-nav li:last-child > a:hover {
  border-color: var(--text);
  background: var(--white);
}

/* ─── Page wrapper (flex row) ───────────────────────────────── */
.page-wrapper {
  display: flex;
  flex: 1;               /* fills remaining viewport height */
  align-items: stretch;
}

/* ─── Left sidebar ──────────────────────────────────────────── */
.site-sidebar {
  flex: 0 0 var(--sidebar-w);
  min-width: 200px;
  background: var(--white);
  border-right: 1px solid var(--light-gray);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-sidebar__title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.sidebar-nav a:hover {
  color: var(--text);
  background: var(--off-white);
}

/* ─── Main content ──────────────────────────────────────────── */
.site-main {
  flex: 1;
  min-width: 0;          /* prevents flex blowout */
  padding: 2.5rem 3rem;
}

/* ─── Page content ──────────────────────────────────────────── */
.page-content__header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

.page-content__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-content__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.page-content__body p + p {
  margin-top: 1rem;
}

/* ─── Login gate ─────────────────────────────────────────────── */
.login-gate {
  max-width: 360px;
  margin-top: 1rem;
}

.login-gate__hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

#loginform {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#loginform p {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#loginform label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

#loginform input[type="text"],
#loginform input[type="password"] {
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--mid-gray);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
  border-color: var(--text);
}

#loginform .login-remember {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

#loginform .login-remember label {
  font-weight: 400;
  color: var(--text-muted);
}

#loginform input[type="submit"] {
  align-self: flex-start;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

#loginform input[type="submit"]:hover {
  background: var(--white);
  color: var(--text);
}

/* ─── Member area (logged-in state) ─────────────────────────── */
.member-area__welcome {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.member-area__logout {
  margin-top: 2rem;
  font-size: 0.85rem;
}

.member-area__logout a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.member-area__logout a:hover {
  color: var(--text);
}

/* ─── Footer placeholder ────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  padding: 1.5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Responsive — collapse sidebar on narrow screens ──────── */
@media (max-width: 680px) {
  .page-wrapper {
    flex-direction: column;
  }

  .site-sidebar {
    flex: none;
    min-width: unset;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--light-gray);
    padding: 1rem 1.25rem;
  }

  .site-header {
    padding: 0 1.25rem;
  }

  .site-main {
    padding: 1.5rem 1.25rem;
  }

  .primary-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* ════════════════════════════════════════════════════════════════
   BENTO MODERN  —  landing direction (asymmetric grid, magenta+blue)
   ════════════════════════════════════════════════════════════════ */

/* Display type for headings + brand */
.page-content__title,
.bento-hero__title,
.gf-section__title,
.stat__num {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Brand mark — rotated square flame */
.site-header__mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.5rem;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
  vertical-align: middle;
}
.site-header__brand { display: inline-flex; align-items: center; }

/* ─── Landing wrapper ───────────────────────────────────────── */
.page-wrapper--landing { display: block; }

.gf-landing {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ─── Shared tile primitive ─────────────────────────────────── */
.tile {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
a.tile:hover,
.tile--hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(28,26,23,.10);
}
.tile--accent {
  background: var(--accent-soft);
  border-color: transparent;
}
.tile--photo {
  position: relative;
  overflow: hidden;
  color: var(--white);
  border: 0;
  background:
    linear-gradient(150deg, rgba(28,26,23,.05), rgba(28,26,23,.55)),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  justify-content: flex-end;
}

.tile__lead { font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.tile__sub  { font-size: 0.9rem; color: var(--text-muted); }
.tile--photo .tile__sub { color: rgba(255,255,255,.85); }

/* ─── Pills & buttons ───────────────────────────────────────── */
.pill {
  align-self: flex-start;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pill--dark   { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.tile--photo .pill { color: #fff; border-color: rgba(255,255,255,.6); }

.btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn--fill { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--fill:hover { background: var(--accent-2); border-color: var(--accent-2); }
.tile--photo .btn { border-color: #fff; color: #fff; }

.accent { color: var(--accent); }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Hero bento grid ───────────────────────────────────────── */
.bento-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.9rem;
}
.bento-hero__feature {
  grid-row: 1 / 3;
  min-height: 320px;
  padding: 1.5rem;
}
.bento-hero__title {
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.02;
  margin-top: 0.4rem;
  color: #fff;
}
.bento-hero__next .btn,
.bento-hero__join .btn { align-self: flex-end; margin-top: auto; }

/* ─── Stat row ──────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.stat { align-items: flex-start; gap: 0.1rem; }
.stat__num { font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat span { font-size: 0.82rem; color: var(--text-muted); }
.stat--accent .stat__num { color: var(--accent); }

/* ─── Section heading ───────────────────────────────────────── */
.gf-section { display: flex; flex-direction: column; gap: 0.8rem; }
.gf-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.gf-section__title { font-size: 1.4rem; font-weight: 700; }
.gf-section__note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Listen + newsletter duo ───────────────────────────────── */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.newsletter__form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.newsletter__form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--mid-gray);
  border-radius: 99px;
  font-size: 0.85rem;
  background: var(--white);
  outline: none;
}
.newsletter__form input[type="email"]:focus { border-color: var(--accent); }

/* ─── Landing responsive ────────────────────────────────────── */
@media (max-width: 820px) {
  .bento-hero { grid-template-columns: 1fr; }
  .bento-hero__feature { grid-row: auto; min-height: 240px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
}

/* ─── Inner-page hero (Performances / Join) ─────────────────── */
.gf-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.9rem;
  align-items: stretch;
}
.gf-hero__copy { padding: 0.5rem 0; align-self: center; }
.gf-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0.45rem 0 0.6rem;
}
.gf-hero__lead { color: var(--text-muted); max-width: 46ch; }
.gf-hero__actions { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.gf-hero__aside { min-height: 150px; justify-content: space-between; }
.gf-hero__aside .btn { align-self: flex-end; margin-top: auto; }

/* ─── Show list (2-col bento) ───────────────────────────────── */
.show-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.show-row { min-height: 130px; justify-content: space-between; }
.show-row__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.show-row__price {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.show-row__venue { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.show-row .btn { align-self: flex-start; }

/* Empty state — spans the whole show-list grid */
.empty-state {
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  min-height: 120px;
  border-style: dashed;
  border-color: var(--mid-gray);
}
.empty-state__msg {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

/* ─── At-a-glance tiles ─────────────────────────────────────── */
.glance { align-items: flex-start; gap: 0.35rem; }
.glance b { font-family: var(--font-display); font-size: 1.05rem; }

/* ─── Audition signup form ──────────────────────────────────── */
.audition {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.9rem;
  align-items: start;
}
.audition-form { gap: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--mid-gray);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); }
.field textarea { min-height: 92px; resize: vertical; }
.faq-col { display: flex; flex-direction: column; gap: 0.9rem; }

/* ─── Contact Form 7 — fit the generated markup to the bento form ─ */
.wpcf7-form { display: flex; flex-direction: column; gap: 0.75rem; }
/* CF7 wraps each control in a span — let it fill the field column */
.field .wpcf7-form-control-wrap { display: block; width: 100%; }
/* right-align the submit, matching the static form */
.gf-form-actions { display: flex; justify-content: flex-end; }
/* inline validation tips */
.wpcf7-not-valid-tip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #c0392b;
  margin-top: 0.3rem;
}
.field .wpcf7-not-valid { border-color: #e0b4b4; }
/* response banner under the form */
.wpcf7-response-output {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.5;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  margin: 0.6rem 0 0;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { border-color: #e0b4b4; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--accent); color: var(--accent); }
.wpcf7-spinner { background-color: var(--accent); }

@media (max-width: 820px) {
  .gf-hero { grid-template-columns: 1fr; }
  .show-list { grid-template-columns: 1fr; }
  .audition { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
