/* ========================================
   SUNEXPERIENCE - HOMEPAGE STYLESHEET
   ======================================== */

/* ---------- Fonts ---------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap');


/* ---------- Variables ---------- */

:root {
    --bg: #FFFFFF;
    --surface: #F3F8FE;
    --text: #102A43;
    --muted: #58718A;
    --primary: #05578F;
    --primary-dark: #03436F;
    --border: #DCE8F2;
    --ring: rgba(5, 87, 143, 0.25);
    --radius: 12px;
    --shadow: 0 8px 24px rgba(5, 45, 80, 0.08);
    --container: 1240px;
}


/* ---------- Reset & Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

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

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Poppins", sans-serif;
    color: var(--primary);
}

h1 {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0;
}

h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 5px;
}

p {
    color: var(--muted);
    margin-bottom: 12px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}


/* ---------- Header ---------- */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(5, 45, 80, 0.03);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    color: var(--primary);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.brand:hover {
    color: var(--primary-dark);
}

.brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
}

.brand .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#desktopNav {
    display: block;
}

#desktopNav ul {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#desktopNav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s ease, background 0.2s ease;
}

#desktopNav a:hover,
#desktopNav a:focus-visible {
    color: var(--primary);
    background: var(--surface);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    color: var(--primary);
}

.nav-icon:hover {
    background: var(--surface);
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    cursor: pointer;
    font-size: 21px;
}

/* Mobile menu */

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    padding: 10px 24px;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.mobile-menu[hidden] {
    display: none !important;
}

.mobile-menu:not([hidden]) {
    display: flex;
}

.mobile-menu a {
    display: block;
    padding: 13px 8px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: 0;
}

.mobile-menu a:hover {
    color: var(--primary);
    background: var(--surface);
}


/* ---------- Hero Section ---------- */

.section_1 {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #1477A9;
    background-image:
        linear-gradient(90deg,
            rgba(0, 42, 76, 0.48) 0%,
            rgba(0, 42, 76, 0.20) 55%,
            rgba(0, 42, 76, 0.04) 100%),
        url("Mediterranean Bay and Mountain Town.png");
    background-size: cover;
    background-position: center 48%;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 42px;
    padding-bottom: 42px;
}

.hero-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section_1 h1 {
    max-width: 700px;
    color: white;
    margin-bottom: 14px;
}

.section_1 p {
    max-width: 470px;
    color: white;
    font-size: 15px;
    margin-bottom: 22px;
}


/* ---------- Hero Search Form ---------- */

.hero-search {
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.9fr auto;
    align-items: stretch;
    max-width: 1060px;
    padding: 7px;
    gap: 4px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 35, 65, 0.16);
}

.search-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 7px 16px;
    border-right: 1px solid var(--border);
}

.search-field label {
    margin-bottom: 3px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
}

.search-field input,
.search-field select {
    width: 100%;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.search-field input:focus-visible,
.search-field select:focus-visible {
    outline: none;
}

.search-button {
    align-self: stretch;
    min-width: 135px;
    padding: 12px 22px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-button:hover {
    background: var(--primary-dark);
}

.section_1 .search-message {
    min-height: 0;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 13px;
}


/* ---------- Section Search Result ---------- */


.search-results {
    margin-top: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dce8f2;
    border-radius: 16px;
    color: #05578F;
}

.search-results h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.search-result-card {
    margin-top: 12px;
    padding: 16px;
    background: #f3f8fe;
    border: 1px solid #dce8f2;
    border-radius: 12px;
}

.search-result-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.search-result-card p,
.demo-note {
    margin-bottom: 0;
    font-size: 14px;
}

.search-result-card p {
    color: #333333;
}

.demo-note {
    margin-top: 16px;
}



/* ---------- Section Headings ---------- */

.section_2 {
    padding: 36px 0 30px;
    color: var(--text);
    background: white;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.view-link {
    flex-shrink: 0;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.view-link:hover {
    color: var(--primary-dark);
}


/* ---------- Destination Cards ---------- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    box-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card:hover .thumb img {
    transform: scale(1.04);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 11px 13px;
}

.card-body h3 {
    margin-bottom: 2px;
    color: var(--primary);
    font-size: 14px;
}

.tag {
    display: inline-block;
    color: var(--muted);
    font-size: 11px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    color: var(--primary);
    font-size: 12px;
    background-color: #fff !important;
}

.card-footer strong {
    color: var(--primary);
    font-size: 14px;
}

.card-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    font-size: 17px;
}

.card-footer a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}


/* ---------- Benefits Section ---------- */

.section_3 {
    padding: 22px 0;
    background: #F3F8FE;
    color: var(--text);
}

.advesiment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.advesiment-tags {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 8px 18px;
    border-right: 1px solid #CFE0EF;
}

.advesiment-tags:last-child {
    border-right: 0;
}

.advesiment-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
}

.advesiment-tags h3 {
    margin-bottom: 5px;
    color: var(--primary);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.advesiment-tags p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}


/* ---------- Featured Offers ---------- */

.section_4 {
    padding: 30px 0 42px;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: 0.95fr 1fr;
    align-items: center;
    gap: 28px;
}

.feature-image {
    width: 100%;
    height: 270px;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--surface);
}

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

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
}

.feature-text .section-eyebrow {
    margin-bottom: 5px;
}

.feature-text h2 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: clamp(23px, 2.5vw, 30px);
}

.feature-text p {
    max-width: 480px;
    margin-bottom: 18px;
    font-size: 13px;
}

.button-offers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.button-offers:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}


/* ---------- Footer ---------- */

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: #F8FBFE;
    text-align: center;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--primary);
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.site-footer p {
    margin-bottom: 5px;
    font-size: 12px;
}


/* ---------- Tablet Layout ---------- */

@media (max-width: 1020px) {
    :root {
        --container: 960px;
    }

    .projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .advesiment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advesiment-tags:nth-child(2) {
        border-right: 0;
    }

    .advesiment-tags:nth-child(-n + 2) {
        border-bottom: 1px solid #CFE0EF;
    }

    .hero-search {
        grid-template-columns: 1fr 1fr;
    }

    .search-field:nth-child(2) {
        border-right: 0;
    }

    .search-button {
        min-height: 48px;
    }
}


/* ---------- Mobile Layout ---------- */

@media (max-width: 900px) {
    .nav {
        min-height: 64px;
    }

    #desktopNav {
        display: none;
    }

    .hamburger {
        display: inline-flex;
    }

    .nav-actions {
        gap: 5px;
    }

    .section_1 {
        min-height: 440px;
        background-position: center;
    }

    .hero-content {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .hero-search {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feature-image {
        height: 260px;
    }
}

@media (max-width: 600px) {
    .container {
        padding-inline: 18px;
    }

    .brand {
        gap: 7px;
        font-size: 17px;
    }

    .brand .logo {
        width: 31px;
        height: 31px;
    }

    .nav-icon {
        width: 30px;
        height: 34px;
        font-size: 19px;
    }

    .section_1 {
        min-height: 510px;
        background-position: 58% center;
    }

    .hero-content {
        padding-top: 35px;
        padding-bottom: 30px;
    }

    .hero-eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .section_1 h1 {
        font-size: clamp(31px, 8vw, 42px);
    }

    .section_1 p {
        font-size: 14px;
    }

    .hero-search {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px;
        border-radius: 14px;
    }

    .search-field {
        padding: 11px 10px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .search-field:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .search-button {
        margin-top: 8px;
        width: 100%;
    }

    .section_2 {
        padding: 30px 0 24px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .view-link {
        margin-bottom: 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card-body {
        padding: 9px;
    }

    .card-body h3 {
        font-size: 13px;
    }

    .card-footer {
        font-size: 11px;
    }

    .card-footer strong {
        font-size: 12px;
    }

    .card-footer a {
        width: 26px;
        height: 26px;
    }

    .advesiment-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .advesiment-tags,
    .advesiment-tags:nth-child(2) {
        padding: 14px 5px;
        border-right: 0;
        border-bottom: 1px solid #CFE0EF;
    }

    .advesiment-tags:last-child {
        border-bottom: 0;
    }

    .feature-image {
        height: 210px;
    }

    .feature-text h2 {
        font-size: 25px;
    }
}


/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}