/* White-Beach Hideaway - Modern Premium Styles */

:root {
    /* Premium Palette: Deep Ocean & Sand */
    --color-primary: #1A5F7A;
    /* Deep Ocean Blue */
    --color-primary-dark: #134b61;
    /* Darker shade for hover */
    --color-secondary: #D4A373;
    /* Refined Sand/Gold */
    --color-secondary-dark: #b88656;
    --color-accent: #E76F51;
    /* Warm Coral Accent */

    /* Neutral Tones */
    --color-text: #2C3E50;
    /* Dark Slate - Softer than black */
    --color-text-light: #586e82;
    /* Muted text */
    --color-bg: #FAFAFA;
    /* Clean Off-White */
    --color-white: #ffffff;
    --color-light-gray: #f0f2f5;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing - Increased for breathing room */
    --spacing-sm: 8px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 100px;

    /* Modern Shadows */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer, deeper shadow */
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    /* Improved readability */
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    letter-spacing: -0.02em;
    /* Tighter headings */
    font-weight: 700;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Modern Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.4);
}

.btn-secondary {
    background-color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-white);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    border-radius: 50%;
    width: 55px;
    height: 55px;
    object-fit: cover;
    border: 2px solid var(--color-secondary);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Fix for button in nav */
.nav-links .btn {
    color: var(--color-white);
}

.nav-links .btn:hover {
    color: var(--color-white);
}

.nav-links .btn::after {
    display: none;
    /* Remove underline effect for button */
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 40px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.footer-section h4 {
    color: var(--color-secondary);
    margin-bottom: 25px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-section p,
.footer-section li {
    margin-bottom: 12px;
}

.footer-section ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    /* Modern dynamic height */
    min-height: 600px;
    /* Prevent collapse on small screens */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    /* Fallback image */
    background: #000;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    opacity: 0.7;
    /* Darken slightly for text readability */
}

/* Gradient Overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 95, 122, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: var(--color-white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Sections General */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.bg-light {
    background-color: var(--color-light-gray);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 50px 30px;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 163, 115, 0.2);
}

.feature-card i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 25px;
    background: rgba(26, 95, 122, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.feature-card:hover i {
    background: var(--color-primary);
    color: var(--color-white);
}

.feature-card h3 {
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--color-text-light);
}

/* Grid Layout Utils */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    /* Increased gap */
}

.items-center {
    align-items: center;
}

.col-6 {
    flex: 1 1 45%;
}

.rounded {
    border-radius: 12px;
}

.shadow {
    box-shadow: var(--shadow-md);
}

/* Page Header */
.page-header {
    height: 45vh;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.page-header>.container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--color-white);
}

/* Rooms List */
.room-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    transition: var(--transition-normal);
    border: none;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.room-card .row {
    gap: 0;
    /* Remove gap for split layout */
}

.room-card img {
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.room-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-info h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.room-amenities {
    margin: 25px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.room-amenities li {
    font-size: 0.95rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-amenities li i {
    color: var(--color-secondary);
}

.room-price {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

.room-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--color-white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
    color: var(--color-text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: var(--color-primary);
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e5e9;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 350px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--color-text-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.team-member:hover img {
    transform: scale(1.05);
    border-color: var(--color-secondary);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.contact-info-item i {
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-right: 25px;
    margin-top: 5px;
    background: var(--color-white);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.contact-form {
    background: var(--color-white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-form h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 60px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-md);
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .row {
        flex-direction: column;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .room-info {
        padding: 30px;
    }

    .room-card img {
        min-height: 250px;
    }

    /* Mobile Hero Fix */
    .hero {
        height: 100dvh;
        /* Ensure full screen on mobile */
        min-height: -webkit-fill-available;
        /* iOS fix */
    }

    .bg-video {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}