/* Import Fonts */
@import url('yellix_fonts.css');

:root {
    --color-light-blue: #e7f3ff;
    --color-dark-blue: #29385F;
    --color-green: #55836B;
    --color-frame-blue: #B6D8F8; /* Matches the SVG frame stroke */
    --color-grey-placeholder: #d9d9d9;
    --font-main: 'Yellix', sans-serif;
    --max-width: 1200px;
    --gutter: 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark-blue);
    background-color: #fff;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Utils */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

p {
    font-weight: 500;
    margin-bottom: 1rem;
}

h2 {
    font-size: 45px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Component: Buttons */
.btn {
    display: inline-block;
    background-color: var(--color-green);
    color: white;
    padding: 12px 24px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

/* Layout Utils */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}

.section-padding {
    padding: 4rem 0;
}

.bg-light-blue {
    background-color: var(--color-light-blue);
    position: relative;
}

/* Angled bottom for the Details section */
.section-slanted-bottom {
    position: relative;
    z-index: 5;
    padding-bottom: 6vw; /* Extra padding for the slant space */
    /* Creates a slant: Left is lower (100%), Right is higher (85%) */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10vw), 0 100%);
    /* Ensure background covers the area */
    background-color: var(--color-light-blue);
}

/* ------------------
   Header
   ------------------ */
.main-header {
    padding: 1.5rem 0;
    background-color: var(--color-frame-blue);
    position: relative;
    z-index: 100; /* Ensures header sits on top of hero shapes */
}

.logo {
    width: 160px;
}

/* ------------------
   Footer
   ------------------ */
.main-footer {
    background-color: var(--color-green);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--color-light-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    font-size: 0.9rem;
    max-width: 500px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
}

.social-icon:hover img {
    transform: scale(1.1);
}

.contact-list {
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-item a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom a {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer-bottom p {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Utility to expand content to fill vertical space (for Thank You page) */
.flex-fill-centered {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ------------------
   Hero Section
   ------------------ */
.hero {
    padding: 3rem 0 1rem;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-visuals {
    position: relative;
    height: 400px;
    margin-top: -5rem; /* Pull up so top shape hides under header */
}

/* Abstract Shapes Positioning */
.shape-blue-main {
    position: absolute;
    top: 70px;
    right: -5%;
    width: 85%;
    z-index: 10;
    height: auto;
}

.shape-frame-light-blue {
    position: absolute;
    top: 30px;
    right: 40%;
    width: 55%;
    z-index: 5;
    height: auto;
}

.shape-green {
    position: absolute;
    top: 160px;
    right: -30%;
    width: 85%;
    height: auto;
    z-index: 1;
}

/* Small cut-off shape at the top */
.shape-blue-top {
    position: absolute;
    top: -50px;
    right: 0%;
    width: 35%;
    height: auto;
    z-index: 5;
    opacity: 1;
}

/* ------------------
   Intro Section
   ------------------ */
.intro {
    padding: 2rem 0 0;
}

/* Angled top for the first light blue section to match the hero shape */
.angled-top {
    position: relative;
    z-index: 1;
    margin-top: -12vw;
    padding-top: calc(12vw + 1.5rem);
    clip-path: polygon(0 12vw, 100% 0, 100% 100%, 0% 100%);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.placeholder-img {
    background-color: var(--color-grey-placeholder);
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 3px solid var(--color-dark-blue);
    position: relative;
}

.placeholder-img::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-green);
    z-index: -1;
    pointer-events: none;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Extended Blue Background for Intro -> Features transition */
.intro-background {
    padding-bottom: 22rem; /* Extend background downward */
}

.features-container {
    margin-top: -17rem; /* Pull features up into the blue background */
    position: relative;
    z-index: 2;
}

/* ------------------
   What You'll Get
   ------------------ */

.features.section-padding {
    padding-top: 0;
}

.features h2 {
    margin-bottom: 3rem;
    display: inline-block;
    text-wrap: balance;
}

.heading-subtext {
    display: block;
    font-size: 0.45em;
    text-transform: none;
    margin-top: 0.5rem;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    border: 3px solid var(--color-green);
    padding: 1.5rem;
    display: flex;
    background-color: white; /* Ensure text is readable over the background split */
    flex-direction: column;
}

.feature-icon {
    height: 90px;
    width: 90px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.feature-card h4 {
    font-family: 'Yellix', sans-serif; /* Fallback to lighter weight */
    font-weight: 500; /* Italic in design? */
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ------------------
   Itinerary
   ------------------ */
.itinerary {
    position: relative;
    /* Removing overflow hidden so shapes can extend slightly if desired, though design typically keeps them contained */
    overflow: hidden;
}

.itinerary-title {
    margin-bottom: 2rem;
    color: var(--color-dark-blue);
}

.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.itinerary-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.itinerary-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.date-box {
    background-color: #57826A; /* Matching the darker green in image */
    color: white;
    padding: 0.4rem;
    width: 55px;
    height: 55px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.date-box .month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.date-box .day {
    font-size: 1.4rem;
    font-weight: 700;
}

.itinerary-details h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: black;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.itinerary-details p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #444;
    margin: 0;
}

/* Itinerary Shapes */
.shape-cluster {
    position: relative;
    width: 85%; /* Make it a bit smaller */
    max-width: 320px;
    height: auto;
    margin: 2rem 0;
    /* Facing the same way (rotate 180) */
    transform: rotate(180deg);
    z-index: 1;
}

.shape-cluster-top-right {
    margin-top: 0; /* Align top */
    margin-bottom: 3rem; /* Space below shape */
}

.shape-cluster-bottom-left {
    margin-top: 3rem; /* Space above shape */
    margin-bottom: 0;
}

.shape-blue-fill {
    position: relative;
    width: 100%;
    z-index: 2; /* Sits on top */
}

.shape-green-frame {
    position: absolute;
    /* To appear Top-Left when container is rotated 180deg,
       we position it Bottom-Right in CSS coordinates */
    bottom: -15px;
    right: -15px;
    width: 100%;
    z-index: 1; /* Sits behind */
}

.itinerary-note {
    margin-top: 3rem;
    font-weight: 300;
    font-size: 0.9rem;
    text-align: center;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-itinerary-shape {
    display: none;
}

/* ------------------
   Purpose Section
   ------------------ */
.purpose-header {
    margin-bottom: 2rem;
}

.purpose-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.purpose-subtitle {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
    margin: 0;
    font-size: 1.4rem;
}

.purpose-image {
    background-color: var(--color-grey-placeholder);
    min-height: 400px;
    border: 3px solid var(--color-dark-blue);
    position: relative;
}

.purpose-image::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-green);
    z-index: -1;
    pointer-events: none;
}

.purpose-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.purpose-card {
    border: 3px solid var(--color-dark-blue);
    padding: 1.5rem;
    background: white;
}

.purpose-icon {
    height: 90px;
    width: 90px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.purpose-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.purpose-card p {
    font-size: 0.9rem;
}

/* ------------------
   Details / Footer
   ------------------ */
.details-section {
    padding-bottom: 4rem;
}

.details-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem 5rem;
    align-items: start;
}

.purpose-header h2,
.details-title,
.itinerary-title,
.checklist-header h2,
.signup-intro h2 {
    color: var(--color-dark-blue);
}

.details-title {
    margin-bottom: 2rem;
    grid-column: 1 / -1;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 3rem;
    column-gap: 2rem;
    margin-bottom: 3rem;
}

.detail-item {
    border-left: 3px solid var(--color-dark-blue);
    padding-left: 1.2rem;
}

.detail-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    display: block;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-green);
    line-height: 1.1;
}

.detail-sub {
    font-size: 0.8rem;
    color: #666; /* Lighter grey for TBA/Estimated */
    font-weight: 500;
    margin-top: 0.25rem;
}

.detail-sub-upper {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-dark-blue);
    margin-top: 0.25rem;
}

.details-info-box p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    max-width: 800px;
}

.details-right strong {
    font-weight: 700;
}

/* ------------------
   Checklist Section
   ------------------ */
.checklist-section {
    position: relative;
    z-index: 1; /* Sits behind the blue section */
    margin-top: -10vw; /* Pulls it up into the slant area */
    padding-top: 11vw; /* Pushes content down so it's visible below the blue */
    padding-bottom: 4rem;
    background-color: white;
}

.checklist-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.checklist-header h2 {
    margin-bottom: 1rem;
    line-height: 1.2;
    text-wrap: balance;
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    margin-bottom: 4rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.check-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}

.check-icon svg {
    width: 14px;
    height: 14px;
    fill: white;
}

.checklist-item p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    text-wrap: pretty;
}

.checklist-footer {
    text-align: center;
    background-color: var(--color-light-blue);
    padding: 3rem;
    border-radius: 4px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--color-frame-blue);
}

.checklist-footer p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--color-dark-blue);
}

/* ------------------
   Sign Up Section
   ------------------ */
.signup-section {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 4rem;
    padding-bottom: 6rem;
    background-color: #66816c33; /* Green at ~20% opacity */
}

.shape-green-underlay {
    position: absolute;
    top: -260px; /* Adjusted to move it up slightly without hiding it behind the previous section */
    right: -25%;
    width: 60%;
    max-width: 600px;
    z-index: -1;
    opacity: 1;
}

.signup-content {
    max-width: 800px;
    margin: 0 auto;
}

.signup-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.signup-intro h2 {
    margin-bottom: 1.5rem;
}

.signup-intro p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1rem;
}

.signup-intro .lead-text {
    font-weight: 700;
    color: var(--color-dark-blue);
    font-size: 1.1rem;
}

/* Form Styles */
.mission-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    color: var(--color-dark-blue);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-green);
    background-color: white;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.form-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Checkbox / Radio Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.check-label input {
    /* Hide default checkbox but keep it accessible/functional */
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.custom-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-dark-blue);
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
    background-color: white;
    transition: background 0.2s;
}

.check-label input:checked ~ .custom-check {
    background-color: var(--color-green);
    border-color: var(--color-green);
}

/* Checkmark */
.check-label input:checked ~ .custom-check::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    /* Center, then rotate. Translate Y is -65% to visually balance the checkmark's weight */
    transform: translate(-50%, -65%) rotate(45deg);
}

.agreement-group {
    margin-top: 1rem;
    gap: 1rem;
}

.agreement-label {
    font-size: 0.95rem;
    color: var(--color-dark-blue);
}

.btn-submit {
    margin-top: 1rem;
    align-self: center;
    min-width: 200px;
    text-align: center;
}

/* ------------------
   Thank You Page
   ------------------ */
.thank-you-section {
    min-height: 60vh; /* Keeps footer at bottom on large screens */
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.thank-you-visual img {
    width: 100%;
    max-width: 250px; /* Constrain width to keep it small */
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto; /* Center in its column if smaller than full width */
}

/* Responsive adjustments */
@media (max-width: 900px) {

    .purpose-image {
        aspect-ratio: 16 / 9;
        height: auto;
        width: 100%;
        max-height: unset;
        max-height: unset;
    }

    .placeholder-img {
        background-color: var(--color-grey-placeholder);
        width: 100%;
        aspect-ratio: 16 / 9;
        border: 3px solid var(--color-dark-blue);
        position: relative;
        height: auto;
        min-height: unset;
        max-height: unset;
    }


    .purpose-image {
        min-height: 200px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-grid, .intro-grid, .purpose-grid, .details-layout {
        grid-template-columns: 1fr;
    }

    /* Reduce overlap spacing on mobile */
    .intro-background {
        padding-bottom: 12rem;
    }
    .features-container {
        margin-top: -10rem;
    }
    
    .form-row, .address-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .details-layout {
        gap: 3rem;
    }

    .hero-visuals {
        display: none;
    }

    .shape-cluster {
        margin: 2rem auto;
    }

    .shape-cluster-bottom-left {
        order: -1;
    }

    .shape-cluster-top-right {
        order: 1;
    }

    .itinerary-grid, .details-grid {
        grid-template-columns: 1fr;
    }

    .desktop-itinerary-shape {
        display: none;
    }

    .mobile-itinerary-shape {
        display: block;
        width: 100%;
        max-width: 600px;
        margin: 0 auto 3rem auto;
    }
    .mobile-itinerary-shape:last-child {
        margin-top: 3rem;
    }

    .purpose-cards {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 32px;
    }

    .section-slanted-bottom {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
        padding-bottom: 2rem;
    }
    .checklist-section {
        margin-top: -5vw;
        padding-top: 4rem;
    }
    .checklist-grid {
        grid-template-columns: 1fr;
    }

    .thank-you-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .purpose-subtitle {
        grid-row: auto;
        grid-column: auto;
        margin: 1.5rem 0;
    }
}
