@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #181818;
  --muted: #77736c;
  --accent: #b48a52;
  --accent-dark: #8f6b3e;
  --border: #e7e1d8;
  --dark: #181818;
  --radius: 20px;
  --pretty: #656565;
}

@font-face {
    font-family: "Vazirmatn";
    src: url('fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Doran-main";
    src: url('fonts/DoranBold.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
}

a {
    color: inherit;
    text-decoration: none;
}

.button {
    font: inherit;
}

.navbar {
   display: flex;
   position: sticky;
   top: 0;
   z-index: 50;
   align-items: center;
   justify-content: space-between;
   padding: 18px 7%;
   background: rgba(247, 245, 240, .92);
   backdrop-filter: blur(12px);
   border-bottom: 1px solid rgba(231, 225, 216, .7);
}

.logo {
    font-size: 23px;
    font-weight: 800;
}

.logo span {
    color: var(--pretty);
}

.nav-links {
    display: flex;
    gap: 34px;
    color: #55514a;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a {
    transition: .25s;
}
.nav-links a:hover {
    color: var(--pretty);
}

.hero {
    min-height: 690px;
    padding: 90px 8%;
    display: grid;
    align-items: center;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
}

.hero-content {
    max-width: 680px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.25;
    letter-spacing: -2px;
}

.hero h1 strong {
    color: var(--pretty);
}

.hero p {
    max-width: 610px;
    color: var(--muted);
    margin-top: 24px;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    margin-top: 35px;
    gap: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: .25s;
}

.btn-primary {
    background: var(--dark);
    color: #ffffff;
}

.btn-primary:hover {
    background:  var(--pretty);
    transform: translateY(-2px);
}

.btn-secondary {
    border-color: var(--border);
    background: var(--surface);
}

.btn-secondary:hover {
    border-color: var(--pretty);
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: var(--dark);
}

.hero-card {
  min-height: 390px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #e9e2d8;
  box-shadow: 0 30px 70px rgba(48, 40, 28, .13);
  transform: rotate(2deg);
}

.window-top {
  height: 34px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 9px;
}

.window-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c7bcae;
}

.preview-lines {
  height: 300px;
  padding: 30px;
  border-radius: 18px;
  background: #fff;
}

.preview-line {
  height: 13px;
  border-radius: 30px;
  background: #e5ded3;
  margin-bottom: 15px;
}

.preview-line.long { width: 82%; }
.preview-line.medium { width: 58%; }
.preview-line.short { width: 42%; margin-top: 25px; }

.preview-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 35px;
}

.preview-boxes div {
  height: 100px;
  border-radius: 13px;
  background: #f0ebe4;
}

section {
    scroll-margin-top: 90px;
}

.categories,
.templates-section,
.why-us {
    padding: 90px 8%;
}

.section-heading h2 {
    font-size: 38px;
    line-height: 1.35;
}

.section-heading p {
    margin-top: 10px;
    color: var(--muted);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 35px;
}

.category {
    padding: 10px 20px;
    font-family: "Vazirmatn";
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    cursor: pointer;
    color: #5f5a52;
    transition: .25s;
}

.category:hover,
.category.active {
    color: #fff;
    background: var(--dark);
    border-color: var(--dark);
}

.row-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.result-count {
    color: var(--muted);
    font-size: 14px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.template-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: .3s;
}

.template-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(40, 32, 20, .09);
}

.template-preview {
    height: 205px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.9);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
}

.preview-shop { background: linear-gradient(135deg, #1f2424, #8e795d); }
.preview-business { background: linear-gradient(135deg, #28313b, #68727d); }
.preview-portfolio { background: linear-gradient(135deg, #4c3b33, #b49b83); }
.preview-landing { background: linear-gradient(135deg, #302c3e, #7d718e); }

.template-info {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    padding: 22px 20px 8px;
}

.template-info h3{
    margin-top: 3px;
    font-size: 20px;
}

.template-info strong {
    white-space: nowrap;
    font-size: 13px;
}

.template-card > p {
    padding: 0 20px;
    color: var(--muted);
    font-size: 13px;
}

.tag {
    color: var(--pretty);
    font-size: 11px;
    font-weight: 800;
}

.details-btn {
    width: calc(100% - 40px);
    margin: 20px;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: .25s;
}

.details-btn:hover {
    color: #fff;
    background: var(--dark);
    border-color: var(--dark);
}

.why-us {
    background: #eee9e1;
}

.centered {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1200px;
    margin: auto;
}

.why-card {
    padding: 32px 25px;
    border: 1px solid rgba(80, 65, 45, .1);
    border-radius: 18px;
    background: rgba(255,255,255,.7);
    transition: .3s;
}

.why-card:hover {
    transform: translateY(-6px);
}

.icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #e4d8c8;
    color: var(--pretty);
    font-weight: 800;
    font-size: 22px;
}

.why-card h3 {
    margin-bottom: 8px;
}

.why-card p {
    color: var(--muted);
    font-size: 12px;
}

.comments {
    padding: 100px 7%;
    background: #f7f5f0;
}

.comments-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.comments-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.comments-content p {
    color: #666;
    margin-bottom: 40px;
}

.comments-content form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comments-content input,
.comments-content textarea {
    width: 100%;
    padding: 18px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: 0.3s ease;
}

.comments-content textarea {
    min-height: 160px;
    resize: vertical;
}

.comments-content input:focus,
.comments-content textarea:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.comments-content button {
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: #111;
    color: white;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s ease;
}

.comments-content button:hover {
    background: #333;
}

.comments-content button:hover {
    background: #333;
    transform: translateY(-2px);
}

.cta {
    margin: 80px 8%;
    padding: 62px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 25px;
    background: var(--pretty);
    color: #fff;
}

.cta .eyebrow {
    color: #000000;
}

.cta h2 {
    font-size: 35px;
}

.cta p {
    margin-top: 8px;
    color: #1c1815;
    font-size: 13px;
}

.footer {
    padding: 45px 8%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.footer .logo {
    color: var(--text);
}

.footer p {
    margin-top: 8px;
}
.footer a {
    color: var(--dark);
    font-size: 25px;
}

.footer span {
    color: var(--pretty);
}

.social-telephone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 29px;
    height: 29px;
    opacity: 52%;
    position: absolute;
    left: 20px;
    gap: 15px;
    margin-left: 100px;
    margin-top: 10px;
}

.social-telegram {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 29px;
    height: 29px;
    opacity: 52%;
    position: absolute;
    left: 20px;
    gap: 15px;
    margin-left: 100px;
    margin-top: 50px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(0,0,0,.55);
}

.modal.show {
    display: grid;
}

.moodal-content{
    position: relative;
    width: min(520px 100%);
    padding: 40px;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--muted);
    margin-bottom: 25px;
}

.modal-close {
    position: absolute;
    top: 12px;
    left: 15px;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    background: #f1eee9;
    cursor: pointer;
    font-size: 24px;
}


/*Respansibility Codes*/

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
    }
     .hero-card {
        max-width: 700px;
        width: 100%;
        margin: auto;
     }

     .template-grid,
     .why-grid {
        grid-template-columns: repeat(2, 1fr);
     }
}

@media (max-width: 700px) {
    .navbar {
        padding: 15px 5%;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        right: 5%;
        left: 5%;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 15px;
        background: #fff;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 70px 5%;
        gap: 45px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .categories,
    .templates-section,
    .why-us {
        padding: 70px 5%;
    }

    .template-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .row-heading,
    .cta,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta {
        margin: 60px 5%;
    }
}