﻿@charset "UTF-8";

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: #ffffff;
    border-bottom: 3px solid #d4af37;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.header .logo img {
    height: 50px;
    width: auto;
}

.header .navbar ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.header .navbar a {
    color: #1f2a44;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.3s ease;
}

    .header .navbar a:hover,
    .header .navbar a.active {
        color: #d4af37;
    }

.header .mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header .navbar {
        display: none;
    }

    .header .mobile-menu {
        display: block;
    }

    .header .navbar.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

        .header .navbar.active ul {
            flex-direction: column;
            gap: 15px;
        }
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section-patrioun {
    padding: 80px 0;
    background: #f5f5f5;
}

.section-title {
    text-align: center;
    font-size: 38px;
    color: #2c2c2c;
    margin-bottom: 40px;
    font-weight: 600;
}

    .section-title:after {
        content: '';
        display: block;
        width: 80px;
        height: 3px;
        background: #d4af37;
        margin: 15px auto 0;
    }

.products-grid-patrioun {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

/* کارت محصول */
.product-card {
    height: 280px;
    perspective: 1200px;
    border-radius: 14px;
    cursor: pointer;
    width: 100%;
}

.product-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
    border-radius: 12px;
}

.product-card:hover .product-flip,
.product-card.is-flipped .product-flip {
    transform: rotateY(180deg);
}

.product-face {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
}

.product-front {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.product-front-overlay {
    width: 100%;
    height: 100%;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.1) 45%, rgba(0,0,0,0) 100%);
}

.product-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.product-subtitle {
    font-size: 14px;
}

.product-back {
    transform: rotateY(180deg);
    background: #7aa718;
    color: #fff;
}

.product-back-inner {
    width: 100%;
    height: 100%;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.product-title-back {
    font-size: 20px;
    font-weight: 700;
}

.product-back-text {
    font-size: 13px;
    opacity: 0.9;
}

.product-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
}

.btn-gold {
    display: inline-block;
    background: #d4af37;
    color: #1f2a44;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-gold:hover {
        background: #e1bd4c;
        transform: translateY(-2px);
    }

    .btn-gold.outline {
        background: transparent;
        border: 2px solid #d4af37;
        color: #fff;
    }

        .btn-gold.outline:hover {
            background: #d4af37;
            color: #1f2a44;
        }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-modern {
    padding: 80px 0;
    background: #f7f7f7;
}

.services-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #1f2a44;
}

    .services-title::after {
        content: "";
        display: block;
        width: 70px;
        height: 3px;
        background: #d4af37;
        margin: 15px auto 0;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 35px 25px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
}

    .service-card i {
        font-size: 34px;
        color: #d4af37;
        margin-bottom: 15px;
    }

    .service-card h4 {
        font-size: 16px;
        font-weight: 600;
        color: #1f2a44;
    }

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

/* ============================================
   HELLO SECTION
   ============================================ */
.hello-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hello-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

    .hello-content h2 {
        font-size: 48px;
        color: #2c2c2c;
        margin-bottom: 20px;
    }

    .hello-content p {
        color: #555;
        font-size: 17px;
        line-height: 1.8;
    }

/* ============================================
   FOLLOW US SECTION
   ============================================ */
.follow-us-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.content-relative {
    position: relative;
    z-index: 10;
}

.follow-title {
    font-size: 45px;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

.social-flex-container {
    display: flex;
    justify-content: center;
    gap: 45px;
    flex-wrap: wrap;
}

.social-item {
    text-align: center;
    width: 150px;
}

.icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.main-circle {
    width: 100%;
    height: 100%;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

    .main-circle i {
        font-size: 48px;
        color: #fff;
    }

.mini-circle-link {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 38px;
    height: 38px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.4s ease;
}

.social-item:hover .main-circle {
    border-color: #d4af37;
    background: rgba(212,175,55,0.15);
    transform: translateY(-8px);
}

    .social-item:hover .main-circle i {
        color: #d4af37;
        transform: scale(1.1);
    }

.social-item:hover .mini-circle-link {
    background: #fff;
    color: #2c2c2c;
    transform: rotate(360deg) scale(1.15);
}

.social-item p a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, #0b1220, #111c31);
    color: #e9eef7;
    padding: 50px 0 20px;
    border-top: 3px solid #b88a10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a,
.footer-contact p {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
}

    .footer-links a:hover {
        color: #d4af37;
    }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #334;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 12px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.footer-gold {
    background: linear-gradient(135deg, #b88a10, #d4af37);
    padding: 80px 0;
}

.footer-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-home h3 {
    color: #0b1220;
    font-size: 28px;
    margin-bottom: 22px;
}

.contact-info-pad h5 {
    font-size: 17px;
    color: #0b1220;
    margin: 18px 0 8px;
}

.contact-info-pad p {
    color: #0b1220;
}

.online-message-home h2 {
    color: #0b1220;
    font-size: 28px;
    margin-bottom: 22px;
}

.online-message-home input,
.online-message-home textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(11,18,32,0.18);
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-gold-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0f1b33, #15284d);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-gold-submit:hover {
        background: linear-gradient(135deg, #15284d, #1f2f55);
        color: #d4af37;
        transform: translateY(-2px);
    }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .products-grid-patrioun {
        gap: 20px;
    }

    .product-card {
        height: 260px;
    }

    .product-title {
        font-size: 20px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-patrioun {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        height: 280px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hello-content h2 {
        font-size: 36px;
    }

    .follow-title {
        font-size: 36px;
    }

    .social-flex-container {
        gap: 25px;
    }

    .icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .main-circle i {
        font-size: 32px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

    .lang-switcher a {
        text-decoration: none;
        color: #1f2a44;
        font-weight: 600;
        font-size: 14px;
    }

        .lang-switcher a:hover,
        .lang-switcher a.active {
            color: #d4af37;
        }

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #bfa37c;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: none;
    transition: all 0.3s ease;
}

    #backToTop:hover {
        background: #333;
        transform: translateY(-5px);
    }

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

html {
    scroll-behavior: smooth;
}

section,
div[id] {
    scroll-margin-top: 100px;
}
