/*
Theme Name: Wilk Theme
Theme URI: https://example.com/wilk
Author: Wilk
Author URI: https://example.com
Description: Nowoczesny motyw wizytówkowy z zapętlonym filmem w tle - styl CFMOTO/GOES
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wilk-theme
*/

/* ===== GOOGLE FONTS - Kanit (jak CFMOTO) ===== */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@200;300;400;500;600;700;900&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Kolorystyka inspirowana CFMOTO/GOES */
    --color-primary: #df1629;        /* Czerwony akcent jak CFMOTO */
    --color-primary-dark: #b8111f;
    --color-secondary: #FFC10E;      /* Żółty akcent */
    --color-black: #000000;
    --color-dark: #0a0a0a;
    --color-gray-dark: #1a1a1a;
    --color-gray: #666666;
    --color-gray-light: #999999;
    --color-white: #ffffff;

    /* Typography */
    --font-main: 'Kanit', sans-serif;

    /* Transitions - zgodne z CFMOTO (200-250ms) */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Header heights */
    --header-height: 95px;
    --header-height-mobile: 80px;
    --header-height-scrolled: 70px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

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

ul, ol {
    list-style: none;
}

img, video {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

#main-content {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 60px;
    }
}

/* ===== TYPOGRAPHY HIERARCHY (jak GOES) ===== */
.h900 {
    font-size: clamp(3rem, 8vw, 5.625rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.h800 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.h700 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
}

.h600 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
}

.h500 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    line-height: 1.3;
}

.h400 {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
}

.body-large {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.7;
}

.body-regular {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ===== HEADER / NAWIGACJA (Fixed jak CFMOTO) ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-medium);
    background: transparent;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    opacity: 1;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.site-header.scrolled {
    height: var(--header-height-scrolled);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.site-header.scrolled::before {
    opacity: 0;
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform var(--transition-fast);
}

.site-logo:hover img {
    transform: scale(1.05);
}

.site-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-logo-text span {
    color: var(--color-primary);
}

/* Nawigacja */
.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav a {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 0;
    transition: color var(--transition-fast);
}

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

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-white);
    margin: 4px 0;
    transition: all var(--transition-fast);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Mobile Menu Overlay (Full Screen jak CFMOTO) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-black);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-slow) cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.mobile-nav.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.active li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-nav.active li:nth-child(2) a { transition-delay: 0.15s; }
.mobile-nav.active li:nth-child(3) a { transition-delay: 0.2s; }
.mobile-nav.active li:nth-child(4) a { transition-delay: 0.25s; }
.mobile-nav.active li:nth-child(5) a { transition-delay: 0.3s; }
.mobile-nav.active li:nth-child(6) a { transition-delay: 0.35s; }

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

/* ===== HERO SECTION Z VIDEO (100vh jak CFMOTO/GOES) ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

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

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

/* Fallback Image for no-video */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -3;
}

/* Multi-layer Gradient Overlay (jak GOES) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.8) 100%),
        linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 50%);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
    margin-top: 60px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-title span {
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.125rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    max-width: 650px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 1.2s;
    cursor: pointer;
}

.scroll-indicator:hover .scroll-text {
    color: var(--color-primary);
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-fast);
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 13px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 2px;
    animation: scrollWheel 1.8s ease-in-out infinite;
}

/* ===== BUTTONS (Styl CFMOTO - black to white inversion) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

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

.btn-dark {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn-dark:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

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

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn-glass {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
    border-color: rgba(255,255,255,0.2);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

@media (min-width: 768px) {
    .section {
        padding: 120px 0;
    }
}

.section-dark {
    background-color: var(--color-black);
}

.section-darker {
    background-color: var(--color-dark);
}

.section-gray {
    background-color: var(--color-gray-dark);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 80px;
    }
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.section-description {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-gray-light);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ===== ABOUT / MISJA SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--color-black), transparent);
    pointer-events: none;
}

.about-content {
    padding: 20px 0;
}

.about-content .section-subtitle {
    text-align: left;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 1.0625rem;
    font-weight: 300;
    color: var(--color-gray-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-content p:last-of-type {
    margin-bottom: 20px;
}

.about-content .btn {
    margin-top: 25px;
}

/* ===== SERVICES / POSŁUGA GRID (Styl GOES) ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 50px 35px;
    text-align: center;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.15);
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    background: rgba(223, 22, 41, 0.1);
    border-radius: 50%;
    transition: all var(--transition-medium);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-gray-light);
    line-height: 1.7;
}

/* ===== FULLWIDTH VIDEO SECTION (jak GOES) ===== */
.fullwidth-video-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.fullwidth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.3) 100%
    );
    z-index: 0;
}

.fullwidth-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 20px;
}

.fullwidth-content.text-center {
    text-align: center;
    margin: 0 auto;
}

.fullwidth-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.fullwidth-content p {
    font-size: 1.125rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    margin-bottom: 35px;
}

/* ===== QUOTE / CYTAT SECTION ===== */
.quote-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-gray-dark) 0%, var(--color-black) 100%);
    position: relative;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 80px 80px;
}

.quote-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.quote-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 40px;
    opacity: 0.6;
}

.quote-text {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 35px;
}

.quote-author {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 1.0625rem;
    font-weight: 300;
    color: var(--color-gray-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item-icon {
    width: 55px;
    height: 55px;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-white);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.contact-item:hover .contact-item-icon {
    transform: scale(1.1);
}

.contact-item-text {
    padding-top: 5px;
}

.contact-item-text span {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-bottom: 5px;
}

.contact-item-text a,
.contact-item-text p {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
    transition: color var(--transition-fast);
}

.contact-item-text a:hover {
    color: var(--color-primary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    transition: all var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-gray);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    align-self: flex-start;
    width: 100%;
}

@media (min-width: 640px) {
    .contact-form .btn {
        width: auto;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--color-dark);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 60px;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
}

.footer-about {
    max-width: 350px;
}

.footer-about .site-logo-text {
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-gray-light);
    line-height: 1.7;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    color: var(--color-white);
}

.footer-links a {
    display: block;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-gray-light);
    padding: 8px 0;
    transition: all var(--transition-fast);
}

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

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.footer-bottom a {
    color: var(--color-gray);
    transition: color var(--transition-fast);
}

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

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    z-index: 99;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(18px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered reveal delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== IMAGE FADE IN (jak CFMOTO) ===== */
.img-reveal {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.img-reveal.loaded {
    opacity: 1;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.bg-gradient {
    background: linear-gradient(135deg, var(--color-gray-dark) 0%, var(--color-black) 100%);
}

.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

/* Hide on mobile/desktop */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
    .hide-desktop {
        display: none;
    }
}

/* ===== RESPONSIVE HEADER HEIGHT FIX ===== */
@media (max-width: 768px) {
    .site-header {
        height: var(--header-height-mobile);
    }
}

/* ===== FORM MESSAGE ===== */
.form-message {
    display: none;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ===== POSTS GRID ===== */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all var(--transition-medium);
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 30px;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}

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

.post-meta {
    font-size: 0.8125rem;
    color: var(--color-gray);
    margin-bottom: 15px;
}

.post-excerpt {
    font-size: 0.9375rem;
    color: var(--color-gray-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.post-excerpt p {
    margin: 0;
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    color: var(--color-white);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--color-primary);
}

/* Page Content */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-gray-light);
    margin-bottom: 25px;
}

.page-content h2 {
    font-size: 2rem;
    margin: 50px 0 25px;
}

.page-content h3 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
}

.page-content ul,
.page-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.page-content li {
    margin-bottom: 10px;
    color: var(--color-gray-light);
}

.page-content a {
    color: var(--color-primary);
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content img {
    margin: 30px 0;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.no-posts p {
    color: var(--color-gray-light);
}

/* ===== CALENDAR SECTION ===== */
.calendar-wrapper {
    margin-bottom: 60px;
}

/* Google Calendar Container - Dark Theme Override */
.google-calendar-container {
    position: relative;
    background: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.google-calendar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    z-index: 10;
}

.google-calendar-container iframe {
    display: block;
    filter: invert(0.88) hue-rotate(180deg);
    -webkit-filter: invert(0.88) hue-rotate(180deg);
}

/* Calendar Placeholder (when no Google Calendar ID) */
.calendar-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-placeholder-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 25px;
    opacity: 0.6;
}

.calendar-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.calendar-placeholder > p {
    color: var(--color-gray-light);
    margin-bottom: 40px;
}

/* Demo Calendar (placeholder visual) */
.calendar-demo {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
}

.calendar-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-nav {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background: var(--color-primary);
}

.calendar-month {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: capitalize;
}

.calendar-demo-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray);
    text-align: center;
    padding: 10px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-light);
    background: rgba(255, 255, 255, 0.02);
    transition: all var(--transition-fast);
    position: relative;
}

.calendar-day:not(.empty):hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.today {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.calendar-day.today.has-event::after {
    background: var(--color-white);
}

/* Calendar Info Grid */
.calendar-info {
    margin-top: 40px;
}

.calendar-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .calendar-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.calendar-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-medium);
}

.calendar-info-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.calendar-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(223, 22, 41, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.calendar-info-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.calendar-info-text p {
    font-size: 0.875rem;
    color: var(--color-gray-light);
    margin: 0;
    line-height: 1.5;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .google-calendar-container iframe {
        height: 500px !important;
    }

    .calendar-demo {
        padding: 15px;
    }

    .calendar-demo-grid {
        gap: 4px;
    }

    .calendar-day {
        font-size: 0.75rem;
    }

    .calendar-info-item {
        padding: 20px;
    }
}
