/* ============================================
   STERLING COMPLIANCE — Global Styles
   A boutique compliance law practice
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Core palette */
  --ink: #1a2332;
  --ink-light: #2d3a4a;
  --navy: #1e3a5f;
  --navy-light: #2a5080;
  --cream: #faf8f5;
  --cream-dark: #f0ece6;
  --stone: #b8b0a4;
  --stone-light: #d4cfc7;
  --stone-dark: #8a8279;
  --sage: #7a9183;
  --sage-light: #a3bfae;
  --sage-muted: #e8eeea;
  --slate: #6b7d8d;
  --white: #ffffff;
  --warm-black: #0f1419;
  --border: rgba(26, 35, 50, 0.08);
  --border-strong: rgba(26, 35, 50, 0.14);

  /* Typography */
  --font-display: 'Libre Baskerville', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --header-height: 100px;
  --header-bg: #02444d;
  --header-text: #f5ede0;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 35, 50, 0.1);
  --shadow-xl: 0 12px 40px rgba(26, 35, 50, 0.12);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--sage);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

p:last-child {
  margin-bottom: 0;
}

.label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-light);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--sm {
  padding: var(--space-3xl) 0;
}

.section--lg {
  padding: var(--space-5xl) 0;
}

.section--cream {
  background: var(--cream);
}

.section--white {
  background: var(--white);
}

.section--ink {
  background: var(--ink);
  color: var(--cream);
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: var(--cream);
}

.section--ink .label {
  color: var(--sage-light);
}

.section--ink p {
  color: var(--stone-light);
}

.section--sage-muted {
  background: var(--sage-muted);
}

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

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .grid--3, .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  padding: 0.85rem 1rem;
}

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

.btn--white {
  background: var(--white);
  color: var(--navy);
}

.btn--white:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: var(--header-height);
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-main a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--header-text);
  transition: color 0.2s var(--ease);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--white);
}

.nav-main a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--header-text);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.portal-link {
  font-size: 0.825rem;
  color: var(--header-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-link:hover {
  color: var(--white);
}

.header-actions .btn--primary {
  background: var(--header-text);
  color: var(--header-bg);
}

.header-actions .btn--primary:hover {
  background: var(--white);
  color: var(--header-bg);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--header-text);
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    gap: var(--space-md);
  }

  .nav-main.open {
    display: flex;
  }

  .nav-main a {
    font-size: 1rem;
    padding: var(--space-xs) 0;
  }

  .header-actions .btn {
    display: none;
  }

  .header-actions .portal-link {
    display: none;
  }
}

/* --- Hero Sections --- */
.hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  position: relative;
}

.hero--home {
  padding: var(--space-5xl) 0 var(--space-4xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

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

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero .lead {
  margin-bottom: var(--space-xl);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-dark);
  aspect-ratio: 4/3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder image styling */
.img-placeholder {
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--stone-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-dark);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: var(--space-lg);
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.trust-points {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.trust-point {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-light);
}

.trust-point::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  background: var(--sage-muted);
  color: var(--sage);
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero--home {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .hero-content {
    max-width: 100%;
  }
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card--flat {
  background: transparent;
  border: none;
  padding: var(--space-lg);
}

.card--flat:hover {
  box-shadow: none;
  transform: none;
  background: var(--white);
}

.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card h4 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--ink-light);
  font-size: 0.975rem;
}

.card .label {
  margin-bottom: var(--space-sm);
  display: block;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--sage-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.card-arrow {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-arrow::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}

.card:hover .card-arrow::after {
  transform: translateX(3px);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 620px;
  color: var(--ink-light);
}

.section-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  counter-reset: step;
}

.process-step {
  counter-increment: step;
  position: relative;
  padding-top: var(--space-xl);
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sage-light);
  opacity: 0.5;
  display: block;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.process-step h4 {
  margin-bottom: var(--space-xs);
}

.process-step p {
  font-size: 0.925rem;
  color: var(--ink-light);
}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* --- Checklist --- */
.checklist {
  list-style: none;
}

.checklist li {
  padding: var(--space-sm) 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.025rem;
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
  font-size: 0.9rem;
}

/* --- Price Badge --- */
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  background: var(--sage-muted);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.price-badge .amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
}

.price-badge .descriptor {
  font-size: 0.9rem;
  color: var(--ink-light);
  font-weight: 500;
}

/* --- Testimonials --- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--sage);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--stone-dark);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-lg) 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  transition: color 0.2s var(--ease);
}

.faq-question:hover {
  color: var(--navy);
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--stone);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), padding 0.35s var(--ease-out);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  color: var(--ink-light);
  font-size: 0.975rem;
}

/* --- CTA Band --- */
.cta-band {
  background: var(--ink);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.cta-band p {
  color: var(--stone-light);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

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

.form-hint {
  font-size: 0.825rem;
  color: var(--stone-dark);
  margin-top: var(--space-xs);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

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

/* --- Founder Section --- */
.founder-section {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-3xl);
  align-items: center;
}

.founder-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--cream-dark);
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .founder-section {
    grid-template-columns: 1fr;
  }

  .founder-image {
    max-width: 320px;
    aspect-ratio: 1;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--warm-black);
  color: var(--stone);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  font-size: 0.925rem;
  color: var(--stone-dark);
  margin-top: var(--space-md);
  max-width: 280px;
}

.site-footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--stone-dark);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--stone-dark);
  max-width: 600px;
  line-height: 1.6;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: var(--stone-dark);
}

.footer-legal-links a:hover {
  color: var(--cream);
}

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

/* --- Page-specific hero (inner pages) --- */
.hero--inner {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.hero--inner h1 {
  margin-bottom: var(--space-md);
}

.hero--inner .lead {
  max-width: 640px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Audience / Industry strips --- */
.audience-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}

.audience-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all 0.25s var(--ease);
}

.audience-chip:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-sm);
}

.audience-chip .chip-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.audience-chip span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 900px) {
  .audience-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .audience-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --- Inline list in cards --- */
.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.inline-tag {
  font-size: 0.775rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  background: var(--sage-muted);
  color: var(--sage);
  border-radius: 20px;
}

/* --- Portal page --- */
.portal-container {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
}

.portal-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--sage-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-xl);
}

/* --- Skip link for accessibility --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 200;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

/* --- Two-col content --- */
.content-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 768px) {
  .content-2col {
    grid-template-columns: 1fr;
  }
}

/* --- Sticky sidebar --- */
.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}

/* --- Service page specific --- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 900px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}

.sidebar-card h4 {
  margin-bottom: var(--space-md);
}

.sidebar-card .btn {
  width: 100%;
  margin-bottom: var(--space-sm);
}

/* --- Not-included list --- */
.not-included li::before {
  content: '✕';
  color: var(--stone);
}

/* --- Timeline --- */
.timeline-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--sage-muted);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
}

.timeline-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage);
}

.timeline-text {
  font-size: 1rem;
  color: var(--ink-light);
}

/* --- Contact form card --- */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

/* --- Adjustments for long nav --- */
@media (min-width: 1025px) {
  .nav-main {
    gap: var(--space-md);
  }

  .nav-main a {
    font-size: 0.875rem;
  }
}

/* Footer logo sizing */
.site-footer .logo-img {
  height: 44px;
}
