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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #faf7f2;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #1e1e1e;
}

/* Optional: if you have pure white cards or sections, you might want to 
   slightly tone them down to blend with the new background */
.archive-card,
.pricing-card,
.faq-answer,
.contact-form input,
.contact-form textarea,
.contact-form select {
    background-color: #ffffff;
    /* or try a very light cream: #fefefc */
}

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

/* ===== HEADER ===== */
.site-header {
    background: #2c3e4f;
    color: white;
    padding: 1rem 0;
    border-bottom: 5px solid #b89b7b;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 60px;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Arial', 'Helvetica', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo span {
    font-size: 0.9rem;
    display: block;
    color: #b89b7b;
    font-style: italic;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Center the nav menu on desktop */
@media (min-width: 801px) {
    .nav-menu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #b89b7b;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    height: auto;
    align-items: center;
    justify-content: center;
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 3rem 0;
    min-height: 60vh;
}

h1 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #1e3a4d;
    border-bottom: 2px solid #d4c9b8;
    padding-bottom: 0.5rem;
}

h2 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #1e3a4d;
}

h3 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 1.4rem;
    margin: 1.5rem 0 0.5rem;
    color: #1e3a4d;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2c3e4f;
    text-decoration: underline;
    text-decoration-color: #b89b7b;
}

a:hover {
    color: #b22222;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: #2c3e4f;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #b89b7b;
    color: #1e1e1e;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2c3e4f;
    color: #2c3e4f;
}

.btn-outline:hover {
    background: #2c3e4f;
    color: white;
}

/* ===== CTA BUTTON GROUP (index) ===== */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ===== FEATURE ICONS (index) ===== */
.feature i {
    color: #b89b7b;
    margin-right: 0.5rem;
    width: 1.5rem;
    text-align: center;
}

/* ===== PRICING TABLE ===== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    overflow-x: auto;
    white-space: normal;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.pricing-table th {
    background: #2c3e4f;
    color: white;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 1.1rem;
}

.pricing-table td:first-child {
    font-weight: 600;
    background: #f0ede8;
}

.pricing-table .yes i {
    color: #2e7d32;
}

.pricing-table .no i {
    color: #b22222;
}

.pricing-table .partial i {
    color: #c9a227;
}

/* ===== PRICING CARDS (optional, hidden on mobile if table visible) ===== */
.pricing-cards {
    display: none;
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-card {
    background: white;
    border: 1px solid #e0d6c8;
    border-radius: 8px;
    padding: 1.5rem;
    flex: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.pricing-card h3 {
    margin-top: 0;
    color: #2c3e4f;
    border-bottom: 2px solid #b89b7b;
    padding-bottom: 0.5rem;
    font-size: 1.5rem;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a4d;
    margin: 1rem 0;
}

.pricing-card .price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #4a4a4a;
}

.pricing-card ul {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.pricing-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-card li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1rem;
    text-align: center;
}

.pricing-card li i.fa-check {
    color: #2e7d32;
}
.pricing-card li i.fa-times {
    color: #b22222;
}
.pricing-card li i.fa-minus {
    color: #c9a227;
}

/* ===== SUBSCRIPTION OPTIONS ===== */
.subscription-options {
    margin: 2rem 0;
}

.subscription-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #d4c9b8;
}

.subscription-row:last-child {
    border-bottom: none;
}

.subscription-row .plan {
    font-weight: 600;
    width: 120px;
}

.subscription-row .prices {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.subscription-row .price-item {
    text-align: center;
}

.subscription-row .price-item .amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3a4d;
}

.subscription-row .price-item .term {
    font-size: 0.85rem;
    color: #4a4a4a;
}

/* ===== ARCHIVES GRID ===== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.archive-card {
    background: white;
    border: 1px solid #e0d6c8;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.archive-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.archive-card .date {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3a4d;
    margin-bottom: 0.5rem;
}

.archive-card .preview {
    color: #4a4a4a;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.archive-card .meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.archive-card .badge {
    background: #f0ede8;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Arial', sans-serif;
    color: #1e1e1e;
}

.archive-card .btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    background: #2c3e4f;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.archive-card .btn-small:hover {
    background: #b89b7b;
    color: #1e1e1e;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #d4c9b8;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    background: #f0ede8;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    padding-right: 2rem;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #e0d6c8;
}

.faq-question:after {
    content: "▼";
    position: absolute;
    right: 1rem;
    transition: transform 0.2s;
}

.faq-item.active .faq-question:after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 1rem;
    max-height: 500px;
}

/* ===== FORMS ===== */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-family: 'Arial', sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d4c9b8;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #b89b7b;
    box-shadow: 0 0 0 2px rgba(184, 155, 123, 0.2);
}

.form-group textarea {
    min-height: 150px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #2c3e4f;
    color: white;
    padding: 2rem 0;
    border-top: 5px solid #b89b7b;
    margin-top: 3rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-col h4 {
    font-family: 'Arial', sans-serif;
    margin-bottom: 1rem;
    color: #b89b7b;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
}

.footer-col a:hover {
    border-bottom-color: #b89b7b;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed #5a6e7c;
    font-size: 0.9rem;
}

.copyright a {
    color: white;
    text-decoration: underline;
    text-decoration-color: #b89b7b;
}

.copyright a:hover {
    color: #b89b7b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: static;
        transform: none;
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

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

    .pricing-cards {
        display: none;
    }

    .subscription-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .subscription-row .prices {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .footer-col {
        flex: 1 1 45%;
        min-width: 140px;
    }
    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .footer-col p,
    .footer-col li {
        font-size: 0.85rem;
    }
    .copyright {
        font-size: 0.8rem;
    }
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .site-header, .site-footer, .btn {
        display: none;
    }
}

/* ===== AUTH CONTAINER (ALWAYS VISIBLE) ===== */
.auth-container {
    display: flex;
    align-items: center;
    margin-left: auto;   /* pushes to the right on desktop */
    order: 2;
    position: relative;
    z-index: 10;
}

.auth-container a {
    background: #b89b7b;
    color: #1e1e1e;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.auth-container a:hover {
    background: #9c7a5c;
    color: white;
}

/* Adjust header layout for mobile */
@media (max-width: 800px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: center;
    }

    .logo {
        order: 0;
        flex: 1;
    }

    .mobile-toggle {
        order: 1;
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .auth-container {
        order: 2;
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.75rem;
    }

    .nav-menu {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-container a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}