/* 
   Scarlet's Inn - Heritage Boutique Hotel
   Visual Style: Modern Heritage Editorial (1580s Portuguese Colonial)
   Colors: Deep Scarlet Red, Warm Cream, Teak Wood
*/

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

:root {
    --primary-scarlet: #8B0000;
    --bg-cream: #F5EDCB;
    --text-dark: #333333;
    --accent-teak: #C19A6B;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Merriweather', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.8;
    /* Increased line height for editorial feel */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-scarlet);
    margin-bottom: 1.5rem;
    font-weight: 400;
    /* Lighter weight for elegance */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

iframe {
    width: 100%;
    max-width: 100%;
    border: 0;
    display: block;
}

/* Container */
.container {
    max-width: 1400px;
    /* Wider container for editorial look */
    margin: 0 auto;
    padding: 0 40px;
}

/* Glassmorphism Header */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--accent-teak);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    /* White initially for video bg */
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header.scrolled .logo {
    color: var(--primary-scarlet);
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    position: relative;
}

header.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-teak);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-scarlet);
    color: var(--white);
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-size: 1rem;
    border: 1px solid var(--primary-scarlet);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-scarlet);
    border-color: var(--primary-scarlet);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

/* Video Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Sections & Typography */
section {
    position: relative;
}

.section-spacious {
    padding: 8rem 0;
}

@media (max-width: 768px) {
    .section-spacious {
        padding: 4rem 0;
    }
}

/* Page Header (Subpages) */
.page-header-section {
    padding: 6rem 0 4rem;
    text-align: center;
    background-color: var(--bg-cream);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-scarlet);
}

.page-subtitle {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #666;
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 4rem 0 3rem;
    }

    .page-title {
        font-size: 2.5rem;
    }
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

/* Watermark Typography */
.watermark {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 15rem;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

/* Broken Grid Layout (About) */
.broken-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    position: relative;
}

.broken-grid-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.broken-grid-content {
    background: var(--white);
    padding: 4rem;
    margin-left: -15%;
    /* Overlap */
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Zig-Zag Layout (Rooms) */
.zig-zag-row {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    /* Flush */
}

.zig-zag-row:nth-child(even) {
    flex-direction: row-reverse;
}

.zig-zag-image {
    width: 50%;
    height: 80vh;
    /* Large bleed images */
    overflow: hidden;
}

.zig-zag-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
    /* Slow zoom */
}

.zig-zag-row:hover .zig-zag-image img {
    transform: scale(1.1);
}

.zig-zag-content {
    width: 50%;
    padding: 6rem;
    background-color: var(--bg-cream);
}

/* Sticky Scrolling (Facilities) */
.sticky-container {
    display: flex;
    align-items: flex-start;
}

.sticky-sidebar {
    width: 30%;
    position: sticky;
    top: 150px;
    padding-right: 2rem;
}

.sticky-sidebar h2 {
    font-size: 4rem;
    line-height: 1;
}

.scroll-content {
    width: 70%;
}

.scroll-item {
    margin-bottom: 6rem;
}

.scroll-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    margin-bottom: 2rem;
}

/* Highlights Section */
.highlights {
    overflow: hidden;
}

/* Highlights Grid (Redesigned) */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.highlight-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.highlight-icon {
    font-size: 2.5rem;
    color: var(--accent-teak);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: #8B0000;
    color: var(--white);
    padding: 5rem 0 2rem;
    text-align: center;
}

.footer-links a {
    color: #fff;
    margin: 0 15px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-teak);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

header.scrolled .mobile-menu-btn {
    color: var(--primary-scarlet);
}

/* Responsive */
@media (max-width: 1024px) {
    .broken-grid {
        grid-template-columns: 1fr;
    }

    .broken-grid-content {
        margin-left: 0;
        margin-top: -50px;
        width: 90%;
        margin-right: auto;
    }

    .zig-zag-row,
    .zig-zag-row:nth-child(even) {
        flex-direction: column;
    }

    .zig-zag-image,
    .zig-zag-content {
        width: 100%;
    }

    .zig-zag-image {
        height: 50vh;
    }

    .zig-zag-content {
        padding: 3rem;
    }

    .sticky-container {
        flex-direction: column;
    }

    .sticky-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 3rem;
    }

    .scroll-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Improved Mobile Padding for Content Blocks */
    .broken-grid-content,
    .zig-zag-content {
        padding: 2rem 1.5rem;
        /* Vertical 2rem, Horizontal 1.5rem */
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    /* Adjust Facilities Sidebar Title on Mobile */
    .sticky-sidebar h2 {
        font-size: 3rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .sticky-sidebar {
        text-align: center;
    }

    .scroll-item h3 {
        text-align: center;
    }

    .scroll-item p {
        text-align: center;
        /* Center short descriptions in facilities */
    }
}

/* Specific Layout for Attractions (Facilities Page) to ensure 3x2 grid */
.attractions-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .attractions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Contact Page Styles */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--primary-scarlet);
    background: transparent;
    min-width: 30px;
    text-align: center;
    margin-top: 5px;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-scarlet);
    font-weight: 600;
}

.contact-info p,
.contact-info a {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
    opacity: 0.9;
}

.contact-info .btn {
    color: var(--white);
    opacity: 1;
}

.contact-info .btn:hover {
    color: var(--primary-scarlet);
}

.contact-highlight {
    font-weight: 700;
    color: var(--primary-scarlet);
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: #25D366;
    border: 1px solid #25D366;
    color: #fff;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #fff;
    color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Social Icons Row */
.social-icons-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.social-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid var(--accent-teak);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-scarlet);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-icon-btn:hover {
    background-color: var(--primary-scarlet);
    color: var(--white);
    border-color: var(--primary-scarlet);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.2);
}

.social-logo-label {
    display: none;
    /* simple icon approach, usually cleaner */
}

.map-container {
    flex: 1.2;
    min-width: 350px;
    position: relative;
}

.map-interaction-hint {
    margin-top: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-left: 3px solid var(--primary-scarlet);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        gap: 3rem;
    }

    .map-container {
        width: 100%;
        min-height: 400px;
    }
}