/* =========================================
   MATTITO HOTEL - MODERN DESIGN SYSTEM
   ========================================= */

/* 1. IMPORT FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Lato:wght@300;400;700;900&display=swap');

/* 2. ROOT VARIABLES */
:root {
    /* Colors */
    --primary-red: #C41E3A;       /* Deep Cardinal Red */
    --primary-dark: #8a1529;      /* Darker Red for Hover */
    --accent-gold: #D4AF37;       /* Subtle Gold Accent */
    
    --text-main: #1a1a1a;         /* Almost Black */
    --text-light: #666666;        /* Grey for body text */
    --text-white: #ffffff;
    
    --bg-white: #ffffff;
    --bg-off-white: #fcfcfc;
    --bg-light-grey: #f4f4f4;
    
    --border-color: #eaeaea;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    
    /* Spacing & Radius */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-pill: 50px;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* 3. GLOBAL RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-off-white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* --- PREMIUM LOGO --- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-red);
    stroke-width: 2.5;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: -2px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-red);
}

/* Nav Buttons */
.btn-secondary-nav {
    padding: 8px 20px;
    border: 1px solid var(--text-main);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    transition: all 0.3s;
}

.btn-secondary-nav:hover {
    background: var(--text-main);
    color: var(--text-white);
}

.btn-primary-nav {
    padding: 10px 24px;
    background: var(--primary-red);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(196, 30, 58, 0.3);
    transition: all 0.3s;
}

.btn-primary-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(196, 30, 58, 0.4);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: var(--text-white);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-white) !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #f0f0f0 !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.btn-hero-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-outline:hover {
    background: var(--text-white);
    color: var(--primary-red);
}

/* =========================================
   SECTIONS & CARDS
   ========================================= */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    margin: 15px auto 0;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-white);
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 1.1rem;
}

.btn-white {
    background: var(--text-white);
    color: var(--primary-red);
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.btn-white:hover {
    background: var(--bg-off-white);
    transform: translateY(-2px);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: #111;
    color: #aaa;
    padding: 70px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-section p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-section a {
    color: #aaa;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
}

/* =========================================
   UTILITIES
   ========================================= */
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
        gap: 20px;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero-title { font-size: 2.5rem; }
    .hero-section { height: 70vh; min-height: 500px; }
    
    .btn { width: 100%; }
    .hero-buttons { flex-direction: column; }
    
    .logo-main { font-size: 1.3rem; }
    .logo-sub { font-size: 0.6rem; }
    .logo-icon { width: 28px; height: 28px; }
}


/* ... inside style.css ... */

.btn-hero-primary {
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    display: inline-block; /* Ensures it behaves like a button */
}

.btn-hero-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block; /* Ensures it behaves like a button */
}

.btn-hero-outline:hover {
    background: var(--text-white);
    color: var(--primary-red);
}