/*
Theme Name: ROCKET Themes
Theme URI: https://ideaxdigital.com/rocket-themes
Author: Ideax Digital
Author URI: https://ideaxdigital.com
Description: ROCKET Themes is a blazing-fast, ultra-lightweight WordPress theme engineered for maximum PageSpeed scores and SEO performance. It ships with near-zero custom JavaScript (the mobile menu and sticky header run on pure CSS), a genuinely edge-to-edge 100% full-width layout system, and automatic SEO output (meta description, Open Graph, JSON-LD schema) that stays out of the way of Yoast, Rank Math, AIOSEO, SEOPress, or Rocket SEO -- with a manual Customizer override for any other SEO plugin. Pairs cleanly with the separate Rocket GEO plugin for llms.txt generation and AI-crawler tracking (Lighthouse's Agentic Browsing audit). Fully compatible with Gutenberg, WooCommerce, and every major page builder including Elementor, Beaver Builder, Divi, Visual Composer/WPBakery, Brizy, and Oxygen. Built exclusively on long-stable WordPress core APIs for evergreen compatibility across WordPress 6.x, 7.x, and beyond.
Version: 1.1.2
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rocket-themes
Tags: blog, portfolio, e-commerce, one-column, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready, block-styles, wide-blocks, microformats

ROCKET Themes is distributed under the terms of the GNU General Public License v2 or later.
This theme bundles no third-party code beyond WordPress core APIs.
*/

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --rt-container: 1320px;
    --rt-primary: #2454ff;
    --rt-text: #1a1a1a;
    --rt-text-light: #5a5a5a;
    --rt-bg: #ffffff;
    --rt-border: #e6e6e6;
    --rt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --rt-font-size: 17px;
    --rt-line-height: 1.65;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--rt-font);
    font-size: var(--rt-font-size);
    line-height: var(--rt-line-height);
    color: var(--rt-text);
    background: var(--rt-bg);
    overflow-x: hidden;
}

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

a {
    color: var(--rt-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--rt-primary);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    margin: 0 0 0.6em;
    font-weight: 700;
}

ul, ol {
    padding-left: 1.2em;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    top: -100px;
    left: 0;
    z-index: 100000;
    position: absolute;
    background: var(--rt-primary);
    color: #fff;
    padding: 12px 20px;
}

.skip-link:focus {
    top: 0;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
}

/* =========================================================
   2. LAYOUT / CONTAINERS
   ========================================================= */
.rt-container {
    width: 100%;
    max-width: var(--rt-container);
    margin-inline: auto;
    padding-inline: 20px;
}

/* Genuine edge-to-edge full width -- fixes the "fake full width"
   problem found in some competing lightweight themes, where a
   full-width template still caps out at a fixed pixel width. */
.alignfull,
.rt-full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.alignwide {
    width: 100%;
    max-width: calc(var(--rt-container) + 160px);
    margin-inline: auto;
}

/* Inside the Full Width page template, keep body text readable
   while still allowing explicit alignfull blocks to bleed 100%. */
.rt-full-width > .entry-content {
    max-width: var(--rt-container);
    margin-inline: auto;
    padding-inline: 20px;
}

.rt-full-width > .entry-content > .alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: 0;
}

.site-main {
    padding-block: 48px;
}

.rt-has-sidebar .rt-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .rt-has-sidebar .rt-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   3. HEADER + NAVIGATION (zero JavaScript by default)
   ========================================================= */
.site-header {
    border-bottom: 1px solid var(--rt-border);
    background: var(--rt-bg);
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-header.is-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    z-index: 999;
}

.site-header .rt-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-block: 16px;
    gap: 16px;
    position: relative;
}

.site-header.is-stretch .rt-container {
    max-width: 100%;
    padding-inline: 24px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-branding .custom-logo {
    max-height: 44px;
    width: auto;
}

.site-title {
    font-size: 22px;
    margin: 0;
}

.site-title a {
    color: var(--rt-text);
}

.site-description {
    font-size: 13px;
    color: var(--rt-text-light);
    margin: 0;
}

.menu-toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-toggle-label {
    display: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle-label span,
.menu-toggle-label span::before,
.menu-toggle-label span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rt-text);
    position: relative;
    transition: 0.2s ease;
}

.menu-toggle-label span::before,
.menu-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-label span::before {
    top: -7px;
}

.menu-toggle-label span::after {
    top: 7px;
}

.primary-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: var(--rt-text);
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--rt-primary);
    text-decoration: none;
}

.primary-menu ul {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--rt-bg);
    border: 1px solid var(--rt-border);
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul {
    display: block;
}

.primary-menu ul a {
    display: block;
    padding: 8px 16px;
}

@media (max-width: 800px) {
    .menu-toggle-label {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--rt-bg);
        padding: 80px 24px 24px;
        overflow-y: auto;
        transition: left 0.25s ease;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.12);
        z-index: 1000;
    }

    .primary-menu {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .primary-menu ul {
        position: static;
        border: none;
        box-shadow: none;
        padding-left: 12px;
        display: none;
    }

    .primary-menu li.menu-item-has-children.is-open > ul {
        display: block;
    }

    /* The checkbox and #site-navigation are siblings inside .rt-container,
       so the sibling combinator (~) correctly targets the nav itself. */
    .menu-toggle-checkbox:checked ~ #site-navigation.main-navigation {
        left: 0;
    }

    .menu-toggle-checkbox:checked ~ .menu-toggle-label span {
        background: transparent;
    }

    .menu-toggle-checkbox:checked ~ .menu-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle-checkbox:checked ~ .menu-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

/* =========================================================
   4. POSTS / PAGES
   ========================================================= */
.entry-title {
    font-size: clamp(24px, 4vw, 38px);
}

.entry-meta {
    color: var(--rt-text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.entry-meta a {
    color: inherit;
}

.entry-thumbnail {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}

.entry-content > * + * {
    margin-top: 1.2em;
}

.post-list article {
    padding-block: 32px;
    border-bottom: 1px solid var(--rt-border);
}

.post-list article:first-child {
    padding-top: 0;
}

.page-header {
    margin-bottom: 32px;
}

/* =========================================================
   5. WIDGETS / FOOTER
   ========================================================= */
.widget {
    margin-bottom: 32px;
}

.widget-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.site-footer {
    background: #111111;
    color: #cccccc;
    padding-block: 48px 24px;
    margin-top: 64px;
}

.site-footer a {
    color: #ffffff;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0 0 20px;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 13px;
    text-align: center;
    color: #888888;
}

.rt-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rt-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.85;
    z-index: 998;
}

.rt-back-to-top:hover {
    opacity: 1;
    text-decoration: none;
}

/* =========================================================
   6. COMMENTS / PAGINATION
   ========================================================= */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    margin-bottom: 20px;
}

.comment-body {
    border: 1px solid var(--rt-border);
    border-radius: 8px;
    padding: 16px;
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid var(--rt-border);
    border-radius: 6px;
}

.pagination .current {
    background: var(--rt-primary);
    color: #fff;
    border-color: var(--rt-primary);
}

/* =========================================================
   7. PAGE BUILDER COMPATIBILITY
   (Elementor, Beaver Builder, Divi, WPBakery, Brizy, Oxygen)
   ========================================================= */
/* Builders render their own full-width sections inside .entry-content;
   this makes sure none of the theme's typography spacing rules leak in. */
.entry-content > .elementor,
.entry-content > .fl-builder-content,
.entry-content > .et-fb-root-ancestor,
.entry-content > .wpb-content-wrapper,
.entry-content > .brz-root,
.entry-content > [data-elementor-type] {
    margin-top: 0;
}

.rocket-landing-page {
    margin: 0;
}

/* =========================================================
   8. GUTENBERG BLOCK ALIGNMENT
   ========================================================= */
.wp-block-image.alignfull img,
.wp-block-cover.alignfull {
    width: 100%;
}
