/*
Theme Name: Black Tulip Digital
Theme URI: https://blacktulipdigital.com
Author: Black Tulip Digital
Author URI: https://blacktulipdigital.com
Description: Custom WordPress theme for Black Tulip Digital - Fractional CMO Services for B2B Tech. Fully compatible with Elementor Pro.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: black-tulip
Tags: one-column, custom-menu, featured-images, theme-options, elementor
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* --- 1. Variables & Reset --- */
:root {
    /* Dark Theme (Base) */
    --bg-body: #0a0a0a;       
    --bg-contrast: #111111;   
    
    /* Light Theme (Brochure Sections) */
    --bg-light: #f7f7f7;
    --bg-white: #ffffff;
    --text-light-head: #111111;
    --text-light-body: #444444;
    
    /* Text Colors */
    --text-head: #ffffff;
    --text-body: #d4d4d4;     
    --text-muted: #888888;
    
    /* Accents */
    --accent: #10a1a1;        
    --accent-dark: #0a7171;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(0, 0, 0, 0.1);
    
    /* Layout */
    --container-width: 1120px; 
    --spacing-section: 140px;  
    
    /* Fonts */
    --font-serif: 'Montserrat', sans-serif; 
    --font-sans: 'Raleway', sans-serif;
    
    --transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. Typography --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-head);
    line-height: 1.15;
    letter-spacing: -0.02em; 
}

h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

p { margin-bottom: 1.5rem; }

/* Helper Classes */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
    font-family: var(--font-sans);
}

.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.text-narrow {
    max-width: 640px; 
}

.text-center { text-align: center; }

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

/* --- 3. Light "Brochure" Section Theme --- */
.section-light {
    background-color: var(--bg-light) !important;
    color: var(--text-light-body) !important;
}

.section-light h2, 
.section-light h3, 
.section-light h4 {
    color: var(--text-light-head) !important;
}

.section-light .eyebrow {
    color: #111111 !important;
}

.section-light .section-label {
    color: #666666 !important;
}

.section-light .service-link {
    color: var(--accent-dark) !important;
}
.section-light .service-link::after {
    background: var(--accent-dark) !important;
}

.section-light .form-control {
    color: #111 !important;
    border-bottom-color: rgba(0,0,0,0.2) !important;
}
.section-light .form-control:focus {
    border-bottom-color: var(--accent-dark) !important;
}

.section-light a { color: inherit; } 
.section-light a:hover { color: var(--accent-dark); }

/* --- 4. Global Components --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

section {
    padding: var(--spacing-section) 0;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-head);
    background: transparent;
    border-radius: 4px; /* Matches .image-card radius */
}

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

.btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-head);
}

/* Button overrides for light sections */
.section-light .btn {
    border-color: rgba(0,0,0,0.2);
    color: var(--text-light-head);
}
.section-light .btn:hover {
    border-color: var(--accent-dark);
    color: var(--accent-dark);
}
.section-light .btn-primary {
    background: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
}
.section-light .btn-primary:hover {
    background: transparent;
    color: var(--accent-dark);
}

/* --- 5. Navigation --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0.8rem 0;
    transition: padding 0.3s ease;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 80px; 
    width: auto;
    display: block;
}

.nav-content { display: flex; align-items: center; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-body);
    opacity: 0.8;
}
.nav-link:hover { opacity: 1; color: var(--accent); }

/* WordPress Menu Active States */
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--accent);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-left: 2rem;
    margin-left: 2rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.phone-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-head); 
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background: transparent;
    color: var(--text-head);
    border: 1px solid rgba(255,255,255,0.3);
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 4px; /* Matches .image-card radius */
}

.btn-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 22px; height: 2px; margin: 5px auto; background-color: var(--text-head); transition: 0.3s; }

/* --- 6. Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    background: linear-gradient(110deg, rgba(5, 5, 5, 0.853) 0%, rgba(4, 0, 73, 0.827) 100%), 
                url('https://black-tulip-digital.previews.co.nz/wp-content/uploads/2025/12/hero-scaled.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero--home {
    min-height: 100vh;
    padding-top: 160px; 
}

.hero--subpage {
    min-height: 50vh;
    padding-top: 140px; 
    align-items: center;
}

/* Video Background Styles */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, rgba(5, 5, 5, 0.655) 0%, rgba(55, 0, 57, 0.62) 100%);
    z-index: 1;
}

.hero .container {
    z-index: 2;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 5rem;
    align-items: center;
}

.hero-text { max-width: 580px; }

.hero-text p.lead {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-credentials {
    display: block;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.hero-snapshot {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 1px solid var(--border-light);
    padding-left: 2.5rem;
}

.snapshot-item {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    font-style: normal;
}
.snapshot-item span { 
    color: var(--accent); 
    font-weight: 700; 
    font-size: 1rem;
    margin-right: 0.4rem; 
    font-style: normal;
    display: inline-block;
}

/* --- 7. Results Strip --- */
.results-strip {
    background-color: #0d0d0d !important; 
    padding: 4rem 0;
    border-bottom: none;
}

.results-intro {
    text-align: left;
    margin-bottom: 1.5rem; 
    color: var(--text-body);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.6;
}

.results-subtext {
    text-align: left;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 1rem;
    max-width: 800px;
    line-height: 1.6;
}

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

.result-item { position: relative; }

.result-number {
    font-family: var(--font-serif);
    font-size: 2.4rem; 
    color: #ffffff; 
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--text-muted); 
    margin-bottom: 0.8rem;
}

.result-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- 8. Services --- */
.section-header { margin-bottom: 4rem; }

.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    align-items: stretch; 
}

.service-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-col h3 { margin-bottom: 1.2rem; }
.service-desc { margin-bottom: 2rem; font-size: 1rem; }

.service-items {
    list-style: none;
    margin-bottom: 2rem;
}

.service-items li {
    margin-bottom: 0.6rem;
    padding-left: 1rem;
    position: relative;
    font-size: 0.9rem;
}

.service-items li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 4px; height: 4px;
    background-color: var(--accent-dark);
    border-radius: 50%;
}

.service-fit {
    margin-top: auto; 
    font-size: 0.9rem;
    color: var(--text-light-body);
    font-style: italic;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
    line-height: 1.6;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}
.service-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 0; height: 1px;
    transition: 0.3s;
}
.service-link:hover::after { width: 100%; }

/* Who I Work With */
.who-block {
    margin-bottom: 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.who-list {
    list-style: none;
    margin-top: 2rem;
}

.who-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-light-head);
}

.who-list li::before {
    content: '\2022';
    color: var(--accent-dark);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    top: -3px;
}

/* Not Sure Block */
.not-sure-block {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* --- 9. Work Section --- */
.work-section { background-color: var(--bg-contrast); }

.work-list { display: flex; flex-direction: column; }

.work-entry {
    display: grid;
    grid-template-columns: 0.5fr 200px 2fr 3fr; 
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: opacity 0.3s;
    column-gap: 2rem;
}

.work-entry:first-child { border-top: 1px solid var(--border-light); }
.work-entry:hover { opacity: 0.9; }

.work-index {
    font-family: var(--font-serif);
    color: var(--accent);
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.6;
}

.work-thumb {
    overflow: hidden;
    border-radius: 4px;
    background: #222;
    width: 200px; 
    height: 120px; 
    margin-right: 0; 
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.work-entry:hover .work-thumb img {
    filter: grayscale(0%);
}

.work-title-group h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.work-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.work-desc h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.8rem;
}

.work-desc p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Featured Work Entry */
.work-entry.featured {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    padding: 6rem 0; 
}

.work-entry.featured:first-child { border-top: none; }

.work-featured-image {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(80%) contrast(1.1);
    transition: all 0.6s ease;
}

.work-entry.featured:hover .work-featured-image {
    filter: grayscale(0%);
    transform: scale(1.01);
}

.work-featured-content {
    display: flex;
    flex-direction: column;
}

.work-featured-index {
    font-family: var(--font-serif);
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Alternating Layout for Featured Items */
.work-entry.featured:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}

.work-entry.featured:nth-child(even) .work-featured-visual {
    order: 2;
}

.work-entry.featured:nth-child(even) .work-featured-content {
    order: 1;
}

/* Work Footer CTA Section */
.work-footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-light);
}

.work-footer-cta h3 {
    margin-bottom: 1rem;
}

.work-footer-cta p {
    max-width: 600px;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.work-cta {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* --- 10. Why Me --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 6rem;
    row-gap: 4rem;
}

.why-item h3 {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.why-num {
    font-size: 0.9rem;
    color: var(--accent-dark);
    font-family: var(--font-sans);
    font-weight: 700;
}

/* --- 11. Testimonials --- */
.testimonials-section { background-color: var(--bg-body); }

.testimonial-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-slide {
    display: none;
    animation: fadeUp 0.8s ease;
}
.testimonial-slide.active { display: block; }

.quote-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    opacity: 0.5;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--text-head);
    margin-bottom: 2.5rem;
}

.quote-author {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-body);
}
.quote-role {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 5px;
}

.testimonial-controls { margin-top: 3rem; }
.control-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin: 0 10px;
    cursor: pointer;
    transition: 0.3s;
}
.control-btn:hover { color: var(--accent); }

/* --- 12. About --- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-img-container {
    position: sticky;
    top: 100px;
}

.about-img {
    width: 100%;
    filter: grayscale(60%) contrast(1.05);
    transition: 0.5s ease;
    display: block;
}
.about-img:hover { filter: grayscale(20%); }

.why-tulip-block {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.about-solo-image {
    margin-top: 3rem;
    margin-bottom: 3rem;
    width: 100%;
}

.about-solo-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: filter 0.5s ease;
}

.about-img-mobile { display: none; }
.about-img-desktop { display: block; }

/* --- 13. Contact --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.form-group { margin-bottom: 2rem; }

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: 0.3s;
    border-radius: 0;
    border-bottom: 1px solid rgba(0,0,0,0.2); 
}
.form-control:focus { outline: none; }

select.form-control {
    appearance: none;
    border-radius: 0;
    cursor: pointer;
}
select.form-control option { background: #fff; color: #000; }

.contact-form-wrapper {
    position: relative;
    padding: 3rem;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-form-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://black-tulip-digital.previews.co.nz/wp-content/uploads/2025/12/10-scaled.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: multiply;
    filter: grayscale(100%);
}

/* WordPress Contact Form 7 Styles */
.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: 0.3s;
    border-radius: 0;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--accent-dark);
    color: #fff;
    border: 1px solid var(--accent-dark);
    width: 100%;
    margin-top: 1rem;
    border-radius: 4px; /* Matches .image-card radius */
}

.wpcf7 input[type="submit"]:hover {
    background: transparent;
    color: var(--accent-dark);
}

/* --- 14. Footer --- */
.footer {
    background-color: var(--bg-body);
    color: var(--text-muted);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

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

.footer-logo-img {
    max-height: 200px;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-desc {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 300px;
    color: var(--text-muted);
}

.connect-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-head);
    margin-bottom: 1rem;
    font-style: italic;
}

.footer-heading {
    color: var(--text-head);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: var(--font-sans);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--accent); }

/* WordPress Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li { margin-bottom: 0.8rem; }
.footer-menu a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-menu a:hover { color: var(--accent); }

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.contact-detail i {
    color: var(--accent);
    margin-top: 4px;
    font-size: 0.9rem;
}

.social-link {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: 0.3s;
    display: inline-block;
}
.social-link:hover { color: var(--accent); transform: translateY(-2px); }

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* --- 15. Shared Imagery Classes --- */
.image-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.image-card {
    overflow: hidden;
    border-radius: 4px;
    background: #111;
    position: relative;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.image-card:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.image-strip--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

.section-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.section-split-image img {
    width: 100%;
    display: block;
    border-radius: 6px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    aspect-ratio: 4/3;
}

.section-light .section-split-image img {
    filter: grayscale(100%) contrast(1.02) brightness(1.05);
}

/* --- 16. Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 17. Responsive --- */
@media (max-width: 992px) {
    /* FIX: Force content visibility on mobile to prevent "Black Screen" issue */
    .fade-in-section {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .hero-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .hero { padding-top: 120px; }
    .hero-snapshot { border-left: none; border-top: 1px solid var(--border-light); padding-left: 0; padding-top: 2rem; flex-direction: row; flex-wrap: wrap; }
    
    .results-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .service-list { grid-template-columns: 1fr; gap: 3rem; }
    
    .work-entry { grid-template-columns: 1fr; gap: 1rem; }
    
    .work-entry.featured, 
    .work-entry.featured:nth-child(even) { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }
    
    .work-entry.featured:nth-child(even) .work-featured-visual,
    .work-entry.featured .work-featured-visual {
        order: 0;
    }
    
    .work-entry.featured:nth-child(even) .work-featured-content,
    .work-entry.featured .work-featured-content {
        order: 1;
    }

    .work-index { display: none; }
    .work-featured-index { font-size: 1.5rem; }
    
    .why-grid { grid-template-columns: 1fr; }
    
    .nav-actions { display: none; } 
    
    .image-strip { grid-template-columns: 1fr; gap: 1rem; }
    .section-split { grid-template-columns: 1fr; gap: 2rem; }
    .work-thumb { display: none; } 
    .contact-form-wrapper { padding: 1.5rem; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .about-img-desktop { display: none; }
    .about-img-mobile { 
        display: block; 
        margin-top: 2rem;
        margin-bottom: 2rem;
        max-width: 640px;
    }
}

@media (max-width: 768px) {
    :root { --spacing-section: 90px; }
    
    .hamburger { display: block; }
    
    .nav-menu {
        position: fixed;
        left: -100%; top: 60px;
        width: 100%; height: calc(100vh - 60px);
        background: #0a0a0a;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        padding: 2rem;
        border-top: 1px solid var(--border-light);
    }
    
    .nav-menu.active { left: 0; }
    .nav-content { width: auto; }
    
    /* HIDE CTA BUTTON ON MOBILE */
    .nav-actions,
    .nav-menu .btn-nav,
    .btn-nav { 
        display: none !important; 
    }
    
    .footer-grid { grid-template-columns: 1fr; }

    /* Adjust Hero buttons since header CTA is gone */
    .hero-actions .btn {
        padding: 8px 16px; 
        font-size: 0.7rem; 
        height: auto;
    }
    .hero-actions {
        gap: 0.5rem;
    }
}

@media (min-width: 992px) {
    .service-fit {
        min-height: 8.5rem; 
    }
}

/* --- 18. Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    color: #fff;
}

/* --- 19. WordPress Specific Styles --- */

/* WordPress Admin Bar Fix */
body.admin-bar .navbar {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}

/* WordPress Alignment Classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

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

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* WordPress Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

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

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

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
}

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

/* WordPress Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    color: var(--text-body);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* Blog Post Styles */
.blog-posts {
    display: grid;
    gap: 3rem;
}

.post-card {
    background: var(--bg-contrast);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.post-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-card h2 a {
    color: var(--text-head);
}

.post-card h2 a:hover {
    color: var(--accent);
}

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

.post-excerpt {
    color: var(--text-body);
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.read-more:hover {
    color: var(--text-head);
}

/* Single Post Styles */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
}

/* Comments */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

.comment-author {
    font-weight: 600;
    color: var(--text-head);
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* --- 20. Elementor Compatibility --- */

/* Elementor Full Width Template */
.elementor-page .site-content {
    padding: 0;
}

.elementor-page .hero--subpage {
    display: none;
}

/* Elementor Section Spacing Override */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: var(--container-width);
}

/* Elementor Button Styles */
.elementor-button {
    font-family: var(--font-sans);
    border-radius: 4px !important; /* Matches .image-card radius */
}

/* Fix Elementor widgets in dark theme */
.elementor-widget-text-editor {
    color: var(--text-body);
}

.elementor-widget-heading .elementor-heading-title {
    color: var(--text-head);
}

/* Elementor Dark Mode */
.elementor-section[data-settings*="dark"] {
    background-color: var(--bg-body);
}

.elementor-section[data-settings*="light"] {
    background-color: var(--bg-light);
}

/* --- Header Logo Resizing --- */

/* 1. Mobile/Default State (No scroll resizing) */
.navbar .site-logo-img {
    max-height: 60px; /* Always keeps small/standard size on mobile */
    width: auto;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Desktop Specifics (Apply the Resizing Effect) */
@media (min-width: 992px) {
    /* Initial state (Before Scroll) - 2x Larger */
    .navbar .site-logo-img {
        max-height: 100px; 
    }

    /* Scrolled state (triggered by the JS) */
    .navbar.scrolled .site-logo-img {
        max-height: 60px; /* Return to standard size on scroll */
    }
}

/* Adjust navbar padding on scroll for tighter fit */
.navbar.scrolled {
    padding: 0.5rem 0;
}

/* --- Mobile CTA Button Adjustment --- */
@media (max-width: 768px) {
    /* Target the nav button specifically in mobile view */
    .nav-actions .btn-nav,
    .nav-menu .btn-nav {
        /* Original desktop was: padding: 8px 20px; font-size: 0.75rem; */
        /* Reduced by approx 20% */
        padding: 6px 16px !important;
        font-size: 0.6rem !important;
        letter-spacing: 0.5px;
        border-width: 1px;
    }
}