/* --- PLAYHOP DESIGN SYSTEM --- */

:root {
    --color-navy: #3a3e73;
    --color-rose: #ef4c80;
    --color-orange: #fbad18;
    --color-green: #a1ce56;
    --color-blue: #2aaae0;
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(58, 62, 115, 0.1);
    --shadow-hover: 0 20px 40px rgba(58, 62, 115, 0.2);
    --border-radius: 24px;
}

@font-face {
    font-family: 'PolySans';
    src: url('public/fonts/polysanstrial-median.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'PolySans';
    src: url('public/fonts/polysanstrial-bulky.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'PolySans';
    src: url('public/fonts/polysansitalictrial-medianitalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

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

body {
    font-family: 'PolySans', sans-serif;
    color: var(--color-navy);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* #CHANGE_4_GREEK_TYPOGRAPHY */
html[lang="el"] body {
    font-family: 'Comfortaa', 'PolySans', sans-serif;
}

.lang-switch {
    font-family: 'PolySans', sans-serif !important;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

/* --- COMPONENTS --- */

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-rose);
    color: var(--color-rose);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(239, 76, 128, 0.3);
}

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

.btn-outline:hover {
    background: var(--color-blue);
    color: white;
    transform: translateY(-3px);
}

/* --- HEADER --- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
    color: white;
    /* Default for hero overlay */
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: var(--color-navy);
}

.header.detail-mode:not(.scrolled) {
    background: rgba(58, 62, 115, 0.9);
    backdrop-filter: blur(15px);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* #CHANGE_2_REVERTED */
.logo img {
    height: 70px;
    width: auto;
    transition: var(--transition);
    border-radius: 12px;
}

.header.scrolled .logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
    color: inherit;
}

.nav-links a:hover {
    color: var(--color-rose);
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.header.scrolled .lang-switch {
    background: var(--color-navy);
    color: white;
    border: none;
}

.lang-switch:hover {
    background: var(--color-rose);
    border-color: var(--color-rose);
    color: white;
}

.contact-actions {
    display: flex;
    gap: 12px;
}

/* #CHANGE_1_CTAs_PULSE - Slowed down (6s) */
@keyframes pulseCatchy {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    }

    15% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    30% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.icon-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: pulseCatchy 6s infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header.scrolled .icon-btn {
    background: var(--color-blue);
    border: none;
    animation: none;
    /* Only pulse at top */
}

.icon-btn i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

.icon-btn:hover {
    background: var(--color-rose);
    transform: scale(1.2);
    color: white;
}

/* --- HERO --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background: var(--color-navy);
    /* Fallback */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url('public/images/inflatables/castle.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(90deg,
            rgba(58, 62, 115, 0.95) 0%,
            rgba(58, 62, 115, 0.7) 40%,
            transparent 100%);
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 10s infinite alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-rose);
    bottom: -100px;
    right: 10%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-blue);
    top: -100px;
    right: -50px;
    animation-delay: -2s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-30px, 40px);
    }
}

.hero .container {
    position: relative;
    z-index: 4;
}

.hero-content {
    max-width: 700px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        padding: 24px;
        /* Give text maximum room */
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(1.8rem, 9vw, 5rem);
    /* Lowered min and mid scaling */
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    /* Allow breaking long words like 'Ατελείωτη' */
    -webkit-hyphens: auto;
}

/* Specific adjustment for Greek long words */
html[lang="el"] .hero-title {
    font-size: clamp(1.6rem, 8.5vw, 4.8rem);
}

.hero-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.6rem);
    /* Refined scaling */
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- ABOUT --- */

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 24px;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    display: block;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--color-rose);
    margin-bottom: 16px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.mission-box {
    background: var(--color-blue);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

/* --- SERVICES GRID --- */

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

.toy-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.toy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.toy-card-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.toy-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.toy-card-body {
    padding: 24px;
}

.toy-card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.toy-card-desc {
    color: #666;
    margin-bottom: 20px;
}

/* --- DETAIL VIEW --- */

.detail-view {
    padding-top: 150px;
    padding-bottom: 100px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.detail-gallery {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-gallery img {
    width: 100%;
    display: block;
}

.detail-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.specs-list {
    margin: 30px 0;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 700;
}

.safety-info {
    background: #e8f5e9;
    border-left: 5px solid var(--color-green);
    padding: 24px;
    border-radius: 12px;
    margin-top: 30px;
}

/* --- FOOTER --- */

.footer {
    background: var(--color-navy);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 30px;
}

.footer-tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- RESPONSIVENESS --- */

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

/* --- ANIMATIONS --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hidden {
    display: none !important;
}

/* #CHANGE_3_OVERLAP_FIX */
body.menu-open .header .contact-actions {
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

/* --- MOBILE SPECIFICS --- */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 1001;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background: var(--color-navy);
        border-radius: 3px;
        transition: var(--transition);
    }

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

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

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

/* #CHANGE_3_MOBILE_MENU_STYLING_FIXES */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    /* Full width for cleaner look */
    height: 100vh;
    background: white;
    z-index: 999;
    padding: 120px 40px 40px;
    /* Better padding for top elements */
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.mobile-contact-bar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 50px;
}

.mobile-lang-wrap {
    margin-top: auto;
    padding-bottom: 20px;
}

.mobile-lang-btn {
    border: 2px solid var(--color-navy) !important;
    background: white !important;
    color: var(--color-navy) !important;
}

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

/* #CHANGE_3_MOBILE_MENU_BUTTONS_REDUNDANT_REMOVED */

.mobile-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.mobile-contact-btn.call-btn {
    background: var(--color-blue);
    box-shadow: 0 8px 15px rgba(42, 170, 224, 0.3);
}

.mobile-contact-btn.email-btn {
    background: var(--color-rose);
    box-shadow: 0 8px 15px rgba(239, 76, 128, 0.3);
}

/* #CHANGE_5_ICON_DIVIDER_STYLE */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(58, 62, 115, 0.1), transparent);
}

.divider-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.divider-icons img {
    height: 40px;
    width: auto;
    opacity: 0.6;
    transition: var(--transition);
}

.divider-icons img:hover {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
}

/* #CHANGE_3_MOBILE_NAV_LINKS_REDUNDANT_REMOVED */