/*
Theme Name:  Museum Pass Paris France
Theme URI:   https://museumpassparisfrance.com
Author:      Museum Pass Paris France
Description: A clean, elegant WordPress theme for museumpassparisfrance.com with a navy blue and gold colour scheme.
Version:     1.1.0
License:     GNU General Public License v2 or later
Text Domain: museum-pass-paris
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */

:root {
    --navy:       #1a2e5a;
    --navy-dark:  #0f1d3a;
    --navy-light: #243c74;
    --gold:       #c9a84c;
    --gold-light: #dfc07a;
    --gold-dark:  #a8863a;
    --white:      #ffffff;
    --off-white:  #f7f4ee;
    --light-grey: #e8e4da;
    --text-dark:  #1a1a1a;
    --text-mid:   #444444;
    --text-light: #777777;

    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Montserrat', sans-serif;

    --max-width:   1200px;
    --header-h:    80px;
    --radius:      4px;
    --transition:  0.25s ease;

    /* Extended palette — used by page content */
    --navy-mid:   #2a3f6b;
    --gold-pale:  #fbf5e6;
    --gold-light: #dfc07a;
    --cream:      #f8f5f0;
    --cream-dark: #f0ebe3;
    --charcoal:   #2d2d2d;
    --body-text:  #444444;
    --muted:      #6b7280;
    --terra:      #a85c40;
    --teal:       #1a6b72;
    --teal-light: #e8f4f5;
    --border:     rgba(27,43,75,0.10);
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:  0 8px 32px rgba(0,0,0,0.10);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.14);
}

/* =============================================
   RESET & BASE
   ============================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
}

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

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color var(--transition);
}

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

ul,
ol {
    list-style: none;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
    margin-bottom: 0.75em;
}

h1 { font-size: clamp(2rem,   4vw, 3rem);   }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem;  }
h6 { font-size: 1rem;    }

p {
    margin-bottom: 1.25em;
    color: var(--text-mid);
}

p:last-child {
    margin-bottom: 0;
}

blockquote {
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--off-white);
    font-style: italic;
    color: var(--text-mid);
}

/* =============================================
   LAYOUT HELPERS
   ============================================= */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.site-content,
#main-content,
.entry-content,
.page-content {
    padding: 0;
    margin: 0;
    min-height: 0;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn,
button,
input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
    background-color: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--navy-dark);
}

/* =============================================
   SITE HEADER
   ============================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.custom-logo {
    height: 52px;
    width: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin: 0;
}

.site-title span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gold-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-body);
}

/* Primary Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: color var(--transition), background-color var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
    color: var(--gold-dark);
    background-color: rgba(0,0,0,0.05);
}

/* CTA button — "Buy the Pass"
   Add the CSS class "nav-cta" to the menu item in
   Appearance › Menus (enable CSS Classes under Screen Options). */
.main-navigation .nav-cta > a {
    background-color: var(--gold);
    color: var(--navy-dark);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    border: 2px solid var(--gold);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.main-navigation .nav-cta > a:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

/* Dropdown */
.main-navigation .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: var(--navy-dark);
    border: 1px solid var(--gold-dark);
    border-radius: var(--radius);
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    display: none;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-transform: none;
    letter-spacing: 0;
}

.main-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background-color: var(--navy);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =============================================
   SITE FOOTER
   ============================================= */

.site-footer {
    background-color: #eaeff8;
    color: var(--text-mid);
    border-top: 3px solid var(--gold);
}

.footer-widgets {
    padding: 3.5rem 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand .footer-site-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.3);
}

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

.footer-col ul li a {
    color: var(--text-mid);
    font-size: 0.9rem;
    transition: color var(--transition), padding-left var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold-dark);
    padding-left: 4px;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.12);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-mid);
    margin: 0;
}

.footer-bottom a {
    color: var(--gold-dark);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.82rem;
    color: var(--text-mid);
}

.footer-nav a:hover {
    color: var(--gold-dark);
}

/* =============================================
   PAGE / POST CONTENT
   ============================================= */

.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-grey);
}

.entry-title {
    color: var(--navy);
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
}

.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25em;
    color: var(--text-mid);
}

.entry-content ol {
    list-style: decimal;
}

/* Page hero banner */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero .container {
    position: relative;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-hero .hero-subtitle {
    color: var(--gold-light);
    font-size: 1.1rem;
    font-family: var(--font-body);
}

/* Gold divider */
.gold-divider {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto;
    border-radius: 2px;
}

/* =============================================
   404 PAGE
   ============================================= */

.error-404 {
    text-align: center;
    padding: 5rem 0;
}

.error-404 .error-code {
    font-size: 8rem;
    font-family: var(--font-heading);
    color: var(--light-grey);
    line-height: 1;
    margin-bottom: 0;
}

.error-404 h2 {
    margin-bottom: 1rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 70px;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background-color: var(--white);
        border-bottom: 3px solid var(--gold);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        padding: 1rem 1.5rem;
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        padding: 0.75rem 0.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        border-radius: 0;
    }

    .main-navigation .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background-color: rgba(0,0,0,0.04);
        padding-left: 1rem;
    }

    .main-navigation li.open > .sub-menu {
        display: flex;
    }

    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ── Global Sticky Buy Bar ── */
.global-sticky-bar {
  display: none;
}

@media (max-width: 600px) {
  .global-sticky-bar {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
}
