/* themes_mobile — mobile-first, bottom tab bar */

:root {
  --mob-bg: #f4f1eb;
  --mob-surface: #ebe6dc;
  --mob-ink: #2c2a26;
  --mob-muted: #6b6560;
  --mob-accent: #5c7a6e;
  --mob-accent-dark: #3d5248;
  --mob-card: #fffdf8;
  --mob-tab-h: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  --mob-inner-max: 32rem;
}

.mob-body {
  margin: 0;
  background: var(--mob-bg);
  color: var(--mob-ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

.mob-flash {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mob-main {
  padding-bottom: var(--mob-tab-h);
  min-height: 100dvh;
}

.mob-inner {
  max-width: var(--mob-inner-max);
}

.mob-h2,
.mob-hero-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
}

.mob-h2 {
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.mob-h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.mob-section {
  scroll-margin-bottom: var(--mob-tab-h);
}

.mob-pad {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.mob-surface {
  background: var(--mob-surface);
}

.mob-hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-margin-bottom: var(--mob-tab-h);
}

.mob-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.mob-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 42, 38, 0.55) 0%,
    rgba(44, 42, 38, 0.75) 100%
  );
}

.mob-hero-content {
  position: relative;
  z-index: 1;
  max-width: 24rem;
  margin: 0 auto;
}

.mob-hero-tag {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  opacity: 0.95;
}

.mob-hero-name {
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1.15;
}

.mob-hero-to {
  font-size: 0.95rem;
  opacity: 0.92;
}

.mob-hero-lead {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.95;
}

.mob-countdown {
  max-width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mob-timer {
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.mob-btn-hero {
  background: #fffdf8;
  color: var(--mob-accent-dark) !important;
  font-weight: 600;
  border: 0;
  min-height: 3rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.mob-lead {
  font-size: 1.05rem;
  color: var(--mob-ink);
  line-height: 1.55;
}

.mob-text {
  color: var(--mob-muted);
  line-height: 1.65;
}

.mob-muted {
  color: var(--mob-muted);
}

.mob-accent {
  color: var(--mob-accent-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.mob-address {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mob-ink);
}

.mob-photo-wrap {
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--mob-accent), #8fb3a3);
}

.mob-photo {
  display: block;
  width: 11.5rem;
  height: 11.5rem;
  object-fit: cover;
  border: 3px solid var(--mob-bg);
}

.mob-btn-primary {
  background: var(--mob-accent);
  color: #fff !important;
  font-weight: 600;
  border: 0;
  min-height: 2.75rem;
}

.mob-btn-primary--location {
  background: linear-gradient(135deg, var(--mob-accent), #7ea392);
  box-shadow: 0 8px 18px rgba(92, 122, 110, 0.3);
}

.mob-btn-primary--location:hover,
.mob-btn-primary--location:focus {
  background: linear-gradient(135deg, #4f6a5f, var(--mob-accent));
}

.mob-btn-primary:active {
  background: var(--mob-accent-dark);
}

.mob-stack {
  display: flex;
  flex-direction: column;
}

.mob-card {
  background: var(--mob-card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(44, 42, 38, 0.08);
  box-shadow: 0 2px 12px rgba(44, 42, 38, 0.06);
}

.mob-card--location {
  border-color: rgba(92, 122, 110, 0.25);
  box-shadow: 0 8px 24px rgba(92, 122, 110, 0.12);
}

.mob-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(44, 42, 38, 0.1);
}

.mob-card-title {
  padding: 0.65rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mob-accent-dark);
  background: rgba(92, 122, 110, 0.1);
  border-bottom: 1px solid rgba(44, 42, 38, 0.06);
}

.mob-card-title--event {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  background: linear-gradient(90deg, rgba(92, 122, 110, 0.16), rgba(92, 122, 110, 0.06));
}

.mob-event-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mob-accent);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(92, 122, 110, 0.35);
}

.mob-event-icon i {
  font-size: 0.9rem;
  line-height: 1;
}

.mob-card-body {
  padding: 1.25rem 1rem;
}

.mob-card-body--location {
  background: linear-gradient(180deg, rgba(92, 122, 110, 0.05), rgba(92, 122, 110, 0));
}

.mob-event-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.55;
}

.mob-event-line strong {
  color: var(--mob-accent-dark);
}

.mob-meta-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(92, 122, 110, 0.12);
  color: var(--mob-accent);
  flex-shrink: 0;
  margin-top: 0.08rem;
}

.mob-meta-icon i {
  font-size: 0.72rem;
  line-height: 1;
}

.mob-event-copy {
  color: var(--mob-ink);
  line-height: 1.65;
}

.mob-lakon {
  color: var(--mob-accent-dark);
  font-style: italic;
  font-weight: 600;
}

.mob-event-date {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--mob-accent-dark);
}

.mob-card-foot {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--mob-muted);
  border-top: 1px solid rgba(44, 42, 38, 0.06);
  background: rgba(244, 241, 235, 0.5);
}

.mob-card-icon {
  font-size: 1.35rem;
  color: var(--mob-accent);
}

.mob-card-text {
  font-size: 0.88rem;
  display: block;
  line-height: 1.35;
}

.mob-story-card {
  background: var(--mob-card);
  border-radius: 1rem;
  padding: 1.25rem 1.15rem;
  border-left: 4px solid var(--mob-accent);
  box-shadow: 0 2px 10px rgba(44, 42, 38, 0.05);
}

.mob-story-year {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mob-accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.mob-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 400px) {
  .mob-gallery-grid {
    gap: 0.85rem;
  }
}

.mob-gallery-cell {
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--mob-card);
  border: 1px solid rgba(44, 42, 38, 0.06);
}

.mob-gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.mob-rsvp-card {
  background: var(--mob-card);
  border-radius: 1.15rem;
  padding: 1.35rem 1.15rem;
  border: 1px solid rgba(44, 42, 38, 0.08);
  box-shadow: 0 4px 20px rgba(44, 42, 38, 0.07);
}

.mob-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mob-muted);
  margin-bottom: 0.35rem;
}

.mob-field {
  min-height: 3rem;
  border-radius: 0.75rem !important;
  border: 1px solid rgba(44, 42, 38, 0.12) !important;
  padding: 0.65rem 1rem !important;
  font-size: 1rem !important;
}

.mob-field:focus {
  border-color: var(--mob-accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(92, 122, 110, 0.2) !important;
}

textarea.mob-field {
  min-height: 7rem;
}

.mob-btn-submit {
  background: var(--mob-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  min-height: 3.25rem;
}

.mob-btn-submit:active {
  background: var(--mob-accent-dark);
}

.mob-footer {
  border-top: 1px solid rgba(44, 42, 38, 0.08);
}

.mob-supporter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  align-items: stretch;
  gap: 0.55rem;
  row-gap: 0.65rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.mob-supporter-card {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 4.25rem;
  background: var(--mob-card);
  border: 1px solid rgba(44, 42, 38, 0.08);
  border-radius: 0.8rem;
  padding: 0.5rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 10px rgba(44, 42, 38, 0.05);
}

.mob-supporter-logo {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1px solid rgba(44, 42, 38, 0.08);
}

.mob-supporter-initial {
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  color: var(--mob-accent-dark);
  word-break: break-word;
}

/* Bottom tab bar */
.mob-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(44, 42, 38, 0.1);
  box-shadow: 0 -4px 24px rgba(44, 42, 38, 0.08);
}

.mob-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.25rem 0.15rem;
  text-decoration: none;
  color: var(--mob-muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0.65rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.mob-tab i {
  font-size: 1.35rem;
  line-height: 1;
}

.mob-tab span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 1px;
}

.mob-tab:active {
  background: rgba(92, 122, 110, 0.12);
}

.mob-tab.is-active {
  color: var(--mob-accent-dark);
}

.mob-tab.is-active i {
  color: var(--mob-accent);
}

/* Desktop: narrow “phone” column */
@media (min-width: 768px) {
  .mob-body {
    background: linear-gradient(160deg, #dfe8e3 0%, var(--mob-bg) 45%);
  }

  .mob-main {
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px rgba(44, 42, 38, 0.06), 0 12px 48px rgba(44, 42, 38, 0.12);
    min-height: 100dvh;
  }

  .mob-tabbar {
    max-width: 420px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem 1rem 0 0;
  }
}
