/*
Theme Name: Door135 (Sam Gostar Style)
Theme URI: https://door135.ir/
Author: Sam Gostar
Version: 1.0.0
Text Domain: door135
*/

:root{
  --brand-red:#C4161C;
  --brand-red-dark:#A11217;
  --dark:#111827;
  --bg:#F3F4F6;
  --card:#FFFFFF;
  --text:#0f172a;
  --muted:#475569;
  --border:#E5E7EB;
  --shadow:0 14px 36px rgba(2,6,23,.12);
  --radius:18px;
}

@font-face{
  font-family:"Vazirmatn";
  src:url("assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Vazirmatn", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.9;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand-red);text-decoration:none}
a:hover{color:var(--brand-red-dark)}

.container{max-width:1120px;margin:0 auto;padding:0 16px}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;
  background:linear-gradient(180deg, #0b1224 0%, var(--dark) 100%);
  color:#fff;
  box-shadow:0 10px 24px rgba(2,6,23,.22);
}
.header-row{display:flex;align-items:center;gap:14px;min-height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.3px}
.brand img{width:38px;height:38px;border-radius:12px;background:#fff;padding:4px;object-fit:contain}
.brand span{white-space:nowrap}

.nav{
  margin-inline-start:auto;
  display:flex;align-items:center;gap:10px;
}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:12px;align-items:center}
.nav a{color:#fff;font-weight:800;font-size:15px;opacity:.92}
.nav a:hover{opacity:1}

.header-ctas{display:flex;gap:10px;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:14px;
  padding:10px 14px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  background:rgba(255,255,255,.06);
  backdrop-filter:saturate(130%) blur(6px);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 12px 22px rgba(2,6,23,.20)}
.btn-primary{background:var(--brand-red);border-color:transparent}
.btn-primary:hover{background:var(--brand-red-dark)}

.nav-toggle{display:none;margin-inline-start:auto}
.nav-toggle button{
  width:44px;height:44px;border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
}

@media (max-width:900px){
  .nav{display:none}
  .nav-toggle{display:block}
  .header-ctas{display:none}
  .mobile-drawer{
    display:none;
    border-top:1px solid rgba(255,255,255,.10);
    padding:10px 0 14px;
  }
  .mobile-drawer.open{display:block}
  .mobile-drawer a{color:#fff;font-weight:900}
  .mobile-drawer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
  .mobile-ctas{display:flex;gap:10px;margin-top:10px}
  .mobile-ctas .btn{flex:1}
}

/* Sections */
.section{padding:44px 0}
.section h2{margin:0 0 14px;font-size:26px;line-height:1.4}
.section p{margin:0 0 12px;color:var(--muted)}

.hero{
  padding:54px 0 34px;
  background:
    radial-gradient(900px 420px at 15% -5%, rgba(196,22,28,.28), transparent 60%),
    radial-gradient(900px 420px at 85% 0%, rgba(17,24,39,.28), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:26px;
  box-shadow:var(--shadow);
  padding:26px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:20px;
  overflow:hidden;
}
.hero h1{margin:0 0 10px;font-size:clamp(22px,2.8vw,36px);line-height:1.4}
.hero .kicker{font-weight:900;color:var(--dark)}
.hero .benefits{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.pill{padding:8px 12px;border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--dark);font-weight:900;font-size:14px}
.hero .hero-ctas{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}

.hero-visual{
  border-radius:22px;
  border:1px solid var(--border);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.10)),
    radial-gradient(260px 140px at 30% 30%, rgba(196,22,28,.18), transparent 60%),
    url("assets/img/hero.webp");
  background-size:cover;
  background-position:center;
  min-height:240px;
  position:relative;
  overflow:hidden;
}

@media (max-width:900px){
  .hero-card{grid-template-columns:1fr}
  .hero-visual{min-height:200px}
}

.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 10px 26px rgba(2,6,23,.08);
  padding:16px;
  display:flex;flex-direction:column;gap:10px;
  min-height:240px;
}
.card h3{margin:0;font-size:18px}
.card ul{margin:0;padding:0 18px;color:var(--muted)}
.card .btn{margin-top:auto;align-self:flex-start}
.icon{
  width:42px;height:42px;border-radius:14px;
  background:rgba(196,22,28,.10);
  border:1px solid rgba(196,22,28,.22);
  display:grid;place-items:center;
}
.icon svg{width:22px;height:22px;fill:var(--brand-red)}

@media (max-width:980px){
  .cards{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:520px){
  .cards{grid-template-columns:1fr}
}

.faq details{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 10px 22px rgba(2,6,23,.06);
  padding:12px 14px;
  margin:10px 0;
}
.faq summary{cursor:pointer;font-weight:900}

.footer{
  background:linear-gradient(180deg, #0b1224 0%, var(--dark) 100%);
  color:#fff;
  padding:34px 0;
  margin-top:40px;
}
.footer a{color:#fff;opacity:.92}
.footer a:hover{opacity:1}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
.footer small{opacity:.75}
@media (max-width:820px){.footer-grid{grid-template-columns:1fr}}

.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* Reviews */
.reviews{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 10px 26px rgba(2,6,23,.08);
  padding:18px;
  margin-top:20px;
}
.reviews h2{margin:0 0 10px}
.review-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.review-item{border:1px solid var(--border);border-radius:14px;padding:12px;background:#fff}
.review-item strong{display:block;margin-bottom:6px}
.review-form{margin-top:14px;display:grid;gap:10px}
.review-form input,.review-form textarea, .review-form select{
  width:100%;padding:10px;border-radius:12px;border:1px solid var(--border);font-family:inherit
}
.review-actions{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:980px){.review-list{grid-template-columns:1fr}}

/* Service page hero */
.page-title h1{margin:0 0 14px;font-size:clamp(22px,2.6vw,34px);line-height:1.35}

.page-hero{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  margin:0 0 18px;
}
.page-hero-img{
  width:100%;
  height:clamp(170px, 22vw, 280px);
  object-fit:cover;
  display:block;
}
.page-hero-inner{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:18px;
  background:linear-gradient(0deg, rgba(17,24,39,.78) 0%, rgba(17,24,39,.30) 55%, rgba(17,24,39,0) 100%);
  color:#fff;
}
.page-hero-inner h1{margin:0;font-size:clamp(22px,2.7vw,34px);line-height:1.35}
.page-hero-inner p{margin:6px 0 0;color:rgba(255,255,255,.90);font-weight:700}
.page-hero-ctas{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}

@media (max-width:520px){
  .page-hero-inner{padding:14px}
  .page-hero-ctas .btn{flex:1}
}

/* Utilities */
.muted{color:var(--muted)}

/* Service QR block */
.service-qr .qr-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 10px 26px rgba(2,6,23,.08);
  padding:16px;
  display:flex;
  gap:16px;
  align-items:center;
}
.service-qr .qr-img{
  flex:0 0 auto;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
  padding:10px;
  box-shadow:0 10px 22px rgba(2,6,23,.06);
}
.service-qr .qr-img img{width:110px;height:110px;object-fit:contain}
.service-qr .qr-meta{flex:1}
.service-qr .qr-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}

@media (max-width:520px){
  .service-qr .qr-card{flex-direction:column;align-items:stretch}
  .service-qr .qr-img{align-self:center}
  .service-qr .qr-actions .btn{flex:1}
}

/* Review form feedback */
.review-success{
  margin:0;
  color:#0f766e;
  font-weight:900;
  background:rgba(13,148,136,.08);
  border:1px solid rgba(13,148,136,.18);
  border-radius:14px;
  padding:10px 12px;
}

/* Slightly tighter brand on very small screens */
@media (max-width:520px){
  .header-row{min-height:58px}
  .brand img{width:34px;height:34px}
  .brand span{font-size:14px}
}
