/*
Theme Name: Iron Mostafa Radfar
Theme URI: https://ironmostafaradfar.com
Author: Mostafa Radfar
Description: قالب اختصاصی وردپرس برای سایت Iron Mostafa Radfar، طراحی و ساخت سوله و سازه‌های فلزی.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ironmostafaradfar
*/
:root {
      --bg: #0a0c0f;
      --bg-soft: #11151a;
      --card: rgba(255,255,255,.055);
      --card-2: rgba(255,255,255,.08);
      --line: rgba(255,255,255,.12);
      --text: #f5f7fa;
      --muted: #aeb6c2;
      --silver: #dce2e8;
      --silver-2: #8c98a8;
      --accent: #f1f3f5;
      --danger: #ff6b5d;
      --shadow: 0 24px 70px rgba(0,0,0,.38);
      --radius: 26px;
      --max: 1180px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background:
        radial-gradient(circle at 15% 10%, rgba(255,255,255,.08), transparent 24%),
        radial-gradient(circle at 90% 35%, rgba(255,255,255,.05), transparent 20%),
        linear-gradient(180deg, #080a0c 0%, #0b0e12 45%, #080a0c 100%);
      color: var(--text);
      font-family: Tahoma, "Segoe UI", Arial, sans-serif;
      line-height: 1.85;
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; }
    button, input, textarea { font: inherit; }
    .container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

    .noise {
      position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 99;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
    }

    .topbar {
      position: sticky; top: 0; z-index: 50;
      backdrop-filter: blur(18px);
      background: rgba(8,10,12,.78);
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .nav {
      min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    }
    .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .brand img {
      width: 54px; height: 54px; object-fit: cover; border-radius: 14px;
      border: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 24px rgba(0,0,0,.35);
    }
    .brand strong { display: block; font-size: 1rem; letter-spacing: -.2px; }
    .brand span { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; }

    .navlinks { display: flex; align-items: center; gap: 22px; font-size: .92rem; color: #d8dde5; }
    .navlinks a { transition: .25s ease; }
    .navlinks a:hover { color: white; transform: translateY(-1px); }
    .nav-cta {
      padding: 11px 16px; border-radius: 14px; background: #f4f6f8; color: #0b0d10;
      font-weight: 800; box-shadow: 0 8px 24px rgba(255,255,255,.08);
    }
    .menu-btn {
      display: none; border: 1px solid var(--line); background: var(--card); color: white;
      border-radius: 12px; width: 44px; height: 44px; cursor: pointer;
    }

    .hero {
      position: relative; min-height: 88vh; display: grid; place-items: center;
      padding: 74px 0 46px; overflow: hidden;
    }
    .hero::before {
      content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
      border: 1px solid rgba(255,255,255,.07); top: -180px; left: -180px;
      box-shadow: inset 0 0 80px rgba(255,255,255,.02);
    }
    .hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
    .eyebrow {
      display: inline-flex; align-items: center; gap: 9px; color: #d7dde5; padding: 8px 13px;
      border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035);
      font-size: .84rem; margin-bottom: 22px;
    }
    .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #f1f3f5; box-shadow: 0 0 14px #fff; }
    h1 { font-size: clamp(2.55rem, 5.5vw, 5.7rem); line-height: 1.12; margin: 0; letter-spacing: -2.5px; }
    h1 .steel {
      background: linear-gradient(180deg, #ffffff 0%, #aab3bf 46%, #f7f9fb 74%, #8d98a6 100%);
      -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .hero p { margin: 24px 0 30px; max-width: 720px; color: var(--muted); font-size: 1.06rem; }
    .actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 20px;
      border-radius: 15px; font-weight: 800; border: 1px solid transparent; transition: .25s ease;
    }
    .btn-primary { background: #f4f6f8; color: #0a0c0f; }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(255,255,255,.1); }
    .btn-ghost { border-color: var(--line); background: rgba(255,255,255,.035); color: #e7ebf0; }
    .btn-ghost:hover { background: rgba(255,255,255,.08); }

    .hero-visual {
      position: relative; display: grid; place-items: center; min-height: 520px;
    }
    .logo-shell {
      position: relative; width: min(100%, 510px); aspect-ratio: 1 / 1; border-radius: 40px;
      display: grid; place-items: center;
      background:
        linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025) 42%, rgba(255,255,255,.06)),
        #0e1115;
      border: 1px solid rgba(255,255,255,.13); box-shadow: var(--shadow);
      overflow: hidden;
    }
    .logo-shell::before {
      content: ""; position: absolute; inset: -30%;
      background: conic-gradient(from 90deg, transparent 0 18%, rgba(255,255,255,.16) 20%, transparent 23% 100%);
      animation: spin 14s linear infinite;
    }
    .logo-shell::after {
      content: ""; position: absolute; inset: 16px; border-radius: 30px; border: 1px solid rgba(255,255,255,.08);
      box-shadow: inset 0 0 50px rgba(255,255,255,.025);
    }
    .logo-shell img {
      position: relative; z-index: 2; width: 88%; height: 88%; object-fit: contain;
      filter: drop-shadow(0 24px 34px rgba(0,0,0,.55));
      border-radius: 28px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .micro-stats {
      margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
      max-width: 690px;
    }
    .micro-stats div {
      padding: 15px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035);
    }
    .micro-stats strong { display: block; font-size: 1rem; }
    .micro-stats span { color: var(--muted); font-size: .8rem; }

    section { padding: 88px 0; }
    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
    .section-head h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.25; }
    .section-head p { max-width: 560px; color: var(--muted); margin: 0; }

    .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .card {
      position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
      background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
      overflow: hidden; min-height: 270px; transition: .28s ease;
    }
    .card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.24); }
    .icon {
      width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px;
      background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.11);
      font-size: 1.4rem;
    }
    .card h3 { font-size: 1.25rem; margin: 24px 0 10px; }
    .card p { color: var(--muted); margin: 0; font-size: .93rem; }
    .card .num { position: absolute; left: 22px; bottom: 14px; font-size: 4.6rem; font-weight: 900; color: rgba(255,255,255,.035); }

    .process {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
      counter-reset: p;
    }
    .step {
      counter-increment: p; padding: 22px; border-radius: 22px; border: 1px solid var(--line);
      background: rgba(255,255,255,.025);
    }
    .step::before {
      content: "۰" counter(p); display: inline-block; margin-bottom: 22px; color: #e5e9ee;
      font-size: .85rem; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
    }
    .step h3 { margin: 0 0 8px; font-size: 1.08rem; }
    .step p { margin: 0; color: var(--muted); font-size: .9rem; }

    .feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .feature {
      border: 1px solid var(--line); border-radius: 22px; padding: 24px;
      display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,.025);
    }
    .feature b { display: block; margin-bottom: 5px; }
    .feature span { color: var(--muted); font-size: .9rem; }

    .compare {
      border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
      background: rgba(255,255,255,.025);
    }
    .compare-row {
      display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 0;
      border-bottom: 1px solid var(--line);
    }
    .compare-row:last-child { border-bottom: 0; }
    .compare-row > div { padding: 17px 20px; border-left: 1px solid var(--line); }
    .compare-row > div:last-child { border-left: 0; }
    .compare .head { background: rgba(255,255,255,.065); font-weight: 800; }
    .muted { color: var(--muted); }

    .cta {
      position: relative; overflow: hidden; border-radius: 34px; border: 1px solid rgba(255,255,255,.15);
      background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.025));
      padding: 44px;
    }
    .cta::before {
      content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; left: -170px; top: -210px;
      border: 1px solid rgba(255,255,255,.1);
    }
    .cta h2 { margin: 0 0 12px; font-size: clamp(2rem, 4.5vw, 3.8rem); }
    .cta p { color: var(--muted); max-width: 780px; }

    .faq { display: grid; gap: 10px; }
    details {
      border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 18px; padding: 0 18px;
    }
    summary { cursor: pointer; padding: 18px 0; font-weight: 800; }
    details p { color: var(--muted); margin: 0 0 18px; }

    footer {
      padding: 45px 0 26px; border-top: 1px solid var(--line); background: rgba(0,0,0,.16);
    }
    .footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 32px; }
    .footer-grid h4 { margin-top: 0; }
    .footer-grid p, .footer-grid a { color: var(--muted); font-size: .9rem; }
    .footer-links { display: grid; gap: 8px; }
    .copyright {
      margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
      color: #858f9b; font-size: .8rem; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    }

    .reveal { opacity: 0; transform: translateY(22px); transition: .7s ease; }
    .reveal.show { opacity: 1; transform: translateY(0); }

    @media (max-width: 980px) {
      .hero-grid, .feature-grid { grid-template-columns: 1fr; }
      .hero { min-height: auto; }
      .hero-visual { min-height: auto; margin-top: 16px; }
      .services { grid-template-columns: 1fr 1fr; }
      .process { grid-template-columns: 1fr 1fr; }
      .navlinks {
        position: absolute; top: 79px; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch;
        padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(8,10,12,.97);
      }
      .navlinks.open { display: flex; }
      .menu-btn { display: grid; place-items: center; }
      .nav-cta { text-align: center; }
    }

    @media (max-width: 640px) {
      .hero { padding-top: 48px; }
      h1 { letter-spacing: -1.4px; }
      .services, .process, .micro-stats, .footer-grid { grid-template-columns: 1fr; }
      .section-head { align-items: start; flex-direction: column; }
      .cta { padding: 30px 22px; }
      .compare { overflow-x: auto; }
      .compare-row { min-width: 650px; }
      .brand span { display: none; }
      section { padding: 68px 0; }
    }