/* Villa Pavo - Main Stylesheet */

/* Color Variables - Easy to change theme */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #95a5a6;
    --accent-color: #7f8c8d;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --text-color: #2c3e50;
    --light-text: #7f8c8d;
    --border-color: #dfe6e9;
    --overlay: rgba(44, 62, 80, 0.7);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.4rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

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

/* Desktop logo - 60x60 (shown by default) */
.logo-desktop {
    height: 60px;
    width: 60px;
    display: block;
}

/* Mobile logo - 63x63 (hidden by default) */
.logo-mobile {
    height: 63px;
    width: 63px;
    display: none;
}

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

.logo-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}


.logo-text .tagline {
    font-size: 0.75rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0.35rem 0 0;   /* pushes it a bit down */
    font-weight: 600;      /* make it bold */
    white-space: nowrap;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;                 /* more bold */
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.9rem;
}


.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn-book {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.55rem 1.3rem !important;  /* a bit less height */
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;                /* keeps text centered */
    align-items: center;
    justify-content: center;
    line-height: 1;                      /* stops extra vertical stretch */
    white-space: nowrap;                 /* keeps BOOK NOW on one line if possible */
}


.btn-book::after {
    display: none;
}

.btn-book:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
}

.hero-video,
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Desktop video - shown by default */
.hero-video-desktop {
    display: block;
}

/* Mobile video - hidden by default */
.hero-video-mobile {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--white);
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    margin-bottom: 1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Sections */
section {
    padding: 5rem 0;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Parallax Image Effect */
.parallax-container {
    position: relative;
    overflow: hidden;
    height: 500px;
    border-radius: 10px;
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Add spacing for pages with hero sections */
.hero {
    margin-top: 0 !important;
}

/* Only for non-homepage pages, add spacing to first section after header */
body:not(.home-page) .hero {
    margin-top: 150px;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--light-text);
}

/* Feature Boxes */
.feature-box {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
}

.footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
}

.footer-col a:hover {
    color: var(--white);
}

.contact-info li {
    margin-bottom: 1rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

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

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Switch to mobile logo on tablets */
    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* Show mobile logo, hide desktop logo */
    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    /* Show mobile video, hide desktop video */
    .hero-video-desktop {
        display: none;
    }

    .hero-video-mobile {
        display: block;
    }

    /* Adjust logo text for mobile */
    .logo-text h1 {
        font-size: 1.5rem;
    }

    .logo-text .tagline {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    /* Add spacing between logo and hamburger menu */
    .logo {
        margin-top: 0.5rem;
    }

    /* Disable parallax on mobile */
    .parallax-container {
        height: 300px;
    }
    
    .parallax-image {
        transform: none !important;
    }
    
    /* Adjust hero spacing for mobile */
    body:not(.home-page) .hero {
        margin-top: 100px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    section {
        padding: 3rem 0;
    }
}
