/* ===============================
   Brand Colours
   =============================== */
:root {
    --green-dark: #3F5534;
    --green-medium: #6A8654;
    --green-light: #869F6E;
    --tan-binder: #D4BB8E;
    --brown-dark: #5E432A;
    --bg-warm-cream: #F5EFD9;

    --text-main: #5E432A;
    --text-muted: #6b5a45;
    --surface-light: #FFF9EA; /* soft panel background */
}

/* Make anchor jumps leave space for sticky header */
html {
    scroll-padding-top: 200px;
}

/* ===============================
   Base / Reset
   =============================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-warm-cream);
    font-size: 18px; /* base font size */
}

/* ===============================
   Header & Navigation
   =============================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--tan-binder);
    border-bottom: 1px solid rgba(94, 67, 42, 0.2);
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo container */
.nav-logo {
    display: flex;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Actual logo image in the nav bar */
.nav-logo-image {
    height: 160px;   /* adjust up/down to taste: 50-70 is a good range */
    width: auto;
    display: block;
}

.nav-home-link {
    text-decoration: none;
    color: var(--brown-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-home-link:hover {
    color: var(--green-dark);
}

/* Nav links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--brown-dark);
    font-size: 1.5rem;
}

.nav-links a:hover {
    color: var(--green-dark);
}

/* Login link on the right */
.nav-actions .login-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--green-dark);
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
}

.nav-actions .login-link:hover {
    text-decoration: underline;
}

.nav-actions .nav-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--green-dark);
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-actions .nav-link:hover {
    color: #ffffff;
    background: var(--green-dark);
}

.nav-actions .login-status {
    font-weight: 600;
    color: var(--green-dark);
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
}

.history-search input[type="search"] {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #d2c19f;
    background: #fffdf5;
    font-size: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===============================
   Utility + Logs Page
   =============================== */
.nav {
    background: var(--tan-binder);
    padding: 0.6rem 1rem;
    display: flex;
    gap: 0.75rem;
}

.nav a {
    color: var(--brown-dark);
    text-decoration: none;
    font-weight: 600;
}

.nav a.active {
    color: var(--green-dark);
    text-decoration: underline;
}

.content {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.muted {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.log-container {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

#log-output {
    white-space: pre-wrap;
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    color: #222;
}

.markup-input.success {
    border: 1px solid #4caf50;
}
.markup-input.error {
    border: 1px solid #e53935;
}

/* ===============================
   Utility + Logs Page
   =============================== */
.nav {
    background: var(--tan-binder);
    padding: 0.6rem 1rem;
    display: flex;
    gap: 0.75rem;
}

.nav a {
    color: var(--brown-dark);
    text-decoration: none;
    font-weight: 600;
}

.nav a.active {
    color: var(--green-dark);
    text-decoration: underline;
}

.content {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.muted {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.log-container {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

#log-output {
    white-space: pre-wrap;
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    color: #222;
}



/* ===============================
   Main Layout
   =============================== */
main {
    padding-bottom: 3rem;
}

/* ===============================
   Hero Section
   =============================== */
.hero-section {
    max-width: 1100px;
    margin: 2.5rem auto 5rem;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
}

.hero-support {
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
    color: var(--text-muted);
}

.primary-btn {
    background-color: var(--green-medium);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 1rem 2.2rem; /* bigger */
    font-size: 1.2rem;   /* bigger */
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(63, 85, 52, 0.3);
}

.primary-btn:hover {
    background-color: var(--green-dark);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(94, 67, 42, 0.25);
}

/* ===============================
   Generic Content Sections
   =============================== */
.content-section {
    max-width: 1100px;
    margin: 0 auto 5rem; /* more vertical space */
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2.1rem;
    margin-bottom: 1.8rem;
}

/* ===============================
   Features
   =============================== */
.features-grid {
    display: grid;
    gap: 1.8rem;
}

.feature-card {
    background-color: var(--surface-light);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(94, 67, 42, 0.18);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

.feature-card ul {
    padding-left: 1.4rem;
    font-size: 0.98rem;
}

.feature-card li {
    margin-bottom: 0.3rem;
}

/* ===============================
   Pricing
   =============================== */
.pricing-section {
    text-align: center;
}

.pricing-grid {
    margin-top: 1.2rem;
    display: grid;
    gap: 1.8rem;
}

.pricing-card {
    background-color: var(--surface-light);
    border-radius: 10px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 1px 6px rgba(94, 67, 42, 0.18);
    text-align: left;
    border: 1px solid rgba(94, 67, 42, 0.25);
}

.pricing-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
}

.price {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--green-dark);
}

.price-period {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 1rem;
    margin-bottom: 0.9rem;
    color: var(--text-muted);
}

.pricing-card ul {
    padding-left: 1.4rem;
    font-size: 0.98rem;
}

.pricing-card li {
    margin-bottom: 0.3rem;
}

.pricing-cta {
    margin-top: 2.5rem;
}

/* ===============================
   About
   =============================== */
.about-layout {
    display: grid;
    gap: 2.2rem;
}

.about-text p {
    margin-bottom: 0.9rem;
    font-size: 1rem;
}

.about-text h3 {
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
}

/* NEW: actual image container */
.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NEW: founder card image */
.founder-card-image {
    max-width: 100%;
    width: 275px;          /* adjust if needed */
    border-radius: 12px;   /* soft corners to match your theme */
    box-shadow: 0 8px 18px rgba(94, 67, 42, 0.35); /* nice soft shadow */
}

/* ===============================
   Contact
   =============================== */
.contact-intro {
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.contact-form {
    max-width: 480px;
    margin-top: 0.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

.form-row label {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.form-row input,
.form-row textarea {
    border-radius: 6px;
    border: 1px solid #d2c19f;
    padding: 0.6rem 0.7rem;
    font-size: 0.98rem;
    background-color: #fffdf5;
}

/* ===============================
   Footer
   =============================== */
.site-footer {
    border-top: 1px solid rgba(94, 67, 42, 0.25);
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background-color: rgba(212, 187, 142, 0.4);
}

/* ===============================
   Dashboard Page (you can ignore for now)
   =============================== */
.dashboard-body {
    background-color: var(--bg-warm-cream);
}

.dashboard-main {
    max-width: 1100px;
    margin: 2rem auto 3rem;
    padding: 0 1.5rem;
}

.dashboard-hero {
    margin-bottom: 2rem;
}

.dashboard-hero h1 {
    font-size: 1.9rem;
    margin-bottom: 0.6rem;
}

.dashboard-hero p {
    font-size: 0.98rem;
    color: var(--text-muted);
}

.dashboard-user-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Panels */
.dashboard-section {
    background-color: var(--surface-light);
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 6px rgba(94, 67, 42, 0.18);
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.dashboard-section-header h2 {
    font-size: 1.35rem;
}

.dashboard-section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Secondary buttons (dashboard) */
.secondary-btn {
    background-color: #fffdf5;
    color: var(--green-dark);
    border: 1px solid var(--green-medium);
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.secondary-btn:hover {
    background-color: var(--green-light);
    color: #ffffff;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table thead {
    background-color: #e9ddc3; /* light tan header */
}

.data-table th,
.data-table td {
    border: 1px solid #d2c19f;
    padding: 0.5rem 0.6rem;
    text-align: left;
}

.data-table th {
    font-weight: 600;
}

/* Panel output areas */
.dashboard-panel-output {
    min-height: 60px;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #111827;
}

.card-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    align-items: start;
}

.card-detail-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(94, 67, 42, 0.35);
    background: #fffdf5;
    border: 1px solid rgba(94, 67, 42, 0.2);
}

.card-detail-meta {
    display: grid;
    gap: 0.6rem;
    font-size: 1rem;
}

.card-meta-row strong {
    color: var(--green-dark);
    margin-right: 0.4rem;
}

.price-up {
    color: #1b7a1b;
    font-weight: 600;
}

.price-down {
    color: #b00020;
    font-weight: 600;
}

.variant-stats {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.variant-stats .stat {
    background: #fffdf5;
    border: 1px solid rgba(94, 67, 42, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 1px 4px rgba(94, 67, 42, 0.12);
}

.variant-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.variant-stats .stat-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brown-dark);
}

.variant-stats .stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.stat-bar {
    position: relative;
    background: rgba(94, 67, 42, 0.08);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin-top: 0.4rem;
}

.stat-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--green-light), var(--green-medium));
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.error-text {
    color: #ef4444;
    margin-top: 8px;
}

.hidden {
    display: none !important;
}

.login-prompt {
    background: #fffdf5;
    border: 1px solid rgba(94, 67, 42, 0.2);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 1px 6px rgba(94, 67, 42, 0.18);
}

.login-prompt h3 {
    margin-bottom: 0.4rem;
}

.login-prompt p {
    margin-bottom: 0.75rem;
}

/* ===============================
   Responsive Tweaks
   =============================== */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        align-items: start;
    }
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-links {
        display: none; /* simple for now; can add mobile menu later */
    }
}
