@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Geist:wght@100..900&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
    --darkGray: linear-gradient(180deg, #3a3b3f 0%, #1f2023 100%);
    --lightGray: #5e616e;
    --appleGray: #a3a5b0;
    --spaceGray: #2c2c2e;
    --mutedBlack: #1b3139;

    --offWhite: #dde2ee;
    --darkWhite: #f9f9fb;

    --appleBlue: #2f7aff;
    --babyBlue: #4d96ff;
    --appleGreen: #4bd963;

    --sectionSpacing: 12rem;
    --contentSpacing: 2rem;
}

body {
    font-family: 'Marcellus', serif;
    margin: 0;
}

body.modal-open {
  position: fixed;
  overflow-y: scroll;
  width: 100%;
}

/***************************** 
 *** Custom text gradients ***
 *****************************/
.darkTextGradient {
  background: var(--darkGray);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}

.darkGradientBtn {
  background: var(--darkGray);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 300;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.darkGradientBtn:hover {
  background: linear-gradient(180deg, #4a4b4f 0%, #2a2b2e 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25), 0 6px 14px rgba(0,0,0,0.25);
}


/******************
**** Components ***
******************/
.impact_line {
  display: block;
  font-family: "DM Sans", sans-serif !important;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0rem 0 1rem 0;
  font-size: clamp(1.8rem, 2.1vw + 1rem, 3rem) !important;
  color: var(--mutedBlack);
}

.impact_helper {
  margin: 0 0 1rem 0;
  font-weight: 400;
  color: var(--babyBlue); 
}

.sub_impact_line {
  margin: 0;
  font-weight: 300;
  color: var(--lightGray);
  font-size: 17px;
}

/* ===== Email Modal ===== */
.email-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.email-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.email-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
}

.email-modal__card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 3.2rem 2.4rem 2.4rem;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  transform: translateY(14px);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}

.email-modal.is-open .email-modal__card {
  transform: translateY(0);
}

.email-modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: #f0f0f4;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: "DM Sans", sans-serif;
}

.email-modal__close:hover { background: #e2e2e8; color: #111; }

/* Back button — visible only on step 2 */
.email-modal__back {
  display: none;
  position: absolute;
  top: 1.1rem;
  left: 1.2rem;
  align-items: center;
  gap: 0.35rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  background: #f0f0f4;
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.75rem 0.35rem 0.55rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.email-modal__back:hover { background: #e2e2e8; color: #111; }
.email-modal__card.is-step-2 .email-modal__back { display: flex; }

/* Step system */
.email-modal__step-2 { display: none; }

.email-modal__card.is-step-2 .email-modal__step-1 { display: none; }
.email-modal__card.is-step-2 .email-modal__step-2 {
  display: block;
  animation: mf-step-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: 2rem;
}

@keyframes mf-step-in {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}

.email-modal__header {
  margin-bottom: 1.8rem;
}

.email-modal__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.4rem;
  font-family: "DM Sans", sans-serif;
}

.email-modal__title {
  font-size: 1.55rem;
  font-weight: 300;
  color: #111;
  margin-bottom: 0.4rem;
  font-family: "DM Sans", sans-serif;
}

.email-modal__sub {
  font-size: 0.88rem;
  color: #999;
  line-height: 1.5;
  font-family: "DM Sans", sans-serif;
}

/* Modal form fields */
.email-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.mf-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mf-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  font-family: "DM Sans", sans-serif;
}

.mf-field--error label { color: #e05252; }

.email-modal__form input,
.email-modal__form textarea {
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  color: #111;
  background: #f4f5f9;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: none;
}

.email-modal__form input:focus,
.email-modal__form textarea:focus {
  background: #fff;
  border-color: #c8cfe8;
}

.email-modal__form textarea { min-height: 110px; }

.mf-input--error { border-color: #e05252 !important; background: #fff8f8 !important; }

.mf-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mf-svc-btn {
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  background: #f4f5f9;
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mf-svc-btn:hover { background: #e4e8f4; color: #111; }
.mf-svc-btn.is-active { background: #111; color: #fff; border-color: #111; }
.mf-field--error .mf-svc-btn:not(.is-active) { border-color: #e05252; }

.mf-generate-btn {
  align-self: center;
  margin-top: 0.2rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.8rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.mf-generate-btn:hover { opacity: 0.82; transform: translateY(-1px); }

@keyframes mf-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.mf-shake { animation: mf-shake 0.4s ease; }

/* Modal output — lives in step 2, always visible there */
.email-modal__output {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #111;
  border-radius: 14px;
  padding: 1.5rem;
}

.mf-output-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.mf-output-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  font-family: "DM Sans", sans-serif;
}

.mf-output-actions { display: flex; align-items: center; gap: 0.7rem; }

.mf-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #888;
  background: rgba(255,255,255,0.07);
  border: none;
  border-radius: 7px;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.mf-copy-btn:hover { color: #fff; background: rgba(255,255,255,0.12); }

.mf-mailto-btn {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  font-family: "DM Sans", sans-serif;
  transition: opacity 0.15s;
}

.mf-mailto-btn:hover { opacity: 1; }

.mf-output-field { display: flex; flex-direction: column; gap: 0.35rem; }

.mf-output-field-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
  font-family: "DM Sans", sans-serif;
}

.mf-output-val {
  font-size: 0.86rem;
  color: #ccc;
  line-height: 1.6;
  font-family: "DM Sans", sans-serif;
  white-space: pre-wrap;
}

.mf-output-divider { height: 1px; background: rgba(255,255,255,0.07); }

/* ===== Availability Widget ===== */
.avail-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.avail-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.55rem 1.1rem 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
  overflow: hidden;
  position: relative;
}

@keyframes pill-shimmer {
  0%, 65%  { transform: translateX(-140%) skewX(-20deg); }
  82%      { transform: translateX(320%)  skewX(-20deg); }
  100%     { transform: translateX(-140%) skewX(-20deg); }
}

.avail-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-140%) skewX(-20deg);
  animation: pill-shimmer 5s ease-in-out 2s infinite;
}

.avail-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.38);
}

.avail-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.8); }
}

.avail-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  width: 272px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.16);
  display: none;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #f0f0f0;
}

.avail-card.is-open {
  display: flex;
  animation: avail-in 0.22s ease;
}

@keyframes avail-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.avail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avail-card-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  font-family: "DM Sans", sans-serif;
}

.avail-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
  font-family: "DM Sans", sans-serif;
}

.avail-close:hover { color: #444; }

.avail-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avail-status-dot {
  width: 9px;
  height: 9px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.avail-status-label {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
  font-family: "DM Sans", sans-serif;
}

.avail-next {
  font-size: 0.8rem;
  color: #999;
  font-family: "DM Sans", sans-serif;
  margin-top: 0.35rem;
}

.avail-divider {
  height: 1px;
  background: #f0f0f0;
}

.avail-why {
  font-size: 0.84rem;
  color: #555;
  line-height: 1.58;
  font-family: "DM Sans", sans-serif;
}

.avail-cta-btn {
  display: block;
  text-align: center;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  transition: opacity 0.2s ease;
}

.avail-cta-btn:hover { opacity: 0.78; }

/* ===== Scroll-triggered fade-in-up ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-animate--visible {
  opacity: 1;
  transform: translateY(0);
}