/* ============================================================
   SB PERMITTING & PLANNING — Design System
   Direction C: Refined Coastal
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --deep-slate: #1E2E3A;
  --warm-white: #F8F6F2;
  --burnished-gold: #e6b340;
  --graphite: #2A2D32;
  --stone: #9CA3A8;
  --deep-teal: #2A6B5E;
  --light-warm: #F5F3EF;
  --white: #FFFFFF;
  --gold-hover: #d4a230;
  --slate-light: #2C3E4D;

  /* Typography */
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1320px;
  --max-width-narrow: 720px;
  --border-radius: 4px;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 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(--graphite);
  background-color: var(--warm-white);
  line-height: 1.7;
  font-weight: 400;
}

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

a {
  color: var(--deep-slate);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--burnished-gold);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--deep-slate);
  line-height: 1.25;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.125rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-sm);
  max-width: 70ch;
}

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

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

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

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

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

.section--slate {
  background-color: var(--deep-slate);
  color: var(--warm-white);
}

.section--slate h2,
.section--slate h3,
.section--slate h4 {
  color: var(--warm-white);
}

.section--warm {
  background-color: var(--light-warm);
}

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

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

.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;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background-color: var(--burnished-gold);
  color: var(--deep-slate);
}

.btn--primary:hover {
  background-color: var(--gold-hover);
  color: var(--deep-slate);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 150, 62, 0.3);
}

.btn--outline {
  background-color: transparent;
  color: var(--warm-white);
  border: 1.5px solid var(--warm-white);
}

.btn--outline:hover {
  background-color: var(--warm-white);
  color: var(--deep-slate);
}

.btn--ghost {
  background: transparent;
  color: var(--burnished-gold);
  padding: 0;
  font-weight: 600;
}

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

.btn--ghost::after {
  content: '→';
  transition: transform var(--transition);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

/* --- Utility Bar --- */
.utility-bar {
  background-color: var(--deep-slate);
  color: var(--stone);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1001;
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-bar a {
  color: var(--stone);
  transition: color var(--transition);
}

.utility-bar a:hover {
  color: var(--warm-white);
}

.utility-bar__contact {
  display: flex;
  gap: var(--space-md);
}

/* --- Header / Navigation --- */
.header {
  background-color: var(--deep-slate);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--warm-white);
}

.logo__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--warm-white);
  line-height: 1.2;
}

.logo__tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--burnished-gold);
  letter-spacing: 0.02em;
  font-weight: 400;
  font-style: italic;
}

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

.nav__list {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(248, 246, 242, 0.8);
  font-weight: 400;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--warm-white);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--burnished-gold);
  transition: width var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

/* Dropdown */
.nav__item {
  position: relative;
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  background: var(--deep-slate);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--border-radius);
  padding: 0.75rem 0;
  min-width: 260px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  z-index: 100;
}

.nav__item:hover .nav__dropdown {
  display: block;
}

.nav__dropdown a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: rgba(248, 246, 242, 0.75);
  font-size: 0.875rem;
  transition: all var(--transition);
}

.nav__dropdown a:hover {
  color: var(--warm-white);
  background: rgba(255,255,255,0.04);
  padding-left: 1.5rem;
}

/* Header CTA */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__phone {
  color: rgba(248, 246, 242, 0.7);
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--warm-white);
}

.header__cta {
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  white-space: nowrap;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-white);
  margin: 5px 0;
  transition: all var(--transition);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav__list { display: none; }
  .header__phone { display: none; }

  .nav__list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--deep-slate);
    padding: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav__dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-sm);
    display: none;
    min-width: auto;
  }

  .nav__item.open .nav__dropdown {
    display: block;
  }
}

/* --- Hero --- */
.hero {
  background-color: var(--deep-slate);
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero h1 {
  color: var(--warm-white);
  margin-bottom: var(--space-md);
}

.hero__sub {
  color: rgba(248, 246, 242, 0.85);
  font-size: 1.1875rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 540px;
}

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

.hero__phone {
  color: rgba(248, 246, 242, 0.65);
  font-size: 0.9375rem;
}

.hero__phone a {
  color: rgba(248, 246, 242, 0.85);
}

.hero__phone a:hover {
  color: var(--burnished-gold);
}

/* --- Service Hero (inner pages) --- */
.page-hero {
  background-color: var(--deep-slate);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
}

.page-hero h1 {
  color: var(--warm-white);
  margin-bottom: var(--space-sm);
}

.page-hero__sub {
  color: rgba(248, 246, 242, 0.8);
  font-size: 1.0625rem;
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

.page-hero .btn {
  margin-top: var(--space-xs);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--stone);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--stone);
}

.breadcrumb a:hover {
  color: var(--warm-white);
}

.breadcrumb span {
  margin: 0 0.375rem;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid rgba(156, 163, 168, 0.15);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(184, 150, 62, 0.25);
  box-shadow: 0 8px 24px rgba(30, 46, 58, 0.06);
  transform: translateY(-2px);
}

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-sm);
  color: var(--deep-slate);
  transition: color var(--transition);
}

.card:hover .card__icon {
  color: var(--burnished-gold);
}

.card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--deep-slate);
  margin-bottom: 0.5rem;
}

.card__desc {
  color: var(--graphite);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--burnished-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.card__link:hover {
  color: var(--gold-hover);
}

/* --- Process Steps --- */
.process {
  counter-reset: step;
}

.process__step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.process__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--burnished-gold);
  line-height: 1;
  min-width: 60px;
  opacity: 0.85;
}

.process__content h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.process__content p {
  font-size: 0.9375rem;
  color: var(--graphite);
}

.process__divider {
  width: 1px;
  height: 40px;
  background: rgba(156, 163, 168, 0.25);
  margin: var(--space-sm) 0 var(--space-sm) 28px;
}

/* --- Stats Bar --- */
.stats-bar {
  background-color: var(--deep-slate);
  padding: var(--space-xl) 0;
}

.stats-bar .container {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  min-width: 140px;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--warm-white);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* --- Project Cards --- */
.project-card {
  background: var(--white);
  border: 1px solid rgba(156, 163, 168, 0.15);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(30, 46, 58, 0.08);
  transform: translateY(-2px);
}

.project-card__image {
  height: 200px;
  background-color: var(--light-warm);
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-card__tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--deep-slate);
  color: var(--warm-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.03em;
  z-index: 1;
}

.project-card__body {
  padding: var(--space-md);
}

.project-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.65;
}

/* --- Testimonials --- */
.testimonial {
  position: relative;
  padding-left: var(--space-lg);
}

.testimonial::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.25rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--burnished-gold);
  line-height: 1;
  opacity: 0.5;
}

.testimonial__quote {
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--graphite);
  margin-bottom: var(--space-sm);
}

.testimonial__author {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--deep-slate);
}

.testimonial__role {
  font-size: 0.8125rem;
  color: var(--stone);
}

/* --- Areas Grid --- */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(156, 163, 168, 0.2);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--deep-slate);
  transition: all var(--transition);
}

.area-badge:hover {
  border-color: var(--burnished-gold);
  color: var(--burnished-gold);
  transform: translateY(-1px);
}

.area-badge--secondary {
  background: transparent;
  border-style: dashed;
  color: var(--stone);
}

/* --- Contact / CTA Section --- */
.cta-section {
  background-color: var(--deep-slate);
  padding: var(--space-2xl) 0;
}

.cta-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 800px) {
  .cta-section .container {
    grid-template-columns: 1fr;
  }
}

.cta-section h2 {
  color: var(--warm-white);
}

.cta-section p {
  color: rgba(248, 246, 242, 0.8);
}

.cta-section__contact {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cta-section__contact a {
  color: rgba(248, 246, 242, 0.75);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-section__contact a:hover {
  color: var(--burnished-gold);
}

/* --- Forms --- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

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

.form__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(248, 246, 242, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form__input,
.form__select,
.form__textarea {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition);
}

.form__input::placeholder {
  color: rgba(248, 246, 242, 0.35);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--burnished-gold);
  background: rgba(255, 255, 255, 0.1);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__select option {
  background: var(--deep-slate);
  color: var(--warm-white);
}

.form__textarea {
  min-height: 100px;
  resize: vertical;
}

.form__submit {
  margin-top: var(--space-xs);
}

/* Light form variant (for light backgrounds) */
.form--light .form__label {
  color: var(--graphite);
}

.form--light .form__input,
.form--light .form__select,
.form--light .form__textarea {
  background: var(--white);
  border-color: rgba(156, 163, 168, 0.3);
  color: var(--graphite);
}

.form--light .form__input::placeholder {
  color: var(--stone);
}

.form--light .form__input:focus,
.form--light .form__select:focus,
.form--light .form__textarea:focus {
  border-color: var(--burnished-gold);
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid rgba(156, 163, 168, 0.2);
  padding: var(--space-md) 0;
}

.faq-item:first-child {
  border-top: 1px solid rgba(156, 163, 168, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--deep-slate);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  gap: var(--space-sm);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--burnished-gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}

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

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

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: var(--space-sm);
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--graphite);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background-color: var(--deep-slate);
  color: rgba(248, 246, 242, 0.6);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 800px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

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

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__brand .logo__name {
  font-size: 1.125rem;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(248, 246, 242, 0.5);
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-white);
  margin-bottom: var(--space-sm);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: rgba(248, 246, 242, 0.55);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--burnished-gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  color: rgba(248, 246, 242, 0.4);
  transition: color var(--transition);
}

.footer__social a:hover {
  color: var(--burnished-gold);
}

/* --- Content Pages --- */
.content-section {
  padding: var(--space-xl) 0;
}

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

.content-section ul {
  padding-left: 1.25rem;
  margin-bottom: var(--space-md);
}

.content-section li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.content-section li::marker {
  color: var(--burnished-gold);
}

/* Inline CTA banner */
.inline-cta {
  background: var(--light-warm);
  border-left: 3px solid var(--burnished-gold);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.inline-cta h3 {
  margin-bottom: 0.5rem;
}

.inline-cta p {
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

/* --- Case Study --- */
.case-study {
  background: var(--white);
  border: 1px solid rgba(156, 163, 168, 0.15);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.case-study__meta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.case-study__badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
  background: var(--light-warm);
  color: var(--deep-slate);
}

.case-study h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
}

.case-study__detail {
  margin-bottom: var(--space-sm);
}

.case-study__detail strong {
  color: var(--deep-slate);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.case-study__detail p {
  font-size: 0.9375rem;
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--deep-slate);
  color: var(--warm-white);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--burnished-gold);
  color: var(--deep-slate);
}

/* --- Blog Content Styles --- */
.blog-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--graphite);
}

.blog-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  color: var(--deep-slate);
}

.blog-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
  color: var(--deep-slate);
}

.blog-content p {
  margin-bottom: var(--space-md);
}

.blog-content ul,
.blog-content ol {
  margin-bottom: var(--space-md);
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: var(--space-md) 0;
}

.blog-content blockquote {
  border-left: 3px solid var(--burnished-gold);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-lg) 0;
  background: var(--light-warm);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
}

.blog-content a {
  color: var(--deep-teal);
  text-decoration: underline;
}

.blog-content a:hover {
  color: var(--burnished-gold);
}

/* WordPress pagination */
.nav-links {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  border: 1px solid rgba(156,163,168,0.3);
  border-radius: var(--border-radius);
  font-size: 0.9375rem;
  color: var(--graphite);
  text-decoration: none;
  transition: all var(--transition);
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background: var(--deep-slate);
  color: var(--warm-white);
  border-color: var(--deep-slate);
}

/* WordPress screen-reader-text (accessibility) */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
