
/* ========================================
   AFSHIN PAHLAVAN
   Global Design System
   Luxury Emerald & Royal Navy
======================================== */


/* ========================================
   Fonts
======================================== */

@font-face {
    font-family: "IranYekan";
    src: url("../fonts/iranyekan/IRANYekanWebRegular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IranYekan";
    src: url("../fonts/iranyekan/IRANYekanWebBold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IranYekan";
    src: url("../fonts/iranyekan/IRANYekanWebExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazirmatn/Vazir.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazirmatn/Vazir-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazir";
    src: url("../fonts/vazirmatn/Vazir-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ========================================
   AFSHIN BRAND VARIABLES
======================================== */

:root {

    /* =====================
       Main Brand Colors
    ===================== */

    --afshin-emerald: #014D3A;
    --afshin-deep-green: #0A2F2A;
    --afshin-royal-navy: #0B1F44;
    --afshin-night: #081226;
    --afshin-gold: #D4AF37;


    /* =====================
       Background Colors
    ===================== */

    --afshin-bg: #081226;
    --afshin-bg-secondary: #0B1F44;

    --afshin-section: #0A2F2A;
    --afshin-section-alt: #014D3A;

    --afshin-white: #F5F1E8;


    /* =====================
       Text Colors
    ===================== */

    --afshin-text: #F5F1E8;
    --afshin-text-secondary: #D8DFD9;
    --afshin-muted: #AAB8B4;
    --afshin-light-text: #82938F;

    --afshin-gold-text: #E6C75C;


    /* =====================
       Gold Colors
    ===================== */

    --afshin-gold-light: #F2D675;
    --afshin-gold-dark: #B88A20;

    --afshin-gold-gradient:
        linear-gradient(
            135deg,
            #B88A20 0%,
            #D4AF37 45%,
            #F2D675 100%
        );


    /* =====================
       Brand Gradients
    ===================== */

    --afshin-gradient:
        linear-gradient(
            135deg,
            #014D3A 0%,
            #0A2F2A 48%,
            #081226 100%
        );

    --afshin-gradient-reverse:
        linear-gradient(
            135deg,
            #081226 0%,
            #0B1F44 55%,
            #014D3A 100%
        );

    --afshin-card-gradient:
        linear-gradient(
            145deg,
            #102D37 0%,
            #0A2F2A 100%
        );


    /* =====================
       Borders
    ===================== */

    --afshin-border:
        rgba(212, 175, 55, .25);

    --afshin-border-light:
        rgba(245, 241, 232, .10);

    --afshin-border-strong:
        rgba(212, 175, 55, .48);


    /* =====================
       Glass Effect
    ===================== */

    --afshin-glass:
        rgba(11, 31, 68, .72);

    --afshin-glass-light:
        rgba(10, 47, 42, .72);


    /* =====================
       Shadows
    ===================== */

    --afshin-shadow:
        0 20px 60px rgba(0, 0, 0, .25);

    --afshin-shadow-hover:
        0 30px 80px rgba(0, 0, 0, .38);

    --afshin-gold-shadow:
        0 12px 35px rgba(212, 175, 55, .16);

    --afshin-emerald-shadow:
        0 15px 40px rgba(1, 77, 58, .25);


    /* =====================
       Radius
    ===================== */

    --afshin-radius-xl: 40px;
    --afshin-radius-lg: 32px;
    --afshin-radius-md: 20px;
    --afshin-radius-sm: 14px;

}


/* ========================================
   Global Typography
======================================== */

html,
body,
button,
input,
textarea,
select {
    font-family:
        "IranYekan",
        "Vazir",
        Tahoma,
        Arial,
        sans-serif !important;
}


/* ========================================
   Reset
======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color:
        var(--afshin-gold)
        var(--afshin-night);
}

body {
    margin: 0;
    background: var(--afshin-bg);
    color: var(--afshin-text);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
}


/* ========================================
   Global Selection
======================================== */

::selection {
    background: var(--afshin-gold);
    color: var(--afshin-night);
}


/* ========================================
   Scrollbar
======================================== */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--afshin-night);
}

::-webkit-scrollbar-thumb {
    background: var(--afshin-emerald);
    border-radius: 999px;
    border: 2px solid var(--afshin-night);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--afshin-gold);
}


/* ========================================
   Layout Utilities
======================================== */

.payon-container {
    width: min(1200px, 90%);
    margin-inline: auto;
}

.payon-section {
    padding: 100px 0;
}


/* ========================================
   Typography Utilities
======================================== */

.payon-title {
    color: var(--afshin-text);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.5;
}

.payon-description {
    color: var(--afshin-muted);
    font-size: 16px;
    line-height: 2.2;
}


/* ========================================
   Cards
======================================== */

.payon-card {
    background: var(--afshin-card-gradient);
    border: 1px solid var(--afshin-border);
    border-radius: var(--afshin-radius-lg);
    box-shadow: var(--afshin-shadow);
    transition: .35s ease;
    color: var(--afshin-text);
}

.payon-card:hover {
    transform: translateY(-6px);
    border-color: var(--afshin-gold);
    box-shadow: var(--afshin-shadow-hover);
}


/* ========================================
   Buttons
======================================== */

.payon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    font-weight: 800;
    transition: .3s ease;
}


/* Primary Button */

.payon-btn-primary {
    background: var(--afshin-gold-gradient);
    color: var(--afshin-night);
    padding: 15px 32px;
    border: 1px solid var(--afshin-gold);
    box-shadow: var(--afshin-gold-shadow);
}

.payon-btn-primary:hover {
    background: var(--afshin-gold);
    color: var(--afshin-night);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, .25);
}


/* Outline Button */

.payon-btn-outline {
    background: transparent;
    border: 1px solid var(--afshin-gold);
    color: var(--afshin-gold);
    padding: 15px 32px;
}

.payon-btn-outline:hover {
    background: var(--afshin-gold);
    color: var(--afshin-night);
    transform: translateY(-3px);
}


/* ========================================
   Glass Component
======================================== */

.payon-glass {
    background: var(--afshin-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--afshin-border);
    color: var(--afshin-text);
}


/* ========================================
   Form Elements
======================================== */

.payon-input {
    width: 100%;
    border: 1px solid var(--afshin-border);
    background: var(--afshin-deep-green);
    color: var(--afshin-text);
    border-radius: var(--afshin-radius-md);
    padding: 14px 18px;
    outline: none;
    transition: .3s ease;
}

.payon-input::placeholder {
    color: var(--afshin-light-text);
}

.payon-input:focus {
    border-color: var(--afshin-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, .12);
}

.payon-input option {
    background: var(--afshin-night);
    color: var(--afshin-text);
}


/* ========================================
   Global Section Background Helpers
======================================== */

.afshin-bg {
    background: var(--afshin-bg);
}

.afshin-bg-secondary {
    background: var(--afshin-bg-secondary);
}

.afshin-bg-green {
    background: var(--afshin-deep-green);
}

.afshin-bg-emerald {
    background: var(--afshin-emerald);
}


/* ========================================
   Gold Accent Utilities
======================================== */

.afshin-gold {
    color: var(--afshin-gold);
}

.afshin-gold-border {
    border-color: var(--afshin-gold);
}

.afshin-gold-line {
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--afshin-gold),
            transparent
        );
}


/* ========================================
   Global Links
======================================== */

a {
    transition: color .3s ease;
}

a:hover {
    color: var(--afshin-gold);
}


/* ========================================
   Accessibility
======================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--afshin-gold);
    outline-offset: 4px;
}


/* ========================================
   Reduced Motion
======================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}


/* ========================================
   Responsive Layout
======================================== */

@media (max-width: 768px) {

    .payon-section {
        padding: 75px 0;
    }

    .payon-container {
        width: min(100% - 30px, 1200px);
    }

}
/* =====================================================
   AFSHIN ARTISTIC AMBIENT BACKGROUND
   Local CSS - No external dependencies
===================================================== */

body.afshin-ambient-enabled {
    background: transparent !important;
    color: #F5F1E8;
    isolation: isolate;
}

/* Main background */

.afshin-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    isolation: isolate;
    background: #081226;
}

.afshin-ambient__base {
    position: absolute;
    inset: 0;
    z-index: 0;

    background: rgb(var(--afshin-ambient-rgb, 8 18 38));

    transition: background-color 0.15s linear;
}

/* Flowing artistic waves */

.afshin-ambient__wave {
    position: absolute;
    z-index: 1;

    width: 85vw;
    height: 85vw;
    max-width: 1200px;
    max-height: 1200px;

    border-radius: 42% 58% 65% 35% / 45% 42% 58% 55%;

    pointer-events: none;
    will-change: transform;
}

.afshin-ambient__wave--one {
    top: -48%;
    left: -25%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(1, 77, 58, 0.22) 0%,
            rgba(10, 47, 42, 0.13) 35%,
            transparent 70%
        );

    animation: afshin-wave-one 24s ease-in-out infinite alternate;
}

.afshin-ambient__wave--two {
    right: -30%;
    bottom: -55%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(11, 31, 68, 0.36) 0%,
            rgba(1, 77, 58, 0.12) 42%,
            transparent 72%
        );

    animation: afshin-wave-two 30s ease-in-out infinite alternate;
}

@keyframes afshin-wave-one {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    100% {
        transform: translate3d(9%, 12%, 0) rotate(18deg);
    }
}

@keyframes afshin-wave-two {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    100% {
        transform: translate3d(-10%, -8%, 0) rotate(-16deg);
    }
}

/* Subtle artistic texture */

.afshin-ambient__texture {
    position: absolute;
    inset: 0;
    z-index: 2;

    opacity: 0.12;

    background-image:
        repeating-linear-gradient(
            115deg,
            transparent 0,
            transparent 80px,
            rgba(212, 175, 55, 0.035) 81px,
            transparent 82px
        ),
        repeating-linear-gradient(
            25deg,
            transparent 0,
            transparent 120px,
            rgba(245, 241, 232, 0.025) 121px,
            transparent 122px
        );
}

/* Ambient glows */

.afshin-ambient__glow {
    position: absolute;
    z-index: 2;

    width: 55vw;
    height: 55vw;

    max-width: 850px;
    max-height: 850px;

    border-radius: 50%;
    will-change: transform;
}

.afshin-ambient__glow--emerald {
    top: -25%;
    right: -15%;

    background:
        radial-gradient(
            circle,
            rgba(1, 77, 58, 0.22) 0%,
            rgba(1, 77, 58, 0.07) 40%,
            transparent 72%
        );
}

.afshin-ambient__glow--gold {
    bottom: -35%;
    left: -20%;

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.11) 0%,
            rgba(212, 175, 55, 0.035) 42%,
            transparent 72%
        );
}

/* Gold particles canvas */

#afshinParticles {
    position: absolute;
    inset: 0;
    z-index: 3;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

/* Website content stays above background */

.site-wrapper {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Mobile optimization */

@media (max-width: 768px) {
    .afshin-ambient__wave {
        width: 125vw;
        height: 125vw;
        opacity: 0.7;
    }

    .afshin-ambient__glow {
        width: 100vw;
        height: 100vw;
        opacity: 0.6;
    }

    .afshin-ambient__texture {
        opacity: 0.07;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .afshin-ambient__wave {
        animation: none !important;
    }

    .afshin-ambient__glow {
        will-change: auto;
    }
}

/* =====================================================
   PAHLAVAN ART - CINEMATIC FULL WIDTH HEADER
===================================================== */

#paHeader {
    direction: rtl;
    font-family: inherit;
}

/* Full-width cinematic shell */

#paHeaderShell {
    position: relative;
    width: 100%;

    background:
        linear-gradient(
            180deg,
            rgba(8, 18, 38, 0.96) 0%,
            rgba(8, 18, 38, 0.82) 58%,
            rgba(8, 18, 38, 0.48) 100%
        );

    border: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.20);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

/* Subtle gold cinematic line */

#paHeaderShell::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;

    width: 100%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.08) 15%,
        rgba(212, 175, 55, 0.48) 50%,
        rgba(212, 175, 55, 0.08) 85%,
        transparent 100%
    );

    pointer-events: none;
}

.pa-header-inner {
    min-height: 88px;
    transition: min-height 0.35s ease;
}

/* Scrolled state */

#paHeader.is-scrolled #paHeaderShell {
    background: rgba(8, 18, 38, 0.97);

    border-bottom-color: rgba(212, 175, 55, 0.27);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

#paHeader.is-scrolled .pa-header-inner {
    min-height: 70px;
}

/* Brand symbol */

.pa-brand-symbol {
    color: #D4AF37;

    border: 1px solid rgba(212, 175, 55, 0.42);

    background: linear-gradient(
        145deg,
        rgba(1, 77, 58, 0.62),
        rgba(8, 18, 38, 0.88)
    );

    box-shadow:
        0 0 22px rgba(1, 77, 58, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.pa-brand-symbol:hover {
    background: #014D3A;
    border-color: #D4AF37;

    transform: rotate(-5deg);

    box-shadow:
        0 0 25px rgba(212, 175, 55, 0.14),
        0 0 35px rgba(1, 77, 58, 0.20);
}

/* Desktop navigation */

.pa-nav-link {
    position: relative;

    display: inline-flex;
    height: 88px;

    align-items: center;
    justify-content: center;

    padding: 0 15px;

    color: #C1CAD5;

    font-size: 13px;
    font-weight: 600;

    transition:
        height 0.35s ease,
        color 0.25s ease;
}

#paHeader.is-scrolled .pa-nav-link {
    height: 70px;
}

.pa-nav-link::after {
    content: "";

    position: absolute;
    right: 15px;
    bottom: 20px;

    width: 0;
    height: 1px;

    background: linear-gradient(
        90deg,
        #B88A20,
        #F2D675,
        #D4AF37
    );

    box-shadow: 0 0 8px rgba(212, 175, 55, 0.28);

    transition:
        width 0.3s ease,
        bottom 0.35s ease;
}

#paHeader.is-scrolled .pa-nav-link::after {
    bottom: 14px;
}

.pa-nav-link:hover,
.pa-nav-link:focus-visible {
    color: #F2D675;
}

.pa-nav-link:hover::after,
.pa-nav-link:focus-visible::after {
    width: calc(100% - 30px);
}

/* Desktop dropdown */

.pa-dropdown {
    background: rgba(8, 18, 38, 0.98);

    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 13px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 25px 65px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pa-dropdown-link {
    display: flex;
    align-items: center;

    min-height: 43px;
    padding: 0 13px;

    border-radius: 8px;

    color: #B9C3CF;

    font-size: 12px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding 0.2s ease;
}

.pa-dropdown-link:hover,
.pa-dropdown-link:focus-visible {
    color: #F2D675;
    background: rgba(1, 77, 58, 0.42);
    padding-right: 18px;
}

/* Desktop order button */

.pa-order-button {
    height: 43px;

    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 19px;

    border: 1px solid #D4AF37;
    border-radius: 8px;

    background: linear-gradient(
        120deg,
        #B88A20,
        #F2D675 50%,
        #D4AF37
    );

    color: #081226;

    font-size: 12px;
    font-weight: 900;

    box-shadow: 0 5px 18px rgba(212, 175, 55, 0.10);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.pa-order-button:hover {
    background: transparent;
    color: #F2D675;

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.14);
}

/* Mobile toggle */

.pa-mobile-toggle {
    width: 43px;
    height: 43px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(212, 175, 55, 0.30);
    border-radius: 9px;

    background: rgba(1, 77, 58, 0.22);

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.pa-mobile-toggle:hover {
    background: rgba(1, 77, 58, 0.42);
    border-color: rgba(212, 175, 55, 0.60);
}

.pa-mobile-toggle span {
    width: 19px;
    height: 1.5px;

    margin: 2.2px 0;

    background: #D4AF37;
    border-radius: 10px;

    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile backdrop */

.pa-header-backdrop {
    z-index: 1;
}

/* Mobile panel wrapper */

.pa-mobile-wrap {
    position: relative;
    z-index: 2;
}

/* Mobile panel */

.pa-mobile-panel {
    overflow-y: auto;

    max-height: calc(100vh - 110px);

    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 14px;

    background: rgba(8, 18, 38, 0.98);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pa-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 49px;
    padding: 0 13px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    color: #D5DDE7;

    font-size: 13px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.pa-mobile-link:hover,
.pa-mobile-link:focus-visible {
    color: #F2D675;
    background: rgba(1, 77, 58, 0.20);
}

.pa-link-number {
    color: rgba(212, 175, 55, 0.68);
    font-size: 10px;
    letter-spacing: 1px;
}

.pa-mobile-sub-link {
    display: flex;
    align-items: center;

    min-height: 39px;
    padding: 0 13px;

    border-right: 1px solid rgba(212, 175, 55, 0.38);

    color: #94A3B8;
    font-size: 12px;

    transition:
        color 0.2s ease,
        padding 0.2s ease;
}

.pa-mobile-sub-link:hover {
    color: #F2D675;
    padding-right: 19px;
}

/* Mobile order button */

.pa-mobile-order {
    min-height: 49px;

    border: 1px solid rgba(242, 214, 117, 0.65);
    border-radius: 8px;

    background: linear-gradient(
        120deg,
        #B88A20,
        #F2D675 50%,
        #D4AF37
    );

    color: #081226;

    font-size: 13px;
    font-weight: 900;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.pa-mobile-order:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Anchor offset */

html {
    scroll-behavior: smooth;
}

#about,
#services,
#gallery,
#contact {
    scroll-margin-top: 110px;
}

/* Responsive */

@media (max-width: 1023px) {
    .pa-header-inner {
        min-height: 72px;
    }

    #paHeader.is-scrolled .pa-header-inner {
        min-height: 66px;
    }
}

@media (max-width: 640px) {
    .pa-header-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pa-brand-symbol {
        width: 39px;
        height: 39px;
    }

    .pa-mobile-panel {
        border-radius: 12px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    #paHeader *,
    #paHeader *::before,
    #paHeader *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


