/*
Theme Name: DroneMap
Author: Klikon Media
Description: Profesjonalny motyw dla firmy geodezyjnej. PHP 8.4 + Vanilla CSS + ACF PRO.
Version: 1.0
Text Domain: dronemap
*/

/* --- CSS Variables (Klikon Media) --- */
:root {
    --primary: #1d39dc;
    --secondary: #1e293b;
    --text-dark: #111827;
    --text-light: #f3f4f6;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Main Header --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9998;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.admin-bar .main-header {
    top: 32px;
}

.main-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-header .site-branding a {
    display: block;
}

.main-header .site-branding img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .main-header .site-branding img {
        height: 64px;
    }
}

.main-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

@media (max-width: 900px) {
    .main-header .nav-menu {
        display: none;
    }
}

.main-header .nav-menu .nav-link {
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.main-header.header-scrolled .nav-link {
    color: var(--text-dark);
}

.main-header.header-scrolled .nav-link:hover {
    color: var(--primary);
}

.main-header .header-cta {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding: 10px 20px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.main-header .header-cta:hover {
    opacity: 0.9;
}

.main-header.header-scrolled {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.main-header.header-scrolled .site-branding img {
    filter: brightness(0);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

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

.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: -1;
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    color: white;
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 6rem;
        line-height: 0.9;
    }
}

@media (min-width: 1024px) {
    .hero-section h1 {
        font-size: 7rem;
    }
}

.hero-section .hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(243, 244, 246, 0.9);
    max-width: min(36rem, 90vw);
    margin: 0 auto 2.5rem;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .hero-section .hero-subtitle {
        font-size: 1.25rem;
        max-width: 36rem;
        padding: 0;
    }
}

.hero-section .hero-cta {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding: 12px 32px;
    margin-bottom: 40px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
    .hero-section .hero-cta {
        margin-bottom: 0;
    }
}

.hero-section .hero-cta:hover {
    opacity: 0.9;
}

/* --- Hero: scroll down (drone icon) --- */
.hero-section .hero-scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    cursor: pointer;
    padding-bottom: 0.5rem;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.hero-section .hero-scroll-down:hover {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

.hero-section .hero-scroll-down .hero-scroll-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-section .hero-scroll-down .hero-scroll-drone {
    width: 48px;
    height: 56px;
    display: block;
    animation: hero-drone-descend 3s ease-in-out infinite;
}

@keyframes hero-drone-descend {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.8;
    }
}

/* --- Scroll-triggered entrance animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: none;
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 0.7s ease-out forwards;
}

.features-grid .feature-card.animate-on-scroll:nth-child(1).is-visible { animation-delay: 0s; }
.features-grid .feature-card.animate-on-scroll:nth-child(2).is-visible { animation-delay: 0.1s; }
.features-grid .feature-card.animate-on-scroll:nth-child(3).is-visible { animation-delay: 0.2s; }
.features-grid .feature-card.animate-on-scroll:nth-child(4).is-visible { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .animate-on-scroll.is-visible {
        animation: none;
    }
}

/* --- About Section --- */
.about-section-wrapper {
    background: #f9fafb;
    padding: 100px 0;
    width: 100%;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section .about-content .about-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.about-section .about-content .about-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .about-section .about-content .about-heading {
        font-size: 3rem;
    }
}

.about-section .about-content .about-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-section .about-content .about-description p:last-child {
    margin-bottom: 0;
}

.about-section .about-content .about-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding: 12px 24px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.about-section .about-content .about-button:hover {
    opacity: 0.9;
    transform: translateX(4px);
}

/* --- Features Grid (2x2) --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-card {
    aspect-ratio: 1 / 1;
    min-height: 200px;
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 4px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    background: var(--primary);
    color: white;
}

.feature-card:hover .feature-title,
.feature-card:hover .feature-text {
    color: white;
}

.feature-card:hover .feature-text {
    opacity: 0.9;
}

/* Ikony SVG – kolor z currentColor, na hover biały */
.feature-card .feature-icon {
    margin-bottom: 1rem;
    color: var(--primary);
    transition: color 0.25s ease;
}

.feature-card .feature-icon svg {
    width: 48px;
    height: 48px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.feature-card:hover .feature-icon {
    color: white;
}

.feature-card .feature-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    transition: filter 0.25s ease;
}

/* Ikona z obrazka (np. SVG) – na hover biała */
.feature-card:hover .feature-icon img {
    filter: brightness(0) invert(1);
}

.feature-card .feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: color 0.25s ease;
}

.feature-card .feature-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-dark);
    opacity: 0.9;
    transition: color 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 900px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .features-grid {
        order: -1;
    }
}

/* --- Ticker --- */
.ticker-wrap {
    overflow: hidden;
    width: 100%;
    background: var(--text-light);
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .ticker-wrap {
        padding: 4.5rem 0;
    }
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    align-items: center;
    animation: marquee 20s linear infinite;
    will-change: transform;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .ticker-item {
        font-size: 4rem;
        gap: 3rem;
        padding-right: 3rem;
    }
}

.ticker-item .ticker-separator {
    color: var(--primary);
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .ticker-item .ticker-separator {
        font-size: 2.5rem;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    width: 100%;
    background: #fff;
}

.services-section .services-header {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 20px;
    text-align: center;
}

.services-section .services-label {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 0.75rem;
}

.services-section .services-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.services-section .services-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .services-section .services-heading {
        font-size: 3rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.service-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    transition: all 0.4s ease;
}

.service-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    background-color: var(--primary);
    transform: rotate(-10deg) scale(1.2);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.service-card .card-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    filter: grayscale(100%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.service-card:hover .card-bg {
    opacity: 0.9;
    transform: rotate(0deg) scale(1);
}

.service-card:hover .card-bg img {
    opacity: 0.2;
}

.service-card .card-content {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-card .card-content .card-icon {
    margin-bottom: 1.25rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.service-card .card-content .card-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.service-card:hover .card-content .card-icon img {
    filter: brightness(0) invert(1);
}

.service-card .card-content .card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card .card-content .card-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.9;
    margin-bottom: 1rem;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.service-card .card-content .card-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.service-card .card-content .card-link::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: currentColor;
}

.service-card:hover .card-content * {
    color: #fff !important;
}

.service-card:hover .card-content .card-desc {
    opacity: 0.95;
}

.service-card:hover .card-content .card-link::after {
    background: #fff;
}

/* --- Realizacje Section (Homepage Grid) --- */
.realizacje-section {
    padding: 100px 0;
    width: 100%;
    background: #f9fafb;
}

.realizacje-header {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 20px;
    text-align: center;
}

.realizacje-label {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 0.75rem;
}

.realizacje-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.realizacje-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.85;
}

.realizacje-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding: 0 20px;
}

.realizacje-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.realizacje-link:hover {
    opacity: 0.9;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 200px;
    text-decoration: none;
    border-radius: 4px;
}

.project-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--secondary);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 57, 220, 0);
    transition: background 0.4s ease;
    z-index: 1;
}

.project-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transition: background 0.3s ease;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0;
    transition: color 0.3s ease;
}

.project-card:hover .project-card-bg {
    transform: scale(1.1);
}

.project-card:hover .project-card-overlay {
    background: rgba(29, 57, 220, 0.6);
}

/* --- Single Project (single-realizacje.php) --- */
.single-project {
    padding: 100px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.single-project-header {
    margin-bottom: 2.5rem;
}

.single-project-header-inner {
    max-width: 800px;
}

.single-project-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .single-project-title {
        font-size: 3.5rem;
    }
}

.single-project-meta {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.85;
}

.single-project-location::after {
    content: ' · ';
}

.single-project-content {
    margin-bottom: 3rem;
}

.single-project-content-inner {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
}

.single-project-content-inner p:last-child {
    margin-bottom: 0;
}

/* --- Project Gallery (single) --- */
.project-gallery-wrap {
    margin: 3rem 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

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

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

.project-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    background: var(--text-light);
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

/* --- Other Projects (single page) --- */
.other-projects {
    padding: 100px 0 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.other-projects-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.other-projects-grid .project-card {
    aspect-ratio: 4 / 3;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Site content (spacing below fixed header) --- */
.site-content {
    position: relative;
}

.site-main {
    padding: 2rem 20px;
}

/* --- Site Footer: Mapa (czysta) → Grid 4 kolumny → Sub-footer --- */
.site-footer {
    color: #fff;
}

/* Mapa na górze – tylko iframe, bez tekstów/overlay */
.footer-map-top {
    position: relative;
    width: 100%;
    height: 400px;
    line-height: 0;
    overflow: hidden;
}

/* Gradientowy overlay – płynne przejście mapy w czarne tło stopki */
.footer-map-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #0f0f0f);
    pointer-events: none;
    z-index: 2;
}

.footer-map-top iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px;
    border: none !important;
    display: block;
    filter: grayscale(1) invert(0.9) brightness(0.8);
}

/* Grid 4 kolumny: Logo | BIURO | LINKI | SOCIAL MEDIA */
.footer-main-content {
    background: #0f0f0f;
    padding: 60px 0;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

.footer-col {
    font-family: var(--font-body);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 0 0 1rem 0;
    display: block;
}

.footer-dronemap-logo-link {
    display: inline-block;
}

.footer-dronemap-logo-link img,
.footer-col-logo .custom-logo-link img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    vertical-align: middle;
}

.footer-address-text,
.footer-phone,
.footer-email {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-nav .footer-link {
    font-size: 0.95rem;
}

.footer-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-yt-link:hover {
    color: var(--primary);
}

.footer-yt-icon {
    flex-shrink: 0;
}

/* Sub-footer: Copyright + Polityka prywatności (lewa) | Klikon Media (prawa) */
.sub-footer-bar {
    background: #000;
    padding: 20px 0;
    border-top: 1px solid #222;
    color: #888;
    font-size: 13px;
}

.sub-footer-bar-inner {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sub-footer-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0;
}

.sub-footer-copy {
    font-family: var(--font-body);
    color: #888;
}

.sub-footer-sep {
    color: #666;
}

.sub-footer-privacy {
    font-family: var(--font-body);
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sub-footer-privacy:hover {
    color: var(--primary);
}

.sub-footer-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-footer-credit-text {
    font-family: var(--font-body);
    color: #888;
}

.sub-footer-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.sub-footer-klikon-logo {
    height: 25px;
    max-height: 25px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.sub-footer-logo-link:hover .sub-footer-klikon-logo {
    opacity: 1;
}

/* Responsywność: tablet 2 kolumny, mobile 1 kolumna */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .footer-map-top {
        height: 300px;
    }

    .footer-map-top iframe {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col-logo .footer-dronemap-logo-link,
    .footer-col-logo .custom-logo-link {
        display: flex;
        justify-content: center;
    }

    .footer-nav {
        align-items: center;
    }

    .footer-col-social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sub-footer-bar-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Mobile First (max-width: 768px) --- */
@media (max-width: 768px) {
    .main-header {
        height: 60px;
        padding: 0 12px;
    }

    .main-header .site-branding img {
        height: 44px;
    }

    .main-header .header-cta {
        font-size: 0.8rem;
        padding: 8px 14px;
        white-space: nowrap;
    }
}

/* Hero scroll indicator: ukryty na bardzo małych ekranach (< 400px) dla lepszego UX */
@media (max-width: 400px) {
    .hero-section .hero-scroll-down {
        display: none;
    }
}
