/*
Theme Name: Alborz Agency 6887
Theme URI: https://example.com/alborz-agency-6887
Author: OpenAI
Author URI: https://openai.com/
Description: قالب تک‌صفحه‌ای فارسی برای نمایندگی بیمه البرز اسماعیل امیری، کد ۶۸۸۷، همراه با فرم واتساپی، تماس مستقیم و تنظیمات سفارشی‌سازی.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: alborz-agency-6887
Tags: rtl-language-support, custom-logo, one-column, custom-menu, featured-images
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --green: #078b3b;
  --green-dark: #05642d;
  --green-soft: #eaf7ef;
  --ink: #122019;
  --muted: #637069;
  --line: #dbe7df;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(5, 70, 34, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: #fbfdfb;
  line-height: 1.85;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }

.skip-link {
  position: fixed; top: -100px; right: 20px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 10px; z-index: 1000;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(219,231,223,.8);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.brand-logo {
  width: 54px; height: 54px; object-fit: contain; border-radius: 14px; background: #050505;
}
.brand div { display: grid; line-height: 1.5; }
.brand strong { font-size: .98rem; }
.brand span { color: var(--muted); font-size: .8rem; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: .92rem; transition: .2s; }
.main-nav a:hover { color: var(--green); }
.header-call {
  background: var(--green); color: #fff; padding: 10px 18px; border-radius: 12px;
  font-weight: 800;
}
.menu-button { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-button span { width: 26px; height: 2px; background: var(--ink); display: block; margin: 5px 0; }

.hero {
  min-height: 760px; padding: 100px 0 80px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(7,139,59,.12), transparent 32%),
    linear-gradient(135deg, #f8fcf9 0%, #ffffff 55%, #eff9f3 100%);
}
.hero-shape { position: absolute; border-radius: 50%; border: 1px solid rgba(7,139,59,.15); }
.hero-shape-one { width: 520px; height: 520px; left: -250px; bottom: -180px; }
.hero-shape-two { width: 240px; height: 240px; right: -80px; top: 120px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; position: relative; }
.eyebrow { color: var(--green); font-weight: 900; font-size: .9rem; }
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.3rem); line-height: 1.18; margin: 18px 0 24px;
  letter-spacing: -3px;
}
.hero h1 span { color: var(--green); }
.hero-content > p { color: var(--muted); max-width: 680px; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }
.btn {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 24px; border-radius: 14px; font-weight: 900; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: white; box-shadow: 0 12px 28px rgba(7,139,59,.22); }
.btn-secondary { background: white; color: var(--ink); border-color: var(--line); }
.hero-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.hero-features div {
  padding: 16px; border-right: 3px solid var(--green); background: rgba(255,255,255,.7);
  border-radius: 12px;
}
.hero-features b, .hero-features span { display: block; }
.hero-features b { font-size: .9rem; }
.hero-features span { color: var(--muted); font-size: .76rem; line-height: 1.7; }

.hero-card { position: relative; min-height: 560px; display: grid; place-items: center; }
.logo-stage {
  width: min(440px, 100%); aspect-ratio: 1; border-radius: 42px;
  background: #030403; padding: 48px; display: grid; place-items: center;
  box-shadow: var(--shadow); transform: rotate(-2deg);
}
.logo-stage img { width: 100%; border-radius: 20px; }
.agency-card {
  position: absolute; left: -20px; bottom: 40px; width: 300px; padding: 22px;
  border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px); border-radius: 22px; box-shadow: var(--shadow);
}
.agency-card > span, .agency-card > strong { display: block; }
.agency-card > span { color: var(--muted); font-size: .85rem; }
.agency-card > strong { font-size: 1.35rem; margin-bottom: 14px; }
.agency-card div { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.agency-card small { color: var(--muted); }
.agency-card b { color: var(--green); font-size: 1.25rem; }

.section-heading { text-align: center; max-width: 740px; margin: 0 auto 48px; }
.section-heading span { color: var(--green); font-weight: 900; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.3; margin: 10px 0; letter-spacing: -1px; }
.section-heading p { color: var(--muted); margin: 0; }

.services { background: white; }
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.service-card {
  padding: 26px 22px; border: 1px solid var(--line); border-radius: 20px;
  background: #fff; transition: .25s; min-height: 330px; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-7px); border-color: rgba(7,139,59,.45); box-shadow: var(--shadow); }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--green-soft); border-radius: 15px; font-size: 1.5rem; }
.service-card h3 { margin: 20px 0 8px; font-size: 1.15rem; }
.service-card p { color: var(--muted); font-size: .89rem; flex: 1; }
.service-card button { border: 0; background: transparent; color: var(--green); font-weight: 900; cursor: pointer; text-align: right; padding: 0; }

.quote {
  background: var(--ink); color: white;
  background-image: radial-gradient(circle at 10% 10%, rgba(7,139,59,.35), transparent 35%);
}
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.quote-copy h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.35; margin: 12px 0 20px; }
.quote-copy p { color: #c6d2cb; }
.quote-copy ul { list-style: none; padding: 0; margin: 28px 0 0; }
.quote-copy li { margin: 12px 0; padding-right: 28px; position: relative; }
.quote-copy li::before { content: "✓"; position: absolute; right: 0; color: #65d58e; font-weight: 900; }
.quote-form {
  background: white; color: var(--ink); padding: 32px; border-radius: 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: var(--shadow);
}
.quote-form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 800; }
.quote-form label:last-of-type { grid-column: 1 / -1; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: #fbfdfb; outline: none;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(7,139,59,.1); }
.form-submit, .form-note { grid-column: 1 / -1; }
.form-note { text-align: center; color: var(--muted); font-size: .78rem; margin: -4px 0 0; }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about-visual {
  min-height: 360px; background: var(--green-soft); border-radius: 32px; display: grid; place-items: center;
  align-content: center; border: 1px solid #cae9d6;
}
.about-number { color: var(--green); font-size: clamp(4rem, 10vw, 8rem); font-weight: 1000; line-height: 1; }
.about-content h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.35; margin: 10px 0 18px; }
.about-content p { color: var(--muted); }
.text-link { color: var(--green); font-weight: 900; }

.contact { background: #f2f8f4; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; background: #fff; padding: 24px;
  border: 1px solid var(--line); border-radius: 18px; transition: .2s;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--green); }
.contact-card > span { width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft); display: grid; place-items: center; font-size: 1.3rem; flex: 0 0 auto; }
.contact-card div { display: grid; }
.contact-card small { color: var(--muted); }
.contact-address { grid-column: 1 / -1; }
.contact-address strong { font-size: .95rem; }
.floating-whatsapp {
  position: fixed; left: 22px; bottom: 22px; z-index: 90; background: var(--green); color: white;
  padding: 13px 19px; border-radius: 999px; box-shadow: 0 10px 30px rgba(7,139,59,.35); font-weight: 900;
}
.site-footer { background: #0d1611; color: white; padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner div { display: grid; }
.footer-inner span, .footer-inner p { color: #aebbb3; font-size: .85rem; margin: 0; }

.content-area { min-height: 65vh; padding: 70px 0; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.content-card h1 { margin-top: 0; }
.post-list { display: grid; gap: 20px; }
.post-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.post-item h2 { margin: 0 0 10px; }

@media (max-width: 1050px) {
  .main-nav { display: none; }
  .menu-button { display: block; order: 3; }
  .main-nav.open {
    display: flex; position: absolute; top: 78px; right: 20px; left: 20px; flex-direction: column;
    align-items: stretch; background: white; padding: 20px; border: 1px solid var(--line);
    border-radius: 18px; box-shadow: var(--shadow);
  }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-content { text-align: center; }
  .hero-content > p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-card { min-height: 500px; }
  .agency-card { left: 8%; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 72px 0; }
  .header-call { display: none; }
  .brand strong { font-size: .88rem; }
  .brand span { font-size: .74rem; }
  .hero { padding-top: 72px; min-height: auto; }
  .hero h1 { letter-spacing: -1.7px; }
  .hero-features { grid-template-columns: 1fr; text-align: right; }
  .hero-card { min-height: 420px; }
  .logo-stage { width: 330px; padding: 35px; border-radius: 28px; }
  .agency-card { width: 250px; bottom: 10px; left: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; }
  .quote-form { grid-template-columns: 1fr; padding: 22px; }
  .quote-form label, .quote-form label:last-of-type, .form-submit, .form-note { grid-column: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { min-height: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-address { grid-column: auto; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
