/* ========================================
   RESPONSIVE STYLES - MOBILE & TABLET
   ======================================== */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    /* Header & Navigation */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--emerald-deep), var(--teal-dark));
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 100px 30px 30px;
        transition: right 0.4s ease;
        z-index: 999;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav.mobile-active {
        right: 0;
    }
    
    /* Mobile menu overlay */
    .nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s;
        z-index: -1;
    }
    
    .nav.mobile-active::before {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 20px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        text-align: left;
        font-size: 1.2rem;
        color: var(--cream);
        transition: all 0.3s;
    }
    
    .nav-link:hover {
        background: rgba(212, 175, 55, 0.1);
        padding-left: 30px;
        color: var(--gold-light);
        transform: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .burger-menu {
        display: flex;
        z-index: 1001;
    }
    
    .burger-menu span {
        background: var(--gold);
    }
    
    /* Animate burger when menu is open */
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 3rem;  /* Збільшено з 2.5rem */
    }
    
    .hero-subtitle {
        font-size: 1.2rem;  /* Збільшено з 1rem */
    }
    
    /* Зменшуємо тарілки на планшеті */
    .hero-ornaments .ornament {
        transform: scale(0.6);  /* Зменшуємо до 60% */
    }
    
    .ornament-1 {
        left: -80px;  /* Зсуваємо лівіше */
    }
    
    .ornament-2 {
        right: -120px;  /* Зсуваємо правіше */
    }
    
    /* About Section */
    .about-content,
    .halal-content,
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Orbital Gallery */
    .orbital-gallery {
        width: 400px;
        height: 400px;
    }
    
    .center-image {
        width: 180px;
        height: 180px;
    }
    
    .orbit-image {
        width: 90px;
        height: 90px;
        top: -225px;
    }
    
    .connection-line {
        height: 175px;
        top: -175px;
    }
    
    /* Values Section */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Menu Section */
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-item-image {
        height: 220px;
    }
    
    .menu-item-title {
        font-size: 1.4rem;
    }
    
    /* Section Titles */
    .about .section-title,
    .menu .section-title,
    .gallery .section-title,
    .values .section-title,
    .contacts .section-title {
        padding: 20px 60px;
        font-size: 2rem;
    }
    
    .about .section-title::before,
    .menu .section-title::before,
    .gallery .section-title::before,
    .values .section-title::before,
    .contacts .section-title::before  {
        width: 100px;
        height: 100px;
        left: -105px;
    }
    
    .about .section-title::after,
    .menu .section-title::after,
    .gallery .section-title::after,
    .values .section-title::after,
    .contacts .section-title::after  {
        width: 100px;
        height: 100px;
        right: -105px;
    }

     /* Halal Section */
    .halal-content {
        gap: 40px;
        display: flex;
        flex-direction: column;
    }
    
    /* Міняємо місцями: текст зверху, badge знизу */
    .halal-badge-wrapper {
        order: 2;
        max-width: 300px;
        margin: 0 auto;
        transform: scale(0.8);
    }
    
    /* Покращена читабельність badge */
    .halal-badge-content {
        /*background: radial-gradient(circle, rgba(27, 94, 82, 0.85) 0%, rgba(27, 94, 82, 0.4) 60%, transparent 100%); */
        
        padding: 25px;
        border-radius: 50%;
    }
    
    .halal-star {
        filter: drop-shadow(0 0 12px rgba(212, 175, 55, 1)) 
                drop-shadow(0 0 25px rgba(212, 175, 55, 0.8));
    }
    
    .halal-title {
        font-size: 3.2rem;
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 1),
            0 0 40px rgba(255, 255, 255, 0.9),
            0 0 60px rgba(255, 255, 255, 0.6),
            0 4px 10px rgba(0, 0, 0, 0.95);
        letter-spacing: 3px;
        backdrop-filter: blur(0.5px);
    }
    
    .halal-certified {
        font-size: 2rem;
        color: var(--cream);
        text-shadow: 
            0 0 15px rgba(212, 175, 55, 1),
            0 0 30px rgba(212, 175, 55, 0.9),
            0 0 45px rgba(212, 175, 55, 0.6),
            0 3px 8px rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(2px);
    }
    
    .halal-text {
        order: 1;
        text-align: center;
    }
    
    .halal-features {
        text-align: left;
        display: inline-block;
    }
    
    .halal-features li {
        font-size: 1rem;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header-content {
        padding: 10px 0;
    }
    
    .logo-title {
        font-size: 1.2rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-arch-frame {
        padding: 40px 20px;
    }
    
    .arch-decoration {
        width: 90%;
        opacity: 0.4;
    }
    
    .hero-title {
        font-size: 3rem;  /* Збільшено з 2.5rem */
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .title-line {
        font-size: 2.8rem;  /* Збільшено з 2.2rem */
    }
    
    .hero-subtitle {
        font-size: 1.3rem;  /* Збільшено з 1.1rem */
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* Hero ornaments - приховати на мобільних */
    .hero-ornaments {
        display: none;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* About Section */
    .about-content {
        gap: 30px;
    }
    
    .about-text {
        padding: 30px 20px;
    }
    
    .about-heading {
        font-size: 1.6rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    /* Orbital Gallery Mobile */
    .orbital-gallery {
        width: 320px;
        height: 320px;
    }
    
    .center-image {
        width: 140px;
        height: 140px;
    }
    
    .orbit-image {
        width: 70px;
        height: 70px;
        top: -175px;
    }
    
    .image-content {
        min-height: 400px;
    }
    
    .connection-line {
        height: 140px;
        top: -140px;
    }
    
    .image-label {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    
    /* Section Titles with Ornaments */
    .about .section-title,
    .menu .section-title,
    .gallery .section-title,
    .values .section-title,
    .contacts .section-title {
        padding: 15px 40px;
        font-size: 1.8rem;
    }
    
    .about .section-title::before,
    .menu .section-title::before,
    .gallery .section-title::before,
    .values .section-title::before,
    .contacts .section-title::before {
        width: 80px;
        height: 80px;
        left: -85px;
    }
    
    .about .section-title::after,
    .menu .section-title::after,
    .gallery .section-title::after,
    .values .section-title::after,
    .contacts .section-title::after {
        width: 80px;
        height: 80px;
        right: -85px;
    }
    
    /* Values Section */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .value-card-wrapper {
        min-height: 350px;
    }
    
    .value-icon {
        font-size: 3rem;
    }
    
    .value-title {
        font-size: 1.2rem;
    }
    
    /* Menu Section */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-item-image {
        height: 250px;
    }
    
    .menu-item-header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .menu-item-title {
        font-size: 1.3rem;
    }
    
    .menu-category {
        margin-bottom: 60px;
    }
    
    .menu-item-content {
        padding: 20px;
    }
    
    
    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Contacts Section */
    .contacts-wrapper {
        gap: 40px;
    }
    
    .contact-card {
        padding: 25px;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    .map-container {
        height: 400px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    .value-card-content {
    max-width: 200px;
}
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    /* Hero */
    .hero {
        min-height: 70vh;
        padding: 70px 15px 30px;
    }
    
    .hero-arch-frame {
        padding: 30px 10px;
    }
    
    .arch-decoration {
        opacity: 0.3;
        width: 95%;
    }
    
    .hero-title {
        font-size: 2.5rem;  /* Збільшено з 2.2rem */
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .title-line {
        font-size: 2.3rem;  /* Збільшено з 2rem */
    }
    
    .hero-subtitle {
        font-size: 1.2rem;  /* Збільшено з 1rem */
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    /* Logo */
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-icon svg {
        width: 40px;
        height: 50px;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* About */
    .about-heading {
        font-size: 1.4rem;
    }
    
    .about-description {
        font-size: 0.95rem;
    }
    
    /* Orbital Gallery */
    .orbital-gallery {
        width: 280px;
        height: 280px;
    }
    
    .center-image {
        width: 120px;
        height: 120px;
    }
    
    .orbit-image {
        width: 60px;
        height: 60px;
        top: -150px;
    }
    
    .connection-line {
        height: 120px;
        top: -120px;
    }
    
    /* Section Titles */
    .about .section-title,
    .menu .section-title,
    .gallery .section-title,
    .values .section-title,
    .contacts .section-title {
        padding: 12px 30px;
        font-size: 1.5rem;
    }
    
    .about .section-title::before,
    .menu .section-title::before,
    .gallery .section-title::before,
    .values .section-title::before,
    .contacts .section-title::before {
        width: 60px;
        height: 60px;
        left: -65px;
    }
    
    .about .section-title::after,
    .menu .section-title::after,
    .gallery .section-title::after,
    .values .section-title::after,
    .contacts .section-title::after {
        width: 60px;
        height: 60px;
        right: -65px;
    }
    
    /* Values */
    .value-card-wrapper {
        min-height: 320px;
    }
    
    .value-icon {
        font-size: 2.5rem;
    }
    
    .value-title {
        font-size: 1.1rem;
    }
    
    .value-text {
        font-size: 0.9rem;
    }
    
    /* Menu */
    .menu-item-content {
        padding: 15px;
    }
    
    .menu-item-image {
        height: 200px;
    }
    
    .menu-item-title {
        font-size: 1.2rem;
    }
    
    .menu-item-price {
        font-size: 1.2rem;
    }
    
    .menu-item-description {
        font-size: 0.95rem;
    }
    
    .category-title {
        font-size: 1.4rem;
    }
    
    /* Halal */
    .halal-badge-wrapper {
        max-width: 150px;  /* Ще менше для small mobile */
        transform: scale(0.7);
    }
    
    .halal-title {
        font-size: 2rem;
    }
    
    .halal-subtitle {
        font-size: 1rem;
    }
    
    .halal-description {
        font-size: 1rem;
    }
    
    .halal-star {
        font-size: 2rem;  /* Менша зірка */
    }
    
    .halal-certified {
        font-size: 0.9rem;
    }
    
    /* Contacts */
    .contact-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .contact-content h3 {
        font-size: 1.1rem;
    }
    
    .contact-content p {
        font-size: 0.95rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    /* Footer */
    .footer-logo span {
        font-size: 1.5rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Extra Small - 360px and below */
@media (max-width: 360px) {
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.6rem;
    }
    
    /* Orbital Gallery */
    .orbital-gallery {
        width: 260px;
        height: 260px;
    }
    
    .center-image {
        width: 100px;
        height: 100px;
    }
    
    .orbit-image {
        width: 50px;
        height: 50px;
        top: -130px;
    }
    
    .connection-line {
        height: 100px;
        top: -100px;
    }
    
    /* Section Titles */
    .about .section-title,
    .menu .section-title,
    .gallery .section-title,
    .values .section-title,
    .contacts .section-title {
        padding: 10px 25px;
        font-size: 1.3rem;
    }
    
    .about .section-title::before,
    .menu .section-title::before,
    .gallery .section-title::before,
    .values .section-title::before, 
    .contacts .section-title::before {
        width: 50px;
        height: 50px;
        left: -55px;
    }
    
    .about .section-title::after,
    .menu .section-title::after,
    .gallery .section-title::after,
    .values .section-title::after, 
    .contacts .section-title::after {
        width: 50px;
        height: 50px;
        right: -55px;
    }
    
    /* Menu */
    .menu-item-image {
        height: 180px;
    }
    
    .menu-item-title {
        font-size: 1.1rem;
    }
}

/* Landscape Mobile Phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
}
