/* ============================================================
   DAQ AI LEGAL GUIDE — page-specific styles
   ============================================================ */

/* AI page header always scrolled (no dark hero overlap) */
.ai-page .site-header { position: sticky; }

/* ---------- AI HERO ---------- */
.ai-hero {
  background: var(--navy);
  color: var(--ivory);
  padding: clamp(60px, 10vh, 100px) 0 clamp(50px, 8vw, 90px);
  position: relative;
  overflow: hidden;
}
.ai-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.ai-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  max-width: 900px;
}
.ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.ai-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
.ai-eyebrow .dot.pulse {
  box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.18);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(184, 149, 106, 0.08); }
}

.ai-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.012em;
  margin: 8px 0 4px;
}
.ai-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.ai-hero-lede {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: rgba(245, 241, 234, 0.78);
  margin: 0;
  max-width: 660px;
}

.ai-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(245, 241, 234, 0.06);
  border: 1px solid rgba(245, 241, 234, 0.12);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245, 241, 234, 0.85);
}
.meta-pill svg { color: var(--gold); }

/* ---------- AI TOOL SECTION ---------- */
.ai-tool-section {
  background: var(--cream);
  padding: clamp(40px, 5vw, 60px) 0 clamp(60px, 8vw, 100px);
  position: relative;
}

/* DISCLAIMER GATE */
.disclaimer-gate {
  max-width: 760px;
  margin: 0 auto;
  margin-top: -80px;
  position: relative;
  z-index: 3;
}
.disclaimer-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: clamp(32px, 5vw, 56px);
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(10, 22, 40, 0.18);
}
.disclaimer-icon {
  width: 64px;
  height: 64px;
  background: rgba(184, 149, 106, 0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 22px;
}
.disclaimer-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.disclaimer-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 400;
  color: var(--navy);
}
.disclaimer-title em { font-style: italic; color: var(--gold); }
.disclaimer-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.disclaimer-body ul {
  margin: 0 0 16px;
  padding: 0 0 0 22px;
}
.disclaimer-body li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
  padding-left: 4px;
}
.disclaimer-body li::marker { color: var(--gold); }
.disclaimer-body strong { color: var(--ink); font-weight: 600; }
.disclaimer-body em { font-style: italic; color: var(--gold); }
.disclaimer-note {
  font-size: 13px !important;
  color: var(--ink-soft) !important;
  font-style: italic;
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.disclaimer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-ghost-dark {
  border-color: var(--line);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.35s var(--ease-out);
}
.btn-ghost-dark:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--ivory);
}

/* AI TOOL */
.ai-tool {
  max-width: 880px;
  margin: 0 auto;
  margin-top: -80px;
  position: relative;
  z-index: 3;
}
.ai-stage {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 30px 60px -20px rgba(10, 22, 40, 0.18);
  animation: stageIn 0.6s var(--ease-out);
}
@keyframes stageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-tool-header {
  margin-bottom: 28px;
  position: relative;
}
.ai-tool-header.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.ai-tool-step {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.ai-tool-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.1;
  color: var(--navy);
}
.ai-tool-header p {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}

/* INPUT */
.ai-input-form { display: grid; gap: 20px; }
.ai-input-wrap {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.ai-input-wrap:focus-within {
  border-color: var(--gold);
  background: #FFF;
  box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.1);
}
.ai-input-wrap textarea {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 22px 22px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  font-family: inherit;
  resize: vertical;
  min-height: 140px;
  outline: 0;
}
.ai-input-wrap textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}
.ai-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 18px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.lang-hint { font-style: italic; }

.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 0 0;
}
.chip-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-right: 6px;
}
.chip {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-muted);
  transition: all 0.3s;
  font-family: inherit;
}
.chip:hover {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-large {
  padding: 18px 32px !important;
  font-size: 14px !important;
  justify-self: center;
  margin-top: 6px;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.btn-text:hover { color: var(--gold); background: rgba(184, 149, 106, 0.08); }

/* LOADING */
.loading-card {
  text-align: center;
  padding: 40px 0;
}
.thinking-orb {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  position: relative;
  display: grid;
  place-items: center;
}
.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.4;
  animation: ringPulse 2s ease-in-out infinite;
}
.orb-ring-2 {
  animation-delay: 1s;
}
@keyframes ringPulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.orb-core {
  width: 60px;
  height: 60px;
  background: var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  z-index: 2;
}
.thinking-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 28px;
}
.thinking-steps {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.t-step {
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 24px;
  position: relative;
  letter-spacing: 0.04em;
  transition: color 0.4s;
}
.t-step::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  transition: border-color 0.4s, background 0.4s;
}
.t-step.active {
  color: var(--navy);
  font-weight: 600;
}
.t-step.active::before {
  border-color: var(--gold);
  background: var(--gold);
}
.t-step.done { color: var(--ink-muted); }
.t-step.done::before { border-color: var(--gold); background: var(--gold); }
.t-step.done::after {
  content: "";
  position: absolute;
  left: 3px; top: 9px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(-45deg);
}

/* RESULT */
.watermark-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(184, 149, 106, 0.1);
  border: 1px solid rgba(184, 149, 106, 0.3);
  border-radius: 4px;
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 24px;
}
.watermark-strip svg { color: var(--gold-dark); flex-shrink: 0; }

.restart-btn {
  flex-shrink: 0;
}

.result-card {
  display: grid;
  gap: 20px;
}
.result-block {
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 10px;
}
.result-block.highlight {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}
.result-block.highlight .result-block-label { color: var(--gold); }
.result-block.highlight .result-block-value { color: var(--ivory); }
.result-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.result-block-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-weight: 500;
  min-width: 26px;
}
.result-block-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.result-block-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
  padding-left: 36px;
}
.result-block-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  padding-left: 36px;
  margin: 0;
}
.result-block-list {
  padding-left: 56px;
  margin: 0;
  display: grid;
  gap: 8px;
}
.result-block-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.result-block-list li::marker { color: var(--gold); }

/* Urgency badge */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-left: 36px;
  margin-top: 2px;
}
.urgency-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.urgency-low {
  background: rgba(45, 106, 79, 0.1);
  color: #2D6A4F;
  border: 1px solid rgba(45, 106, 79, 0.3);
}
.urgency-medium {
  background: rgba(204, 153, 0, 0.12);
  color: #996600;
  border: 1px solid rgba(204, 153, 0, 0.3);
}
.urgency-high {
  background: rgba(157, 37, 33, 0.1);
  color: #9D2521;
  border: 1px solid rgba(157, 37, 33, 0.3);
}
.urgency-reason {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  padding-left: 36px;
  margin: 4px 0 0;
  font-style: italic;
}

/* Consultation type badge */
.consultation-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--ivory);
  padding: 28px 30px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.consultation-block::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(184, 149, 106, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cons-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}
.cons-type {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.2;
}
.cons-type-free { color: #B6E2C5; }
.cons-type-paid { color: var(--gold-light); }
.cons-reason {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 241, 234, 0.75);
}

/* Attorney section */
.attorney-section {
  margin-top: 32px;
}
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 20px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-divider span {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.attorney-card-large {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 28px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 4px;
  align-items: start;
}
.att-portrait {
  width: 140px;
  height: 170px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: 4px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.att-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(184, 149, 106, 0.15) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(184, 149, 106, 0.04) 14px 15px);
}
.att-initials {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold);
  font-weight: 300;
  z-index: 2;
}
.att-info {
  display: grid;
  gap: 10px;
}
.att-specialty {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.att-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
  margin: 0;
}
.att-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}
.att-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.att-meta-item {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.att-meta-item strong {
  color: var(--navy);
  font-weight: 600;
}

.att-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.att-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--navy);
  transition: all 0.3s var(--ease-out);
}
.att-btn:hover { transform: translateY(-2px); }
.att-btn-whatsapp {
  background: #25D366;
  color: white;
  border-color: #25D366;
}
.att-btn-whatsapp:hover { background: #1da851; border-color: #1da851; }
.att-btn-email {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}
.att-btn-email:hover { background: var(--navy-soft); }
.att-btn-book {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.att-btn-book:hover { background: var(--gold-light); }

.result-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- HOW IT WORKS ---------- */
.how-section { background: var(--cream); padding-top: clamp(80px, 10vw, 130px); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.step-card {
  padding: 36px 32px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -10px rgba(10, 22, 40, 0.12);
}
.step-num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 12px;
  line-height: 1;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px;
}
.step-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- BRANCHES ---------- */
.branches-section { background: var(--ivory); }
.branches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.branch {
  padding: 26px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: left;
  transition: all 0.3s var(--ease-out);
}
.branch:hover {
  background: var(--navy);
  color: var(--ivory);
  transform: translateY(-3px);
  border-color: var(--navy);
}
.branch:hover h4 { color: var(--gold); }
.branch:hover p { color: rgba(245, 241, 234, 0.75); }
.branch-icon {
  font-size: 26px;
  margin-bottom: 12px;
  filter: grayscale(0.3);
}
.branch h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--navy);
  transition: color 0.3s;
}
.branch p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
  transition: color 0.3s;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .branches-grid { grid-template-columns: repeat(2, 1fr); }
  .attorney-card-large { grid-template-columns: 100px 1fr; gap: 20px; padding: 22px; }
  .att-portrait { width: 100px; height: 130px; }
  .att-initials { font-size: 36px; }
  .ai-hero-title br { display: none; }
}
@media (max-width: 600px) {
  .branches-grid { grid-template-columns: 1fr; }
  .disclaimer-gate, .ai-tool { margin-top: -50px; }
  .attorney-card-large { grid-template-columns: 1fr; }
  .att-portrait { width: 100%; max-width: 160px; height: 200px; margin: 0 auto; }
  .result-cta { flex-direction: column; align-items: stretch; }
  .result-cta .btn,
  .result-cta .btn-text { text-align: center; justify-content: center; }
  .ai-tool-header.result-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .result-block-value,
  .result-block-text,
  .urgency-reason { padding-left: 0; }
  .result-block-list { padding-left: 20px; }
  .urgency-badge { margin-left: 0; }
  .example-chips .chip-label { width: 100%; margin-bottom: 6px; }
}

/* RTL adjustments for Arabic version */
[dir="rtl"] .result-block-value,
[dir="rtl"] .result-block-text,
[dir="rtl"] .urgency-reason,
[dir="rtl"] .urgency-badge { padding-left: 0; padding-right: 36px; margin-left: 0; }
[dir="rtl"] .urgency-badge { margin-right: 36px; }
[dir="rtl"] .result-block-list { padding-left: 0; padding-right: 56px; }
[dir="rtl"] .t-step { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .t-step::before { left: auto; right: 0; }
[dir="rtl"] .t-step.done::after { left: auto; right: 3px; }
[dir="rtl"] .btn:hover svg,
[dir="rtl"] .btn-text:hover svg { transform: translateX(-4px); }
@media (max-width: 600px) {
  [dir="rtl"] .result-block-value,
  [dir="rtl"] .result-block-text,
  [dir="rtl"] .urgency-reason { padding-right: 0; }
  [dir="rtl"] .urgency-badge { margin-right: 0; }
  [dir="rtl"] .result-block-list { padding-right: 20px; }
}
