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

body {
    font-family: Arial, sans-serif;
    color: #111;
}

/* ------------------------------
   Header Styles
------------------------------ */
.site-header {
    background: white;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: auto;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #111;
}

/* Navigation */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    font-size: 1rem;
    color: #444;
    transition: color 0.2s ease;
}

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

/* Primary Button */
.btn-primary {
    background: #0069ff;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: background 0.25s ease;
}

    .btn-primary:hover {
        background: #0051cc;
    }

.site-header {
    background: white;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: auto;
}


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

    .menu-toggle span {
        width: 25px;
        height: 2px;
        background: #111;
    }


.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #444;
    font-size: 1rem;
}

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

.desktop-cta {
    display: inline-block;
}

.mobile-cta {
    display: none;
}


@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .desktop-cta {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid #eee;
        display: none;
    }

        .nav-menu ul {
            flex-direction: column;
            padding: 1rem 1.5rem;
            gap: 1rem;
        }

        .nav-menu li {
            padding: 0.75rem 0;
        }

        .nav-menu.show {
            display: block;
        }

    .mobile-cta {
        display: block;
        margin-top: 1rem;
    }
}



/** HERO **/

.hero {
    position: relative;
    height: 50vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.65) 100% );
}

.hero-blur {
    position: absolute;
    inset: 0;
    z-index: 3;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* Keep it subtle */
    background: rgba(0, 0, 0, 0.15);
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 700px;
    padding: 1rem;
}

    .hero-content h1 {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        opacity: 0.95;
    }

@media (max-width: 768px) {

    .hero {
        height: 40vh;
    }

    /* Reduce blur for performance */
    .hero-blur {
        backdrop-filter: blur(3px);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}


/** about section **/
/* Section background to separate content */
.info-section {
    background: #f5f6f7; /* Meta-style light gray */
    padding: 4rem 1.5rem;
}

/* Container (max-w-6xl + mx-auto + px) */
.info-container {
    max-width: 72rem; /* ~1152px (Tailwind max-w-6xl) */
    margin: 0 auto;
}

/* Grid layout */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Cards */
.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
}

    /* Headings */
    .info-card h2 {
        font-size: 1.25rem;
        font-weight: 500;
        margin-bottom: 1rem;
        color: #4b5563; /* Tailwind gray-700 */
    }

    /* Text */
    .info-card p {
        color: #6b7280; /* Tailwind gray-600 */
        line-height: 1.6;
        font-size: 1rem;
    }

/* Responsive columns */
@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/** Footer **/

.site-footer {
    background: #f5f6f7;
    border-top: 1px solid #e4e6eb;
    padding: 3rem 1.5rem 1.5rem;
    color: #1c1e21;
    font-size: 0.9rem;
}

/* Layout */
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

/* Brand */
.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #606770;
    max-width: 300px;
}

/* Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.footer-column a {
    display: block;
    text-decoration: none;
    color: #606770;
    margin-bottom: 0.5rem;
}

    .footer-column a:hover {
        color: #050505;
    }

/* Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    color: #606770;
}

@media (max-width: 768px) {

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/**Blog Layout **/

/* ==========================
   Blog Layout
========================== */

.blog-container {
    max-width: 1150px; /* same as max-w-6xl */
    margin: 0 auto;
    padding: 3rem 1.5rem; /* px-6 py-12 */
}

.blog-post {
    width: 100%;
}

/* ==========================
   Header
========================== */

.blog-header {
    border-bottom: 1px solid #B87333;
    margin-bottom: 1.25rem; /* ~20px */
    padding-bottom: 1rem;
}

.blog-title {
    font-size: 2rem; /* text-2xl */
    font-weight: 700;
    letter-spacing: -0.02em; /* tracking-tight */
    margin: 0;
    color: #111;
}

/* ==========================
   Content Styling
========================== */

.blog-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #222;
}

    /* Markdown elements */
    .blog-content p {
        margin-bottom: 1.25rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .blog-content h3 {
        font-size: 1.25rem;
        margin: 1.75rem 0 0.75rem;
    }

    .blog-content a {
        color: #0069ff;
        text-decoration: none;
    }

        .blog-content a:hover {
            text-decoration: underline;
        }

/* ==========================
   Legal / Privacy Pages
========================== */

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.legal-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #1c1e21;
}

    /* Headings */

    .legal-content h1 {
        font-size: 2.25rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 1rem;
        color: #111;
    }

    .legal-content h2 {
        font-size: 1.4rem;
        margin-top: 2.5rem;
        margin-bottom: 0.75rem;
        color: #111;
    }

/* Intro text */

.legal-intro {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 2rem;
}

/* Paragraphs & lists */

.legal-content p {
    margin-bottom: 1.25rem;
}

.legal-content ul {
    margin-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Links (if added later) */

.legal-content a {
    color: #0069ff;
    text-decoration: none;
}

    .legal-content a:hover {
        text-decoration: underline;
    }

/* ==========================
   Mobile Adjustments
========================== */

@media (max-width: 768px) {
    .legal-container {
        padding: 2rem 1rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }
}


/* ==========================
   Posts Layout
========================== */

.posts-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ==========================
   Category Bar
========================== */

.category-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e4e6eb;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.category-desktop {
    display: none;
}

.category-toggle {
    background: none;
    border: none;
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hamburger icon */
.hamburger {
    width: 18px;
    height: 2px;
    background: #444;
    position: relative;
}

    .hamburger::before,
    .hamburger::after {
        content: "";
        position: absolute;
        width: 18px;
        height: 2px;
        background: #444;
        left: 0;
    }

    .hamburger::before {
        top: -6px;
    }

    .hamburger::after {
        top: 6px;
    }

/* Mobile category menu */
.category-mobile {
    background: #fff;
    border-bottom: 1px solid #e4e6eb;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

/* Desktop categories */
@media (min-width: 768px) {
    .category-desktop {
        display: block;
    }

    .category-toggle,
    .category-mobile {
        display: none;
    }
}

/* ==========================
   Post Preview
========================== */

.post-preview {
    border-bottom: 1px solid #B87333;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

.post-link {
    text-decoration: none;
}

.post-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 0.75rem;
}

    .post-title:hover {
        text-decoration: underline;
    }

.post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

    /* Markdown inside preview */
    .post-excerpt p {
        margin-bottom: 1rem;
    }

/* ==========================
   Pagination
========================== */

.pagination {
    max-width: 1150px;
    margin: 2rem auto 3rem;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
}

.page-button {
    background: transparent;
    border: 1px solid #B87333;
    color: #111;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
}

    .page-button:hover {
        background: #0069ff;
        color: white;
        border-color: #0069ff;
    }

/* ==========================
   Mobile Adjustments
========================== */

@media (max-width: 768px) {
    .posts-container {
        padding: 2rem 1rem;
    }

    .post-title {
        font-size: 1.5rem;
    }
}


/* ==========================
   Code Styling (Markdown)
========================== */

/* Inline code */
.blog-content code,
.post-excerpt code,
.legal-content code {
    background: #f5f6f7;
    color: #1c1e21;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

/* Code blocks */
.blog-content pre,
.post-excerpt pre {
    background: #f5f6f7;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.75rem 0;
    overflow-x: auto;
}

    /* Prevent double background */
    .blog-content pre code,
    .post-excerpt pre code {
        background: none;
        padding: 0;
        border-radius: 0;
        font-size: 0.9rem;
        line-height: 1.6;
        display: block;
        white-space: pre;
    }

    /* Scrollbar (optional, subtle) */
    .blog-content pre::-webkit-scrollbar,
    .post-excerpt pre::-webkit-scrollbar {
        height: 8px;
    }

    .blog-content pre::-webkit-scrollbar-thumb,
    .post-excerpt pre::-webkit-scrollbar-thumb {
        background: #ccd0d5;
        border-radius: 4px;
    }

/* Mobile tweaks */
@media (max-width: 768px) {
    .blog-content pre,
    .post-excerpt pre {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}
