/* Local Fonts (self-hosted, latin subset) */
@font-face {
    font-family: 'Colitez Serif';
    src: url('../fonts/ColitezSerif-Regular.woff2') format('woff2'),
         url('../fonts/ColitezSerif-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Variable-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Variable-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* CSS Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --bg-body: #A58C7A;
    --bg-container: #B89F8D;
    --text-color: #000000;
    --font-sans: 'Montserrat', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --font-colitez: 'Colitez Serif', serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: var(--font-sans);
    overflow-x: hidden;
}
.app-container {
    background-color: var(--bg-container);
    width: 100%;
    max-width: 890px;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeUpIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(24px);
}
.app-container-full {
    width: 100%;
    max-width: 890px;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeUpIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    flex-direction: column;
    justify-content: center;
    transform: translateY(24px);
}
@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-box{
  position: relative;
  padding-top: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
   justify-content: center;
}
.logo-group {
    font-size: inherit;
    font-weight: 400;
    text-align: center;
    padding: 40px 0;
    position: relative;
    z-index: 40;
}
.logo-group-full {
    font-size: inherit;
    font-weight: 400;
    text-align: center;
    padding: 40px 0;
    position: relative;
    z-index: 40;
}

.logo-the,
.logo-show {
    display: block;
}

.logo-the {
    font-family: var(--font-sans);
    font-size: 3.5rem;
    position: relative;
    z-index: 2;
    line-height: 1;
}
.logo-svg {
    max-width: 280px;
    width:100%;
    margin: auto;
}
.logo-show {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.5em;
    margin-top: 6px;
    font-weight: 600;
}
/* Hero Image Section */
.hero-image {
    width: 100%;
    position: absolute;
    height:100%;
}
.hero-overlay {
    width: 100%;
    background:#A58C7A;
    position: absolute;
    inset:0;
    height:100%;
    z-index: 20;
    opacity:.8;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Intro */
.intro {
    padding: 40px 25px 0;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.intro-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.intro-title .star {
    display: inline-block;
    font-size: 0.6em;
    line-height: 1;
    vertical-align: 0.25em;
}

.intro-text {
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: var(--font-sans);
    margin-top: .5rem;
    letter-spacing: -0.02em;
}

/* Event Details */
.event-details {
    margin: 10px 0;
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.event-date {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 1px;
}

.event-location {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    line-height: 1.5;
    margin-top: 1rem;
}

.event-city {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 1px;
    margin-top: 1rem;
}

/* RSVP Form (Mailchimp) — styled after aniyeby.com forms */
.rsvp {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 25px 40px;
    font-family: var(--font-sans);
}
.rsvp-intro {
    text-align: center;
    margin-bottom: 30px;
}

/* Floating label field */
.field {
    position: relative;
    margin-bottom: 16px;
}

.field-input {
    display: block;
    width: 100%;
    padding: 16px;
    font-family: inherit;
    font-size: 1rem; /* >= 16px prevents iOS zoom on focus */
    line-height: 1.25;
    color: var(--text-color);
    background: transparent;
    border: 1px solid var(--text-color);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease;
}

.field-input::placeholder {
    color: transparent;
}

.field-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.45);
}

.field-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px;
    font-size: 0.75rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-color);
    background: var(--bg-container);
    pointer-events: none;
    transform-origin: top left;
    transform: translateY(-24px) scale(0.85);
    transition: transform 0.2s ease, color 0.2s ease;
}

.field-input:placeholder-shown:not(:focus) + .field-label {
    transform: translateY(2px) scale(1);
    color: rgba(0, 0, 0, 0.5);
}

/* Select: same box as inputs, custom chevron */
.field-select {
    padding-right: 44px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.field-input[aria-invalid="true"] {
    border-color: #8B0000;
}

/* Checkbox */
.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
    cursor: pointer;
}

.check-input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid var(--text-color);
    border-radius: 0;
    background: transparent no-repeat center / 0;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 16 16" fill="%23000" xmlns="http://www.w3.org/2000/svg"><path d="M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z"/></svg>');
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background-size 0.15s ease;
}

.check-input:checked {
    background-size: 100%;
}

.check-input:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
}

.check-text {
    font-size: 0.75rem;
    line-height: 1.4;
}

.check-text a {
    color: inherit;
}

/* Submit button */
.rsvp-button {
    display: block;
    width: 100%;
    padding: 16px 32px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 0;
    cursor: pointer;
    transition: font-weight 0.2s ease, background 0.2s ease;
}

.rsvp-button:hover {
    font-weight: 500;
    background: linear-gradient(135deg, #000, rgba(0, 0, 0, 0.7));
}

.rsvp-button:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 3px;
}

.rsvp-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.rsvp-status {
    min-height: 1.4em;
    margin-top: 12px;
    font-size: 0.8rem;
    text-align: center;
}

/* Success state */
.rsvp-success {
    text-align: center;
    padding: 20px 0;
}

.rsvp-success:focus {
    outline: none;
}

.rsvp-success-title {
    font-family: var(--font-sans);
    font-size: 2rem;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 600;
}

.rsvp-success-text {
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Mailchimp anti-bot field */
.honeypot {
    position: absolute;
    left: -5000px;
}

/* Screen-reader only labels */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive constraints for true mobile devices */
@media screen and (max-width: 480px) {
    body {
        background-color: var(--bg-container); /* Match container on small screens */
    }
    .app-container {
        animation: none; /* Reduce heavy animations on mobile load */
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
}




/* added by lance */

.intro-subtitle {
    display: inline-block;
    background-color: #C8102E;
    color: #FFFFFF;
    font-weight: 700;
    font-size: clamp(0.62rem, 2.3vw, 0.78rem);
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 6px 12px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.rsvp-button {
    font-size: clamp(0.62rem, 2.5vw, 0.875rem);
    padding: 16px 12px;
    white-space: nowrap;
}