/*
Theme Name: cecile
Theme URI: https://juandenis.com/
Author: Juan
Author URI: https://juandenis.com/
Description: A php project using a custom theme called Cecile.
Version: 1.0.10
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cecile
*/

/* --- 1. SETUP & VARIABLES --- */
:root {
    --brand-red: #c1262e;
    --text-dark: #2b2b2b;
    --text-light: #7a7a7a;
    --bg-white: #ffffff;
    --bg-soft: #fcfcfc;
    --font-serif: 'Prata', serif;
    --font-sans: 'Tenor Sans', sans-serif;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-white);
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
}

/* Red underline accent for H2 */
h2::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: -20px;
    width: 40px;
    height: 2px;
    background-color: var(--brand-red);
}

h3 {
    font-size: 1.5rem;
    color: var(--brand-red);
    margin-bottom: 1rem;
}

p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.subtitle {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    color: var(--brand-red);
    display: block;
    margin-bottom: 1rem;
}

.quote-large {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1.4;
    text-align: center;
    color: var(--text-dark);
    margin: 80px auto;
    max-width: 900px;
}

/* --- 3. NAVIGATION (Glass Effect) --- */
nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
}

.nav-menu-mobile {
    display: none;
}

.nav-logo {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    position: absolute;
    left: 50px;
    top: 10px;
    z-index: 1001;
    transition: all 0.4s ease;
}

.nav-logo img {
    height: 160px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.1));
    transition: all 0.4s ease;
}

/* Logo visibility */
.nav-logo .logo-desktop {
    display: block;
}

.nav-logo .logo-mobile {
    display: none;
}

/* Scrolled State - Logo shrinks and becomes inline */
nav.scrolled {
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
}

nav.scrolled .nav-logo {
    position: relative;
    left: 0;
    top: 0;
    align-items: center;
}

nav.scrolled .nav-logo img {
    height: 45px;
    filter: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-left: 35px;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0; height: 1px;
    background-color: var(--brand-red);
    transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }
.nav-menu a:hover { color: var(--brand-red); }

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1002;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.nav-menu-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-menu-mobile.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu-mobile a {
    text-decoration: none;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.2em;
    transition: color 0.3s;
}

.nav-menu-mobile a:hover {
    color: var(--brand-red);
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* --- 5. ANIMATIONS (Scroll Observer) --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --- 6. SECTIONS --- */
section {
    padding: 140px 50px;
}

/* Centered Text Section */
.text-center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Asymmetrical Split Layout */
.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.image-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 650px;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s var(--ease-out);
}

.image-frame:hover img { transform: scale(1.1); }

/* Overlapping Effect for "The Guide" */
.overlap-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.overlap-content {
    background: white;
    padding: 60px 60px 60px 0;
    z-index: 2;
}

.overlap-image {
    width: 100%;
    height: 700px;
    object-fit: cover;
    margin-left: -50px; /* Pull image left to overlap */
    z-index: 1;
}

/* --- 7. DESTINATIONS (Masonry-ish) --- */
.destinations-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.dest-item {
    position: relative;
    padding: 40px 30px;
    background: var(--bg-soft);
    transition: 0.3s;
    border: 1px solid transparent;
}

.dest-item:hover {
    background: white;
    border-color: #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.dest-item h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* --- 8. CONTACT --- */
.contact-section {
    background-color: var(--bg-soft);
    text-align: center;
    padding: 120px 20px;
}

.contact-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-link {
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid #ddd;
    padding: 20px 40px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: 0.3s;
}

.contact-link:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    background: white;
}

/* --- 9. FOOTER --- */
footer {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 140px;
    width: auto;
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-copyright {
    color: #999;
}

@media (max-width: 900px) {
    h1 { font-size: 3rem; }
    .hero-bg { width: 100%; clip-path: none; opacity: 0.2; }
    .grid-split, .overlap-section { grid-template-columns: 1fr; }
    .overlap-content { padding: 40px 20px; }
    .overlap-image { margin: 0; height: 400px; }
    .dest-grid { grid-template-columns: 1fr; }
    footer { padding: 40px 20px; gap: 20px; }
    .footer-logo { height: 100px; }

    /* Mobile Nav */
    nav {
        padding: 0 20px;
        height: 60px;
    }
    .nav-logo {
        position: relative;
        left: 0;
        top: 0;
        align-items: center;
    }
    .nav-logo .logo-desktop {
        display: none;
    }
    .nav-logo .logo-mobile {
        display: block;
        height: 45px;
        width: auto;
        filter: none;
    }
    /* On mobile scrolled, keep same */
    nav.scrolled .nav-logo img {
        height: 45px;
    }
    .nav-menu {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu-mobile {
        display: flex;
        top: 60px;
    }
}

