/* ========================================
   PAW PATROL Landing Page Styles
   Фірмові кольори: синій (#0066CC), червоний (#E52E31), жовтий (#FFD700)
   ======================================== */

/* === Root Variables === */
:root {
    --header-height: 84px;

    --primary-blue: #0066CC;
    --secondary-red: #E52E31;
    --accent-yellow: #FFD700;
    --dark-blue: #003d7a;
    --light-blue: #4da3ff;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --gray: #6B7280;
    --dark-gray: #374151;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Golos Text', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* === Header === */
.header {
    background: #0e206d;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
    display: flex;
    align-items: center;
}

body {
    padding-top: var(--header-height);
}
.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;

    object-position: center center;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.5) 0%, rgba(229, 46, 49, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 60px 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.brand-name {
    color: var(--accent-yellow);
    font-size: 4rem;
    display: block;
    margin: 10px 0;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 500;
    animation: fadeInUp 1s ease;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-red) 0%, #c72528 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(229, 46, 49, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(229, 46, 49, 0.6);
}

.btn-secondary {
    background: #0e206d;
    color: var(--white);
    padding: 12px 28px;
    font-size: 1rem;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

.btn-store {
    background: var(--accent-yellow);
    color: var(--dark-blue);
    padding: 12px 25px;
    font-size: 0.95rem;
}

.btn-store:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* === Section Titles === */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-red), var(--accent-yellow));
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 50px;
}

/* === Video Section === */
.video-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.video-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === Toys Section === */
.toys-section {
    padding: 80px 0;
    background:  linear-gradient(135deg, #e3f2fd 0%, #fff9e6 100%);
}

.toys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.toy-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.toy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
    border-color: var(--primary-blue);
}

.toy-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--light-gray);
}

.toy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.toy-card:hover .toy-image img {
    transform: scale(1.1);
}

.toy-content {
    padding: 25px;
    text-align: center;
}

.toy-title {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
    min-height: 60px;
}

.toy-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* === About Section === */
.about-section {
    padding: 80px 0;
    background:  var(--white);
}

.about-text {
    max-width: 1000px;
    margin: 0 auto;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 30px;
    text-align: justify;
}

.characters-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin: 40px 0 25px;
    text-align: center;
}

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

.character-item {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.character-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px var(--shadow-hover);
}

.character-item i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-color: var(--accent-yellow);
}

.feature-box i {
    font-size: 3rem;
    color: var(--secondary-red);
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* === Stores Section === */
.stores-section {
    padding: 80px 0;
    background: var(--white);
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.store-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 3px solid var(--light-gray);
}

.store-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
    border-color: var(--primary-blue);
}

.store-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.store-logo img {
    max-height: 100%;
    max-width: 180px;
    object-fit: contain;
    margin: 0 auto;
}

.store-name {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

/* === Footer === */
.footer {
    background: #0e206d;
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-logo img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--accent-yellow);
}

.contact-grid {
    display: grid;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.contact-item i {
    color: var(--accent-yellow);
    width: 25px;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--white);
}

.contact-item a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-yellow);
    color: var(--dark-blue);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    font-size: 1rem;
    margin-bottom: 10px;
}

.legal {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--secondary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 46, 49, 0.4);
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--dark-blue);
    transform: translateY(-5px);
}

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

/* === Responsive Design === */
@media (max-width: 768px) {
    :root { --header-height: 72px; }

    .hero-title {
        font-size: 2rem;
    }

    .brand-name {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 8px 10px;
    }

    .toys-grid {
        grid-template-columns: 1fr;
    }

    .stores-grid {
        grid-template-columns: 1fr;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .btn-lg {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    /* Mobile nav tweaks */
    .nav { gap: 12px; }
    .nav-link { font-size: 0.95rem; }

    .hero-title {
        font-size: 1.5rem;
    }

    .brand-name {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}


/* ===== Image visibility safeguard ===== */
.toy-image img,
.store-logo img,
.hero-image {
    opacity: 1;
    filter: none;
}



/* Offset anchor jumps under fixed header */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

/* Ensure hero banner centers on mobile */
@media (max-width: 768px) {
    .hero-image { object-position: center center; }
}


/* === Fix toy images uniform size === */
.toy-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.toy-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* === Mobile footer center alignment === */
@media (max-width: 768px) {
    .footer-logo,
    .footer-info,
    .contact-grid {
        text-align: center;
        justify-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-logo img {
        margin: 0 auto 20px;
    }
}



/* === Hero: new banners + readable text plaque === */
.hero-overlay { display: none !important; }

.hero-content {
    width: 100%;
}

.hero-content .container{
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card{
    background: rgba(255, 255, 255, 0.72);
    color: var(--dark-blue);
    padding: 32px 34px;
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.18);
    max-width: 720px;
    width: 100%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-card .hero-title,
.hero-card .hero-subtitle{
    color: var(--dark-blue);
    text-shadow: none;
}

.hero-card .brand-name{
    text-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

@media (max-width: 768px){
    .hero {
        min-height: 760px;
    }
    .hero-card{
        padding: 22px 18px;
        border-radius: 18px;
        max-width: 520px;
    }
}

/* === Desktop hero: card lower & narrower === */
@media (min-width: 1024px) {
    .hero {
        align-items: flex-end;
        padding-bottom: 10px; /* lower the card on desktop */
    }

    .hero-card {
        max-width: 500px; /* narrower on desktop */
        padding: 36px 40px;
    }
}


/* ==============================
   Characters tiles (FINAL)
   ============================== */

/* desktop: ALWAYS 6 in row */
.characters-grid.characters-tiles{
    display:grid !important;
    grid-template-columns: repeat(6, minmax(0,1fr)) !important;
    gap: 18px;
    margin: 26px 0 40px;
    align-items: end;
    justify-items: center;
}

/* tile */
.characters-grid.characters-tiles .character-item{
    width: 100%;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 14px 10px 10px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.10);
    display:flex;
    align-items:flex-end;
    justify-content:center; /* center */
    overflow:hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.characters-grid.characters-tiles .character-item:hover{
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
}

.characters-grid.characters-tiles .character-item img{
    width: 100%;
    max-width: 170px;
    height:auto;
    display:block;
    margin: 0 auto; /* center inside */
    filter: drop-shadow(0 14px 18px rgba(0,0,0,0.22));
}

/* mobile: 2 in row */
@media (max-width: 768px){
    .characters-grid.characters-tiles{
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 14px;
    }
    .characters-grid.characters-tiles .character-item img{ max-width: 175px; }
}


/* ==============================
   Popular series tiles
   ============================== */
.series-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 10px 0 10px;
    align-items: stretch;
    justify-items: center;
}

.series-item{
    width: 100%;
    max-width: 360px;
    background: rgba(255,255,255,0.90);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.series-item:hover{
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
}

.series-item img{
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile: 1 in row */
@media (max-width: 768px){
    .series-grid{
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .series-item{
        max-width: 420px;
    }
}

