/* ==========================================================================
   Annaboto Community Support - Stylesheet
   Brand: Orange & Blue. Barlow Condensed headings. Open Sans body.
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-white: #FFFFFF;
    --color-orange: #FE7900;
    --color-blue: #1D427B;
    --color-navy: #002347;
    --color-orange-bright: #FF5003;

    /* Functional Colors */
    --color-bg: #FFFFFF;
    --color-bg-alt: #f4f6f9;
    --color-text: #1D427B;
    --color-text-light: #4a6a8a;
    --color-border: #d8e0ea;
    --color-warning-bg: #fff4e6;
    --color-warning-border: #FE7900;
    --color-warning-text: #7a4400;

    /* Fonts */
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0, 35, 71, 0.08);
    --shadow-hover: 0 4px 24px rgba(0, 35, 71, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

a {
    color: var(--color-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-orange-bright);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 72px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-orange);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    transition: 0.3s;
}

/* ==========================================================================
   Hero / Announcement Section
   ========================================================================== */

.hero-section {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
    color: var(--color-white);
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-logo {
    height: 192px;
    margin-top: 45px;
    margin-bottom: 0;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-white);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 16px;
}

.hero-message {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 32px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(254, 121, 0, 0.2);
    border: 1px solid var(--color-orange);
    color: var(--color-orange);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   Sections - General
   ========================================================================== */

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   DIY Cards Grid
   ========================================================================== */

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

.diy-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.diy-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.diy-card-compact {
    max-height: none;
    overflow: hidden;
}

.diy-card-compact .card-content {
    max-height: 280px;
    overflow-y: auto;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.diy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.diy-card > p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-content {
    margin-bottom: 20px;
}

/* Instruction List */
.instruction-list {
    padding-left: 20px;
}

.instruction-list li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Parts List */
.parts-list {
    list-style: none;
}

.parts-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.parts-list li:last-child {
    border-bottom: none;
}

.part-name {
    color: var(--color-text);
}

.amazon-link {
    background: var(--color-orange);
    color: var(--color-white) !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.amazon-link:hover {
    background: var(--color-orange-bright);
}

.part-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* STL List */
.stl-list {
    list-style: none;
}

.stl-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.stl-list li:last-child {
    border-bottom: none;
}

.file-name {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--color-text);
}

.download-link {
    background: var(--color-blue);
    color: var(--color-white) !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.download-link:hover {
    background: var(--color-navy);
}

.print-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 8px;
}

.print-hint {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 12px;
}

/* Print-only content (hidden on screen, shown when printing) */
.print-only {
    display: none;
}

.print-diagram {
    width: 100%;
    max-width: 700px;
    margin: 16px 0;
}

/* Step images inline in instruction lists */
.step-image {
    display: block;
    max-width: 100%;
    width: 280px;
    margin: 10px 0;
    border-radius: 4px;
}

/* Sub-list for nested items */
.sub-list {
    margin-top: 6px;
    padding-left: 20px;
    list-style-type: disc;
}

.sub-list li {
    padding: 3px 0;
    font-size: 0.9rem;
}

/* Card actions */
.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

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

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

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

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

.instruction-intro {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.diy-card .btn + .btn {
    margin-left: 8px;
}

/* ==========================================================================
   Support Section
   ========================================================================== */

.support-notice {
    background: var(--color-warning-bg);
    border-left: 4px solid var(--color-warning-border);
    border-radius: var(--radius);
    padding: 16px 24px;
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--color-warning-text);
    text-align: left;
}

.search-container {
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--color-orange);
}

.help-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-orange);
}

.article-list {
    list-style: none;
}

.article-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list a {
    font-size: 0.9rem;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.article-list a:hover {
    color: var(--color-orange);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 96px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--color-orange);
}

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

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

.footer-links a {
    color: var(--color-white);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-orange);
}

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

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ==========================================================================
   Print Styles (B/W friendly)
   ========================================================================== */

@media print {
    .navbar, .footer, .search-container,
    .amazon-link, .download-link, .hero-badges,
    .support-notice, .card-actions, .card-icon {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }

    .hero-section {
        background: none !important;
        color: #000;
        padding: 20px 0;
    }

    .hero-section h1 {
        color: #000;
    }

    .section {
        padding: 20px 0;
        background: #fff !important;
    }

    .diy-card {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }

    .diy-card-compact .card-content {
        max-height: none;
        overflow: visible;
    }

    h2, h3 {
        color: #000;
    }

    .badge {
        border-color: #000;
        color: #000;
    }
}

/* ==========================================================================
   Responsive — Tablet (769px – 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .diy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diy-grid .diy-card:last-child {
        grid-column: 1 / -1;
    }

    .help-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Responsive — Mobile (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

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

    .diy-grid .diy-card:last-child {
        grid-column: auto;
    }

    .help-categories {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .parts-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .stl-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
