/*
Theme Name: Developer Theme
Theme URI: https://ehtishamsaeed.com
Author: Ehtisham Saeed
Author URI: https://ehtishamsaeed.com
Description: Premium dark theme for RTO marketing professionals. Clean, modern, conversion-focused design with green accent. Built specifically for Australian training organisations.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: developer-theme
Tags: dark, portfolio, business, one-column, custom-logo, custom-menu, featured-images, theme-options
*/

/* ===========================================
   CSS VARIABLES — Doc spec design system
   =========================================== */
:root {
    /* Doc spec colour palette */
    --color-primary:       #2563EB;
    --color-primary-dark:  #1D4ED8;
    --color-primary-light: #3B82F6;
    --color-success:       #10B981;
    --color-black:         #0A0A0A;
    --color-gray-900:      #171717;
    --color-gray-600:      #525252;
    --color-gray-400:      #A3A3A3;
    --color-gray-100:      #E5E5E5;
    --color-off-white:     #FAFAFA;
    --color-white:         #FFFFFF;

    /* Legacy aliases kept for any existing code */
    --bg:          var(--color-black);
    --bg-light:    var(--color-gray-900);
    --text:        var(--color-white);
    --accent:      var(--color-primary-light);
    --accent-dim:  rgba(37,99,235,0.1);
    --muted:       var(--color-gray-400);
    --muted-dark:  var(--color-gray-600);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-600);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override any theme/plugin backgrounds */
body::before,
body::after,
#page::before,
#page::after,
.site::before,
.site::after {
    display: none !important;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul, ol {
    list-style: none;
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* ===========================================
   LAYOUT
   =========================================== */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

/* ===========================================
   COMPONENTS - Section Headers
   =========================================== */
.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 500px;
}

/* ===========================================
   COMPONENTS - Buttons
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--color-gray-100);
    color: var(--color-gray-600);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===========================================
   COMPONENTS - Cards
   =========================================== */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.25s ease;
}

.card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37,99,235,0.1);
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.bg-light { background: var(--bg-light); }
.bg-accent { background: var(--accent); color: var(--bg); }

/* ===========================================
   WORDPRESS SPECIFIC
   =========================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

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

/* Sticky post */
.sticky {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

/* ===========================================
   HEADER
   =========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10,10,10,0.98);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.site-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.site-logo span { color: var(--color-primary-light); }
.site-logo img { height: 36px; width: auto; }

/* Nav links — works both with direct <a> and wp_nav_menu <li><a> */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.nav-links a,
.nav-links li a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links li a:hover { color: #ffffff; }
/* wp_nav_menu injects extra ul — flatten it */
.nav-links ul { display: contents; list-style: none; margin: 0; padding: 0; }
.nav-links .menu { display: contents; }

/* Nav CTA button */
.nav-cta,
.nav-links .nav-cta {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    padding: 0.625rem 1.375rem !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover,
.nav-links .nav-cta:hover {
    background: var(--color-primary-dark) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    font-size: 1.25rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 2rem 2rem;
    gap: 0;
}
.mobile-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    display: block;
}
.mobile-nav a:hover { color: #ffffff; }
.mobile-nav .nav-cta {
    margin-top: 1.25rem;
    text-align: center;
    background: var(--color-primary);
    border-radius: 100px;
    border-bottom: none;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
}
.mobile-nav.open { display: flex; }

/* Push body below fixed header */
body { padding-top: 72px; }
.hero, .article-hero, .page-hero { padding-top: calc(100px + 72px); }
.hero { padding-top: 172px; padding-bottom: 80px; }
.page-hero { padding-top: 120px; }

@media (max-width: 1023px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}
@media (max-width: 479px) {
    .header-inner { padding: 0 1.25rem; }
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
    background: var(--color-black);
    color: rgba(255,255,255,0.75);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Brand col */
.footer-brand h3 {
    font-size: 1.375rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.footer-brand h3 span { color: var(--color-primary-light); }
.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
    margin-bottom: 0;
}

/* Footer cols */
.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #ffffff; }

/* Footer bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 0.875rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}
.social-links a:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
    background: rgba(59,130,246,0.1);
}

@media (max-width: 1023px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { grid-column: auto; }
}
