/*
Theme Name: Stephanie Ramsay Modern
Theme URI: https://stephanieramsay.com
Author: Stephanie Ramsay
Description: WordPress-native block theme for Stephanie Ramsay's healthcare product portfolio.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: stephanie-ramsay-modern
*/

:root {
  --sr-ink: #071724;
  --sr-navy: #0c3046;
  --sr-slate: #445264;
  --sr-muted: #6b7685;
  --sr-line: #d8e1e7;
  --sr-mist: #e8f5f1;
  --sr-mint: #d7ebe5;
  --sr-blush: #f7e7e1;
  --sr-paper: #fbfaf7;
  --sr-white: #ffffff;
  --sr-gold: #b9823f;
  --sr-shadow: 0 24px 70px rgba(7, 23, 36, 0.12);
  --sr-soft-shadow: 0 18px 45px rgba(7, 23, 36, 0.08);
  --sr-radius-xl: 28px;
  --sr-radius-lg: 22px;
  --sr-radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 235, 229, 0.76), transparent 31rem),
    radial-gradient(circle at 88% 8%, rgba(247, 231, 225, 0.86), transparent 31rem),
    linear-gradient(135deg, #f6f8f7 0%, #eef4f2 44%, #f8f1ec 100%);
  min-height: 100vh;
}

a {
  text-underline-offset: 0.18em;
}

.wp-site-blocks {
  min-height: 100vh;
}

.sr-site-header {
  padding: 28px 0 8px;
}

.sr-header-inner,
.sr-footer-inner {
  width: min(1180px, calc(100% - 40px));
}

.sr-header-inner {
  border: 1px solid rgba(12, 48, 70, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 44px rgba(7, 23, 36, 0.08);
  backdrop-filter: blur(18px);
  padding: 12px 14px 12px 20px;
}

.wp-block-site-title {
  white-space: nowrap;
}

.wp-block-site-title a {
  text-decoration: none;
}

.sr-header-inner .wp-block-navigation {
  gap: 8px;
}

.sr-header-inner .wp-block-navigation-item__content {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--sr-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sr-header-inner .wp-block-navigation-item__content:hover,
.sr-header-inner .wp-block-navigation-item__content:focus {
  border-color: rgba(12, 48, 70, 0.14);
  background: rgba(232, 245, 241, 0.86);
}

.sr-home-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 56px;
}

.sr-work-index-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 56px;
}

.sr-hero-card,
.sr-panel,
.is-style-sr-panel,
.sr-page-card,
.sr-post-card {
  border: 1px solid rgba(12, 48, 70, 0.12);
  border-radius: var(--sr-radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--sr-shadow);
  backdrop-filter: blur(18px);
}

.sr-hero-card {
  padding: clamp(28px, 5vw, 52px);
}

.sr-panel,
.is-style-sr-panel,
.sr-page-card,
.sr-post-card {
  padding: clamp(28px, 4vw, 46px);
}

.sr-eyebrow,
.is-style-sr-eyebrow {
  margin: 0 0 10px;
  color: var(--sr-gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sr-display-heading,
.is-style-sr-display {
  margin-top: 0;
  color: var(--sr-ink);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

.sr-section-heading {
  color: var(--sr-ink);
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.sr-lede {
  color: var(--sr-navy);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 760;
  line-height: 1.2;
}

.sr-muted {
  color: var(--sr-slate);
}

.sr-headshot img {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 0.75;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(7, 23, 36, 0.16);
}

.sr-hero-card > .wp-block-columns,
.sr-panel > .sr-work-grid,
.sr-panel > .sr-testimonial-grid,
.sr-panel > .wp-block-columns,
.sr-soft-band > .wp-block-columns {
  max-width: none !important;
}

.sr-hero-actions {
  gap: 10px;
}

.wp-block-button__link,
.is-style-sr-pill .wp-block-button__link {
  border: 1px solid rgba(12, 48, 70, 0.14);
  border-radius: 999px;
  padding: 11px 16px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  transform: translateY(-1px);
}

.is-style-outline > .wp-block-button__link {
  background: rgba(255, 255, 255, 0.7);
  color: var(--sr-navy);
}

.sr-metric-grid,
.sr-work-grid,
.sr-strength-grid,
.sr-testimonial-grid,
.sr-post-grid {
  display: grid;
  align-items: stretch;
  gap: 14px;
}

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

.sr-work-grid,
.sr-testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sr-strength-grid,
.sr-post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sr-metric-card,
.sr-work-card,
.sr-strength-card,
.sr-testimonial-card,
.sr-mini-card,
.is-style-sr-card {
  border: 1px solid rgba(12, 48, 70, 0.12);
  border-radius: var(--sr-radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--sr-soft-shadow);
  padding: 22px;
}

.sr-metric-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 245, 241, 0.7));
}

.sr-metric-number {
  margin: 0;
  color: var(--sr-navy);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 850;
  line-height: 0.95;
}

.sr-metric-label {
  margin: 8px 0 0;
  color: var(--sr-slate);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.18;
}

.sr-work-card,
.sr-strength-card {
  display: flex;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.sr-testimonial-card {
  display: flex;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.sr-testimonial-card > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.sr-testimonial-card .wp-block-image,
.sr-testimonial-card figure {
  display: none !important;
}

.sr-testimonial-card p {
  text-align: left;
}

.sr-testimonial-card .sr-muted {
  margin-top: 18px !important;
}

.sr-metric-grid > *,
.sr-work-grid > *,
.sr-strength-grid > *,
.sr-testimonial-grid > *,
.sr-post-grid > *,
.sr-latest-posts > *,
.sr-blog-query .wp-block-post-template > * {
  height: 100%;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.sr-work-card h2,
.sr-work-card h3,
.sr-strength-card h3,
.sr-testimonial-card h3 {
  margin-top: 0;
  color: var(--sr-navy);
}

.sr-work-card p,
.sr-strength-card p,
.sr-testimonial-card p {
  color: var(--sr-slate);
}

.sr-work-card:nth-child(2n),
.sr-mini-card:nth-child(2n) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 231, 225, 0.52));
}

.sr-soft-band,
.is-style-sr-soft-band {
  width: 100%;
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid rgba(12, 48, 70, 0.1);
  border-radius: var(--sr-radius-xl);
  background:
    linear-gradient(120deg, rgba(232, 245, 241, 0.94), rgba(247, 231, 225, 0.68));
}

.sr-link-list {
  padding-left: 0;
  list-style: none;
}

.sr-link-list li {
  border-bottom: 1px solid rgba(12, 48, 70, 0.12);
  padding: 12px 0;
}

.sr-link-list a {
  color: var(--sr-navy);
  font-weight: 780;
  text-decoration: none;
}

.sr-latest-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding-left: 0;
  list-style: none;
}

.sr-latest-posts li {
  margin: 0;
  border: 1px solid rgba(12, 48, 70, 0.12);
  border-radius: var(--sr-radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.sr-latest-posts a {
  color: var(--sr-navy);
  font-weight: 780;
  text-decoration: none;
}

.sr-latest-posts time {
  display: block;
  margin-top: 6px;
  color: var(--sr-muted);
  font-size: 12px;
}

.sr-page-shell,
.sr-blog-shell,
.sr-single-shell {
  width: min(980px, calc(100% - 40px));
  margin: 26px auto 56px;
}

.sr-blog-shell {
  width: min(1180px, calc(100% - 40px));
}

.sr-blog-shell > .sr-panel {
  width: 100%;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sr-blog-shell > .sr-blog-query {
  max-width: 1180px !important;
  margin-top: 28px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sr-work-index-shell > .sr-panel,
.sr-work-index-shell > .sr-work-grid,
.sr-work-index-shell > .wp-block-post-content,
.sr-work-index-shell > .wp-block-post-content > .sr-panel,
.sr-work-index-shell > .wp-block-post-content > .sr-work-grid {
  width: 100%;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.sr-work-index-shell > .sr-work-grid,
.sr-work-index-shell > .wp-block-post-content > .sr-work-grid {
  margin-top: 28px;
}

.sr-page-card > .wp-block-post-title,
.sr-single-shell .wp-block-post-title {
  margin-top: 0;
}

.sr-page-card .wp-block-post-content,
.sr-single-shell .wp-block-post-content {
  color: var(--sr-ink);
}

.sr-page-card .wp-block-post-content > * + *,
.sr-single-shell .wp-block-post-content > * + * {
  margin-block-start: 1.05rem;
}

.sr-post-meta {
  margin-top: 12px;
  margin-bottom: 32px;
}

.sr-post-meta > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.sr-post-meta .wp-block-post-date {
  margin: 0 !important;
}

.sr-single-shell > .sr-post-card > .wp-block-post-featured-image {
  display: none !important;
}

.sr-reading-time {
  margin: 6px 0 0 !important;
  color: var(--sr-muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.sr-page-card .wp-block-post-content .wp-block-button,
.sr-single-shell .wp-block-post-content .wp-block-button {
  margin-top: 1rem;
}

.sr-blog-query .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  max-width: none !important;
  padding-left: 0;
  list-style: none;
}

.sr-blog-query .wp-block-post {
  display: flex;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  border: 1px solid rgba(12, 48, 70, 0.12);
  border-radius: var(--sr-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--sr-soft-shadow);
  overflow: hidden;
}

.sr-blog-query .wp-block-post:not(:has(.wp-block-post-featured-image))::before {
  content: "";
  display: block;
  flex: 0 0 58%;
  background:
    radial-gradient(circle at 28% 30%, rgba(215, 235, 229, 0.88), transparent 8rem),
    radial-gradient(circle at 78% 22%, rgba(247, 231, 225, 0.84), transparent 8rem),
    linear-gradient(135deg, rgba(232, 245, 241, 0.88), rgba(255, 255, 255, 0.58));
}

.sr-blog-query .wp-block-post > .wp-block-group {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 14px 18px 18px;
  overflow: hidden;
}

.sr-blog-query .wp-block-post-featured-image {
  display: flex;
  flex: 0 0 58%;
  align-items: center;
  justify-content: center;
  margin: 0;
  background:
    radial-gradient(circle at 28% 30%, rgba(215, 235, 229, 0.88), transparent 8rem),
    radial-gradient(circle at 78% 22%, rgba(247, 231, 225, 0.84), transparent 8rem),
    linear-gradient(135deg, rgba(232, 245, 241, 0.88), rgba(255, 255, 255, 0.58));
  overflow: hidden;
}

.sr-blog-query .wp-block-post-featured-image a {
  display: block;
  height: 100%;
}

.sr-blog-query .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
}

.sr-blog-query .wp-block-post-date {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.2;
}

.sr-blog-query .wp-block-post-title {
  margin: 0;
  text-align: center;
}

.sr-blog-query .wp-block-post-title a {
  color: var(--sr-navy);
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(17px, 1.12vw, 21px);
  font-weight: 500;
  line-height: 1.12;
  text-decoration: none;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.sr-blog-query .wp-block-post-excerpt {
  display: none;
}

.sr-footer {
  padding: 10px 0 42px;
}

.sr-footer-inner {
  border: 1px solid rgba(12, 48, 70, 0.12);
  border-radius: var(--sr-radius-xl);
  background: rgba(12, 48, 70, 0.94);
  box-shadow: var(--sr-shadow);
  padding: clamp(28px, 4vw, 42px);
}

.sr-footer-inner,
.sr-footer-inner p,
.sr-footer-inner a,
.sr-footer-inner h2 {
  color: #ffffff;
}

.sr-footer-inner .sr-eyebrow {
  color: var(--sr-gold);
}

.sr-footer-inner a {
  text-decoration: none;
}

.sr-footer-inner .wp-block-social-links {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .sr-header-inner {
    align-items: flex-start;
    border-radius: 24px;
  }

  .sr-metric-grid,
  .sr-work-grid,
  .sr-strength-grid,
  .sr-testimonial-grid,
  .sr-post-grid,
  .sr-latest-posts,
  .sr-blog-query .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .sr-hero-card,
  .sr-panel,
  .is-style-sr-panel,
  .sr-page-card,
  .sr-post-card,
  .sr-soft-band,
  .is-style-sr-soft-band {
    border-radius: 22px;
  }
}

@media (max-width: 600px) {
  .sr-header-inner,
  .sr-footer-inner,
  .sr-home-shell,
  .sr-work-index-shell,
  .sr-page-shell,
  .sr-blog-shell,
  .sr-single-shell {
    width: min(100% - 24px, 1180px);
  }

  .sr-hero-card,
  .sr-panel,
  .is-style-sr-panel,
  .sr-page-card,
  .sr-post-card,
  .sr-soft-band,
  .is-style-sr-soft-band {
    padding: 22px;
  }
}
