/* Earnhardt Ford 75th Anniversary — Save the Date front page styles */

.efa-page { overflow-x: hidden; background: #1c130c; }
.efa-page * { box-sizing: border-box; }

/* Neutralize the theme's global content padding — every section below
   already defines its own padding, matching the original hand-coded design. */
.efa-page.has-global-padding,
.efa-page .has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.efa-page a { color: #7a3f1c; text-decoration: none; }
.efa-page a:hover { color: #52270f; }

/* The block editor's per-block custom-CSS attribute (background/font on the
   biography column) isn't rendered by core WP without the Gutenberg plugin,
   so it silently drops — restore it here or the column falls through to the
   dark page background with dark text (invisible). */
.efa-page .has-custom-css {
  background: #f7ebe3;
  font-family: Caveat, cursive;
  color: #3a2010;
}
.efa-page .has-custom-css p { color: #3a2010; }

@keyframes efa-drift {
  0% { transform: translateY(0) rotate(var(--r,0deg)); }
  50% { transform: translateY(-8px) rotate(var(--r,0deg)); }
  100% { transform: translateY(0) rotate(var(--r,0deg)); }
}

/* ---------- Hero ---------- */
.efa-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px,5vw,72px);
  background-color: #9a5a2e;
  background-image:
    radial-gradient(120% 85% at 18% 8%, rgba(255,224,186,.20), transparent 58%),
    radial-gradient(105% 95% at 86% 26%, rgba(84,42,16,.42), transparent 55%),
    radial-gradient(150% 130% at 50% 125%, rgba(40,20,8,.62), transparent 60%),
    radial-gradient(85% 65% at 74% 82%, rgba(126,74,38,.45), transparent 52%);
  color: #f6eddd;
  text-align: center;
}
.efa-hero::before {
  content: "";
  position: absolute;
  inset: clamp(16px,2.4vw,30px);
  border: 2px dashed rgba(244,234,216,.72);
  border-radius: 6px;
  pointer-events: none;
}
.efa-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 920px; margin: 0 auto; }

.efa-eyebrow {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  font-size: clamp(11px,1.15vw,15px);
  color: rgba(244,234,216,.86);
  margin: 0 0 clamp(14px,2.2vw,26px);
}

.efa-hero-title { line-height: .82; margin-bottom: clamp(6px,1.4vw,16px); }
.efa-hero-title .efa-script {
  display: block;
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(64px,12vw,160px);
  color: #f6eddd;
  text-shadow: 0 3px 18px rgba(0,0,0,.28);
  margin-bottom: -.14em;
}
.efa-hero-title .efa-serif-caps {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(42px,9vw,124px);
  letter-spacing: .02em;
  color: #f6eddd;
}

.efa-logo {
  width: clamp(210px,28vw,320px);
  height: clamp(92px,12.6vw,145px);
  margin: clamp(14px,2.2vw,26px) auto clamp(10px,1.6vw,18px) !important;
}
.efa-logo img { width: 100%; height: 100%; object-fit: contain; }

.efa-tagline {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(30px,5.4vw,64px);
  line-height: 1;
  color: #1c130c;
  margin: 0 0 clamp(22px,3.4vw,40px);
}

.efa-when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px,1.6vw,20px);
  font-family: Oswald, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: clamp(13px,1.5vw,20px);
  color: #f6eddd;
  margin-bottom: clamp(26px,3.6vw,42px);
  list-style: none;
  padding: 0;
}
.efa-when li::after { content: "\2022"; margin-left: clamp(10px,1.6vw,20px); opacity: .5; }
.efa-when li:last-child::after { content: none; }

.efa-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.efa-btn .wp-block-button__link,
a.efa-btn {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: clamp(13px,1.4vw,17px) !important;
  background: #f4ead8 !important;
  color: #3a2010 !important;
  padding: 16px 34px !important;
  border-radius: 2px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  display: inline-block;
  border: none;
}

/* countdown */
.efa-countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px,1.4vw,18px);
  margin-top: clamp(30px,4.4vw,52px);
}
.efa-countdown-cell {
  min-width: clamp(66px,8vw,96px);
  padding: clamp(12px,1.6vw,18px) clamp(8px,1vw,14px);
  background: rgba(28,19,12,.32);
  border: 1px solid rgba(244,234,216,.28);
  border-radius: 4px;
  backdrop-filter: blur(2px);
}
.efa-countdown-num {
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: clamp(28px,4vw,48px);
  line-height: 1;
  color: #f6eddd;
}
.efa-countdown-label {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: clamp(9px,1vw,12px);
  color: rgba(244,234,216,.7);
  margin-top: 6px;
}
.efa-countdown-caption {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: clamp(9px,1vw,12px);
  color: rgba(244,234,216,.6);
  margin: clamp(14px,2vw,20px) 0 0;
}

/* ---------- Hero v2 (Save the Date flyer mockup match) ---------- */
.efa-hero-v2 {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px,5vw,72px);
  background-color: #5a3620;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    radial-gradient(120% 90% at 12% 0%, rgba(160,112,74,.30), transparent 55%),
    radial-gradient(110% 100% at 100% 6%, rgba(35,18,9,.55), transparent 55%),
    radial-gradient(140% 120% at 50% 118%, rgba(20,10,5,.68), transparent 60%);
  background-size: 140px 140px, auto, auto, auto;
  background-blend-mode: overlay, normal, normal, normal;
  color: #f4ead8;
  text-align: center;
}
.efa-hero-frame {
  position: absolute;
  inset: clamp(16px,2.6vw,32px);
  border: 4px dotted rgba(244,234,216,.85);
  border-radius: 4px;
  pointer-events: none;
}
.efa-star {
  position: absolute;
  color: #f4ead8;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}
.efa-hero-inner-2 { position: relative; z-index: 2; width: 100%; max-width: 640px; margin: 0 auto; }

.efa-hero-logo-2 {
  width: clamp(170px,20vw,230px);
  margin: 0 auto clamp(10px,1.4vw,14px);
}
.efa-hero-logo-2 img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.efa-title2 {
  margin: 0 0 clamp(18px,2.6vw,30px);
  line-height: 1;
}
.efa-title2-caps {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(34px,6vw,52px);
  color: #f6eddd;
}
.efa-title2-script {
  display: block;
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(56px,9vw,96px);
  color: #f6eddd;
  margin-top: -.18em;
}

.efa-cta-row-2 { margin: 0 0 clamp(30px,4.4vw,48px); }
a.efa-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f4ead8;
  color: #1c130c;
  border-radius: 999px;
  padding: clamp(12px,1.6vw,16px) clamp(24px,3vw,32px);
  box-shadow: 0 10px 26px rgba(0,0,0,.32);
  font-family: Oswald, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(13px,1.5vw,17px);
  line-height: 1.3;
  text-align: left;
}
.efa-cta-pill-icon { width: clamp(20px,2.2vw,26px); height: clamp(20px,2.2vw,26px); flex-shrink: 0; color: #1c130c; }

.efa-info-rows {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(14px,2.6vw,28px) clamp(10px,2vw,20px);
  margin: 0 0 clamp(30px,4.2vw,44px);
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.efa-info-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px,1.2vw,12px);
  flex: 0 1 130px;
}
.efa-info-icon {
  flex-shrink: 0;
  width: clamp(40px,5vw,52px);
  height: clamp(40px,5vw,52px);
  color: #f4ead8;
}
.efa-info-icon svg { width: 100%; height: 100%; display: block; }
.efa-info-text {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(11px,1.5vw,14px);
  line-height: 1.4;
  color: #f4ead8;
}

.efa-body-copy-2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(17px,2vw,20px);
  line-height: 1.55;
  color: #f6eddd;
  max-width: 460px;
  margin: 0 auto clamp(26px,3.6vw,38px);
}
.efa-body-copy-2 strong { font-weight: 900; }

.efa-tagline2 {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(20px, calc(7.4vw - 3px), 44px);
  line-height: 1;
  color: #f6eddd;
  margin: 0 0 clamp(30px,4.2vw,44px);
  white-space: nowrap;
  transform: scaleX(1.06);
  transform-origin: center;
}

.efa-countdown-2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px,1.4vw,18px);
}
.efa-countdown-2 .efa-countdown-cell {
  min-width: clamp(60px,7vw,84px);
  padding: clamp(10px,1.4vw,16px) clamp(8px,1vw,12px);
  background: rgba(244,234,216,.1);
  border: 1px solid rgba(244,234,216,.32);
  border-radius: 4px;
}
.efa-countdown-caption-2 {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: clamp(9px,1vw,12px);
  color: rgba(244,234,216,.65);
  margin: clamp(14px,2vw,18px) 0 0;
}
.efa-countdown-caption-2 a { color: rgba(244,234,216,.85); text-decoration: underline; text-underline-offset: 3px; }
.efa-countdown-caption-2 a:hover { color: #f4ead8; }

/* ---------- Invitation ---------- */
.efa-invitation {
  background: #f4ead8;
  color: #3a2010;
  padding: clamp(56px,8vw,120px) clamp(24px,5vw,80px);
}
.efa-invitation-grid {
  max-width: 1080px !important;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: clamp(32px,5vw,64px);
  align-items: center;
}
.efa-invitation h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(30px,4.4vw,52px);
  line-height: 1.06;
  margin: 0 0 clamp(20px,3vw,30px);
  color: #2a1708;
}
.efa-invitation-body {
  font-family: Caveat, cursive;
  font-weight: 600;
  font-size: clamp(22px,2.8vw,32px);
  line-height: 1.42;
  color: #4a2b14;
  margin: 0 0 18px;
}
.efa-invitation-sig {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: clamp(22px,2.6vw,30px);
  color: #9a5a2e;
  margin: 6px 0 0;
}
.efa-photo-frame { position: relative; margin: 0 !important; }
.efa-photo-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px dashed rgba(154,90,46,.5);
  border-radius: 8px;
  pointer-events: none;
}
.efa-photo-frame .efa-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(58,32,16,.24);
  margin: 0 !important;
}
.efa-photo-frame .efa-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  margin: 0;
}

/* ---------- Details ---------- */
.efa-details {
  position: relative;
  background-color: #8f5228;
  background-image:
    radial-gradient(120% 90% at 15% 5%, rgba(255,224,186,.16), transparent 55%),
    radial-gradient(130% 120% at 85% 100%, rgba(40,20,8,.58), transparent 60%),
    radial-gradient(90% 70% at 60% 40%, rgba(122,70,34,.4), transparent 55%);
  padding: clamp(56px,8vw,110px) clamp(24px,5vw,80px);
}
.efa-details-inner { max-width: 1040px !important; margin: 0 auto; }
.efa-details-eyebrow {
  text-align: center;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  letter-spacing: .36em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(244,234,216,.8);
  margin: 0 0 10px;
}
.efa-details h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(30px,4.6vw,56px);
  color: #f6eddd;
  margin: 0 0 clamp(38px,5vw,58px);
}
.efa-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: clamp(24px,3.4vw,40px);
}

.efa-calendar-card {
  position: relative;
  background: #f6efe2;
  border-radius: 6px;
  padding: clamp(28px,3.4vw,44px) clamp(24px,3vw,38px) clamp(28px,3.4vw,40px);
  box-shadow: 0 20px 44px rgba(30,17,8,.34);
  color: #2a1708;
}
.efa-calendar-teeth { display: flex; gap: clamp(9px,1.3vw,15px); justify-content: center; margin-top: -42px; margin-bottom: 22px; }
.efa-calendar-teeth span {
  width: clamp(8px,1vw,11px);
  height: clamp(24px,3vw,34px);
  background: #2a1708;
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,.25);
}
.efa-calendar-month {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: clamp(13px,1.5vw,17px);
  text-align: center;
  color: #9a5a2e;
  margin: 0 0 4px;
}
.efa-calendar-day-name {
  font-family: Oswald, sans-serif;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: clamp(14px,1.6vw,18px);
  text-align: center;
  margin: 0 0 6px;
}
.efa-calendar-daynum {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(88px,13vw,150px);
  line-height: .9;
  text-align: center;
  color: #2a1708;
}
.efa-calendar-time {
  font-family: Caveat, cursive;
  font-weight: 700;
  font-size: clamp(30px,4vw,46px);
  text-align: center;
  color: #9a5a2e;
  margin: 8px 0 0;
}

.efa-location-card {
  display: flex;
  flex-direction: column;
  background: #f6efe2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(30,17,8,.34);
  color: #2a1708;
}
.efa-location-map { position: relative; width: 100%; aspect-ratio: 16/9; }
.efa-location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.efa-location-body { padding: clamp(24px,3vw,36px); }
.efa-location-eyebrow {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: clamp(13px,1.5vw,17px);
  color: #9a5a2e;
  margin: 0 0 12px;
}
.efa-location-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(22px,2.6vw,30px);
  line-height: 1.15;
  margin: 0 0 6px;
}
.efa-location-address {
  font-family: Oswald, sans-serif;
  font-weight: 300;
  font-size: clamp(15px,1.7vw,19px);
  line-height: 1.4;
  margin: 0 0 22px;
  color: #4a2b14;
}
.efa-directions-btn .wp-block-button__link,
a.efa-directions-btn {
  display: inline-block;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 14px !important;
  color: #f4ead8 !important;
  background: #9a5a2e !important;
  padding: 13px 26px !important;
  border-radius: 2px !important;
}

/* ---------- Legacy ---------- */
.efa-legacy {
  background: #f4ead8;
  color: #2a1708;
  text-align: center;
  padding: clamp(64px,9vw,130px) clamp(24px,6vw,80px);
}
.efa-legacy-eyebrow {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  font-size: 13px;
  color: #9a5a2e;
  margin: 0 0 clamp(20px,3vw,34px);
}
.efa-legacy-script {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(44px,8vw,104px);
  line-height: 1.02;
  margin: 0 auto clamp(24px,3.4vw,38px);
  max-width: 14ch;
  color: #2a1708;
}
.efa-legacy-body {
  font-family: Caveat, cursive;
  font-weight: 600;
  font-size: clamp(20px,2.6vw,30px);
  line-height: 1.45;
  max-width: 640px;
  margin: 0 auto;
  color: #4a2b14;
}

/* ---------- Footer ---------- */
.efa-footer {
  position: relative;
  background-color: #3a2010;
  background-image: radial-gradient(120% 120% at 50% -20%, rgba(154,90,46,.5), transparent 60%);
  color: #f4ead8;
  padding: clamp(52px,7vw,90px) clamp(24px,5vw,80px) clamp(36px,4vw,54px);
  text-align: center;
}
.efa-footer-script {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(40px,6vw,72px);
  line-height: .9;
  color: #f6eddd;
  margin-bottom: 6px;
}
.efa-footer-when {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: clamp(15px,1.8vw,20px);
  color: #f6eddd;
  margin-bottom: clamp(28px,3.6vw,40px);
}
.efa-footer .efa-btn { margin-bottom: clamp(34px,4.4vw,48px); }
.efa-footer-meta {
  border-top: 1px solid rgba(244,234,216,.22);
  padding-top: clamp(26px,3.4vw,36px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  align-items: center;
  font-family: Oswald, sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  color: rgba(244,234,216,.7);
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.efa-footer-meta li::after { content: "\2022"; margin-left: 28px; opacity: .4; }
.efa-footer-meta li:last-child::after { content: none; }
