/* =========================
   AVINA FASHION HOUSE
   ========================= */

:root {
    --dark: #171613;
    --dark-soft: #22201b;
    --gold: #c8a56b;
    --gold-light: #e4cc9f;
    --cream: #f8f5ef;
    --white: #ffffff;
    --text: #292720;
    --muted: #858078;
    --border: #e8e2d8;
    --radius: 8px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.9;
    overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
    font-family: "Vazirmatn", sans-serif;
}

button,
input,
textarea,
select {
    font-size: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
}

.container {
    width: min(1160px, 90%);
    margin-inline: auto;
}

.section-padding {
    padding: 105px 0;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(23, 22, 19, 0.97);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    flex-shrink: 0;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-family: Georgia, serif;
    font-size: 28px;
    font-style: italic;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.logo-text strong {
    font-family: Georgia, serif;
    font-size: 19px;
    letter-spacing: 3px;
}

.logo-text small {
    font-size: 10px;
    color: #c4bcae;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 29px;
}

.nav-menu>a {
    color: #e2dfd8;
    font-size: 13px;
    transition: color var(--transition);
}

.nav-menu>a:hover {
    color: var(--gold);
}

.nav-menu .nav-cta {
    background: var(--gold);
    color: var(--dark);
    padding: 10px 22px;
    border-radius: 3px;
    font-weight: 700;
}

.nav-menu .nav-cta:hover {
    background: var(--gold-light);
    color: var(--dark);
}

.menu-toggle {
    display: none;
    border: 1px solid #555044;
    background: transparent;
    color: var(--gold);
    padding: 5px 12px;
    font-size: 25px;
    border-radius: 4px;
}

/* HERO */

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    color: white;
    background:
        url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=2000&q=90") center 35% / cover no-repeat,
        var(--dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(270deg,
            rgba(17, 16, 13, 0.97) 0%,
            rgba(17, 16, 13, 0.87) 35%,
            rgba(17, 16, 13, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 75px;
    padding-bottom: 65px;
    animation: fadeUp 0.9s ease both;
}

.eyebrow,
.section-tag {
    display: inline-block;
    color: #b38e52;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.eyebrow {
    color: var(--gold-light);
    padding-right: 35px;
    position: relative;
}

.eyebrow::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    font-size: clamp(38px, 5.5vw, 69px);
    line-height: 1.65;
    font-weight: 500;
    margin: 22px 0;
}

.hero h1 span,
.about-content h2 span,
.section-heading h2 span,
.contact-info h2 span {
    color: var(--gold);
}

.hero-content>p {
    max-width: 520px;
    font-size: 15px;
    color: #d0cdc6;
    line-height: 2.3;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    min-height: 49px;
    padding: 12px 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-gold {
    background: var(--gold);
    color: #201d16;
}

.btn-gold:hover {
    background: var(--gold-light);
}

.btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-stats {
    display: flex;
    gap: 55px;
    margin-top: 65px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    color: var(--gold-light);
    font-size: 25px;
    font-weight: 600;
}

.hero-stats span {
    font-size: 12px;
    color: #c5c0b6;
}

.hero-caption {
    position: absolute;
    bottom: 30px;
    left: 5%;
    color: rgba(255, 255, 255, 0.45);
    direction: ltr;
    font-family: Georgia, serif;
    letter-spacing: 4px;
    font-size: 10px;
}

/* ABOUT */

.about {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 90px;
}

.about-image {
    position: relative;
    padding: 0 0 25px 25px;
}

.about-image::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 80%;
    border: 1px solid var(--gold);
}

.about-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.image-label {
    position: absolute;
    z-index: 2;
    right: -15px;
    bottom: 50px;
    padding: 15px 22px;
    background: var(--dark);
    color: white;
    font-size: 12px;
}

.image-label span {
    color: var(--gold);
    margin-left: 8px;
}

.about-content h2,
.contact-info h2 {
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.8;
    font-weight: 500;
    margin: 14px 0 20px;
}

.about-content>p,
.contact-info>p {
    font-size: 13px;
    color: var(--muted);
    line-height: 2.4;
    margin-bottom: 13px;
}

.about-features {
    margin: 30px 0;
    display: grid;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature>span {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid #d9c49e;
}

.feature h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.feature p {
    color: var(--muted);
    font-size: 12px;
}

.text-link {
    display: inline-block;
    font-size: 13px;
    color: #8d6b37;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
}

/* SECTION HEADINGS */

.section-heading {
    max-width: 680px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(27px, 4vw, 39px);
    font-weight: 500;
    line-height: 1.9;
    margin: 12px 0;
}

.section-heading>p {
    font-size: 13px;
    color: var(--muted);
    line-height: 2.3;
}

/* SERVICES */

.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    padding: 32px 23px;
    min-height: 290px;
    border: 1px solid var(--border);
    background: white;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(35, 30, 20, 0.07);
}

.service-number {
    position: absolute;
    top: 18px;
    left: 20px;
    font-family: Georgia, serif;
    color: #d7d0c4;
    font-size: 23px;
}

.service-icon {
    font-size: 33px;
    color: var(--gold);
    margin-bottom: 19px;
}

.service-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 12px;
    color: var(--muted);
    line-height: 2.3;
    min-height: 85px;
}

.service-card>a {
    display: inline-block;
    margin-top: 18px;
    color: #92713e;
    font-size: 12px;
    font-weight: 600;
}

.featured-card {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

.featured-card .service-number {
    color: #66583f;
}

.featured-card p {
    color: #bcb7ad;
}

/* GALLERY */

.gallery {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #ddd5c8;
}

.gallery-item.gallery-tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
    background: linear-gradient(to top,
            rgba(15, 14, 12, 0.88),
            transparent 75%);
    transition: background var(--transition);
}

.gallery-overlay span {
    font-size: 9px;
    letter-spacing: 2px;
    direction: ltr;
    text-align: right;
    color: var(--gold-light);
}

.gallery-overlay h3 {
    font-size: 17px;
    margin-top: 6px;
}

.gallery-note {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
}

/* PROCESS */

.process {
    background: var(--dark);
    color: white;
}

.process .section-heading h2 {
    color: white;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.process-item {
    position: relative;
    padding-top: 22px;
    border-top: 1px solid #4c4538;
}

.process-item>span {
    display: inline-block;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 32px;
    margin-bottom: 14px;
}

.process-item h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.process-item p {
    color: #bcb7ad;
    font-size: 12px;
    line-height: 2.3;
}

/* PRICES */

.prices {
    background: white;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.price-card {
    position: relative;
    padding: 35px 28px;
    border: 1px solid var(--border);
    background: white;
}

.price-popular {
    border: 1px solid var(--gold);
    box-shadow: 0 15px 50px rgba(35, 30, 20, 0.08);
}

.price-label {
    font-size: 11px;
    color: #92713e;
}

.price-card h3 {
    font-size: 20px;
    margin: 12px 0 5px;
}

.price-card>p {
    font-size: 12px;
    color: var(--muted);
}

.price-value {
    padding: 22px 0;
    margin-top: 8px;
    font-size: 27px;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
}

.price-card ul {
    list-style: none;
    padding: 20px 0;
}

.price-card li {
    position: relative;
    padding-right: 23px;
    margin-bottom: 12px;
    color: #69645c;
    font-size: 12px;
}

.price-card li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #9c7b42;
}

.price-card .btn {
    width: 100%;
}

.btn-dark {
    background: var(--dark);
    color: white;
}

.btn-dark:hover {
    background: #383328;
}

.popular-badge {
    position: absolute;
    left: 20px;
    top: 20px;
    background: var(--gold);
    padding: 5px 12px;
    color: var(--dark);
    font-size: 10px;
}

.price-note {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    margin-top: 30px;
}

/* CONTACT */

.contact {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 85px;
    align-items: start;
}

.contact-info {
    padding-top: 15px;
}

.contact-info>p {
    margin-bottom: 35px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid #d8c5a3;
    color: #92713e;
    font-size: 20px;
}

.contact-detail strong {
    font-size: 13px;
}

.contact-detail p {
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.contact-form-box {
    padding: 38px;
    background: white;
    box-shadow: 0 15px 55px rgba(30, 25, 15, 0.05);
}

.contact-form-box>h3 {
    font-size: 21px;
}

.form-subtitle {
    margin-top: 4px;
    margin-bottom: 25px;
    font-size: 12px;
    color: var(--muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 19px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #e7e1d7;
    background: #fdfcf9;
    color: var(--text);
    padding: 12px;
    outline: none;
    border-radius: 3px;
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-group input,
.form-group select {
    min-height: 48px;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 165, 107, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa49a;
    font-size: 11px;
}

.submit-btn {
    width: 100%;
    border: 0;
    margin-top: 5px;
}

.privacy-note {
    margin-top: 15px;
    text-align: center;
    color: var(--muted);
    font-size: 10px;
}

.form-message {
    padding: 13px 15px;
    margin-bottom: 20px;
    font-size: 12px;
    border-radius: 3px;
}

.form-message.success {
    color: #216b43;
    background: #e9f6ed;
    border: 1px solid #c6e8d1;
}

.form-message.error {
    color: #a52b2b;
    background: #fff0f0;
    border: 1px solid #f0caca;
}

/* FOOTER */

.footer {
    background: #11110f;
    color: white;
    padding: 55px 0 20px;
}

.footer-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.footer-content>p {
    color: #b7b0a3;
    font-size: 12px;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 27px;
    margin: 27px 0 35px;
}

.footer-links a {
    font-size: 12px;
    color: #d4cec3;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #302d27;
    color: #8f897e;
    font-size: 11px;
}

/* BACK TO TOP */

.back-to-top {
    position: fixed;
    z-index: 900;
    left: 22px;
    bottom: 22px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 4px;
    background: var(--gold);
    color: var(--dark);
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ANIMATIONS */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* TABLET */

@media (max-width: 1000px) {

    .nav-menu {
        gap: 16px;
    }

    .nav-menu>a {
        font-size: 12px;
    }

    .about-grid {
        gap: 45px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        gap: 40px;
    }

    .hero {
        min-height: 620px;
    }

}

/* MOBILE MENU */

@media (max-width: 760px) {

    .section-padding {
        padding: 75px 0;
    }

    .nav-container {
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 5% 20px;
        background: var(--dark);
        border-top: 1px solid #373229;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all var(--transition);
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu>a {
        padding: 12px 5px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu .nav-cta {
        margin-top: 12px;
        text-align: center;
    }

    .hero {
        min-height: 650px;
        background-position: 42% center;
    }

    .hero-overlay {
        background: rgba(17, 16, 13, 0.78);
    }

    .hero-content {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: clamp(35px, 8vw, 48px);
    }

    .hero-content>p {
        font-size: 13px;
    }

    .hero-stats {
        gap: 25px;
        justify-content: space-between;
        margin-top: 50px;
    }

    .hero-stats strong {
        font-size: 21px;
    }

    .hero-stats span {
        font-size: 10px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 520px;
        margin: 0 auto;
    }

    .about-image img {
        height: 390px;
    }

    .about-content h2,
    .contact-info h2 {
        font-size: 34px;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 210px;
        gap: 12px;
    }

    .gallery-item.gallery-tall {
        grid-row: span 1;
    }

    .gallery-overlay {
        padding: 15px;
    }

    .gallery-overlay h3 {
        font-size: 14px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 20px;
    }

    .price-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 20px;
    }

    .contact-grid {
        gap: 25px;
    }

    .contact-form-box {
        padding: 25px 20px;
    }

}

/* SMALL MOBILE */

@media (max-width: 430px) {

    .container {
        width: 91%;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stats strong {
        font-size: 18px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .service-card p {
        min-height: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 175px;
        gap: 9px;
    }

    .gallery-overlay {
        padding: 10px;
    }

    .gallery-overlay h3 {
        font-size: 12px;
    }

    .gallery-overlay span {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-grid {
        gap: 25px 15px;
    }

    .process-item h3 {
        font-size: 13px;
    }

    .footer-links {
        gap: 15px;
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

}