/* ==========================================================================
   Shared styles for the new pages (blog / services / contact).
   Reuses every token and component class already defined in style.css
   (--navy, --accent*, --glass*, .container, .kicker, .grad, .glass-card,
   .cta-btn, .reveal, .bg-orbs, .noise) and only adds what's genuinely new.
   ========================================================================== */

/* ---- page hero ----------------------------------------------------------- */
.page-hero{
  position:relative;
  padding: 168px 32px 64px;
  max-width:1240px;
  margin:0 auto;
  text-align:center;
}
.page-hero__eyebrow{ margin-bottom:18px; }
.page-hero h1{
  font-size:clamp(38px, 6vw, 68px);
  font-weight:900;
  letter-spacing:-1.5px;
  line-height:1.15;
  margin:0 0 20px;
}
.page-hero p{
  max-width:620px;
  margin:0 auto;
  color:var(--muted);
  font-size:18px;
  line-height:1.8;
}

/* ---- generic section rhythm ---------------------------------------------- */
.pg-section{ padding:64px 32px; max-width:1240px; margin:0 auto; }
.pg-section--tight{ padding-top:32px; padding-bottom:32px; }
.pg-section__head{ text-align:center; max-width:640px; margin:0 auto 48px; }
.pg-section__head p{ color:var(--muted); font-size:16px; line-height:1.8; margin-top:14px; }

/* ---- tag / badge chips ----------------------------------------------------- */
.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 14px;
  border-radius:999px;
  font-size:12.5px; font-weight:600;
  background:var(--glass);
  border:1px solid var(--glass-border);
  color:var(--muted);
  cursor:default;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.chip.is-active, button.chip.is-active{
  color:var(--navy);
  background:var(--grad);
  border-color:transparent;
}
button.chip{ font-family:inherit; cursor:pointer; }
button.chip:hover{ border-color:var(--liquid-glass-border-hover); color:var(--text); }

/* ---- FAQ accordion --------------------------------------------------------- */
.faq-list{ display:flex; flex-direction:column; gap:14px; max-width:760px; margin:0 auto; }
.faq-item{
  background:var(--glass);
  border:1px solid var(--glass-border);
  border-radius:18px;
  overflow:hidden;
  transition: border-color .3s ease, background .3s ease;
}
.faq-item.is-open{ border-color:var(--liquid-glass-border-hover); background:var(--liquid-glass-bg-hover); }
.faq-item__q{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  width:100%; text-align:start;
  padding:20px 24px;
  background:none; border:none;
  font-family:inherit; font-size:16px; font-weight:700; color:var(--text);
  cursor:pointer;
}
.faq-item__q svg{
  flex-shrink:0; width:20px; height:20px;
  stroke:var(--accent-2); fill:none; stroke-width:2; stroke-linecap:round;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.faq-item.is-open .faq-item__q svg{ transform:rotate(45deg); }
.faq-item__a{
  max-height:0;
  overflow:hidden;
  transition: max-height .45s cubic-bezier(.16,1,.3,1);
}
.faq-item__a p{ padding:0 24px 22px; color:var(--muted); line-height:1.85; font-size:15px; }

/* ---- form fields ------------------------------------------------------------ */
.field{ display:flex; flex-direction:column; gap:8px; text-align:start; }
.field label{ font-size:13.5px; font-weight:600; color:var(--muted); }
.field input, .field select, .field textarea{
  font-family:'Vazirmatn', sans-serif;
  font-size:15px;
  color:var(--text);
  background:var(--glass);
  border:1px solid var(--glass-border);
  border-radius:14px;
  padding:14px 16px;
  outline:none;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.field textarea{ resize:vertical; min-height:120px; line-height:1.7; }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color:var(--liquid-glass-border-hover);
  background:var(--liquid-glass-bg-hover);
  box-shadow:0 0 0 3px rgba(122,240,255,.12);
}
.field.has-error input, .field.has-error textarea, .field.has-error select{
  border-color:#ff6b7a;
  box-shadow:0 0 0 3px rgba(255,107,122,.12);
}
.field__error{ display:none; font-size:12.5px; color:#ff8b96; }
.field.has-error .field__error{ display:block; }
.field select{ appearance:none; -webkit-appearance:none; cursor:pointer; }

/* ---- page footer (new pages only — index.html keeps its own) --------------- */
.pg-footer{
  border-top:1px solid var(--glass-border);
  margin-top:40px;
  padding:56px 32px 40px;
}
.pg-footer__inner{
  max-width:1240px; margin:0 auto;
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:40px;
}
.pg-footer__brand{ display:flex; flex-direction:column; gap:14px; }
.pg-footer__logo{ display:flex; align-items:center; gap:10px; }
.pg-footer__logo img{ width:34px; height:34px; border-radius:9px; object-fit:cover; }
.pg-footer__logo span{ font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:16px; color:var(--text); }
.pg-footer__brand p{ color:var(--muted); font-size:14px; line-height:1.8; max-width:280px; }
.pg-footer h4{ font-size:13px; letter-spacing:.05em; color:var(--muted); margin-bottom:16px; font-weight:700; }
.pg-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.pg-footer a{ color:var(--text); text-decoration:none; font-size:14.5px; opacity:.85; transition:opacity .25s ease, color .25s ease; }
.pg-footer a:hover{ opacity:1; color:var(--accent-2); }
.pg-footer__bottom{
  max-width:1240px; margin:32px auto 0;
  padding-top:24px; border-top:1px solid var(--glass-border);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  color:var(--muted); font-size:13px;
}

@media (max-width:820px){
  .pg-footer__inner{ grid-template-columns:1fr 1fr; }
  .pg-footer__brand{ grid-column:1 / -1; }
}
@media (max-width:560px){
  .page-hero{ padding-top:140px; }
  .pg-footer__inner{ grid-template-columns:1fr; }
  .pg-footer__bottom{ flex-direction:column; align-items:flex-start; }
}
