/* ============================================
   MONET CMS V2 — Mediterranean Theme
   Vintage. Organic. Timeless.
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* === V2 MEDITERRANEAN PALETTE === */
    --color-cream: #FAF6F0;              /* Sun-bleached linen */
    --color-tan: #E2CDB0;                /* Warm sand, lighter */
    --color-tan-light: #EDE3D4;           /* Pale courtyard stone */
    --color-brown-dark: #2C1810;           /* Deep espresso */
    --color-brown-medium: #5C3D2E;         /* Warm earth */
    --color-brown-light: #8B6F5E;          /* Weathered terracotta pot */
    --color-white: #FFFCF7;               /* Warm parchment white */
    --color-dark-section: #2C1810;         /* Deep anchor */

    /* Mediterranean accents */
    --color-terracotta: #C4724B;           /* Andalusian rooftop */
    --color-terracotta-light: #D4946F;     /* Sun-warmed clay */
    --color-blue-med: #2B6F8A;             /* Mediterranean sea */
    --color-blue-light: #5A9DB8;           /* Coastal sky */
    --color-olive: #7A8B6F;                /* Courtyard olive tree */
    --color-gold: #C9A84C;                 /* Gaudí mosaic gold */
    --color-warm-white: #F5EDE0;           /* Whitewashed village wall */
    --color-mosaic-teal: #3A8F8B;          /* Trencadís fragment */

    /* Fonts — V2 Mediterranean Soul */
    --font-header: 'Playfair Display', 'Georgia', serif;       /* Loubag stand-in — headers */
    --font-title: 'Cormorant Garamond', 'Georgia', serif;      /* Organic, vintage titles */
    --font-body: 'Lora', 'Georgia', serif;                     /* Warm blog body */
    --font-body-sans: 'Montserrat', sans-serif;                /* UI text, meta, small */
    --font-journal: 'Cormorant Garamond', serif;               /* Journal — intimate, handwritten feel */

    --max-width: 1100px;
    --content-width: 700px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-brown-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* Subtle warm linen texture via gradient */
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(196, 114, 75, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(58, 143, 139, 0.02) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(201, 168, 76, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
}

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

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

/* ============================================
   MEDITERRANEAN DIVIDERS — Mosaic & Tile Inspired
   ============================================ */

/* Simpler decorative divider — mosaic tile motif */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 20px auto;
    max-width: 450px;
    padding: 0 20px;
}

/* Tighter dividers around nav */
.nav-divider {
    margin: 2px auto;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-terracotta) 30%, var(--color-gold) 50%, var(--color-terracotta) 70%, transparent);
    opacity: 0.35;
}

.divider-swirl {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0;
    line-height: 0;
}

/* Mosaic diamond pattern — replacing Victorian swirls */
.divider-swirl::before,
.divider-swirl::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-terracotta);
    transform: rotate(45deg);
    opacity: 0.45;
}

.divider-swirl::after {
    background: var(--color-mosaic-teal);
}

/* Center diamond — gold Gaudí accent */
.mosaic-diamond {
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    transform: rotate(45deg);
    opacity: 0.5;
}

/* ============================================
   HAMBURGER MENU (Mobile)
   ============================================ */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-brown-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Slide-in mobile menu panel — Mediterranean warmth */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: rgba(237, 227, 212, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 80px 40px 40px;
    box-shadow: -4px 0 30px rgba(44, 24, 16, 0.12);
    border-left: 3px solid var(--color-terracotta);
    border-image: linear-gradient(to bottom, var(--color-terracotta), var(--color-gold), var(--color-mosaic-teal)) 1;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    font-family: var(--font-header);
    font-size: 1.6rem;
    color: var(--color-brown-dark);
    text-align: center;
    margin-bottom: 10px;
}

.mobile-menu nav {
    margin-top: 30px;
}

.mobile-menu nav a {
    display: block;
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-brown-dark);
    text-align: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(196, 114, 75, 0.12);
    transition: color 0.3s;
}

.mobile-menu nav a:last-child {
    border-bottom: none;
}

.mobile-menu nav a:hover {
    color: var(--color-terracotta);
}

/* Mobile menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-overlay.visible {
    opacity: 1;
}

/* ============================================
   TRENCADÍS MOSAIC BAND — Gaudí's crown
   ============================================ */
.trencadis-band {
    width: 100%;
    line-height: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-cream);
}

.trencadis-band img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

/* ============================================
   ANDALUSIAN MOUNTAIN SILHOUETTE — Ghost landscape
   ============================================ */
.mountain-silhouette {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45vh;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

.mountain-silhouette svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   SITE HEADER & NAVIGATION
   ============================================ */
.site-header {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 35px 20px 0;
    background: var(--color-cream);
}

.site-title {
    font-family: var(--font-header);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--color-brown-dark);
    letter-spacing: 1px;
    font-style: italic;
}

/* Logo image title (replaces text when available) */
.site-title-img {
    max-width: 380px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: sepia(0.08) saturate(1.1);
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 4px 20px;
    position: relative;
}

.main-nav a {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-brown-dark);
    padding: 5px 0;
    position: relative;
    transition: color 0.3s, opacity 0.2s;
    letter-spacing: 0.03em;
}

.main-nav a:hover {
    color: var(--color-terracotta);
    opacity: 1;
}

.main-nav a.active {
    color: var(--color-terracotta);
    text-decoration: none;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-terracotta), var(--color-gold));
    border-radius: 1px;
}

/* ============================================
   TRAVEL STATS RIBBON
   ============================================ */
.travel-stats {
    position: relative;
    z-index: 1;
    padding: 12px 20px 14px;
}

.travel-stats-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.stat-item i {
    font-size: 0.85rem;
    color: var(--color-terracotta);
    opacity: 0.55;
    margin-bottom: 1px;
}

.stat-number {
    font-family: var(--font-header);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-brown-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--font-body-sans);
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--color-brown-light);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ============================================
   BLOG SECTION & CARDS
   ============================================ */
#blogs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 30px 50px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    position: relative;
    z-index: 1;
}

/* Blog Post List */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px 24px;
    border-bottom: 1px solid rgba(196, 114, 75, 0.1);
    transition: background-color 0.3s, transform 0.3s;
    border-radius: 4px;
}

.blog-card:last-child {
    border-bottom: none;
}

.blog-card:hover {
    background-color: rgba(245, 237, 224, 0.6);
    transform: translateX(4px);
}

.blog-card-image {
    width: 280px;
    min-width: 280px;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--color-tan-light);
    box-shadow: 0 3px 12px rgba(44, 24, 16, 0.1), 0 1px 4px rgba(196, 114, 75, 0.08);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-content {
    flex: 1;
}

.blog-card-meta {
    font-family: var(--font-body-sans);
    font-size: 0.75rem;
    color: var(--color-terracotta);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-card-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-brown-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.blog-card-excerpt {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-brown-medium);
    font-weight: 300;
}

.read-more {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-terracotta);
    display: inline-block;
    margin-top: 12px;
    transition: color 0.3s;
    position: relative;
    letter-spacing: 0.02em;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-terracotta), var(--color-gold));
    transition: width 0.3s ease;
    border-radius: 1px;
}

.read-more:hover::after {
    width: 100%;
}

.read-more:hover {
    color: var(--color-brown-dark);
}

/* ============================================
   SIDEBAR — Courtyard wall feel
   ============================================ */
.sidebar {
    border-left: 2px solid transparent;
    border-image: linear-gradient(to bottom, var(--color-terracotta) 0%, var(--color-tan) 50%, transparent 100%) 1;
    padding-left: 35px;
}

.sidebar-section {
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(245, 237, 224, 0.5), rgba(226, 205, 176, 0.2));
    border-radius: 8px;
    padding: 25px 20px;
    border: 1px solid rgba(196, 114, 75, 0.08);
}

.sidebar-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-brown-dark);
    text-align: left;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}

.sidebar-list {
    list-style: none;
    text-align: left;
}

.sidebar-list li {
    padding: 7px 0;
    border-bottom: 1px solid rgba(196, 114, 75, 0.06);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li a {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--color-brown-medium);
    transition: color 0.3s, padding-left 0.3s;
}

.sidebar-list li a:hover {
    color: var(--color-terracotta);
    padding-left: 6px;
}

/* ============================================
   QUOTE SECTION
   ============================================ */
.quote-section {
    background: linear-gradient(135deg, #3A2A1E 0%, #2C1810 40%, #1E2A2E 100%);
    padding: 65px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Subtle mosaic tile overlay */
.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(196, 114, 75, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(58, 143, 139, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 10%, rgba(201, 168, 76, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

/* Top accent line — mosaic gradient */
.quote-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-terracotta) 20%, var(--color-gold) 50%, var(--color-mosaic-teal) 80%, transparent);
    opacity: 0.6;
}

/* Bottom accent — matching */
.quote-bottom-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-mosaic-teal) 20%, var(--color-gold) 50%, var(--color-terracotta) 80%, transparent);
    opacity: 0.6;
}

.quote-text {
    font-family: var(--font-header);
    font-size: 1.55rem;
    font-style: italic;
    color: var(--color-warm-white);
    max-width: none;
    margin: 0 auto 6px;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.quote-attribution {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--color-terracotta-light);
    letter-spacing: 0.04em;
    font-weight: 400;
}

/* Quote divider — light on dark */
.quote-divider::before,
.quote-divider::after {
    background: linear-gradient(90deg, transparent, rgba(212, 148, 111, 0.4) 30%, rgba(201, 168, 76, 0.3) 50%, rgba(212, 148, 111, 0.4) 70%, transparent) !important;
}

.quote-divider .divider-swirl::before {
    background: var(--color-terracotta-light) !important;
    opacity: 0.5 !important;
}

.quote-divider .divider-swirl::after {
    background: var(--color-gold) !important;
    opacity: 0.4 !important;
}

/* ============================================
   JOURNAL SECTION
   ============================================ */
.journal-section {
    padding: 65px 30px 50px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-warm-white) 100%);
    position: relative;
    z-index: 1;
}

/* Top accent — like a courtyard tile border */
.journal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-mosaic-teal) 20%, var(--color-gold) 50%, var(--color-terracotta) 80%, transparent);
    opacity: 0.4;
}

.journal-section-title {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-brown-dark);
    margin-bottom: 10px;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: var(--max-width);
    margin: 30px auto 0;
}

.journal-card {
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-white);
    border-radius: 8px;
    padding: 0 0 18px;
    overflow: hidden;
    border: 1px solid rgba(196, 114, 75, 0.08);
}

.journal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(44, 24, 16, 0.1), 0 2px 6px rgba(196, 114, 75, 0.08);
}

.journal-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: var(--color-tan-light);
}

.journal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.journal-card:hover .journal-card-image img {
    transform: scale(1.05);
}

.journal-card-excerpt {
    font-family: var(--font-journal);
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-brown-medium);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 10px;
    padding: 0 16px;
}

.journal-card-date {
    font-family: var(--font-body-sans);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-terracotta);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 16px;
}

/* ============================================
   SUBSCRIBE FOOTER
   ============================================ */
.subscribe-section {
    background: linear-gradient(180deg, var(--color-warm-white) 0%, rgba(226,205,176,0.85) 60%, rgba(226,205,176,0.6) 100%);
    padding: 65px 30px 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Top mosaic border */
.subscribe-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-terracotta) 20%, var(--color-gold) 50%, var(--color-mosaic-teal) 80%, transparent);
    opacity: 0.4;
}

.subscribe-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.subscribe-label {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-brown-dark);
    letter-spacing: 0.03em;
}

.subscribe-input {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 13px 22px;
    border: 1px solid rgba(196, 114, 75, 0.2);
    border-radius: 4px;
    background-color: var(--color-white);
    color: var(--color-brown-dark);
    width: 300px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.subscribe-input::placeholder {
    color: var(--color-brown-light);
    font-weight: 300;
}

.subscribe-input:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(196, 114, 75, 0.1);
}

.subscribe-button {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 13px 32px;
    background: linear-gradient(135deg, var(--color-terracotta), #A85A3A);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.03em;
}

.subscribe-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 114, 75, 0.25);
}

.footer-text {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-brown-medium);
    margin-top: 10px;
    letter-spacing: 0.03em;
}

/* Mountain breathing room */
.mountain-breathing-room {
    height: 120px;
    position: relative;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(226,205,176,0.4) 0%, transparent 100%);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 900px) {
    #blogs {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 20px 50px;
    }

    .sidebar {
        border-left: none;
        border-top: 1px solid rgba(61, 43, 31, 0.12);
        padding-left: 0;
        padding-top: 30px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .travel-stats-inner {
        gap: 40px;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 640px) {
    .hamburger {
        display: block;
        position: fixed;
        top: 18px;
        right: 18px;
        z-index: 1001;
    }

    .mobile-menu {
        display: block;
    }

    .menu-overlay {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .nav-divider {
        display: none;
    }

    .site-title {
        font-size: 2rem;
    }

    .site-header {
        padding: 35px 20px 0;
    }

    #blogs {
        padding: 20px 16px 40px;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-card-image {
        width: 100%;
        min-width: unset;
        height: 220px;
        border-radius: 6px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .journal-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .quote-text {
        font-size: 1.25rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-input {
        width: 100%;
        max-width: 300px;
    }

    .mobile-menu-header {
        font-size: 1.4rem;
    }

    .travel-stats {
        padding: 10px 12px;
    }

    .travel-stats-inner {
        display: flex;
        gap: 24px;
    }

    .stat-item i {
        font-size: 0.75rem;
    }

    .stat-number {
        font-size: 1.15rem;
    }

    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 1.2px;
    }
}