@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #800000; /* Maroon */
    --primary-light: #a31c1c;
    --secondary-color: #D4AF37; /* Gold */
    --bg-color: #FAF8EE; /* Soft Cream */
    --text-color: #333333;
    --text-light: #555555;
    --white: #ffffff;
    --border-color: #e0d5c1;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(250, 248, 238, 0.9), rgba(250, 248, 238, 0.9)), url('https://images.unsplash.com/photo-1583391733958-d25e61c2c3cb?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 100px 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    border-top-color: var(--secondary-color);
}

.card-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
}

.card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Content Area */
.content-area {
    background-color: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.content-area h2, .content-area h3 {
    margin-top: 30px;
}

.content-area p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Forms and Tools */
.tool-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.result-box {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--bg-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 5px 5px 0;
    display: none;
}

.result-box.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* FAQs */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: var(--white);
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--secondary-color);
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: var(--bg-color);
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb ul {
    display: flex;
    gap: 10px;
}

.breadcrumb li {
    font-size: 14px;
    color: var(--text-light);
}

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

.breadcrumb li::after {
    content: '>';
    margin-left: 10px;
    color: var(--border-color);
}

.breadcrumb li:last-child::after {
    display: none;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-col p {
    color: #ffdcdc;
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffdcdc;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffdcdc;
    font-size: 14px;
}

/* Color Tool Specific */
.color-preview {
    width: 100%;
    height: 100px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}
.combo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.combo-box {
    padding: 15px;
    border-radius: 5px;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .grid-2, .grid-3, .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }
    
    .content-area {
        padding: 30px 20px;
    }
}
