/* Mea Culpa font */
@font-face {
    font-family: 'Mea Culpa';
    src: url('fonts/MeaCulpa-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Imperial Script font */
@font-face {
    font-family: 'Imperial Script';
    src: url('fonts/ImperialScript-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Raleway font */
@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

/* Ensure padding & border are included in width */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Imperial Script';
    background-color: #e6f2fb;
    color: #1a1a1a;
    scroll-behavior: smooth;
    overscroll-behavior-x: none; /* prevents horizontal bounce */
}

/* Header / Logo section */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: relative;
    background-color: #fff;
    backdrop-filter: blur(6px);
}

.header-top .left,
.header-top .right {
    font-family: 'Mea Culpa';
    font-size: 4rem;
    color: #0d3b66;
    flex: 1;
    text-align: center;
}

.logo {
    width: 240px;
    height: auto;
    margin: 0 1.2rem;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .header-top {
    flex-direction: column;
    gap: 1rem;
    }

    .header-top .left,
    .header-top .right {
    justify-content: center;
    }

    .logo {
    width: 160px;
    margin: 0;
    }
}

/* --- Navigation bar --- */
nav {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.4rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #0d3b66;
    font-size: 2.8rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #bfa437;
}

/* --- Hamburger menu --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: absolute;
    right: 1.5rem;
    z-index: 1100; /* make sure it stays above nav */
}

.menu-toggle div {
    background-color: #0d3b66;
    height: 1.2px;
    margin: 3px 0;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Active state: transform into X */
.menu-toggle.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active div:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile adjustments */
@media (max-width: 992px) {
    nav {
    height: 2.8rem;
    }

    nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    position: absolute;
    gap: 1.8rem;
    top: 100%;
    left: 0;
    padding-bottom: 1rem;
    display: none;
    max-height: calc(100vh - 5rem);
    }

    nav ul.show {
    display: flex;
    }

    .menu-toggle {
    display: flex;
    }
}

/* --- Sections and layout --- */
section {
    padding: 4.8rem 0.8rem 3.2rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    scroll-margin-top: calc(var(--scroll-margin-top) - 84px);
}

.card {
    background-color: white;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-style: italic;
    padding: 2rem 2rem 2em 2em;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 90%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    scroll-margin-top: calc(var(--scroll-margin-top) + 50px);
}

.card .subtext {
    display: block;
    margin-top: 1rem;
}

h1, h2 {
    color: #0d3b66;
    margin-bottom: 1rem;
    font-weight: 400;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: 1.2rem;
}

p {
    font-size: 1.4rem;
    color: #1a1a1a;
}

a {
    text-decoration: none;
    color: #3b6fb6;
    transition: color 0.3s ease;
}

a:hover {
    color: #bfa437;

}

.timeline {
    list-style: none;
    padding: 0;
    margin: 1.6rem 0 0 0;
    width: 100%;
    text-align: left;
}

.timeline li {
    font-size: 1.4rem;
    padding: 0.8rem 0;
    border-left: 3px solid #bfa437;
    margin-left: 0.8rem;
    padding-left: 1.2rem;
}

/* Bold the items that start with a time */
.timeline li::before {
    content: "";
}

.timeline li.time {
    font-weight: 400;
}

/* Indent continuation items and make them smaller */
.timeline li.continuation {
    font-size: 1em;
    padding-left: 6.4rem;
    padding-top: 0rem;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .timeline li.continuation {
    padding-left: 3.2rem;
    }
}

.poem {
    padding: 0.8rem 0;
    border-left: 3px solid #bfa437;
    text-align: left;
    margin-left: 0.8rem;
    padding-left: 1.2rem;
}

iframe {
    border: none;
    width: 100%;
    height: 240px;
    border-radius: 0.8rem;
    margin-top: 1.2rem;
}

/* --- Registration summary view --- */

.registration-summary {
    font-family: 'Raleway', sans-serif;
    font-style: italic;
    font-weight: 300;
    margin-top: 2rem;
    width: 100%;
}

.summary-text {
    font-size: 1.4rem;
    margin-bottom: 2.4rem;
    color: #1a1a1a;
}

.summary-section {
    margin-bottom: 2.8rem;
}

.summary-section h3 {
    font-size: 1.9rem;
    color: #0d3b66;
    margin-bottom: 1.2rem;
}

.summary-endsection {
    margin-bottom: 0.9rem;
}

.summary-endsection .summary-text {
    margin-bottom: 4rem;
}

/* Guests */

.guest-summary {
    background: #f9fcff;
    border: 1px solid #d9e7f3;
    border-radius: 0.8rem;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}

.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.guest-name {
    font-size: 1.5rem;
    font-weight: 400;
    color: #0d3b66;
}

.guest-status {
    font-size: 1.2rem;
}

.guest-status.yes {
    color: #2f7a4f;
}

.guest-status.no {
    color: #8b2f2f;
}

.guest-details {
    font-size: 1.2rem;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* Hotel */

.hotel-summary {
    background: #f9fcff;
    border: 1px solid #d9e7f3;
    border-radius: 0.8rem;
    padding: 1.4rem;
    font-size: 1.3rem;
}

.hotel-rooms {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0 0;
}

.hotel-rooms li {
    padding: 0.2rem 0;
}

.hotel-note {
    margin-top: 0.8rem;
    font-size: 1.2rem;
    color: #444;
}

/* Notes */

.summary-note {
    background: #f9fcff;
    border: 1px solid #d9e7f3;
    border-radius: 0.8rem;
    padding: 1.4rem;
    font-size: 1.3rem;
    color: #333;
}

/* --- Registration form --- */

form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

/* Guest/hotel card */
.guest-card, .hotel-card {
    background: #f9fcff;
    border: 1px solid #d9e7f3;
    border-radius: 0.8rem;
    padding: 1.6rem;
}

/* Guest name/hotel title */
.guest-name, .hotel-title {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.7rem;
    color: #0d3b66;
}

/* Radio buttons */
.choice-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.radio-card {
    flex: 1;
    border: 1.5px solid #d0dce8;
    border-radius: 0.6rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: border 0.2s ease, background 0.2s ease;
}

.radio-card input {
    accent-color: #0d3b66;
}

.radio-card:hover {
    background: #eef6fc;
}

.radio-card input:checked + span {
    font-weight: 400;
}

/* Guest/hotel options toggle */
.guest-options, .hotel-options {
    margin-top: 1rem;
    transition: opacity 0.25s ease, max-height 0.25s ease;
}

.guest-options.hidden, .hotel-options.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Room selection layout */
.room-selection {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.room-selection label {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 1.3rem;
    color: #0d3b66;
}

.room-selection input[type="number"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    border: 1.5px solid #cfddea;
    font-size: 1.2rem;
}

/* Checkboxes */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.check-row input {
    accent-color: #0d3b66;
}

/* Text inputs & textarea */
.text-input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    border-radius: 0.5rem;
    border: 1.5px solid #cfddea;
    background: #fff;
    transition: border 0.2s ease, background 0.2s ease;
}

.text-input:focus {
    outline: none;
    border-color: #0d3b66;
    background: #fdfefe;
}

.text-input:disabled {
    background: #eef2f6;
    color: #777;
    border-style: dashed;
}

/* Textarea */
.textarea {
    min-height: 90px;
    resize: vertical;
}

/* Submit button */
.submit-btn {
    align-self: center;
    margin-top: 1rem;
    padding: 0.9rem 2.4rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff;
    background: #0d3b66;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
}

.submit-btn:hover {
    background: #0a2e50;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 600px) {
    .choice-group {
        flex-direction: column;
    }
}

footer {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.4rem;
    background-color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #0d3b66;
    padding: 0;
}

/* Prevent scrolling */
.no-scroll {
    overflow: hidden;
    height: 100%;
}
