/* ============================================
   MOUSLI HERITAGE TEMPLATE - MAIN STYLES
   Family History & Genealogy Ready
   Palette: Forest Green · Parchment · Gold
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&family=Scheherazade+New:wght@400;700&display=swap');

/* CSS Variables */
:root {
    --primary:       #1a3a2f;
    --primary-light: #2d5a45;
    --primary-dark:  #0f241c;
    --accent:        #c9a227;
    --accent-light:  #e0b93a;
    --accent-dark:   #a37f18;
    --bg-main:       #f4efe3;
    --bg-light:      #faf8f2;
    --bg-dark:       #e6dece;
    --text-main:     #26231e;
    --text-light:    #52483c;
    --text-muted:    #8c7e6a;
    --border:        #d0c9ba;
    --border-light:  #e4dfd4;
    --white:         #ffffff;
    --shadow:        rgba(26, 58, 47, 0.08);
    --shadow-dark:   rgba(26, 58, 47, 0.18);
    --radius:        5px;
    --radius-lg:     10px;
    --transition:    all 0.3s ease;
    --font-heading:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body:     'Lato', 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-arabic:   'Scheherazade New', 'Traditional Arabic', 'Arial', sans-serif;
    --max-width:     1200px;
}

/* 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);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
    background: var(--primary-dark);
    color: var(--accent);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--accent-dark);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 15px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    min-height: 80px;
}

/* Logo */
.logo-area {
    flex-shrink: 0;
}

.logo-link {
    display: block;
}

.logo-img {
    max-height: 70px;
    width: auto;
    transition: var(--transition);
}

.logo-text-link {
    display: block;
    text-decoration: none;
}

.logo-text-main {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 2px;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--accent-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Navigation */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 12px 22px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav a:hover,
.main-nav li.active a {
    color: var(--primary);
}

.main-nav a:hover::after,
.main-nav li.active a::after {
    width: 60%;
}

/* Dropdown */
.main-nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 20px var(--shadow-dark);
    border-radius: var(--radius);
    min-width: 220px;
    padding: 10px 0;
    z-index: 999;
}

.main-nav li:hover > ul {
    display: block;
}

.main-nav li ul li {
    display: block;
}

.main-nav li ul a {
    padding: 10px 20px;
    font-size: 0.9rem;
    text-transform: none;
    border-bottom: 1px solid var(--border-light);
}

.main-nav li ul a::after {
    display: none;
}

.main-nav li ul a:hover {
    background: var(--bg-light);
    padding-left: 25px;
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    position: relative;
    background: var(--primary);
    color: var(--white);
    padding: 0;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.hero-banner .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-wrap {
    background: var(--bg-dark);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-wrap .container {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb-wrap a {
    color: var(--primary-light);
}

.breadcrumb-wrap a:hover {
    color: var(--accent);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: 50px 0;
    min-height: 500px;
}

.content-grid {
    display: grid;
    gap: 40px;
}

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

.content-grid.left-sidebar {
    grid-template-columns: 280px 1fr;
}

.content-grid.right-sidebar {
    grid-template-columns: 1fr 280px;
}

.content-grid.both-sidebars {
    grid-template-columns: 260px 1fr 260px;
}

.content-area {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 15px var(--shadow);
}

/* Sidebar */
.sidebar {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 15px var(--shadow);
    align-self: start;
}

.sidebar .module-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ============================================
   MODULES
   ============================================ */
.top-modules,
.bottom-modules {
    padding: 40px 0;
    background: var(--bg-light);
}

.user-modules {
    padding: 60px 0;
    background: var(--primary);
    color: var(--white);
}

.user-modules h2,
.user-modules h3 {
    color: var(--accent);
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.user-module {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.user-module:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 50px 0 20px;
    border-top: 3px solid var(--accent);
}

.footer-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-modules h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-modules a {
    color: #b0c4b1;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.footer-sep {
    color: var(--accent-dark);
    margin: 0 8px;
}

.footer-origin {
    color: #b0c4b1;
    letter-spacing: 1px;
}

.footer-copy {
    color: var(--text-muted);
}

/* ============================================
   FAMILY HISTORY & GENEALOGY STYLES
   ============================================ */

/* Timeline for family history */
.family-timeline {
    position: relative;
    padding-left: 40px;
}

.family-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 30px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-content {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Genealogy Tree */
.genealogy-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.gen-generation {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gen-person {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    min-width: 180px;
    transition: var(--transition);
    position: relative;
}

.gen-person::after {
    content: '';
    position: absolute;
    bottom: -32px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: var(--accent);
    transform: translateX(-50%);
}

.gen-person:last-child::after {
    display: none;
}

.gen-person:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 20px var(--shadow);
    transform: translateY(-3px);
}

.gen-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin: 0 auto 12px;
    border: 2px solid var(--accent);
}

.gen-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.gen-dates {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.gen-location {
    font-size: 0.8rem;
    color: var(--accent-dark);
    font-style: italic;
}

/* Family Cards */
.family-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
}

.family-card:hover {
    box-shadow: 0 8px 30px var(--shadow-dark);
    transform: translateY(-5px);
}

.family-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--primary);
}

.family-card-body {
    padding: 25px;
}

.family-card-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.family-card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.family-card-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.family-card-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Heritage Quote Block */
.heritage-quote {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.heritage-quote::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.heritage-quote p {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--white);
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.heritage-quote cite {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

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

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   FORMS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

/* ============================================
   TABLES (Genealogy data)
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

th {
    background: var(--primary);
    color: var(--accent);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
}

tr:hover td {
    background: var(--bg-light);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination a:hover,
.pagination .active span {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.alert-error {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .content-grid.left-sidebar,
    .content-grid.right-sidebar,
    .content-grid.both-sidebars {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .content-area {
        order: 1;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .header-inner {
        flex-wrap: wrap;
        padding: 12px 15px;
        min-height: 70px;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 20px var(--shadow-dark);
        padding: 10px 0;
        border-top: 2px solid var(--accent);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--border-light);
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav li ul {
        position: static;
        box-shadow: none;
        padding: 0;
        display: none;
    }

    .main-nav li.active > ul {
        display: block;
    }

    .content-area {
        padding: 25px;
    }

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

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

    .family-timeline {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -26px;
    }

    .heritage-quote p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-text-main {
        font-size: 1.4rem;
    }

    .content-area {
        padding: 20px;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* RTL Support */
.rtl .main-nav ul {
    flex-direction: row-reverse;
}

.rtl .family-timeline {
    padding-left: 0;
    padding-right: 40px;
}

.rtl .family-timeline::before {
    left: auto;
    right: 15px;
}

.rtl .timeline-item {
    border-left: none;
    border-right: 3px solid var(--primary);
}

.rtl .timeline-item::before {
    left: auto;
    right: -33px;
}

@media (max-width: 768px) {
    .rtl .main-nav ul {
        flex-direction: column;
    }

    .rtl .family-timeline {
        padding-right: 30px;
    }

    .rtl .timeline-item::before {
        right: -26px;
    }
}

/* ============================================
   MODULE CHROME STYLES
   ============================================ */

/* Card chrome */
.module-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 15px var(--shadow);
    overflow: hidden;
    margin-bottom: 25px;
}

.module-card-header {
    padding: 18px 25px 0;
}

.module-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.module-card-line {
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
    margin-bottom: 0;
}

.module-card-body {
    padding: 20px 25px 25px;
}

/* Heritage chrome */
.module-heritage {
    padding: 40px;
    color: var(--white);
}

.module-heritage-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.module-heritage-body {
    color: rgba(255,255,255,0.9);
}

/* Sidebar chrome */
.module-sidebar {
    margin-bottom: 25px;
}

.module-sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.module-sidebar-title span {
    flex: 1;
}

.module-sidebar-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1rem;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Footer chrome */
.module-footer-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.module-footer-body {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.module-footer-body a {
    color: #9dbfa0;
    transition: var(--transition);
}

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

/* ============================================
   ARABIC TYPOGRAPHY REFINEMENTS
   ============================================ */
.arabic-text,
.arabic-name,
[lang="ar"],
[dir="rtl"] {
    font-family: var(--font-arabic);
}

.arabic-name {
    font-size: 1.4rem;
    line-height: 2;
    color: var(--primary);
}

/* ============================================
   HEADER IMPROVEMENTS
   ============================================ */

/* Thin gold accent strip above header */
.site-header::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(to right, var(--primary-dark), var(--accent), var(--primary-dark));
}

/* Logo hover lift */
.logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 12px rgba(201, 162, 39, 0.3));
}

/* Active nav item */
.main-nav li.active > a,
.main-nav li.current > a {
    color: var(--accent-dark);
    font-weight: 700;
}

.main-nav li.active > a::after,
.main-nav li.current > a::after {
    width: 70%;
    background: var(--accent);
}

/* Dropdown triangle indicator */
.main-nav li:has(> ul) > a::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.6;
    position: relative;
    top: -1px;
}

/* Dropdown border accent */
.main-nav li ul {
    border-top: 2px solid var(--accent);
}

/* ============================================
   HERO BANNER IMPROVEMENTS
   ============================================ */

/* Pattern overlay using SVG */
.hero-banner::before {
    background-image: url('../images/mousli-pattern.svg');
    background-size: 120px 120px;
    background-repeat: repeat;
}

/* ============================================
   FOOTER IMPROVEMENTS
   ============================================ */

/* Ornament line above footer */
.site-footer::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    margin-bottom: 0;
}

/* Footer logo area if present */
.footer-logo {
    max-height: 60px;
    opacity: 0.85;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.loaded .site-header {
    animation: fadeInUp 0.5s ease both;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}
