/*
Theme Name: Prohouse
Theme URI: https://prohouse.vn
Author: Prohouse Team
Author URI: https://prohouse.vn
Description: Theme WordPress chuyên nghiệp cho CÔNG TY TNHH KIẾN TRÚC & NỘI THẤT PROHOUSE - Thiết kế kiến trúc & xây dựng nội thất trọn gói.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prohouse
Tags: architecture, construction, interior-design, custom-menu, custom-logo, featured-images, full-width-template
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
*/

/* ================================================================
   PROHOUSE WORDPRESS THEME - MODERN PREMIUM DESIGN
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Brand color #E26429 */
    --primary: #E26429;
    --primary-rgb: 226, 100, 41;
    --primary-light: #f48a55;
    --primary-dark: #b94b1a;
    --dark-bg: #1F0F07;
    --dark-section: #26150c;
    --light-bg: #F1EADA;
    --light-section: #ffffff;
    --card-dark: #2a180f;
    --card-light: #ffffff;
    --text-white: #F8F5F0;
    --text-dark: #1F0F07;
    --text-muted-light: #A89B95;
    --text-muted-dark: #6C5F58;
    --border-dark: rgba(226, 100, 41, 0.15);
    --border-light: rgba(31, 15, 7, 0.08);
    --accent-gold: #E0CB9B;

    /* Layout & Styling */
    --font-brand: 'Cinzel', serif;
    --font-heading: 'Cinzel', serif;
    --font-sub: 'Cormorant Garamond', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.4);
    --shadow-light: 0 10px 30px rgba(31, 15, 7, 0.05);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================================================
   BASE STYLES
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================================
   HEADER & NAVIGATION
   ================================================================ */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

#header.scrolled {
    background: rgba(31, 15, 7, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-brand);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 500;
    color: var(--text-muted-light);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

/* WordPress Menu Support */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_item a::after {
    width: 100%;
}

.nav-menu li a:hover {
    color: var(--primary);
}

/* Dropdown menus */
.nav-menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(31, 15, 7, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius-md);
    padding: 12px 0;
    flex-direction: column;
    gap: 0;
    z-index: 100;
    box-shadow: var(--shadow-premium);
}

.nav-menu li:hover > ul.sub-menu {
    display: flex;
}

.nav-menu li ul.sub-menu li a {
    padding: 10px 20px;
    font-size: 12px;
    text-transform: none;
    white-space: nowrap;
}

.nav-menu li ul.sub-menu li a::after {
    display: none;
}

.nav-menu li ul.sub-menu li a:hover {
    background: rgba(226, 100, 41, 0.1);
    color: var(--primary);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-right-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-phone-btn {
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 50px;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.hero {
    position: relative;
    height: clamp(560px, 53.75vw, 860px);
    min-height: 0;
    display: block;
    overflow: hidden;
    background: var(--dark-bg);
    isolation: isolate;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(31, 15, 7, 0.58) 0%, rgba(31, 15, 7, 0.08) 24%, transparent 45%);
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--dark-bg);
    touch-action: pan-y;
}

.hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(-100%, 0, 0);
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero-slide img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: var(--desktop-position, 50% 50%);
    filter: none;
    transform: scale(1.001);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 2.4vw, 46px);
    z-index: 2;
    pointer-events: none;
}

.hero-nav button {
    width: 40px;
    height: 80px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--light-bg);
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-nav button:hover {
    color: var(--dark-bg);
    background: rgba(241, 234, 218, 0.9);
}

.hero-nav button:focus-visible {
    outline: 2px solid var(--light-bg);
    outline-offset: 4px;
}

.hero-nav svg {
    width: 38px;
    height: 38px;
    stroke-width: 1.25;
}

.hero-autoplay-toggle {
    position: absolute;
    right: clamp(16px, 2.4vw, 46px);
    bottom: 18px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(241, 234, 218, 0.45);
    border-radius: 50%;
    color: var(--light-bg);
    background: rgba(31, 15, 7, 0.42);
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.hero-autoplay-toggle:hover {
    color: var(--dark-bg);
    border-color: var(--light-bg);
    background: rgba(241, 234, 218, 0.92);
}

.hero-autoplay-toggle[hidden] {
    display: none;
}

.hero-autoplay-toggle:focus-visible {
    outline: 2px solid var(--light-bg);
    outline-offset: 4px;
}

.hero-autoplay-icon {
    position: relative;
    width: 12px;
    height: 14px;
}

.hero-autoplay-icon::before,
.hero-autoplay-icon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 3px;
    height: 14px;
    border-radius: 1px;
    background: currentColor;
}

.hero-autoplay-icon::before {
    left: 1px;
}

.hero-autoplay-icon::after {
    right: 1px;
}

.hero-autoplay-toggle.is-paused .hero-autoplay-icon::before {
    top: 1px;
    left: 2px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentColor;
    border-radius: 0;
    background: transparent;
}

.hero-autoplay-toggle.is-paused .hero-autoplay-icon::after {
    display: none;
}

@media (max-width: 768px) {
    .hero {
        height: clamp(480px, 132vw, 620px);
        min-height: 0;
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(31, 15, 7, 0.62) 0%, rgba(31, 15, 7, 0.08) 22%, transparent 42%);
    }

    .hero-slide img {
        object-position: var(--mobile-position, var(--desktop-position, 50% 50%));
    }

    .hero-nav {
        padding: 0 12px;
    }

    .hero-nav button {
        width: 36px;
        height: 72px;
    }

    .hero-nav svg {
        width: 32px;
        height: 32px;
    }

    .hero-autoplay-toggle {
        right: 12px;
        bottom: 12px;
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-track {
        transition-duration: 0.01ms;
    }

    .hero-autoplay-toggle {
        display: none;
    }
}

/* ================================================================
   SECTIONS
   ================================================================ */

.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark-bg);
    color: var(--text-white);
}

.section-light {
    background: var(--light-bg);
    color: var(--text-dark);
}

.section-white {
    background: var(--light-section);
    color: var(--text-dark);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-dark .section-badge {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.section-light .section-badge,
.section-white .section-badge {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    font-family: var(--font-sub);
    font-size: clamp(16px, 1.5vw, 20px);
    font-style: italic;
}

.section-dark .section-header p {
    color: var(--text-muted-light);
}

.section-light .section-header p,
.section-white .section-header p {
    color: var(--text-muted-dark);
}

/* ================================================================
   SERVICE CARDS
   ================================================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius-md);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-white);
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-link:hover {
    gap: 12px;
    color: var(--primary-light);
}

/* ================================================================
   PROJECT CARDS
   ================================================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    group: true;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    background: linear-gradient(transparent, rgba(31, 15, 7, 0.95));
}

.project-overlay h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
}

.project-overlay span {
    font-size: 12px;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================================================
   STATS SECTION
   ================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 32px 16px;
    border-radius: var(--border-radius-md);
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================================================
   FOOTER
   ================================================================ */

footer {
    background: var(--dark-bg);
    color: var(--text-white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-dark);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted-light);
    line-height: 1.7;
    margin-top: 16px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted-light);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

/* WordPress Widget Support */
.footer-widgets .widget {
    margin-bottom: 24px;
}

.footer-widgets .widget-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-widgets .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets .widget ul li {
    margin-bottom: 8px;
}

.footer-widgets .widget ul li a {
    font-size: 14px;
    color: var(--text-muted-light);
    transition: var(--transition-fast);
}

.footer-widgets .widget ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted-light);
}

.footer-contact-item i,
.footer-contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    color: var(--text-muted-light);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-muted-light);
    font-size: 13px;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* ================================================================
   MOBILE MENU
   ================================================================ */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px) translateX(5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 15, 7, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 24px 24px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-white);
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-muted-light);
    padding: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-dropdown-toggle.active {
    transform: rotate(180deg);
    color: var(--primary);
}

.mobile-dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: 24px;
}

.mobile-dropdown-content.open {
    display: flex;
}

.mobile-dropdown-content a {
    font-size: 14px;
    color: var(--text-muted-light);
    padding: 10px 16px;
    transition: var(--transition-fast);
}

.mobile-dropdown-content a:hover {
    color: var(--primary);
}

/* ================================================================
   WORDPRESS SPECIFIC STYLES
   ================================================================ */

/* WordPress Core Alignment */
.alignnone {
    margin: 16px 0;
}

.aligncenter {
    display: block;
    margin: 16px auto;
}

.alignright {
    float: right;
    margin: 0 0 16px 24px;
}

.alignleft {
    float: left;
    margin: 0 24px 16px 0;
}

/* WordPress Captions */
.wp-caption {
    max-width: 100%;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--text-muted-dark);
    padding: 8px 0;
    text-align: center;
}

/* WordPress Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* WordPress Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
    margin-top: 48px;
}

.post-navigation a {
    color: var(--primary);
    font-weight: 500;
}

.post-navigation a:hover {
    color: var(--primary-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 48px 0;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--light-section);
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* WordPress Comment Styles */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 24px;
    margin-bottom: 24px;
    background: var(--light-section);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-light);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-fast);
    margin-bottom: 16px;
    background: var(--light-section);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.comment-form .submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form .submit:hover {
    background: var(--primary-light);
}

/* WordPress Block Editor Support */
.wp-block-image {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin: 24px 0;
}

.wp-block-gallery {
    display: grid;
    gap: 16px;
}

.wp-block-button .wp-block-button__link {
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.wp-block-button .wp-block-button__link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.wp-block-quote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    font-family: var(--font-sub);
    font-size: 20px;
    font-style: italic;
    background: rgba(var(--primary-rgb), 0.03);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

/* Content area typography */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-top: 32px;
    margin-bottom: 16px;
}

.entry-content h1 { font-size: 36px; }
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 20px; }

.entry-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Page template */
.page-hero {
    background: var(--dark-bg);
    padding: 140px 0 80px;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
}

.page-hero p {
    font-family: var(--font-sub);
    font-size: 20px;
    font-style: italic;
    color: var(--text-muted-light);
}

.page-content {
    padding: 80px 0;
}

.page-content .container {
    max-width: 900px;
}

/* Blog / Archive */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--light-section);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-light);
}

.blog-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card h3 a {
    color: var(--text-dark);
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    font-size: 14px;
    color: var(--text-muted-dark);
    line-height: 1.7;
}

/* Single Post */
.single-post-header {
    background: var(--dark-bg);
    padding: 140px 0 60px;
}

.single-post-header .container {
    max-width: 900px;
}

.single-post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted-light);
    margin-bottom: 16px;
}

.single-post-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.single-post-content {
    padding: 60px 0;
}

.single-post-content .container {
    max-width: 900px;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-right-wrapper {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        min-height: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 24px;
    }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Screen reader text - WordPress accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ================================================================
   PORTFOLIO & LIGHTBOX GALLERY STYLES
   ================================================================ */

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-light, #e2e8f0);
    color: var(--text-dark, #2d3748);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast, all 0.2s ease);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary, #E26429);
    border-color: var(--primary, #E26429);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(226, 100, 41, 0.25);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    background-color: var(--dark-bg, #1f0f07);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(31, 15, 7, 0.95) 0%, rgba(31, 15, 7, 0.35) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: all 0.35s ease;
    transform: translateY(10px);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary, #E26429);
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    display: block;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: capitalize;
}

.portfolio-link-icon {
    width: 38px;
    height: 38px;
    background-color: var(--primary, #E26429);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.portfolio-item:hover .portfolio-link-icon {
    transform: scale(1);
    opacity: 1;
}

.portfolio-detail-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 9, 4, 0.96);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(15px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 1050px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    padding: 8px;
    z-index: 2010;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--primary, #E26429);
}

.lightbox-viewer {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0603;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(226, 100, 41, 0.2);
}

.lightbox-image-wrapper {
    width: 100%;
    height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(31, 15, 7, 0.75);
    color: #ffffff;
    border: 1px solid rgba(226, 100, 41, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background: var(--primary, #E26429);
    border-color: var(--primary, #E26429);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-caption {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.lightbox-caption-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: #ffffff;
}

.lightbox-caption-text p {
    color: var(--primary, #E26429);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 600;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.lightbox-thumbnails-wrapper {
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.lightbox-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--primary, #E26429);
    transform: translateY(-2px);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

