/* ==============================================
   GLOBAL STYLES - Le Comptoir Rivage
   Full Responsive - Mobile First
   ============================================== */

/* === CSS RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === ROOT VARIABLES === */
:root {
    /* Colors */
    --color-primary: #1F3D2B;
    --color-secondary: #6B1E1E;
    --color-accent: #C8A45D;
    --color-bg-light: #F5EFE7;
    --color-bg-dark: #1E1E1E;
    --color-text-light: #F5EFE7;
    --color-text-dark: #1E1E1E;
    --color-text-beige: #EDE4D8;
    --color-border: rgba(200, 164, 93, 0.3);
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Manrope', sans-serif;
    
    /* Fluid Spacing */
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(1rem, 2vw, 1.5rem);
    --spacing-md: clamp(1.5rem, 3vw, 2rem);
    --spacing-lg: clamp(2rem, 4vw, 4rem);
    --spacing-xl: clamp(3rem, 6vw, 6rem);
    --spacing-2xl: clamp(4rem, 8vw, 8rem);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Header Height */
    --header-height: 70px;
}

@media (min-width: 768px) {
    :root {
        --header-height: 80px;
    }
}

/* === BASE STYLES === */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 6rem); }
h2 { font-size: clamp(1.75rem, 4vw + 0.5rem, 3.75rem); }
h3 { font-size: clamp(1.25rem, 3vw + 0.25rem, 1.875rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

p {
    font-size: clamp(0.875rem, 1vw + 0.25rem, 1.125rem);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-medium);
}

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

/* === BUTTONS === */
.btn-primary, .btn-secondary, .btn-link, .cta-phone, .cta-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    font-family: var(--font-sans);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: #8B2828;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-link {
    background: none;
    padding: 0;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.025rem;
}

.btn-link:hover {
    gap: 1rem;
}

.btn-link svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform var(--transition-medium);
}

.btn-link:hover svg {
    transform: translateX(4px);
}

/* === SECTION STYLES === */
section {
    position: relative;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1440px) {
    .container {
        padding: 0 3rem;
    }
}

.section-label {
    color: var(--color-accent);
    font-size: clamp(0.625rem, 1.5vw, 0.75rem);
    font-weight: 400;
    letter-spacing: 0.225rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3.75rem);
    color: inherit;
    margin-bottom: 1.5rem;
}

.title-divider {
    width: clamp(60px, 10vw, 80px);
    height: 2px;
    background-color: var(--color-accent);
    margin: var(--spacing-md) 0;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

@media (min-width: 768px) {
    .header-container {
        padding: 0 2rem;
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

@media (min-width: 768px) {
    .logo {
        gap: 0.75rem;
    }
}

.logo-icon {
    width: 32px;
    height: 32px;
}

@media (min-width: 768px) {
    .logo-icon {
        width: 40px;
        height: 40px;
    }
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-text-light);
}

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

.logo-main {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0.025rem;
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: clamp(0.625rem, 1.5vw, 0.875rem);
    font-weight: 300;
    color: var(--color-text-light);
    letter-spacing: 0.175rem;
    text-transform: uppercase;
}

/* Navigation Desktop */
.nav {
    display: none;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0.0437rem;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-medium);
}

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

.nav-link.active {
    color: var(--color-accent);
}

/* Reserve Button */
.btn-reserve {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
    padding: 0.625rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .btn-reserve {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

.btn-reserve:hover {
    background-color: #D4B46D;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-reserve svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 768px) {
    .btn-reserve svg {
        width: 18px;
        height: 18px;
    }
}

.btn-reserve span {
    display: none;
}

@media (min-width: 768px) {
    .btn-reserve span {
        display: inline;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--color-text-light);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
    z-index: 999;
    display: block;
}

@media (min-width: 1024px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links a,
.mobile-nav-links .nav-link {
    display: block;
    color: var(--color-text-light);
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(200, 164, 93, 0.2);
    transition: all var(--transition-medium);
    text-decoration: none;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active,
.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
    color: var(--color-accent);
    padding-left: 2rem;
    background-color: rgba(200, 164, 93, 0.1);
}

/* === FOOTER === */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .footer-container {
        padding: 0 2rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(237, 228, 216, 0.7);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.social-link:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-text-light);
}

.footer-title {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.footer-links, .footer-hours, .footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(237, 228, 216, 0.7);
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    font-weight: 500;
}

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

.footer-hours li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-hours .day {
    color: var(--color-accent);
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    font-weight: 500;
}

.footer-hours .hours {
    color: rgba(237, 228, 216, 0.7);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 300;
}

.footer-hours .closed {
    color: rgba(237, 228, 216, 0.5);
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--color-text-light);
}

.footer-contact a, .footer-contact span {
    color: rgba(237, 228, 216, 0.7);
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    font-weight: 300;
    word-break: break-word;
}

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

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
    margin: var(--spacing-md) 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    color: rgba(237, 228, 216, 0.5);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 300;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-legal {
        gap: 1.5rem;
    }
}

.footer-legal a {
    color: rgba(237, 228, 216, 0.5);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 300;
}

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

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-block {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    .d-lg-none {
        display: none !important;
    }
    
    .d-lg-block {
        display: block !important;
    }
}