/*
Theme Name: Ancient Trades Theme
Theme URI: https://ancient.trade
Author: Ancient Trade Website Development Team
Author URI: https://ancient.trade
Description: A custom WordPress theme for Ancient Trades website, based on our V2 design featuring Indigenous-inspired tribal patterns and cultural respect.
Version: 2.0
License: MIT-style
License URI: https://ancient.trade/LICENSE.md
Text Domain: ancient-trades-theme
Tags: custom-theme, responsive, indigenous, cultural
*/

/* -- Original CSS from Ancient Trade Website V2 starts here -- */
/* 
 * Ancient Trades Website - Main Stylesheet
 * 
 * Color Palette:
 * - Primary: #8B0000 (Dark Red)
 * - Secondary: #F5F5DC (Beige/Off-white)
 * - Accent 1: #FFD700 (Gold/Yellow)
 * - Accent 2: #000000 (Black)
 * 
 * Typography:
 * - Headings: Playfair Display (serif)
 * - Body: Montserrat (sans-serif)
 */

/* ===== Font Declarations ===== */
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/Playfair-Display-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS Reset & Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F5F5DC;
}

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

a {
    color: #8B0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #8B0000;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #8B0000;
    color: #F5F5DC;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #FFD700;
    color: #000000;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #8B0000;
    color: #8B0000;
}

.btn-secondary:hover {
    background-color: #8B0000;
    color: #F5F5DC;
}

/* ===== Header Styles ===== */
.site-header {
    background-color: #F5F5DC;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: #8B0000;
}

/* ===== Navigation ===== */
.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    position: relative;
    margin-left: 1.5rem;
}

.nav-list a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: #8B0000;
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8B0000;
}

/* Dropdown styles */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #F5F5DC;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    margin: 0;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown a:hover {
    background-color: rgba(139, 0, 0, 0.05);
}

/* Mobile navigation toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #8B0000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background-color: #000;
    color: #F5F5DC;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    opacity: 0.8;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    color: #F5F5DC;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== Services Section ===== */
.services-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FFD700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 0.75rem;
}

.service-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* ===== About Section ===== */
.about-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Blog Section ===== */
.blog-section {
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.blog-meta span {
    margin-right: 1rem;
}

.blog-content h3 {
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== Footer Styles ===== */
.site-footer {
    background-color: #000;
    color: #F5F5DC;
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: #F5F5DC;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #ccc;
}

.footer-nav h3,
.footer-services h3,
.footer-contact h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-nav ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a,
.footer-services a {
    color: #ccc;
}

.footer-nav a:hover,
.footer-services a:hover {
    color: #FFD700;
}

.footer-contact address {
    font-style: normal;
    color: #ccc;
}

.footer-contact a {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #999;
    margin-bottom: 0.5rem;
}

/* ===== Service Detail Page ===== */
.service-detail {
    padding: 5rem 0;
}

.service-header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-header h1 {
    margin-bottom: 1rem;
}

.service-image-full {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-description {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Blog Detail Page ===== */
.blog-detail {
    padding: 5rem 0;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    margin-bottom: 1rem;
}

.blog-meta-full {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #666;
}

.blog-meta-full span {
    margin: 0 1rem;
}

.blog-content-full {
    max-width: 800px;
    margin: 0 auto;
}

.blog-content-full img {
    margin: 2rem 0;
    border-radius: 8px;
}

/* ===== Media Queries ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: #F5F5DC;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 99;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-list li {
        margin: 0 0 1.5rem 0;
        width: 100%;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        margin-top: 1rem;
        margin-left: 1rem;
        display: none;
    }
    
    .dropdown.show {
        display: block;
    }
    
    .has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .has-dropdown > a::after {
        content: '+';
        margin-left: 0.5rem;
    }
    
    .hero-content {
        width: 90%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-nav ul,
    .footer-services ul {
        align-items: center;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .container {
        width: 95%;
    }
    
    .hero-image {
        height: 50vh;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

