/*
 Theme Name:   FolieTotaal
 Theme URI:    https://folietotaal.nl
 Description:  Custom child theme for FolieTotaal — premium wrapping & styling. Built on Kadence.
 Author:       FolieTotaal
 Author URI:   https://folietotaal.nl
 Template:     kadence
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  folietotaal
*/

/* ==========================================================================
   FolieTotaal Design System
   ========================================================================== */

:root {
    /* --- Brand Colors: FolieTotaal Automotive --- */
    --ft-black:         #0A0A0A;
    --ft-dark:          #141414;
    --ft-dark-gray:     #1E1E1E;
    --ft-medium-gray:   #2A2A2A;
    --ft-light-gray:    #F5F5F5;
    --ft-white:         #FFFFFF;
    --ft-accent-blue:   #00A8E8;
    --ft-accent-cyan:   #00D4FF;
    --ft-accent-hover:  #33BBEF;

    /* --- Brand Colors: FolieTotaal Marine --- */
    --ftm-navy:         #0C1B2A;
    --ftm-navy-light:   #162D46;
    --ftm-gold:         #C8A96E;
    --ftm-gold-light:   #D4BC8A;
    --ftm-gold-hover:   #DCCAA0;
    --ftm-white:        #F8F6F1;
    --ftm-blue:         #1A3A5C;
    --ftm-turquoise:    #1B8A8A;

    /* --- Typography --- */
    --ft-font-primary:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ft-font-heading:  'Plus Jakarta Sans', 'Inter', sans-serif;
    --ft-font-marine:   'Cormorant Garamond', 'Georgia', serif;

    /* --- Spacing --- */
    --ft-section-gap:   clamp(4rem, 8vw, 8rem);
    --ft-container-max: 1280px;
    --ft-container-pad: clamp(1rem, 4vw, 2rem);

    /* --- Transitions --- */
    --ft-transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ft-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================================================
   Global Resets & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ft-font-primary);
    line-height: 1.6;
    color: var(--ft-white);
    background-color: var(--ft-black);
}

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

a {
    color: var(--ft-accent-blue);
    text-decoration: none;
    transition: color var(--ft-transition);
}

a:hover {
    color: var(--ft-accent-hover);
}


/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ft-font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.ft-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ft-accent-blue);
}


/* ==========================================================================
   Layout Components
   ========================================================================== */

.ft-container {
    max-width: var(--ft-container-max);
    margin-inline: auto;
    padding-inline: var(--ft-container-pad);
}

.ft-section {
    padding-block: var(--ft-section-gap);
}

.ft-grid {
    display: grid;
    gap: 1.5rem;
}

.ft-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ft-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ft-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }


/* ==========================================================================
   Buttons
   ========================================================================== */

.ft-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--ft-font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--ft-transition);
}

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

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

.ft-btn--outline {
    background-color: transparent;
    color: var(--ft-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Marine variant */
.ft-btn--marine {
    background-color: var(--ftm-gold);
    color: var(--ftm-navy);
    font-family: var(--ft-font-primary);
    letter-spacing: 0.1em;
}

.ft-btn--marine:hover {
    background-color: var(--ftm-gold-hover);
}


/* ==========================================================================
   Cards (Portfolio / Services)
   ========================================================================== */

.ft-card {
    position: relative;
    overflow: hidden;
    background-color: var(--ft-dark-gray);
    transition: transform var(--ft-transition);
}

.ft-card:hover {
    transform: translateY(-4px);
}

.ft-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ft-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ft-transition-slow);
}

.ft-card:hover .ft-card__image img {
    transform: scale(1.05);
}

.ft-card__content {
    padding: 1.5rem;
}

.ft-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ft-card__meta {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}


/* ==========================================================================
   Hero Section
   ========================================================================== */

.ft-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ft-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ft-hero__bg img,
.ft-hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ft-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.4) 100%
    );
    z-index: 1;
}

.ft-hero__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.ft-hero__title {
    margin-bottom: 1.5rem;
}

.ft-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}


/* ==========================================================================
   Certification Badges
   ========================================================================== */

.ft-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    opacity: 0.7;
}

.ft-badges img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity var(--ft-transition);
}

.ft-badges img:hover {
    opacity: 1;
}


/* ==========================================================================
   Testimonials
   ========================================================================== */

.ft-testimonial {
    padding: 2rem;
    border-left: 3px solid var(--ft-accent-blue);
    background-color: var(--ft-dark-gray);
}

.ft-testimonial__text {
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.ft-testimonial__author {
    font-weight: 600;
    font-size: 0.875rem;
}

.ft-testimonial__stars {
    color: #F5A623;
    letter-spacing: 0.1em;
}


/* ==========================================================================
   FolieTotaal Marine — Override Styles
   Marine pages use body class .marine or .page-template-marine
   ========================================================================== */

body.marine,
body.page-template-marine,
.ftm-context {
    background-color: var(--ftm-navy);
    font-family: var(--ft-font-primary);
}

.ftm-context h1,
.ftm-context h2,
.ftm-context h3 {
    font-family: var(--ft-font-marine);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.ftm-context h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.ftm-context .ft-label {
    color: var(--ftm-gold);
    letter-spacing: 0.2em;
}

.ftm-context a {
    color: var(--ftm-gold);
}

.ftm-context a:hover {
    color: var(--ftm-gold-light);
}

.ftm-context .ft-card {
    background-color: var(--ftm-navy-light);
}

.ftm-context .ft-testimonial {
    border-left-color: var(--ftm-gold);
    background-color: var(--ftm-navy-light);
}

.ftm-context .ft-hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(12, 27, 42, 0.7) 0%,
        rgba(12, 27, 42, 0.3) 50%,
        rgba(12, 27, 42, 0.85) 100%
    );
}


/* ==========================================================================
   Navigation Tweaks (supplements Kadence header)
   ========================================================================== */

.ft-nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin-inline: 1rem;
}

.ft-nav-marine-link {
    color: var(--ftm-gold) !important;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* ==========================================================================
   Portfolio Filter
   ========================================================================== */

.ft-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.ft-filter__btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all var(--ft-transition);
}

.ft-filter__btn:hover,
.ft-filter__btn.active {
    color: var(--ft-white);
    border-color: var(--ft-accent-blue);
    background-color: rgba(0, 168, 232, 0.1);
}


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

.ft-footer {
    background-color: var(--ft-dark);
    padding-block: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ft-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.ft-footer__heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.ft-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ft-footer__links li + li {
    margin-top: 0.5rem;
}

.ft-footer__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color var(--ft-transition);
}

.ft-footer__links a:hover {
    color: var(--ft-white);
}

.ft-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}


/* ==========================================================================
   Utility Classes
   ========================================================================== */

.ft-text-center { text-align: center; }
.ft-text-muted  { color: rgba(255, 255, 255, 0.5); }
.ft-mb-0 { margin-bottom: 0; }
.ft-mb-1 { margin-bottom: 0.5rem; }
.ft-mb-2 { margin-bottom: 1rem; }
.ft-mb-3 { margin-bottom: 1.5rem; }
.ft-mb-4 { margin-bottom: 2rem; }

/* Reveal animation (triggered by JS IntersectionObserver) */
.ft-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ft-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .ft-hero {
        min-height: 80vh;
    }

    .ft-badges {
        justify-content: center;
    }

    .ft-badges img {
        height: 36px;
    }

    .ft-filter {
        justify-content: center;
    }
}
