/* ==========================================================================
   لاویو / وحید افشارمهر — sheet style tokens
   Concept: "میز پرونده" — a lawyer's desk of case folders.
   Ink navy + brick-red official seal + brass thread + parchment paper.
   ========================================================================== */

/* فونت به‌صورت محلی داخل سایت است — نیازی به اینترنت یا گوگل ندارد */
@font-face{
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Variable.woff2') format('woff2-variations'),
       url('fonts/Vazirmatn-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root{
  --paper:      #F1F2F4;
  --paper-2:    #E7E9EC;
  --ink:        #1C2430;
  --ink-soft:   #454C57;
  --slate:      #6B6F72;
  --seal:       #A2382A;
  --seal-deep:  #7E2A20;
  --brass:      #94742E;
  --line:       #D8DBE0;
  --line-soft:  #E4E6EA;
  --card:       #FFFFFF;
  --shadow:     rgba(28, 36, 48, 0.10);

  /* leather-ledger navy/gold — used for header, homepage hero, footer only */
  --navy:        #142238;
  --navy-header: #0C1524;
  --navy-edge:   rgba(198,161,91,0.22);
  --gold:        #C6A15B;
  --gold-soft:   #E3CD98;
  --on-navy:     #ECE6D8;
  --on-navy-muted: #A9B2C4;

  --font-display: 'Vazirmatn', 'Tahoma', sans-serif;
  --font-body:    'Vazirmatn', 'Tahoma', sans-serif;
  --font-mono:    'Georgia', 'Times New Roman', serif; /* system serif — no network dependency */

  --radius-tab: 14px 14px 3px 3px;
  --container: 1080px;
}

*{ box-sizing: border-box; }

/* ---------------- skip link (accessibility / keyboard nav) ---------------- */
.skip-link{
  position: fixed;
  top: -60px;
  right: 16px;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .92rem;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus{ top: 12px; }

html{ scroll-behavior: smooth; overflow-x: hidden; }

body{
  margin:0;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(255,255,255,0.35), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* faint paper grain */
body::before{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.5;
  background-image:
    repeating-linear-gradient(0deg, rgba(28,36,48,0.015) 0px, rgba(28,36,48,0.015) 1px, transparent 1px, transparent 3px);
}

a{ color: inherit; text-decoration:none; }

img{ max-width:100%; display:block; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position:relative;
  z-index:1;
}

/* ---------------- header ---------------- */

.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: var(--navy);
  box-shadow: 0 6px 20px rgba(4,8,16,0.22);
}

.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:96px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:800;
  font-size:1.1rem;
  letter-spacing:.2px;
  color: var(--on-navy);
}

.brand .seal-mini{ width:48px; height:48px; flex:none; }

.brand .brand-logo{ height:64px; width:auto; flex:none; }
.brand picture{ display:contents; }

.brand small{
  display:block;
  font-weight:500;
  font-size:.72rem;
  color: var(--on-navy-muted);
  margin-top:2px;
}

nav.main-nav ul{
  list-style:none;
  display:flex;
  gap:6px;
  margin:0;
  padding:0;
}

nav.main-nav a{
  display:inline-block;
  padding:9px 16px;
  border-radius:999px;
  font-size:.92rem;
  font-weight:600;
  color: var(--on-navy-muted);
  transition: background .15s ease, color .15s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"]{
  background: rgba(198,161,91,0.14);
  color: var(--gold-soft);
}

nav.main-nav a:focus-visible,
a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-toggle{ display:none; }

/* ---------------- page verse line (home page only) ---------------- */

.page-verse{
  margin: 0 0 10px;
  padding: 0;
  text-align: right;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.7;
}

@media (max-width: 860px){
  .page-verse{ font-size: .8rem; }
}

/* ---------------- footer ---------------- */

footer.site-footer{
  background: var(--navy);
  border-top: 1px solid var(--navy-edge);
  padding: 40px 0 46px;
  color: var(--on-navy-muted);
  font-size: .88rem;
}

footer.site-footer .wrap{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:center;
  justify-content:space-between;
}

footer.site-footer .foot-links{
  display:flex;
  flex-wrap: wrap;
  gap:22px;
  list-style:none;
  padding:0;
  margin:0;
}

footer.site-footer .foot-links a{ color: var(--on-navy-muted); transition: color .15s ease; }
footer.site-footer .foot-links a:hover{ color: var(--gold-soft); }

.social-icons{
  display:flex;
  gap:14px;
  list-style:none;
  padding:0;
  margin:0;
}
.social-icons a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid var(--navy-edge);
  color: var(--on-navy-muted);
  transition: border-color .15s ease, color .15s ease;
}
.social-icons a:hover{ border-color: var(--gold-soft); color: var(--gold-soft); }
.social-icons svg{ width:16px; height:16px; fill:currentColor; }

/* ---------------- eyebrow / headings ---------------- */

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-mono);
  font-style: italic;
  font-size:.95rem;
  color: var(--seal);
  margin: 0 0 18px;
}

.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background: var(--seal);
  display:inline-block;
}

h1,h2,h3{
  font-family: var(--font-display);
  font-weight:800;
  line-height:1.28;
  margin: 0 0 18px;
  color: var(--ink);
}

h1{ font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2{ font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3{ font-size: 1.2rem; }

p{ color: var(--ink-soft); margin:0 0 16px; }
p.lede{ font-size:1.14rem; color: var(--ink-soft); max-width: 62ch; }

.section{ padding: 76px 0; position:relative; z-index:1; }
.section-tight{ padding: 40px 0; }

hr.divider{
  border:none;
  border-top:1px solid var(--line);
  margin: 8px 0 0;
}

/* ---------------- buttons ---------------- */

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight:700;
  font-size:.96rem;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary{
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover{ background: var(--seal-deep); }

.btn-ghost{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--paper); }

.section-navy{
  background: var(--navy);
  padding: 76px 0;
}
.section-navy .navy-copy .eyebrow{ color: var(--gold-soft); }
.section-navy .navy-copy .eyebrow::before{ background: var(--gold-soft); }
.section-navy .navy-copy h2{ color: var(--on-navy); }
.section-navy .navy-copy p{ color: var(--on-navy-muted); }

.btn-outline-seal{
  background: transparent;
  border-color: var(--seal);
  color: var(--seal);
}
.btn-outline-seal:hover{ background: var(--seal); color: var(--paper); }

.btn-lux{
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 55%, var(--brass) 100%);
  color: var(--navy);
  box-shadow: 0 12px 26px rgba(198,161,91,0.38);
}
.btn-lux:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(198,161,91,0.48);
}

.hero-cta{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top: 6px;
}

.btn-outline-gold{
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-soft);
}
.btn-outline-gold:hover{ background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ---------------- seal (SVG stamp) ---------------- */

.seal{
  filter: drop-shadow(0 2px 1px rgba(126,42,32,0.15));
}
.seal .seal-ring{ fill:none; stroke:var(--seal); }
.seal .seal-text{ fill:var(--seal); }
.seal .seal-glyph{ fill:var(--seal); }

/* ---------------- hero / dual folder tabs ---------------- */

.hero{
  padding: 64px 0 20px;
}

.hero-head{ max-width: 720px; margin-bottom: 56px; }

.folders{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items:stretch;
}

.folder-card{
  position:relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-tab);
  padding: 34px 30px 30px;
  box-shadow: 0 10px 24px var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display:flex;
  flex-direction:column;
  min-height: 300px;
}

.folder-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 32px var(--shadow);
}

/* the die-cut folder tab */
.folder-card::before{
  content: attr(data-tab);
  position:absolute;
  top:-19px;
  right: 28px;
  background: inherit;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 7px 18px 14px;
  font-size:.78rem;
  font-weight:700;
  color: var(--slate);
  letter-spacing:.3px;
}

.folder-card .folder-seal{
  position:absolute;
  left:26px;
  top:26px;
  width:56px;
  height:56px;
  opacity:.9;
}

.folder-card h3{ margin-top:52px; font-size:1.5rem; }

.folder-card p{ flex:1; }

.folder-card .btn{ align-self:flex-start; margin-top:10px; }

/* thread stitch line, referencing bound case files */
.folder-card .stitch{
  position:absolute;
  bottom:16px;
  left:30px;
  right:30px;
  height:1px;
  background-image: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 12px);
  opacity:.55;
}

/* ---------------- generic cards / grids ---------------- */

.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }

.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
}

/* article / "ماده" numbered list — used only where content IS a legal sequence */
.article-list{ list-style:none; margin:0; padding:0; }

.article-item{
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}
.article-item:last-child{ border-bottom: 1px solid var(--line-soft); }

.article-tag{
  font-family: var(--font-mono);
  font-style: italic;
  color: var(--seal);
  font-size: 1.05rem;
  white-space: nowrap;
}

.article-item h3{ margin:0 0 8px; }
.article-item p{ margin:0; }

/* ---------------- feature rows (lawio page) ---------------- */

.feature-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items:center;
  padding: 46px 0;
  border-top: 1px solid var(--line-soft);
}
.feature-row:last-child{ border-bottom: 1px solid var(--line-soft); }
.feature-row:nth-child(even) .feature-media{ order:2; }

.feature-media{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 220px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 30px;
}

.badge{
  display:inline-block;
  font-size:.74rem;
  font-weight:700;
  background: rgba(162,56,42,0.1);
  color: var(--seal);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom:14px;
}

.badge.soon{
  background: rgba(28,36,48,0.08);
  color: var(--ink-soft);
}

/* ---------------- letterhead (contact) ---------------- */

.letterhead{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 40px;
  position:relative;
}

.letterhead .seal-corner{
  position:absolute;
  bottom:26px;
  left:26px;
  width:88px;
  height:88px;
  opacity:.92;
}

.contact-rows{ list-style:none; margin:26px 0 0; padding:0; }
.contact-rows li{
  display:flex;
  gap:14px;
  padding:12px 0;
  border-top:1px dashed var(--line);
  color: var(--ink-soft);
}
.contact-rows li:first-child{ border-top:none; }
.contact-rows strong{ color: var(--ink); min-width:110px; display:inline-block; }

/* ---------------- consultation request form ---------------- */

.consult-form{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 40px;
}

.consult-form h3{ margin-top:0; }
.consult-form > p{ color: var(--ink-soft); margin-top:6px; }

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.form-field{ display:flex; flex-direction:column; gap:8px; }
.form-field.full{ grid-column: 1 / -1; }

.form-field label{
  font-size:.86rem;
  font-weight:700;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea{
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  border-color: var(--seal);
  box-shadow: 0 0 0 3px rgba(162,56,42,0.10);
}

.form-field textarea{ resize: vertical; min-height: 120px; line-height:1.7; }

/* honeypot — invisible to humans, catches simple spam bots */
.form-hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.consult-form .btn{ margin-top: 22px; border:none; }
.consult-form .btn[disabled]{ opacity:.6; cursor:not-allowed; }

.form-status{
  margin-top:16px;
  font-size:.9rem;
  font-weight:600;
  display:none;
}
.form-status.show{ display:block; }
.form-status.ok{ color:#2E7D4F; }
.form-status.err{ color: var(--seal); }

@media (max-width: 860px){
  .form-grid{ grid-template-columns: 1fr; }
}

/* ---------------- FAQ accordion ---------------- */

.faq-list{ margin-top:28px; }

.faq-item{
  border-top: 1px solid var(--line-soft);
  padding: 4px 0;
}
.faq-item:last-child{ border-bottom: 1px solid var(--line-soft); }

.faq-item summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 18px 2px;
  font-weight:700;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker{ display:none; }

.faq-item summary::after{
  content:'+';
  flex:none;
  font-size:1.3rem;
  font-weight:400;
  color: var(--seal);
  transition: transform .2s ease;
}
.faq-item[open] summary::after{ content:'−'; }

.faq-item p{
  margin: 0 0 20px;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* ---------------- floating telegram button ---------------- */

.floating-tg{
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #229ED9;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
  z-index: 80;
  transition: transform .15s ease, box-shadow .15s ease;
}
.floating-tg:hover{ transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.28); }
.floating-tg svg{ width:28px; height:28px; }

@media (max-width: 860px){
  .floating-tg{ width:52px; height:52px; bottom:18px; inset-inline-end:18px; }
  .floating-tg svg{ width:25px; height:25px; }
}

/* ---------------- testimonials ---------------- */

.testimonial-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.testimonial-quote{
  color: var(--ink-soft);
  margin:0;
  line-height:1.85;
}
.testimonial-quote::before{ content:'\201C'; color:var(--seal); font-size:1.4rem; font-weight:700; margin-inline-end:2px; }
.testimonial-author{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.86rem;
  font-weight:700;
  color: var(--ink);
  margin-top:auto;
}
.testimonial-author::before{
  content:'';
  width:8px; height:8px;
  border-radius:50%;
  background: var(--seal);
}

/* ---------------- legal tips ---------------- */

.tip-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
}
.tip-card h3{ font-size:1.15rem; margin: 10px 0 10px; }
.tip-card p{ color: var(--ink-soft); margin:0; }
.tip-tag{
  display:inline-block;
  font-family: var(--font-mono);
  font-style: italic;
  color: var(--brass);
  font-size:.8rem;
  margin-bottom:6px;
}

/* ---------------- placeholder note (editable content markers) ---------------- */

.todo{
  display:inline-block;
  font-size:.76rem;
  color: var(--brass);
  border: 1px dashed var(--brass);
  border-radius:6px;
  padding: 2px 8px;
  margin-inline-start: 8px;
  font-family: var(--font-mono);
}

/* ---------------- page hero (inner pages) ---------------- */

.page-hero{ padding: 56px 0 10px; }
.page-hero .eyebrow{ margin-bottom:14px; }

/* ---------------- about page: profile photo + hero layout ---------------- */

.about-hero{
  display:flex;
  align-items:center;
  gap:34px;
  flex-wrap:wrap;
}

.about-hero .about-hero-copy{ flex:1; min-width:260px; }

.avatar-frame{
  flex: none;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--card);
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  box-shadow: 0 10px 26px var(--shadow);
  background: var(--card);
}

.avatar-frame picture{ display:contents; }

.avatar-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 640px){
  .avatar-frame{ width:132px; height:132px; outline-offset:3px; }
  .about-hero{ gap:22px; }
}

/* ---------------- achievements timeline (about page) ---------------- */

.timeline-heading{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:24px;
}

.timeline-heading-icon{
  flex:none;
  width:40px;
  height:40px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(162,56,42,0.1);
  color: var(--seal);
}

.timeline{
  list-style:none;
  margin:0;
  padding:0 0 0 0;
  position:relative;
}

.timeline-item{
  position:relative;
  padding-inline-start: 26px;
  padding-bottom: 28px;
  border-inline-start: 2px solid var(--line);
  margin-inline-start: 9px;
}

.timeline-item:last-child{
  border-inline-start-color: transparent;
  padding-bottom:0;
}

.timeline-dot{
  position:absolute;
  inset-inline-start: -9px;
  top: 2px;
  width:16px;
  height:16px;
  border-radius:50%;
  background: var(--card);
  border: 2px solid var(--seal);
}

.timeline-item h4{
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight:700;
  font-size: 1rem;
  color: var(--ink);
}

.timeline-item p{
  margin:0;
  font-size:.92rem;
  color: var(--ink-soft);
}

@media (max-width: 860px){
  .timeline{ margin-bottom: 8px; }
}

/* ---------------- disclaimer note (replaces raw dev "todo" markers) ---------------- */

.disclaimer{
  font-size: .88rem;
  color: var(--slate);
  border-top: 1px dashed var(--line);
  margin-top: 34px;
  padding-top: 18px;
  max-width: 74ch;
}

/* ---------------- service cards (services page) ---------------- */

.svc-grid{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap: 22px;
  margin-top: 8px;
}

.svc-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
}

.svc-card .svc-tag{
  display:inline-block;
  font-family: var(--font-mono);
  font-style: italic;
  color: var(--brass);
  font-size: .8rem;
  margin-bottom: 10px;
}

.svc-card h3{ margin: 0 0 14px; font-size: 1.18rem; }

.svc-card .svc-problem{
  color: var(--slate);
  font-size: .93rem;
  margin: 0 0 12px;
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--line);
}

.svc-card .svc-solution{ color: var(--ink-soft); margin:0; }

/* ---------------- trust badges row ---------------- */

.trust-row{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style:none;
}
.trust-row li{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  font-size: .88rem;
  font-weight:700;
  color: var(--ink-soft);
  text-align:center;
}

/* ---------------- illustrative UI preview (lawio page) ---------------- */

.preview-note{
  font-size: .86rem;
  color: var(--slate);
  margin: 0 0 22px;
}

.preview-strip{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  justify-items: center;
  gap: 30px 26px;
  padding: 6px 4px 22px;
}

.phone-frame{
  flex: none;
  width: 190px;
  height: 380px;
  background: var(--navy-header);
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 16px 30px var(--shadow);
  position: relative;
  overflow: hidden;
}

.phone-frame img.phone-shot{
  width:100%;
  height:100%;
  object-fit: cover;
  border-radius: 20px;
  display:block;
}

.phone-frame .phone-notch{
  position:absolute;
  top: 9px;
  right: 50%;
  transform: translateX(50%);
  width: 54px;
  height: 5px;
  border-radius: 4px;
  background: rgba(236,230,216,0.2);
}

.phone-screen{
  width:100%;
  height:100%;
  background: var(--paper);
  border-radius: 20px;
  padding: 24px 14px 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.phone-screen .ph-bar{
  height: 14px;
  border-radius: 7px;
  background: var(--gold-soft);
  width: 46%;
  margin-bottom: 6px;
}

.phone-screen .ph-line{
  height: 9px;
  border-radius: 5px;
  background: var(--line);
}
.phone-screen .ph-line.w90{ width:90%; }
.phone-screen .ph-line.w70{ width:70%; }
.phone-screen .ph-line.w50{ width:50%; }

.phone-screen .ph-card{
  margin-top: 8px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
}

.phone-caption{
  text-align:center;
  font-size: .82rem;
  font-weight:700;
  color: var(--ink-soft);
  margin: 12px 0 0;
  max-width: 190px;
}

/* ---------------- responsive: header / navigation (mobile menu) ---------------- */

@media (max-width: 860px){
  .nav-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    background: transparent;
    border: 1px solid var(--navy-edge);
    border-radius: 9px;
    cursor:pointer;
  }

  .main-nav{
    position:absolute;
    inset-inline:0;
    top: calc(100% + 10px);
    background: var(--navy-header);
    border: 1px solid var(--navy-edge);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(4,8,16,0.35);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height .25s ease, opacity .2s ease;
  }

  .main-nav.open{
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul{
    flex-direction: column;
    gap: 2px;
    padding: 12px;
  }

  .main-nav a{
    display:block;
    padding: 13px 16px;
    border-radius: 10px;
  }
}

/* ---------------- responsive: layout stacking ---------------- */

@media (max-width: 860px){
  .grid-2,
  .grid-3,
  .svc-grid,
  .folders{
    grid-template-columns: 1fr;
  }

  .feature-row{
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 0;
  }
  .feature-row:nth-child(even) .feature-media{ order:0; }
  .feature-media{ min-height:170px; padding:22px; }

  .letterhead,
  .consult-form{ padding: 26px 22px; }

  .hero{ padding: 40px 0 8px; }
  .section{ padding: 52px 0; }

  .trust-row{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px){
  .trust-row{ grid-template-columns: 1fr; }
  .site-header .wrap{ height: 84px; }
  .brand .brand-logo{ height:52px; }
}

/* ---------------- accessibility: respect reduced-motion preference ---------------- */

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
