/*
Theme Name: Four Elements Jiu-Jitsu
Theme URI: https://fourelementsjj.com
Author: Four Elements Jiu-Jitsu Academy
Description: Holding page for Four Elements Jiu-Jitsu Academy in Morristown, NJ.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Text Domain: four-elements
*/

:root {
  --paper: #ffffff;
  --cream: #f6f6f6;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --navy: #1b2a41;
  --deep: #111111;
  --mist: #8a8a8a;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }

.notice {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}
.brand {
  display: flex;
  justify-content: center;
  padding: 28px 16px;
}
.brand img { height: 128px; width: auto; max-width: min(100%, 540px); }
.hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center 58%; }

.copy { text-align: center; padding: 48px 20px 56px; }
.kicker { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin: 0; }
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 16px auto 0;
  max-width: 40rem;
}
.lede { max-width: 32rem; margin: 20px auto 0; color: var(--muted); line-height: 1.6; font-size: 16px; }

.trial {
  display: flex;
  flex-direction: column;
  max-width: 36rem;
  margin: 32px auto 0;
  background: var(--navy);
  color: var(--paper);
  border-radius: 6px;
  text-decoration: none;
}
.trial-top {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.trial hr { border: 0; border-top: 1px solid rgba(255,255,255,0.25); margin: 0 24px; }
.trial-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 12px 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.elements { background: var(--cream); padding: 48px 16px; }
.elements h2 {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 32px;
}
.elements ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 56rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 0;
}
.elements li { text-align: center; padding: 0 12px; }
.elements img { height: 64px; width: 64px; object-fit: contain; margin: 0 auto; }
.elements strong {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.elements p { margin: 8px auto 0; max-width: 12rem; font-size: 12px; line-height: 1.4; color: var(--muted); font-weight: 400; }

.programs { max-width: 64rem; margin: 0 auto; padding: 48px 20px 56px; }
.programs h2 {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 32px;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.card img { width: 100%; height: 192px; object-fit: cover; }
.card div { padding: 20px; }
.card h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; text-transform: uppercase; }
.card p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.card a {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.card a:hover { text-decoration: underline; }

.site-footer {
  background: var(--deep);
  color: var(--paper);
  padding: 28px 20px;
}
.site-footer .wrap {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: var(--paper);
  text-align: left;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.contact-btn .icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-btn small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.contact-btn span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.meta { font-size: 13px; color: rgba(255,255,255,0.85); }
.meta p { margin: 0 0 6px; display: flex; align-items: flex-start; gap: 8px; }
.meta a { color: var(--paper); text-decoration: none; }
.meta a:hover { text-decoration: underline; }

.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.55);
  z-index: 80;
  display: none;
}
.dialog-backdrop.is-open { display: block; }
.dialog {
  position: fixed;
  z-index: 90;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100% - 32px));
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 28px;
  display: none;
}
.dialog.is-open { display: block; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-head p { margin: 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.dialog-head h2 { margin: 8px 0 0; font-family: var(--display); font-size: 32px; font-weight: 500; }
.dialog-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.dialog-copy { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.dialog ul { list-style: none; margin: 24px 0 0; padding: 0; }
.dialog li { margin: 0 0 16px; }
.dialog li small { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.dialog li a { color: var(--ink); font-size: 16px; font-weight: 500; }

@media (min-width: 640px) {
  .brand img { height: 160px; max-width: 720px; }
  .elements ul { grid-template-columns: repeat(4, 1fr); }
  .elements li + li { border-left: 1px solid var(--line); }
  .card { flex-direction: row; }
  .card img { width: 48%; height: auto; }
  .card div { padding: 32px; }
  .card h3 { font-size: 26px; }
  .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
}

