/* CSS VARIABLES */
:root {
    --primary-blue: #0A1C35;
    --secondary-blue: #143257;
    --gold: #C29A4D;
    --gold-hover: #a17c37;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F9FAFC;
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.65;
    background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

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

.box-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.rounded-image {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* TYPOGRAPHY */
.section-title {
    position: relative;
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--gold);
    margin: 18px auto 0;
    border-radius: 999px;
}

.section-title span {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(194, 154, 77, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* HEADER */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 5px 0;
    background-color: var(--white);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
}

.logo-icon {
    font-size: 2rem;
    color: var(--gold);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-blue);
}

.nav-links a:not(.btn):hover {
    color: var(--gold);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: url('img/header.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
}

.logo-image {
    width: 56px;
    height: auto;
    object-fit: contain;
}

.hero-text-area {
    max-width: 600px;
    background: rgba(255,255,255,0.96);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 35px 90px rgba(10, 28, 53, 0.12);
}

.exp-card {
    position: relative;
    border-radius: 30px;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 28px;
    color: var(--white);
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.12);
}

.exp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.16);
}

.exp-card.exp-card-1 { background-image: url('img/6.webp'); }
.exp-card.exp-card-2 { background-image: url('img/10.webp'); }
.exp-card.exp-card-3 { background-image: url('img/7.webp'); }
.exp-card.exp-card-4 { background-image: url('img/8.webp'); }
.exp-card.exp-card-5 { background-image: url('img/9.webp'); }

.exp-label {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 999px;
    background-color: rgba(10, 28, 53, 0.75);
}

.footer-logo-image {
    width: 48px;
    height: auto;
    margin-bottom: 10px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text-area {
    max-width: 550px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.hero-title span {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 400;
}

.pricing-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--gold);
    text-align: center;
    max-width: 400px;
}

.starting-at {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.presale {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.price {
    font-size: 3.5rem;
    color: var(--primary-blue);
    font-family: var(--font-body);
    margin: 5px 0;
}

.price span {
    font-size: 1.5rem;
    color: var(--text-light);
}

.per-person {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 15px;
}

.accommodates {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.stars {
    color: var(--gold);
    margin: 15px 0 5px;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

/* SECTION: WHY CHOOSE COZUMEL */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-image, .split-text {
    flex: 1;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.benefit-list {
    margin-top: 25px;
}

.benefit-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SECTION: WHAT YOU RECEIVE */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-icon {
    width: 140px;
    height: 140px;
    background-color: transparent;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

.card-icon img,
.card-icon i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img.icon-scale-up {
    width: 100%;
    height: 100%;
    transform: scale(1.35);
    transform-origin: center;
}

.card-icon i {
    font-size: 2.8rem;
    line-height: 1;
}

.card-icon img {
    object-fit: contain;
}


.card-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* SECTION: EXPERIENCE */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.exp-img-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 250px;
    height: 100%;
}

.exp-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.exp-img-container:hover img {
    transform: scale(1.1);
}

.exp-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(10, 28, 53, 0.9));
    color: var(--white);
    padding: 20px 10px 15px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* FORM SECTION */
.contact-section {
    background-color: var(--primary-blue);
    color: var(--white);
}

.form-container {
    background: var(--white);
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.form-header {
    background-image: linear-gradient(rgba(10, 28, 53, 0.85), rgba(10, 28, 53, 0.85)), url('img/9.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.form-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.inquiry-form {
    padding: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-submit-btn {
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 16px;
}

.form-message {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--primary-blue);
    text-align: center;
    min-height: 1.35rem;
}

.form-message.success {
    color: #1f6d34;
}

.privacy-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 15px;
}

/* FOOTER */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 30px;
    border-top: 5px solid var(--gold);
}

.footer-logo h3 {
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.footer-subtitle {
    color: var(--gold);
    font-style: italic;
    margin-bottom: 20px;
}

.footer-bullets {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 30px;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 5px;
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--gold);
    transform: translateY(-3px);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
}

/* ANIMATIONS (Triggered via JS) */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .split-layout { flex-direction: column; }
    .hero-title { font-size: 2.8rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: rgba(255,255,255,0.98);
        border-top: 1px solid rgba(0,0,0,0.08);
        padding: 20px;
        gap: 18px;
    }
    .nav-links.active a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-radius: 6px;
        background-color: rgba(10,28,53,0.04);
    }
    .mobile-toggle { display: block; }
    .grid-3 { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; margin-bottom: 0; }
    .form-group { margin-bottom: 20px; }
    .hero-text-area { text-align: center; margin: 0 auto; }
    .pricing-card { margin: 0 auto; }
    .hero {
        min-height: 720px;
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 2.2rem; }
}
