/*
Theme Name: Morocco Africa Tours
Theme URI: https://moroccoafricatours.com
Author: Your Name
Author URI: https://moroccoafricatours.com
Description: A luxurious, fully customizable WordPress theme for a Moroccan travel agency, featuring a Zellij-inspired design.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: morocco-africa-tours
*/

/* --- TABLE OF CONTENTS --- */
/* 1. CSS Variables & Reset */
/* 2. Global Styles */
/* 3. Typography */
/* 4. Navigation */
/* 5. Hero Section */
/* 6. Section Titles */
/* 7. Card Grid */
/* 8. About Section */
/* 9. Page Builder Styles (Flexible Content) */
/* 10. Footer */
/* 11. Responsive Design */
/* 12. Page Hero Section (for regular pages) */
/* 13. Breadcrumbs */
/* 14. Page Content Styling */
/* 15. About Page Enhanced Styles */
/* ----------------------- */

/* 1. CSS Variables & Reset */
:root {
    --gold-primary: #C5A059;
    --gold-light: #E3C184;
    --gold-dark: #B58B4A;
    --charcoal: #2D2A24;
    --ivory: #F9F5EC;
    --white: #FFFFFF;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Global Styles */
body {
    font-family: var(--font-sans);
    background-color: var(--ivory);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 3. Typography */
h1, h2, h3, h4, .hero-title, .card-title, .section-title span {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 4. Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 2.5rem;
    background: rgba(45, 42, 36, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 2px solid var(--gold-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

/* Animated Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    transition: all 0.4s ease;
    animation: logoGlow 3s infinite ease-in-out;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.5));
}

@keyframes logoGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--gold-primary)) drop-shadow(0 0 5px var(--gold-primary)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 10px var(--gold-light)) drop-shadow(0 0 20px var(--gold-primary)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--gold-primary)) drop-shadow(0 0 5px var(--gold-primary)); }
}

.logo a:hover {
    animation: none;
    transform: scale(1.12) rotate(2deg);
    filter: drop-shadow(0 0 15px var(--gold-light)) drop-shadow(0 0 30px var(--gold-primary));
}

/* Navigation Menu */
.nav-links {
    display: flex;
    gap: 2.8rem;
}

.nav-links a {
    color: var(--ivory);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s;
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.nav-links a:hover,
.nav-links .current-menu-item a {
    color: var(--gold-light);
    border-bottom-color: var(--gold-primary);
}

/* 5. Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ivory);
    overflow: hidden;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(197,160,89,0.2) 0px, rgba(197,160,89,0.2) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(197,160,89,0.2) 0px, rgba(197,160,89,0.2) 2px, transparent 2px, transparent 8px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(125deg, rgba(45,42,36,0.65) 0%, rgba(45,42,36,0.35) 80%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 1000px;
    padding: 2rem;
    border: 2px solid rgba(197, 160, 89, 0.5);
    background: rgba(45, 42, 36, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 80px 20px 80px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 6.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 var(--charcoal);
    line-height: 1.0;
    color: var(--ivory);
}

.hero-sub {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.3rem;
    font-family: var(--font-sans);
    background: rgba(197, 160, 89, 0.3);
    display: inline-block;
    padding: 0.7rem 2.5rem;
    border-radius: 40px;
    border: 1px solid var(--gold-light);
    text-transform: uppercase;
}

/* 6. Section Titles */
.section-title {
    text-align: center;
    font-size: 3.2rem;
    margin: 4rem 0 2.5rem;
    color: var(--charcoal);
    font-weight: 700;
    position: relative;
}

.section-title span {
    color: var(--gold-dark);
    font-style: italic;
    border-bottom: 3px double var(--gold-primary);
}

.section-title::before,
.section-title::after {
    content: "✦";
    color: var(--gold-primary);
    font-size: 2rem;
    margin: 0 1.5rem;
    opacity: 0.7;
}

/* 7. Card Grid */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.2rem;
    margin: 3rem 0;
}

.card {
    background: var(--white);
    border-radius: 40px 12px 40px 12px;
    overflow: hidden;
    box-shadow: 0 25px 40px -15px rgba(45,42,36,0.2), 0 0 0 2px var(--gold-primary) inset, 0 0 0 4px var(--white) inset;
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: 10px; left: 10px; width: 50px; height: 50px;
    background: linear-gradient(45deg, var(--gold-primary) 0%, var(--gold-primary) 20%, transparent 80%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0.4;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 55px -15px var(--gold-dark), 0 0 0 3px var(--gold-light) inset, 0 0 0 6px var(--white) inset;
}

.card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: 0.6s;
    border-bottom: 4px solid var(--gold-primary);
}

.card-content {
    padding: 2rem 1.8rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    color: var(--charcoal);
}

.card-desc {
    font-size: 0.95rem;
    color: #5e5548;
    margin-bottom: 1.8rem;
    flex: 1;
    font-weight: 300;
}

.btn-luxury {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--charcoal);
    padding: 0.9rem 2rem;
    border-radius: 40px 8px 40px 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.4s;
    align-self: flex-start;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-luxury:hover {
    background: var(--gold-primary);
    color: var(--white);
    border-color: var(--gold-dark);
    box-shadow: 0 8px 18px -6px var(--gold-primary);
}

/* 8. About Section */
.about-section {
    background: var(--charcoal);
    color: var(--ivory);
    padding: 5rem 0;
    margin: 5rem 0;
    border-radius: 0 120px 0 120px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
    position: relative;
    isolation: isolate;
}

.about-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, #C5A05910 0px, #C5A05910 4px, transparent 4px, transparent 20px),
        repeating-linear-gradient(135deg, #C5A05910 0px, #C5A05910 4px, transparent 4px, transparent 20px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    border-radius: 0 120px 0 120px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 60px 12px 60px 12px;
    box-shadow: 25px 25px 0 var(--gold-primary);
    border: 4px solid var(--ivory);
}

.about-text h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--ivory);
    font-weight: 700;
}

.about-text h3 span {
    color: var(--gold-light);
    border-bottom: 3px double var(--gold-primary);
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: #EDE3D6;
    font-weight: 300;
}

.about-highlight {
    background: rgba(197, 160, 89, 0.12);
    border-left: 6px solid var(--gold-primary);
    padding: 1.8rem 2.5rem;
    font-style: italic;
    border-radius: 0 50px 0 50px;
    font-size: 1.2rem;
    color: #F2E6D9;
    margin-top: 1.5rem;
    border-right: 2px solid var(--gold-primary);
}

/* 9. Page Builder Styles (Flexible Content) */
.page-content {
    padding: 4rem 0;
}

/* 10. Footer */
footer {
    background: var(--charcoal);
    color: #EDE3D6;
    padding: 4rem 0 2.5rem;
    margin-top: 5rem;
    border-top: 8px double var(--gold-primary);
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(45deg, #C5A05908 2px, transparent 2px),
        linear-gradient(-45deg, #C5A05908 2px, transparent 2px);
    background-size: 40px 40px;
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-contact p {
    margin: 0.6rem 0;
    font-size: 1rem;
    color: #CCC2B5;
}

.footer-contact i {
    color: var(--gold-primary);
    width: 2rem;
    font-size: 1.2rem;
}

.social-icons a {
    color: #EDE3D6;
    font-size: 2rem;
    margin-left: 1.5rem;
    transition: 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--gold-primary);
    transform: translateY(-5px);
}

hr {
    border: 1px solid #C5A05930;
    margin: 2.5rem 0 1.5rem;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #9f9589;
}

/* 11. Responsive Design */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links {
        gap: 1.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo img {
        height: 50px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2.5rem;
    }
    .section-title::before,
    .section-title::after {
        display: none;
    }
}

/* 12. Page Hero Section (for regular pages) */
.page-hero {
    height: 50vh;
    min-height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
    margin-top: 90px;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45,42,36,0.8) 0%, rgba(45,42,36,0.4) 100%);
    display: flex;
    align-items: center;
}

.page-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--ivory);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    border-left: 6px solid var(--gold-primary);
    padding-left: 2rem;
}

.page-hero-excerpt {
    font-size: 1.2rem;
    color: var(--ivory);
    max-width: 600px;
    font-weight: 300;
    padding-left: 2rem;
    border-left: 6px solid var(--gold-light);
}

/* 13. Breadcrumbs */
.breadcrumbs {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.breadcrumbs a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--gold-primary);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--gold-primary);
}

.breadcrumbs .current {
    color: var(--gold-dark);
    font-weight: 500;
}

/* 14. Page Content Styling */
.page-content {
    padding: 4rem 0;
}

.page-content-inner {
    background: var(--white);
    padding: 3rem;
    border-radius: 40px 12px 40px 12px;
    box-shadow: 0 20px 40px -15px rgba(45,42,36,0.2);
    border: 2px solid var(--gold-primary);
    position: relative;
}

.page-content-inner::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-primary) 20%, transparent 80%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0.1;
    pointer-events: none;
}

.page-content h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin: 2rem 0 1rem;
    color: var(--charcoal);
    border-bottom: 2px solid var(--gold-light);
    padding-bottom: 0.5rem;
}

.page-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    color: var(--charcoal);
}

.page-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 4px solid var(--ivory);
    outline: 2px solid var(--gold-primary);
}

.page-content blockquote {
    background: var(--ivory);
    border-left: 6px solid var(--gold-primary);
    padding: 2rem;
    font-style: italic;
    font-size: 1.1rem;
    margin: 2rem 0;
    border-radius: 0 30px 0 30px;
}

/* 15. About Page Enhanced Styles */
.about-section-enhanced {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image-col {
    position: relative;
}

.about-feature-img {
    width: 100%;
    border-radius: 40px 12px 40px 12px;
    box-shadow: 20px 20px 0 var(--gold-primary);
    border: 4px solid var(--white);
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
    background: var(--charcoal);
    padding: 2rem;
    border-radius: 20px;
    color: var(--ivory);
    border: 2px solid var(--gold-primary);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-serif);
    color: var(--gold-primary);
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text-col {
    background: var(--white);
    padding: 3rem;
    border-radius: 40px 12px 40px 12px;
    box-shadow: 0 20px 40px -15px rgba(45,42,36,0.2);
    border: 2px solid var(--gold-primary);
}

@media (max-width: 768px) {
    .page-hero {
        height: 40vh;
        min-height: 300px;
        margin-top: 80px;
    }
    
    .page-hero-title {
        font-size: 2rem;
        padding-left: 1rem;
    }
    
    .page-hero-excerpt {
        font-size: 1rem;
        padding-left: 1rem;
    }
    
    .page-content-inner {
        padding: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}