/*
Theme Name: PadiTheme
Theme URI: https://flightpadi.com
Author: FlightPadi
Author URI: https://flightpadi.com
Description: An ultra-lightweight, brand-agnostic WordPress theme. Zero bloat, zero page builders. Full Customizer control over colors, typography, header, and footer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paditheme
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Colors */
    --pt-dark: #0a0025;
    --pt-text: #1a1a2e;
    --pt-muted: #555;
    --pt-light-bg: #f0eef5;
    --pt-white: #ffffff;
    --pt-purple: #9747FF;
    --pt-orange: #FF9345;
    --pt-border: #e5e5e5;

    /* Layout */
    --pt-max-width: 1140px;
    --pt-radius: 20px;
    --pt-header-height: 72px;

    /* Typography */
    --pt-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--pt-font);
    color: var(--pt-text);
    line-height: 1.6;
    background: var(--pt-white);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ═══════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════ */
.pt-container {
    max-width: var(--pt-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.pt-header {
    z-index: 100;
    background: var(--pt-white);
    border-bottom: 1px solid var(--pt-border);
    height: var(--pt-header-height);
}

.pt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.pt-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.pt-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--pt-text);
    transition: color 0.2s;
}

.pt-nav a:hover {
    color: var(--pt-dark);
}

.pt-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    background: var(--pt-dark);
    color: var(--pt-white);
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.pt-header-cta:hover {
    opacity: 0.85;
}

/* Mobile menu toggle */
.pt-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .pt-nav {
        display: none;
    }

    .pt-menu-toggle {
        display: block;
    }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.pt-footer {
    background: var(--pt-white);
    padding: 60px 0 40px;
    border-top: 1px solid var(--pt-border);
}

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

.pt-footer-brand img {
    height: 36px;
    margin-bottom: 12px;
}

.pt-footer-brand p {
    font-size: 14px;
    color: var(--pt-muted);
}

.pt-footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--pt-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-footer-col h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--pt-border);
}

.pt-footer-col a {
    display: block;
    font-size: 14px;
    color: var(--pt-muted);
    padding: 4px 0;
    transition: color 0.2s;
}

.pt-footer-col a:hover {
    color: var(--pt-dark);
}

.pt-footer-bottom {
    border-top: 1px solid var(--pt-border);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--pt-muted);
}

@media (max-width: 768px) {
    .pt-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

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

/* ═══════════════════════════════════════════════════════════
   PAGE CONTENT (generic wrapper)
   ═══════════════════════════════════════════════════════════ */
.pt-page-content {
    background: var(--pt-white);
}

/* Make wp:html blocks break out of any container */
.entry-content>.wp-block-html {
    max-width: none;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY (use Customizer variables)
   ═══════════════════════════════════════════════════════════ */
body {
    font-size: var(--pt-font-size, 16px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--pt-heading-weight, 700);
    line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════════
   HEADER VARIANTS
   ═══════════════════════════════════════════════════════════ */
/* Sticky header (opt-in via Customizer) */
.pt-header--sticky {
    position: sticky;
    top: 0;
}

/* Non-sticky: static */
.pt-header:not(.pt-header--sticky) {
    position: relative;
}

/* CTA button uses Customizer color */
.pt-header-cta {
    background: var(--pt-cta-color, var(--pt-dark));
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .pt-nav.pt-nav--open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--pt-header-height);
        left: 0;
        right: 0;
        background: var(--pt-white);
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--pt-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        gap: 16px;
        z-index: 99;
    }

    .pt-nav.pt-nav--open a {
        font-size: 17px;
        padding: 8px 0;
    }

    .pt-header-cta {
        font-size: 12px;
        padding: 8px 18px;
    }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER WIDGETS
   ═══════════════════════════════════════════════════════════ */
.pt-footer-widget {
    margin-bottom: 8px;
}

.pt-footer-widget a {
    display: block;
    font-size: 14px;
    color: var(--pt-muted);
    padding: 4px 0;
    transition: color 0.2s;
}

.pt-footer-widget a:hover {
    color: var(--pt-dark);
}