/*
Theme Name: Folie Flair Theme
Theme URI: https://folieflair.nl
Author: Antigravity
Author URI: https://google.com
Description: Custom luxury theme for Folie Flair Interior Wrapping.
Version: 1.0.1
*/

:root {
    /* Brand Colors */
    --color-navy: #0a0e27;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gold: #d4af37;
    --color-gold-light: #e8c474;
    --color-gold-muted: #b8941f;
    --color-off-white: #fafafa;
    --color-charcoal: #1a1a1a;
    --gradient-primary: linear-gradient(135deg, #000000 0%, #3533cd 100%);

    /* Typography */
    --font-primary: 'Archivo', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 100px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--color-navy);
    background-color: var(--color-white);
    line-height: 1.7;
    font-size: 17px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 52px;
}

h2 {
    font-size: 40px;
}

h3 {
    font-size: 28px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    body {
        font-size: 16px;
    }

    :root {
        --spacing-xl: 60px;
    }
}

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

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-gold {
    color: var(--color-gold);
}

.text-navy {
    color: var(--color-navy);
}

.text-white {
    color: var(--color-white);
}

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

/* Gradient Backgrounds */
.bg-navy {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.bg-black {
    background: linear-gradient(135deg, #000000 0%, #1a1a3e 100%);
    color: var(--color-white);
}

.bg-white {
    background-color: var(--color-white);
    color: var(--color-navy);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-navy);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-navy);
    color: var(--color-navy);
}

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

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

/* Section Styling */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}


/* Service Image Cards */
.service-image-card:hover img {
    transform: scale(1.05);
    /* Zoom effect */
}

.service-image-card:hover .text-gold {
    text-decoration: underline;
    opacity: 1;
}

.foils-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}


/* Standard Page Hero Padding */
.page-hero {
    padding-top: 160px !important;
    /* Clears fixed header (90px) + spacing */
    padding-bottom: 80px !important;
}

.section-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 0 auto;
    opacity: 0.5;
}

/* =========================================
   Header & Navigation (Dark Luxury Redesign)
   ========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--gradient-primary);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(53, 51, 205, 0.2);
}

/* Fix for WordPress Admin Bar overlap */
body.admin-bar .site-header {
    top: 32px;
}

/* Logo Sizing & Styling */
.site-branding img {
    max-height: 50px;
    /* Reduced as requested */
    width: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-title a {
    color: var(--color-white) !important;
    text-decoration: none;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    /* Slightly more compact */
    transition: height 0.3s ease;
}

.site-header.scrolled {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(53, 51, 205, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.site-header.scrolled .header-container {
    height: 70px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    /* More spacing for luxury feel */
}

.main-navigation a {
    color: var(--color-white);
    /* White text */
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
}

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

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

.main-navigation a:hover::after {
    width: 100%;
}

.menu-toggle,
.menu-close,
.drawer-header,
.drawer-cta,
.drawer-footer,
.menu-overlay {
    display: none;
}

/* On desktop, .drawer-nav is transparent — the <ul> flows inline */
.drawer-nav {
    display: contents;
}

/* Mobile Header Styles */
@media (max-width: 1024px) {
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    /* Hamburger Icon Styling (White) */
    .hamburger-box {
        width: 30px;
        height: 24px;
        display: inline-block;
        position: relative;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 30px;
        height: 3px;
        background-color: var(--color-white);
        border-radius: 4px;
        position: absolute;
        transition: all 0.3s ease;
    }

    .hamburger-inner {
        top: 50%;
        margin-top: -2px;
    }

    .hamburger-inner::before {
        content: "";
        top: -10px;
    }

    .hamburger-inner::after {
        content: "";
        bottom: -10px;
    }

    /* ── Side Drawer ── */
    .primary-menu-container {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--color-navy);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.admin-bar .primary-menu-container {
        top: 46px;
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }

    .primary-menu-container.active {
        right: 0;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
    }

    /* Drawer Header */
    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .drawer-logo img,
    .drawer-logo .custom-logo {
        height: 36px;
        width: auto;
    }

    .drawer-brand {
        color: white;
        font-family: var(--font-heading);
        font-size: 20px;
        font-weight: 700;
        text-decoration: none;
    }

    .menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.06);
        border: none;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        transition: all 0.2s;
    }

    .menu-close:hover {
        background: rgba(255, 255, 255, 0.12);
        color: white;
    }

    /* Drawer Navigation */
    .drawer-nav {
        flex: 1;
        padding: 24px 0;
    }

    .drawer-nav ul,
    .main-navigation ul {
        list-style: none;
        margin: 0;
        padding: 0;
        flex-direction: column;
        gap: 0;
    }

    .drawer-nav li,
    .main-navigation li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .drawer-nav a,
    .main-navigation a {
        display: block;
        padding: 16px 28px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        text-transform: none;
        letter-spacing: 0;
        transition: all 0.2s;
        border-left: 3px solid transparent;
    }

    .drawer-nav a:hover,
    .main-navigation a:hover,
    .drawer-nav .current-menu-item>a,
    .main-navigation .current-menu-item>a {
        color: white;
        background: rgba(255, 255, 255, 0.04);
        border-left-color: var(--color-gold);
    }

    .drawer-nav .current-menu-item>a,
    .main-navigation .current-menu-item>a {
        color: var(--color-gold);
    }

    /* Drawer CTA */
    .drawer-cta {
        padding: 8px 24px 16px;
    }

    .drawer-btn {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        padding: 14px 24px !important;
        font-size: 14px !important;
        margin-bottom: 0 !important;
    }

    /* Drawer Footer */
    .drawer-footer {
        padding: 20px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .drawer-contact-link {
        display: flex;
        align-items: center;
        gap: 10px;
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        font-size: 14px;
        transition: color 0.2s;
    }

    .drawer-contact-link:hover {
        color: var(--color-gold);
    }

    .drawer-contact-link svg {
        flex-shrink: 0;
        opacity: 0.6;
    }

    /* Overlay Backdrop */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Body scroll lock when menu open */
    body.menu-is-open {
        overflow: hidden;
    }

    /* Hamburger Animation - Transform to X */
    .menu-toggle.is-active .hamburger-inner {
        transform: rotate(45deg);
        background-color: var(--color-gold);
    }

    .menu-toggle.is-active .hamburger-inner::before {
        top: 0;
        opacity: 0;
    }

    .menu-toggle.is-active .hamburger-inner::after {
        bottom: 0;
        transform: rotate(-90deg);
        background-color: var(--color-gold);
    }
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
    background-color: var(--color-white);
    color: var(--color-navy);
    font-size: 15px;
    position: relative;
    border-top: 1px solid rgba(10, 14, 39, 0.1);
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--color-navy);
    font-size: 18px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after,
.footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-gold);
    margin-top: 12px;
}

.footer-logo-text {
    font-size: 24px;
    color: var(--color-navy);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 300px;
    color: #555;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(10, 14, 39, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-icon:hover {
    background-color: var(--color-navy);
    color: var(--color-gold);
    border-color: var(--color-navy);
    transform: translateY(-3px);
}

/* Footer Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #555;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-menu a:hover {
    color: var(--color-navy);
    transform: translateX(5px);
    font-weight: 600;
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    color: #555;
}

.contact-list .icon {
    color: var(--color-gold);
    font-size: 18px;
    margin-top: 2px;
}

.contact-list a {
    color: #555;
}

.contact-list a:hover {
    color: var(--color-navy);
}

/* Footer Bottom */
.footer-bottom {
    background-color: #f5f5f5;
    padding: 24px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
    color: #666;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    font-size: 14px;
    color: #666;
}

.footer-legal-links a:hover {
    color: var(--color-navy);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* =========================================
   Global Responsive Styles
   ========================================= */

@media (max-width: 992px) {
    /* Layout Adjustments for Tablet/Mobile */

    /* Typography Scaling */
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    /* Spacing */
    :root {
        --spacing-lg: 40px;
        --spacing-xl: 60px;
    }

    .page-hero {
        padding-top: 120px !important;
        padding-bottom: 60px !important;
        min-height: auto !important;
    }

    .page-hero--service h1,
    .page-hero--compact h1 {
        font-size: 36px !important;
    }

    /* Stack Grids & Flex Containers */
    .hero-container,
    .split-layout,
    .split-content,
    .process-wrapper,
    .hero-grid,
    .container[style*="grid-template-columns"],
    .container[style*="display: flex"] {
        display: flex !important;
        flex-direction: column;
        gap: 40px !important;
    }

    /* Reverse order for specific split layouts if needed (e.g. image on top) */
    .split-content[style*="row-reverse"] {
        flex-direction: column !important;
    }

    /* Grid Resets */
    .usp-grid,
    .services-grid,
    .reviews-grid,
    .features-grid,
    .foils-grid,
    .radio-grid {
        grid-template-columns: 1fr !important;
    }

    /* Full Width Elements */
    .split-image,
    .split-text,
    .hero-content,
    .hero-cta,
    .contact-form-col,
    .contact-info-col {
        width: 100% !important;
        min-width: 100% !important;
        flex: auto !important;
    }

    /* Hide Desktop Element Placeholders */
    .hero-visual {
        display: none !important;
    }

    /* Navigation */
    .header-container {
        height: 70px;
    }

    .site-branding img {
        max-height: 40px;
    }

    .header-cta {
        display: none;
    }

    .bg-off-white,
    .bg-white,
    .bg-navy {
        padding: 40px 0 !important;
    }
}

@media (max-width: 480px) {
    /* Mobile Phone Adjustments */

    h1 {
        font-size: 26px;
        word-break: break-word;
        line-height: 1.3;
    }

    /* Hide manual line breaks in H1 on mobile for better flow */
    h1,
    h2 {
        text-wrap: balance;
    }

    h1 br {
        display: none;
    }

    /* Except for specific mobile breaks */
    h1 br.mobile-break {
        display: inline !important;
    }

    .mobile-break {
        display: inline;
    }

    .hero-title {
        margin-bottom: 24px !important;
    }

    .hero-sub {
        font-size: 18px !important;
        margin-bottom: 24px !important;
        line-height: 1.5;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    p {
        font-size: 16px;
    }

    .container {
        padding: 0 24px;
    }

    .page-hero {
        padding-top: 100px !important;
        padding-bottom: 40px !important;
        min-height: auto !important;
    }

    .page-hero--service h1,
    .page-hero--compact h1 {
        font-size: 28px !important;
    }

    .hero-usps {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        display: block;
        text-align: center;
        margin-bottom: 12px;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-ctas .btn {
        margin: 0 !important;
    }

    .portfolio-stats {
        flex-wrap: wrap;
        gap: 20px !important;
    }

    .portfolio-stats div {
        flex: 1 1 100%;
        /* Full width stats */
        text-align: center;
        margin-bottom: 12px;
    }

    /* Fix Masonry */
    .masonry-grid {
        column-count: 1 !important;
    }

    /* Contact Form Radio Grid */
    .radio-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Tighter section spacing */
    .section-title {
        margin-bottom: 30px !important;
    }

    .split-content,
    .split-layout {
        gap: 30px !important;
    }

    .hero-sub {
        font-size: 16px !important;
        margin-bottom: 20px !important;
    }

    .hero-ctas {
        gap: 10px !important;
    }

    /* Tighten USP, services, reviews section headings */
    .usp-section,
    .services-section,
    .reviews-section,
    .process-section,
    .info-split,
    .about-section,
    .cta-section,
    .sample-cta {
        padding: 40px 0 !important;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

iframe {
    /* For Maps */
    max-width: 100%;
}

/* =========================================
   Mobile Carousel System
   ========================================= */

/* Carousel dots */
.carousel-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 0;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: var(--color-gold);
    transform: scale(1.3);
}

@media (max-width: 768px) {

    /* Mobile carousel container */
    .mobile-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px !important;
        padding: 0 24px !important;
        scrollbar-width: none;
        grid-template-columns: unset !important;
    }

    .mobile-carousel::-webkit-scrollbar {
        display: none;
    }

    .mobile-carousel>* {
        flex: 0 0 80%;
        scroll-snap-align: center;
        min-width: 0;
    }

    /* Smaller cards for USP carousel */
    .mobile-carousel.carousel-compact>* {
        flex: 0 0 70%;
    }

    /* Show dots on mobile */
    .carousel-dots {
        display: flex;
    }

    /* Service image cards in carousel */
    .mobile-carousel .service-image-card {
        height: 300px !important;
        min-width: 0;
    }

    /* Review cards in carousel */
    .mobile-carousel .review-card {
        min-width: 0;
    }

    /* Feature cards in carousel */
    .mobile-carousel .feature-card {
        min-width: 0;
    }

    /* Foil cards in carousel */
    .mobile-carousel .foil-card {
        min-width: 0;
    }

    /* Hero collage carousel */
    .mobile-carousel.collage-carousel>* {
        flex: 0 0 45%;
    }

    /* Furniture showcase rows mobile improvements */
    .showcase-row .split-content {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .showcase-row .image-wrapper {
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .showcase-row {
        padding: 50px 0 !important;
    }

    /* Portfolio masonry on mobile — already 1 column */
    .masonry-grid {
        column-count: 1 !important;
    }

    .portfolio-item .img-wrapper img {
        height: 250px !important;
    }

    /* Contact page mobile */
    .contact-content .split-content {
        flex-direction: column !important;
    }

    .info-card {
        position: static !important;
    }

    /* Process section mobile improvements */
    .process-image img {
        height: 300px !important;
    }

    .floating-badge {
        position: static !important;
        margin-top: 16px !important;
        right: auto !important;
        bottom: auto !important;
    }

    /* Price calculator mobile */
    .narrow-container {
        padding: 30px 20px !important;
    }

    .form-row {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .estimated-price .price {
        font-size: 36px !important;
    }
}