/* ============================================================
   Fargo Patent Law — Page-Specific Styles
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('images/hero-bg.jpg') center center / cover no-repeat,
    linear-gradient(135deg, #0f2341 0%, #1a3560 60%, #1d1d1f 100%);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 65, 0.72);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
  max-width: 700px;
}
.hero-headline {
  font-size: var(--size-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: var(--space-md);
  animation: heroFadeUp 0.8s var(--ease-out) 0.1s both;
}
.hero-subhead {
  font-size: clamp(17px, 1.5vw + 0.5rem, 21px);
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.47;
  max-width: 560px;
  margin-bottom: var(--space-lg);
  animation: heroFadeUp 0.8s var(--ease-out) 0.25s both;
}
.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s var(--ease-out) 0.4s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.stat {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  border-right: 1px solid var(--color-border);
}
.stat:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.stat-label {
  display: block;
  font-size: var(--size-small);
  color: var(--color-muted);
  line-height: 1.4;
}

/* ── Services Grid ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.service-card {
  padding: 32px 28px 28px;
  border-radius: var(--radius-card);
  background: var(--color-bg-alt);
  transition: box-shadow var(--transition-med), transform var(--transition-med);
}
.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.service-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}
.service-desc {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.55;
  margin-bottom: var(--space-md);
}
.service-link {
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}
.service-link:hover { text-decoration: none; opacity: 0.8; }

/* ── Differentiators ────────────────────────────────────────── */
.diff-grid { gap: var(--space-xl); }
.diff-item { padding: var(--space-md) 0; }
.diff-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}
.diff-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}
.diff-item p {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ── Attorney Section ───────────────────────────────────────── */
.attorney-section { overflow: hidden; }
.attorney-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.attorney-image {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.attorney-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.attorney-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.attorney-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-card);
  display: block;
}
.attorney-layout--reverse {
  direction: rtl;
}
.attorney-layout--reverse > * {
  direction: ltr;
}
.attorney-credentials {
  font-size: var(--size-small);
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
}
.attorney-text {
  font-size: 17px;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}
.attorney-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-size: 19px;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonial {
  background: var(--color-bg);
  padding: 32px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.testimonial-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  font-style: italic;
}
.testimonial-text::before { content: "\201C"; }
.testimonial-text::after  { content: "\201D"; }
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-author strong {
  font-size: var(--size-small);
  font-weight: 600;
  color: var(--color-text);
}
.testimonial-author span {
  font-size: 13px;
  color: var(--color-muted);
}

/* ── Blog Cards ─────────────────────────────────────────────── */
.blog-card {
  display: block;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--color-bg-alt);
  transition: box-shadow var(--transition-med), transform var(--transition-med);
  color: var(--color-text);
}
.blog-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.blog-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}
.blog-read-time {
  font-size: 12px;
  color: var(--color-muted);
}
.blog-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}
.blog-excerpt {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  padding: var(--space-xxl) 0;
}
.cta-headline {
  font-size: var(--size-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}
.cta-sub {
  font-size: var(--size-body-lg);
  color: var(--color-muted-on-dark);
  margin-bottom: var(--space-lg);
}
.cta-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  color: var(--color-text);
  transition: color var(--transition-fast);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: var(--space-md);
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-item[open] .faq-question { color: var(--color-accent); }
.faq-answer {
  padding-bottom: var(--space-md);
}
.faq-answer p {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ── Mobile Sticky CTA ──────────────────────────────────────── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  padding: 12px var(--side-pad-mobile);
  z-index: 50;
  gap: 10px;
}
.mobile-cta-call {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  justify-content: center;
  text-decoration: none;
  border: 1.5px solid var(--color-border);
}
.mobile-cta-consult {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  flex: 2;
  text-decoration: none;
}
.mobile-cta-consult:hover { color: #ffffff; text-decoration: none; }

/* ── Inner Page Hero (used on about/services/etc.) ──────────── */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background: var(--color-dark);
  color: #ffffff;
}
.page-hero .eyebrow { color: rgba(255,255,255,0.60); }
.page-hero h1 {
  font-size: var(--size-h2);
  color: #ffffff;
  margin-bottom: var(--space-md);
}
.page-hero p {
  font-size: var(--size-body-lg);
  color: var(--color-muted-on-dark);
  max-width: 600px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1068px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--color-border); }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .attorney-layout { grid-template-columns: 280px 1fr; gap: var(--space-lg); }
}

@media (max-width: 744px) {
  .hero { min-height: 92svh; }
  .hero-content { padding-top: 48px; padding-bottom: 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { gap: var(--space-lg); }
  .attorney-layout { grid-template-columns: 1fr; }
  .attorney-image { position: static; }
  .attorney-photo-placeholder { aspect-ratio: 1/1; max-width: 280px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
  .cta-banner { padding: var(--space-xl) 0; }
  .cta-headline { font-size: clamp(28px, 7vw, 48px); }
}
