:root {
    --bg: #f8f9fc;
    --surface: #ffffff;
    --primary: #b20e6d;
    --primary-dark: #8a0a55;
    --text: #1f1f26;
    --muted: #6b6b7c;
    --border: #ececf2;
    --accent: #f6d8e8;
    --shadow: 0 20px 45px rgba(16, 20, 31, 0.12);
    --heading-font: "Estedad", "Vazirmatn", "Segoe UI", sans-serif;
    font-size: 16px;
}

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

body {
    margin: 0;
    font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

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

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

.container {
    width: min(1200px, 92vw);
    margin-inline: auto;
}

.hero {
    background: radial-gradient(circle at top, #fde0f2 0%, #f8f9fc 55%, #ffffff 100%);
    color: var(--text);
    padding: 24px 0 80px;
    position: relative;
    overflow: hidden;
}

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

.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 14px 28px;
    margin-top: 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.top-nav.is-sticky {
    animation: fadeDown 0.4s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-end: auto;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6f9c, #ff8fb6);
}

.brand strong {
    font-family: var(--heading-font);
    font-size: 1.05rem;
    color: var(--primary-dark);
}

.brand small {
    font-size: 0.85rem;
    color: var(--muted);
}

.nav-links {
    display: flex;
    gap: 16px;
    font-weight: 500;
}

.nav-links a {
    opacity: 0.9;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn.primary:hover {
    transform: translateY(-2px);
}

.btn.secondary {
    background: var(--primary);
    color: #fff;
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(178, 14, 109, 0.5);
    color: var(--primary);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
}

[data-animate].is-visible {
    animation-delay: var(--delay, 0s);
}

[data-animate="fade-up"].is-visible {
    animation: fadeUp 0.8s ease forwards;
}

[data-animate="fade-in"].is-visible {
    animation: fadeIn 0.8s ease forwards;
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="fade-left"].is-visible {
    animation: fadeLeft 0.9s ease forwards;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 72px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin: 12px 0;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-family: var(--heading-font);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.25em;
    color: var(--primary);
    font-weight: 700;
    font-family: var(--heading-font);
}

.hero .eyebrow {
    color: var(--primary-dark);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

.stats strong {
    display: block;
    font-size: 2rem;
}

.hero-slider {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px 24px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-weight: 600;
}

.hero-slide.is-active {
    opacity: 1;
    position: absolute;
}

.hero-slider-controls {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-slider-dots {
    position: absolute;
    bottom: 16px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
}

.hero-slider-dots .dot.is-active {
    background: #fff;
}

.badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: -48px;
}

.badges article {
    background: var(--surface);
    padding: 24px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.section {
    padding: 96px 0;
}

.section h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 8px;
    font-family: var(--heading-font);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.link-arrow {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow::after {
    content: "↗";
    font-size: 1.2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.service-grid article {
    background: var(--surface);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.service-grid ul {
    list-style: none;
    padding: 0;
}

.service-grid li {
    padding-block: 4px;
}

.highlighted {
    background: #fff1f7;
}

.about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
}

.about-card {
    background: var(--surface);
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.certificates {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.certificates div {
    flex: 1 1 120px;
    background: var(--bg);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li::before {
    content: "✔";
    margin-inline-start: 8px;
    color: var(--primary);
}

.tech {
    background: #120818;
    color: #fff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: start;
}

.tech-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-card ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.tech-card li {
    padding-block: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-card li:last-child {
    border-bottom: none;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.gallery figure {
    margin: 0;
    background: var(--surface);
    border-radius: 24px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.gallery-image {
    border-radius: 18px;
    overflow: hidden;
    height: 180px;
    margin-bottom: 12px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery figcaption {
    margin-top: 8px;
    color: var(--muted);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.testimonials article {
    background: var(--surface);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.slider-controls {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 1.5rem;
    cursor: pointer;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.blog-grid article {
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border);
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin: 0;
    font-family: var(--heading-font);
}

.blog-card p {
    color: var(--muted);
    margin: 0;
}

.blog-card a {
    margin-top: auto;
    color: var(--primary);
    font-weight: 700;
}

.tag {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.85rem;
}

.contact {
    background: var(--surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: start;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    max-width: 240px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-action--phone {
    background: var(--primary);
    color: #fff;
}

.contact-action--whatsapp {
    background: #25d366;
    color: #0f5132;
}

.contact-action--insta {
    background: linear-gradient(135deg, #feda75, #d62976, #962fbf, #4f5bd5);
    color: #fff;
}

.contact-cards {
    display: grid;
    gap: 20px;
}

.contact-cards article {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border-radius: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-cards article div:last-child {
    flex: 1;
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
}

.contact-icon.phone {
    background: var(--primary);
}

.contact-icon.whatsapp {
    background: #25d366;
}

.contact-icon.instagram {
    background: linear-gradient(135deg, #feda75, #d62976, #962fbf, #4f5bd5);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.post-page {
    background: var(--bg);
}

.post-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    z-index: 20;
}

.post-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
    text-decoration: none;
}

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

.post-main {
    width: min(960px, 92vw);
    margin: 48px auto;
}

.post-detail,
.post-archive {
    background: var(--surface);
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.post-cover {
    width: 100%;
    border-radius: 24px;
    margin: 16px 0 24px;
    max-height: 420px;
    object-fit: cover;
}

.post-meta {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.post-content p {
    margin-bottom: 16px;
    color: var(--text);
}

.post-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.post-empty {
    text-align: center;
    color: var(--muted);
}

.admin-page {
    background: var(--bg);
}

.admin-main {
    width: min(1100px, 94vw);
    margin: 40px auto 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-card,
.admin-panel {
    background: var(--surface);
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.admin-card input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font: inherit;
    margin-top: 6px;
    margin-bottom: 12px;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-tab {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.admin-tab.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.admin-tabs--only {
    justify-content: flex-end;
}

.admin-hint {
    font-size: 0.9rem;
    color: var(--muted);
}

.admin-toolbar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.admin-stat {
    background: var(--bg);
    border-radius: 18px;
    padding: 12px 18px;
    font-weight: 700;
    color: var(--primary-dark);
    box-shadow: var(--shadow);
}

.admin-search {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}

.admin-search input {
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font: inherit;
}

.admin-alert {
    border-radius: 18px;
    padding: 12px 18px;
    font-weight: 600;
}

.admin-alert.success {
    background: #e8f5e9;
    color: #1b5e20;
}

.admin-alert.error {
    background: #ffebee;
    color: #b71c1c;
}

.admin-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-grid label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-grid input,
.admin-grid textarea {
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    font: inherit;
    background: var(--bg);
}

.admin-grid .full-width {
    grid-column: 1 / -1;
}

.admin-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg);
    border: 1px dashed var(--border);
    padding: 12px;
    border-radius: 16px;
    grid-column: 1 / -1;
}

.admin-preview img {
    max-height: 220px;
    border-radius: 12px;
    object-fit: cover;
}

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

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-post-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-post-card strong {
    font-family: var(--heading-font);
}

.admin-post-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.admin-gallery-form textarea {
    background: var(--bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 12px 14px;
    font: inherit;
}

.contact-cards article span {
    display: block;
    color: var(--muted);
    margin-top: 6px;
}

footer {
    background: #0f0f16;
    color: rgba(255, 255, 255, 0.9);
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.footer-title {
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.footer-grid a {
    display: block;
    margin-bottom: 6px;
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-links.open {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 70px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding: 24px;
    border-radius: 18px;
    z-index: 10;
}

.floating-socials {
    position: fixed;
    inset-inline-start: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

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

    .nav-toggle {
        display: flex;
    }

    .stats {
        flex-direction: column;
        gap: 16px;
    }

    .floating-socials {
        inset-inline-start: auto;
        inset-inline-end: 16px;
    }
}

