/* ============================================
   AskHussein.com — Brand Stylesheet
   Light mode. 8px grid. Two fonts.
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* --- Custom Properties --- */
:root {
  /* Backgrounds */
  --bg-base: #FBFAF8;
  --bg-raised: #FFFFFF;
  --bg-surface: #F4F2EC;
  --bg-overlay: #F4F2EC;
  --bg-hover: #ECEAE3;

  /* Borders */
  --border-subtle: #E8E4DC;
  --border-emphasis: #D0CCC4;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #5C5955;
  --text-muted: #9A9590;
  --text-on-accent: #FFFFFF;

  /* Accent — near-black, NOT a brand color */
  --accent: #1A1A1A;
  --accent-hover: #2C2C28;
  --accent-subtle: rgba(0, 0, 0, 0.05);
  --accent-border: rgba(0, 0, 0, 0.10);

  /* Status */
  --success: #16A34A;
  --success-subtle: rgba(22, 163, 74, 0.08);
  --warning: #CA8A04;
  --warning-subtle: rgba(202, 138, 4, 0.08);
  --error: #DC2626;
  --error-subtle: rgba(220, 38, 38, 0.08);
  --info: #2563EB;
  --info-subtle: rgba(37, 99, 235, 0.08);

  /* Fonts */
  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 100px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-secondary);
  background-color: var(--bg-base);
  line-height: 1.65;
  overflow-x: hidden;
}

/* --- Selection Color --- */
::selection {
  background: #1A1A1A;
  color: #FFFFFF;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
}

/* p max-width handled per-component, not globally */

a {
  color: var(--text-primary);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

em {
  font-family: var(--font-display);
  font-style: italic;
}

/* --- Layout --- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 64px 0;
}

/* --- Navigation: Centered Rectangular Sticky Bar --- */
.nav-static {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  max-width: 900px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.nav-static .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  padding: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 1;
  margin-right: 16px;
  flex-shrink: 0;
}

.nav-logo:hover {
  opacity: 1;
}

.nav-logo img {
  height: 24px;
  width: 24px;
  display: block;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  opacity: 1;
}

.nav-links a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.nav-links .nav-cta {
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s ease;
}

.nav-links .nav-cta:hover {
  background: var(--accent-hover);
  color: var(--text-on-accent);
  opacity: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 136px;
  padding-bottom: 48px;
}

.hero-content {
  max-width: 560px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  font-weight: 300;
  color: var(--accent);
}

.hero-description {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  opacity: 1;
}

.btn:hover {
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--text-on-accent);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-emphasis);
}

.btn-secondary:hover {
  border-color: var(--border-emphasis);
  background: var(--bg-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* --- Trust Bar --- */
.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  text-align: center;
}

.trust-item .number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
}

.trust-item .number--accent {
  color: var(--accent);
}

.trust-item .label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.trust-item .stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
}

.trust-verified {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header h2 em {
  color: var(--accent);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

/* --- Cards --- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: var(--border-emphasis);
  background: var(--bg-hover);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

/* --- Case Study Cards --- */
.case-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  text-decoration: none;
  display: block;
  transition: background 0.2s ease, border-color 0.2s ease;
  opacity: 1;
}

.case-card:hover {
  border-color: var(--border-emphasis);
  background: var(--bg-hover);
  opacity: 1;
}

.case-card .case-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.case-card h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.case-card .case-sub-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.case-card .case-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.case-card .case-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.case-card .case-metric .value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  background: var(--bg-surface);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.case-card .case-metric .metric-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 500;
}

/* --- Filter Tabs --- */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--border-emphasis);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
}

.testimonial-card .quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 24px;
}

.testimonial-card .quote-written {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  font-style: normal;
  color: var(--text-primary);
  line-height: 1.55;
}

.testimonial-card .attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-card .attribution .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent);
  font-size: 0.875rem;
}

.testimonial-card .attribution .name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.testimonial-card .attribution .company {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* --- Video Testimonials --- */
.video-testimonial {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-testimonial .video-placeholder {
  aspect-ratio: 16/9;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-testimonial .video-info {
  padding: 24px;
}

.video-testimonial .video-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.video-testimonial .video-company {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.video-testimonial .video-summary {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- About Section / Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-stats--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
}

.stat-item {
  text-align: center;
  padding: 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- What I Do / Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease;
}

.service-card:hover {
  border-color: var(--border-emphasis);
  background: var(--bg-hover);
}

.service-card h4 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact-section {
  padding-top: 140px;
  padding-bottom: 80px;
}

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 48px;
}

.contact-card h1 {
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.contact-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 40px;
}

/* --- Contact Form --- */
.contact-form {
  max-width: none;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.contact-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
  margin-top: 8px;
  border-radius: var(--radius-sm);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--border-emphasis);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Case Study Detail --- */
.case-hero {
  padding-top: 160px;
  padding-bottom: 64px;
  text-align: center;
}

.case-hero .case-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.case-hero h1 {
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.case-hero .case-summary {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

.case-metrics-bar {
  display: flex;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 64px;
  flex-wrap: wrap;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.metric-item .metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
}

.metric-item .metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.case-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.case-content h2 {
  font-size: 1.75rem;
  margin-top: 64px;
  margin-bottom: 24px;
}

.case-content h3 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 16px;
}

.case-content p {
  font-size: 1.0625rem;
  margin-bottom: 24px;
  line-height: 1.75;
  max-width: none;
}

.case-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.case-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.case-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.case-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}


/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  margin: 0 auto 40px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Scroll Animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page Header (for subpages) --- */
.page-header {
  padding-top: 160px;
  padding-bottom: 64px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.hero-intro {
  font-size: 1.1875rem;
  line-height: 1.75;
  max-width: 680px;
}

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s ease;
  opacity: 1;
}

.back-link:hover {
  color: var(--text-primary);
  opacity: 1;
}

/* --- Divider --- */
.divider {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 64px 0;
}

/* --- Personal / Aside --- */
.aside-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.aside-card {
  padding: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.aside-card h4 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.aside-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Hero Layout with Headshot --- */
.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.hero-headshot {
  order: -1;
}

.hero-headshot img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.hero-content {
  max-width: 560px;
}

/* --- Navigation Buttons (Homepage) --- */
.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.nav-button {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.2s ease;
  opacity: 1;
}

.nav-button:hover {
  border-color: var(--border-emphasis);
  background: var(--bg-hover);
  opacity: 1;
}

.nav-button-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-button-label {
  color: var(--text-muted);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  min-width: 20px;
}

.nav-button-text {
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.nav-button-arrow {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: all 0.2s ease;
  font-weight: 300;
}

.nav-button:hover .nav-button-arrow {
  color: var(--text-primary);
  transform: translateX(6px);
}

/* --- Trust Bar with Dividers --- */
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 32px;
  max-width: 680px;
}

.trust-divider-line {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.trust-upwork-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 1;
}

.trust-upwork-badge:hover {
  background: var(--bg-hover);
  border-color: var(--border-emphasis);
  opacity: 1;
}

.upwork-icon {
  width: 28px;
  height: 28px;
}

/* --- Callout Box (Case Studies) --- */
.callout-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px auto 60px auto;
  max-width: 720px;
  display: flex;
  gap: 16px;
}

.callout-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.callout-content {
  flex: 1;
}

.callout-title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.callout-text {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.callout-text:last-child {
  margin-bottom: 0;
}

/* --- Screenshot Sections (Case Studies) --- */
.screenshot-section {
  margin-bottom: 60px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.screenshot-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.screenshot-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.screenshot-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* --- Chart Section (Case Studies) --- */
.chart-section {
  margin-bottom: 60px;
}

.chart-container {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px 32px;
}

.chart-wrapper {
  position: relative;
  height: 400px;
}

/* --- Key Stats Grid (Case Study Detail) --- */
.key-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 40px auto;
  max-width: 720px;
}

.stat-box {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.stat-box .stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stat-box .stat-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* --- Review Photos --- */
.review-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-overlay);
  border: 2px solid var(--border-subtle);
  object-fit: cover;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 12px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
}

/* --- Video Wrapper --- */
.video-wrapper {
  position: relative;
  padding-bottom: 177.78%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-overlay);
  margin-bottom: 20px;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  object-fit: contain;
}

/* --- Nav Active State --- */
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Focus Visible (Accessibility) --- */
.btn:focus-visible,
.nav-links a:focus-visible,
.filter-btn:focus-visible,
.case-card:focus-visible,
.nav-button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 1px;
  border-color: var(--border-emphasis);
}

/* --- Testimonial Card Hover --- */
.testimonial-card {
  transition: border-color 0.2s ease, background 0.2s ease;
}

.testimonial-card:hover {
  border-color: var(--border-emphasis);
}

/* --- Form Validation --- */
.form-group input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

.form-group input:valid:not(:placeholder-shown) {
  border-color: var(--success);
}

/* --- Case Study End CTA --- */
.case-end-cta {
  text-align: center;
  padding: 80px 0 64px;
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
}

.case-end-cta h2 {
  margin-bottom: 16px;
}

.case-end-cta p {
  color: var(--text-secondary);
  margin: 0 auto 32px;
  max-width: 480px;
}

.case-end-cta .cta-buttons {
  gap: 12px;
}

/* --- Contact Social Proof --- */
.contact-proof {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.contact-proof p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 400px;
  margin: 0 auto 8px;
  line-height: 1.5;
}

.contact-proof .proof-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

/* --- About End CTA --- */
.about-end-cta {
  text-align: center;
  padding: 64px 0;
}

.about-end-cta p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto 24px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section {
    padding: 40px 0;
  }

  .nav-static {
    left: 16px;
    right: 16px;
    transform: none;
    width: auto;
    max-width: none;
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border-subtle);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 24px;
    gap: 16px;
    margin-top: 12px;
  }

  .section--tight {
    padding: 24px 0;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 24px;
  }

  .page-header {
    padding-top: 100px;
    padding-bottom: 24px;
  }

  .page-header h1 {
    margin-bottom: 8px;
  }

  .case-hero {
    padding-top: 100px;
    padding-bottom: 24px;
  }

  .filters {
    margin-bottom: 24px;
  }

  .cta-section {
    padding: 48px 0;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trust-bar .container {
    gap: 32px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .case-metrics-bar {
    gap: 32px;
  }

  .hero-layout {
    gap: 28px;
  }

  .hero-headshot img {
    width: 140px;
    height: 140px;
  }

  .trust-bar .container {
    padding: 18px 20px;
    gap: 14px;
  }

  .trust-divider-line {
    height: 30px;
  }

  .nav-button {
    padding: 18px 20px;
  }

  .nav-button-text {
    font-size: 0.9375rem;
  }

  .key-stats {
    grid-template-columns: 1fr;
  }

  .callout-box {
    flex-direction: column;
    padding: 20px;
  }

  .chart-wrapper {
    height: 300px;
  }

  .contact-card {
    padding: 36px 24px;
  }

  .contact-section {
    padding-top: 100px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 16px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-card {
    padding: 24px 16px;
    border-radius: var(--radius-sm);
  }

  .contact-section {
    padding-top: 90px;
  }

  .contact-section .container {
    padding: 0 12px;
  }

  .contact-card h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
  }

  .contact-subtitle {
    font-size: 0.875rem;
    margin-bottom: 24px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group label {
    margin-bottom: 6px;
    font-size: 0.75rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 14px;
    font-size: 0.875rem;
  }

  .form-group textarea {
    min-height: 90px;
  }

  .contact-submit {
    padding: 14px 24px;
    font-size: 0.9375rem;
    margin-top: 4px;
  }
}
