/*
Theme Name: DD General Agents Theme
Theme URI: https://ddgeneralagents.co.za/
Author: DD General Agents
Description: A modern, high-performance, mobile-optimized custom WordPress theme for DD General Agents PTY LTD. Features a dark theme with electric/royal blue accents, background video capabilities, and responsive SVG layout sections.
Version: 1.0.0
Text Domain: dd-general-agents
*/

/* ==========================================================================
   1. Design System & CSS Variables
   ========================================================================== */
:root {
    /* DD General Agents Brand Colors */
    --color-bg-dark: #0a0c12;            /* Near-black base – matches logo dark */
    --color-bg-card: #131824;            /* Card background */
    --color-bg-navbar: rgba(10, 12, 18, 0.92);
    --color-bg-navbar-scrolled: rgba(10, 12, 18, 0.98);
    --color-primary: #1a5fd4;            /* Royal Blue – matches DD logo blue 'D' */
    --color-primary-bright: #3a8fff;     /* Brighter blue for accents/gradients */
    --color-primary-hover: #154cba;
    --color-text-light: #f0f2f8;
    --color-text-muted: #8d97b0;
    --color-border: #1e2436;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 85px;
    --header-height-mobile: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
    --color-bg-dark: #f8fafc;
    --color-bg-card: #ffffff;
    --color-bg-navbar: rgba(248, 250, 252, 0.85);
    --color-bg-navbar-scrolled: rgba(248, 250, 252, 0.98);
    --color-text-light: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-white: #0f172a;
    --color-black: #ffffff;
}

/* ==========================================================================
   2. Reset & Global Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

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

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

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

a:hover {
    color: var(--color-primary-hover);
}

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

ul {
    list-style: none;
}

/* Screen Reader Text */
.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;
    width: 1px;
    word-wrap: normal !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
}

/* Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* ==========================================================================
   3. Header & Navigation (Fully Responsive)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.site-header.scrolled {
    height: 72px;
    background-color: var(--color-bg-navbar-scrolled);
    border-bottom-color: var(--color-primary);
    box-shadow: 0 2px 20px rgba(26, 95, 212, 0.2);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

/* DD Brand Logo Link */
.dd-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.dd-logo-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.dd-brand-logo {
    height: 68px;
    width: auto;
    max-width: 280px;
    filter: drop-shadow(0 2px 8px rgba(26, 95, 212, 0.35));
    transition: filter var(--transition);
}

.dd-logo-link:hover .dd-brand-logo {
    filter: drop-shadow(0 4px 16px rgba(26, 95, 212, 0.6));
}

/* Nav Menu */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

/* Contact Button in Header */
.header-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.85rem;
    border-left: 2px solid var(--color-border);
    padding-left: 15px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-contact svg {
    width: 14px;
    height: 14px;
    fill: var(--color-primary);
}

/* Mobile Toggle Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Active Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Header Controls Wrapper (Theme Toggle & Menu Toggle) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background-color: var(--color-border);
    color: var(--color-primary);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

/* Hide/show icons based on theme */
:root[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: translateY(20px) rotate(45deg);
    pointer-events: none;
    position: absolute;
}

:root[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

:root[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: translateY(-20px) rotate(-45deg);
    pointer-events: none;
    position: absolute;
}

/* Keep Hero section dark and readable */
.hero-title {
    color: #ffffff !important;
}

.hero-desc {
    color: #f3f4f6 !important;
}

/* Keep CTA Banner dark and readable */
.cta-banner p,
.cta-banner .contact-form-group label {
    color: #ffffff !important;
}

.cta-banner .contact-form-control {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.cta-banner .contact-form-control::placeholder {
    color: #9ca3af !important;
}

.cta-banner .contact-form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25) !important;
}

.cta-banner .btn-outline {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.cta-banner .btn-outline:hover {
    background-color: #ffffff !important;
    color: #0f1219 !important;
}

/* Footer light mode background override */
:root[data-theme="light"] .site-footer {
    background-color: #f1f5f9;
}

/* Gallery light mode overlay override */
:root[data-theme="light"] .gallery-overlay {
    background: linear-gradient(transparent, rgba(248, 250, 252, 0.95)) !important;
}

/* Footer Social Links */
.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-border);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.footer-social-links a:hover {
    background-color: var(--color-primary);
    color: #ffffff !important;
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   4. Homepage Sections
   ========================================================================== */

/* Hero Banner */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 12, 18, 0.88) 0%,
        rgba(10, 20, 50, 0.75) 50%,
        rgba(10, 12, 18, 0.82) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-tagline {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2.5rem;
    color: var(--color-text-light);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-section .btn-outline {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.hero-section .btn-outline:hover {
    background-color: #ffffff !important;
    color: #0f1219 !important;
}

/* About Section */
.about-section .grid-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

.about-content h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Values Grid */
.values-section {
    background-color: #d1d5db; /* Light grey/silver background matching user image */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

:root[data-theme="dark"] .values-section {
    background-color: #111622; /* Sleek dark theme background */
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.values-main-title {
    color: #1a254c !important; /* Deep dark blue matching user image */
}

:root[data-theme="dark"] .values-main-title {
    color: #ffffff !important;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.value-card-flat {
    text-align: center;
    padding: 1rem;
    transition: var(--transition);
}

.value-card-flat .value-icon-svg {
    width: 48px;
    height: 48px;
    fill: #1a254c; /* Deep dark blue matching user image */
    margin: 0 auto 1.5rem;
    display: block;
    transition: var(--transition);
}

:root[data-theme="dark"] .value-card-flat .value-icon-svg {
    fill: var(--color-primary-bright, #3a8fff);
}

.value-card-flat:hover .value-icon-svg {
    transform: scale(1.15) translateY(-3px);
}

.value-card-flat .value-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f37021 !important; /* Orange title matching user image */
    margin-bottom: 1.2rem;
    font-family: var(--font-heading);
}

.value-card-flat .value-desc {
    color: #374151 !important; /* Dark grey body text for readability */
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

:root[data-theme="dark"] .value-card-flat .value-desc {
    color: #8d97b0 !important;
}

@media screen and (max-width: 975px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Services Alternating Rows */
.services-section {
    background-color: var(--color-bg-dark);
}

.service-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row.reverse {
    grid-template-columns: 1fr 1.1fr;
}

.service-row.reverse .service-content-col {
    order: 2;
}

.service-row.reverse .service-img-col {
    order: 1;
}

.service-img-col {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
}

.service-content-col h3 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 1.2rem;
}

.service-content-col p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('images/cta-bg.jpg') center/cover no-repeat;
    background-color: var(--color-bg-card);
    text-align: center;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.cta-banner h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 2rem;
}

/* Contact Form Styling */
.contact-form-wrapper {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
}

.contact-form-group {
    margin-bottom: 1.25rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media screen and (max-width: 575px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

.contact-form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.contact-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.contact-form-control::placeholder {
    color: #4b5563;
}

.contact-form-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-card);
    aspect-ratio: 1;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(26, 95, 212, 0.25);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-border));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 1.5rem;
}

.gallery-placeholder svg {
    width: 48px;
    height: 48px;
    fill: var(--color-primary);
    opacity: 0.85;
    transition: var(--transition);
}

.gallery-item:hover .gallery-placeholder svg {
    transform: translateY(-5px);
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(15, 18, 25, 0.95));
    padding: 1.5rem 1rem 1rem;
    text-align: center;
}

.gallery-overlay h4 {
    font-size: 1rem;
    color: var(--color-white);
    font-family: var(--font-heading);
}

/* ==========================================================================
   5. Footer Styling
   ========================================================================== */
.site-footer {
    background-color: #080a0e;
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    color: var(--color-text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-widget h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-widget p {
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.reg-badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(26, 95, 212, 0.15), rgba(26, 95, 212, 0.08));
    border: 1px solid rgba(26, 95, 212, 0.3);
    color: var(--color-primary-bright, #3a8fff);
    font-size: 0.78rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 0.2rem 0.75rem;
    border-radius: 2px;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.footer-tagline-text {
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}


/* ==========================================================================
   6. Fallback Page/Single Templates
   ========================================================================== */
.page-header-archive {
    padding: 8rem 0 4rem;
    background-color: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background-color: var(--color-bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.post-card-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.main-content-area {
    padding: 8rem 0 5rem;
}

.single-post-wrapper, .single-page-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.entry-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   7. Mobile Media Queries (Strict Mobile Optimization)
   ========================================================================== */
@media screen and (max-width: 975px) {
    .site-header {
        height: var(--header-height-mobile);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Responsive Mobile Menu Drawer */
    .nav-wrapper {
        position: fixed;
        top: var(--header-height-mobile);
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - var(--header-height-mobile));
        background-color: var(--color-bg-dark);
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 2rem;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-wrapper.active {
        right: 0;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }
    
    .main-navigation a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
    }
    
    .header-contact {
        margin-top: 1rem;
        border-top: 1px solid var(--color-border);
        padding-top: 2rem;
        width: 100%;
        border-left: none;
        padding-left: 0;
    }

    /* Grid Splits to Single Columns on Mobile */
    .about-section .grid-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-img-box {
        max-height: 400px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-row, 
    .service-row.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .service-row.reverse .service-content-col {
        order: 1;
    }
    
    .service-row.reverse .service-img-col {
        order: 2;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media screen and (max-width: 575px) {
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }
    
    .section-padding {
        padding: 3.5rem 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}
