/* ============================================
   PBAT Support — Clean Static Site Styles
   Matching original Divi theme look
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #45799e;
    --accent: #7EBEC5;
    --dark: #1a1a2e;
    --dark-footer: #2d2d2d;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f7f7f7;
    --border: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.8;
    background: var(--white);
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5 {
    font-family: 'Quicksand', sans-serif;
    color: var(--dark);
    line-height: 1.3;
}

h1 { font-size: 2.8rem; font-weight: 500; }
h2 { font-size: 2rem; font-weight: 500; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 500; }
h5 { font-size: 1.1rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Navigation --- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}
.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.nav-links a {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-color: var(--dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 4rem;
    text-align: right;
}

.hero h1 {
    color: var(--white);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* --- Page Hero (interior pages) --- */
.page-hero {
    background: var(--primary);
    padding: 3rem 2rem;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Sections --- */
.section {
    padding: 4rem 2rem;
}

.section-light {
    background: var(--light-bg);
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-dark h2 {
    color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-center {
    text-align: center;
}

/* --- Two Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.two-col-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- Feature Blurb --- */
.blurb-center {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: var(--white);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: transparent;
    color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

/* --- FAQ --- */
.faq-intro {
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0;
}

.faq-item.open .faq-answer {
    max-height: 2000px;
    padding-top: 1rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* --- Downloads --- */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.download-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}

.download-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.download-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.download-card a {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* --- Tables --- */
.process-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.process-table th {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}

.process-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.process-table tr:nth-child(even) {
    background: var(--light-bg);
}

.process-table tr:hover {
    background: #e8f4f8;
}

/* --- Contact Form --- */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-item {
    text-align: center;
    padding: 2rem;
}

.contact-info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Quicksand', 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* --- Footer --- */
.site-footer {
    background: var(--dark-footer);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col h5 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Citations --- */
.citation {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

.citation a {
    color: var(--accent);
    text-decoration: underline;
}

/* --- Image pair --- */
.image-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.image-pair img {
    border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 980px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
        padding: 3rem 2rem;
        max-width: 100%;
    }

    .hero {
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--light-bg);
    }

    .nav-toggle {
        display: block;
    }

    h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .image-pair {
        grid-template-columns: 1fr;
    }

    .process-table {
        font-size: 0.8rem;
    }

    .process-table th,
    .process-table td {
        padding: 0.5rem;
    }
}
