/**
 * Ascent block styles.
 * Styles editor-built page sections so they match the original design.
 * Each section in the editor carries one of these class names
 * (Block settings → Advanced → Additional CSS class).
 */

/* ---------- Shared ---------- */
[class*="as-"] > .wp-block-group__inner-container { display: contents; }
.as-wrap { max-width: 1280px; margin: 0 auto; }
/* Match the original design's box model (core sets border-box on groups). */
.wp-block-group.as-wrap, .wp-block-group.as-hero-grid, .wp-block-group.as-cta-inner { box-sizing: content-box; }
.as-pad { padding: 96px 32px; }
.as-section { position: relative; }
.as-bg-white { background: #FFFFFF; }
.as-bg-mint { background: #F5F8F7; }
.as-bg-navy { background: #0B1D33; }

.as-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #1F8A70; margin: 0 0 14px;
}
.as-section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
h2.wp-block-heading.as-h2 { font-size: 36px; font-weight: 800; color: #0B1D33; line-height: 1.2; margin: 0; }
.as-grid-2, .as-grid-3, .as-grid-5 { display: grid; }
.as-grid-2 { grid-template-columns: 1fr 1fr; gap: 28px; }
.as-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.as-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 24px; }

/* Photos (Image block with class as-photo) */
.wp-block-image.as-photo { margin: 0; position: relative; width: 100%; overflow: hidden; background: #F5F8F7; border-radius: 20px; height: 420px; }
.wp-block-image.as-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Buttons */
.wp-block-buttons.as-btns { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.wp-block-button .wp-block-button__link { font-family: 'Inter', sans-serif; }
.as-btn-primary .wp-block-button__link,
.as-btn-primary .wp-block-button__link:hover {
  background: linear-gradient(100deg, #1F8A70, #2FBF8F); color: #FFFFFF; font-weight: 600; font-size: 16px;
  padding: 16px 30px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 28px rgba(47,191,143,0.3); line-height: normal;
}
.as-btn-outline .wp-block-button__link,
.as-btn-outline .wp-block-button__link:hover {
  background: #FFFFFF; color: #0B1D33; font-weight: 600; font-size: 16px; padding: 16px 30px; border-radius: 999px;
  text-decoration: none; border: 1.5px solid #DDE4E1; line-height: normal;
}
.as-btn-white .wp-block-button__link,
.as-btn-white .wp-block-button__link:hover {
  display: inline-block; background: #FFFFFF; color: #0B1D33; font-weight: 700; font-size: 16px; padding: 17px 34px;
  border-radius: 999px; text-decoration: none; line-height: normal;
}

/* ---------- Hero ---------- */
.as-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F5F8F7 0%, #FFFFFF 100%); }
.as-hero::before {
  content: ""; position: absolute; top: -120px; right: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,191,143,0.16), rgba(47,191,143,0) 70%); pointer-events: none;
}
.as-hero-grid {
  padding: 88px 32px 96px; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center; position: relative;
}
.as-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(31,138,112,0.09); color: #1F8A70;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 8px 16px;
  border-radius: 999px; margin: 0 0 24px;
}
h1.wp-block-heading.as-h1 { font-size: 52px; line-height: 1.08; font-weight: 800; color: #0B1D33; letter-spacing: -0.01em; max-width: 620px; margin: 0; }
.as-lead { font-size: 18px; line-height: 1.65; color: #4B5A68; max-width: 560px; margin: 24px 0 18px; }

/* ---------- Value strip (navy) ---------- */
.as-value-grid { padding: 52.8px 32px; }
.as-icon-card::before {
  content: ""; display: flex; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background-repeat: no-repeat; background-position: center; background-size: 20px 20px, cover;
}
.as-icon-star::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M10 1L12 7L18 8L13.5 12L15 18L10 15L5 18L6.5 12L2 8L8 7L10 1Z' fill='%23FFFFFF'/%3E%3C/svg%3E"), linear-gradient(135deg, #1F8A70, #2FBF8F); }
.as-icon-box::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Crect x='2' y='7' width='16' height='11' rx='1.5' stroke='%23FFFFFF' stroke-width='1.6'/%3E%3Cpath d='M2 7L10 2L18 7' stroke='%23FFFFFF' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(135deg, #1F8A70, #2FBF8F); }
.as-icon-lines::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 4H17M3 10H17M3 16H12' stroke='%23FFFFFF' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"), linear-gradient(135deg, #1F8A70, #2FBF8F); }
.as-value-grid h3 { color: #FFFFFF; font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.as-value-grid p { color: #9FB0BE; font-size: 15px; line-height: 1.6; margin: 0; }

/* ---------- Numbered steps ---------- */
.as-steps { counter-reset: as-step; }
.as-step { background: #F5F8F7; border-radius: 16px; padding: 36px 30px; counter-increment: as-step; }
.as-step::before {
  content: counter(as-step); font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 800; color: #FFFFFF;
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; background: #0B1D33;
}
.as-step.as-step-accent::before { background: linear-gradient(135deg, #1F8A70, #2FBF8F); }
.as-step h3 { font-size: 19px; font-weight: 700; color: #0B1D33; margin: 0 0 10px; }
.as-step p { font-size: 15px; line-height: 1.65; color: #4B5A68; margin: 0; }
.as-more { text-align: center; margin: 44px 0 0; }
.as-more a, .as-more a:hover { color: #1F8A70; font-weight: 600; font-size: 16px; text-decoration: none; }

/* ---------- White cards ---------- */
.as-card { background: #FFFFFF; border-radius: 16px; padding: 36px; border: 1px solid #E7ECEA; }
.as-card h3 { font-size: 18px; font-weight: 700; color: #0B1D33; margin: 0 0 10px; }
.as-card p { font-size: 15px; line-height: 1.65; color: #4B5A68; margin: 0; }

/* ---------- Specialty link cards ---------- */
.as-spec-card { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid #E7ECEA; }
.as-spec-card .wp-block-image.as-photo { height: 150px; border-radius: 0; }
.as-spec-body { padding: 22px; }
.as-spec-card h3 { font-size: 17px; font-weight: 700; color: #0B1D33; margin: 0 0 8px; }
.as-spec-card h3 a, .as-spec-card h3 a:hover { color: #0B1D33; text-decoration: none; }
.as-spec-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.as-spec-card p { font-size: 14px; line-height: 1.6; color: #4B5A68; margin: 0; }

/* ---------- Closing CTA ---------- */
.as-cta { background: linear-gradient(110deg, #0B1D33 0%, #12513F 60%, #1F8A70 100%); position: relative; overflow: hidden; }
.as-cta::before {
  content: ""; position: absolute; bottom: -140px; left: -100px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,191,143,0.22), rgba(47,191,143,0) 70%); pointer-events: none;
}
.as-cta-inner { padding: 88px 32px; max-width: 800px; margin: 0 auto; text-align: center; position: relative; }
.as-cta h2.as-h2 { font-size: 34px; color: #FFFFFF; line-height: 1.25; margin: 0 0 18px; }
.as-cta p { font-size: 17px; line-height: 1.65; color: #CBD8D3; max-width: 560px; margin: 0 auto 32px; }
.as-cta .wp-block-buttons { justify-content: center; }

/* ---------- Responsive (mirrors style.css) ---------- */
@media (max-width: 900px) {
  h1.as-h1 { font-size: 38px; }
  h2.as-h2, .as-cta h2.as-h2 { font-size: 28px; }
}

/* ==========================================================
   Specialty pages (Orthopedics, Vascular, Dermatology, Podiatry, Wound Care)
   ========================================================== */
.as-sp-hero { background: linear-gradient(180deg, #F5F8F7 0%, #FFFFFF 100%); }
.wp-block-group.as-hero-grid.as-sp-grid { padding: 76px 32px 64px; gap: 48px; }
.as-sp-hero .as-pill { margin-bottom: 22px; }
.as-sp-hero h1.as-h1 { max-width: none; }
h1.as-h1.as-h1-42 { font-size: 42px; line-height: 1.14; }
h1.as-h1.as-h1-40 { font-size: 40px; line-height: 1.16; }
h1.as-h1.as-h1-38 { font-size: 38px; line-height: 1.18; }
.as-sp-hero .as-lead { font-size: 17px; max-width: none; margin: 22px 0 17px; }
.as-sp-hero .wp-block-buttons.as-btns { margin-top: 32px; }
.as-sp-hero .as-btn-primary .wp-block-button__link,
.as-sp-hero .as-btn-primary .wp-block-button__link:hover { font-size: 15.5px; padding: 15px 28px; box-shadow: 0 10px 24px rgba(47,191,143,0.28); }
.as-sp-hero .as-btn-outline .wp-block-button__link,
.as-sp-hero .as-btn-outline .wp-block-button__link:hover { font-size: 15.5px; padding: 15px 28px; }
.as-sp-hero .wp-block-image.as-photo { height: 360px; }
.wp-block-image.as-photo.as-photo-derm img { object-position: 0% 50%; transform: scale(1.288); transform-origin: 0% 50%; }
.wp-block-image.as-photo.as-photo-wc img { object-position: 50% 53%; }

/* Body copy column */
.wp-block-group.as-prose { max-width: 800px; margin: 0 auto; padding: 0 32px 48px; box-sizing: content-box; }
.wp-block-group.as-prose.as-prose-first { padding-top: 16px; }
.wp-block-group.as-prose.as-prose-last { padding-bottom: 88px; }
.as-prose h2 { font-size: 24px; font-weight: 700; color: #0B1D33; margin: 0 0 14px; }
.as-prose p { font-size: 16px; line-height: 1.75; color: #4B5A68; margin: 0; }
.as-keeps { background: #F5F8F7; border-radius: 18px; padding: 36px; }
.as-prose .as-keeps h2 { font-size: 22px; }

/* Button-only CTA band */
.as-cta.as-cta-plain::before { display: none; }
.wp-block-group.as-cta-inner.as-cta-sm { max-width: 640px; padding: 72px 32px; }

/* ==========================================================
   Centered page hero (How It Works, About)
   ========================================================== */
.as-page-hero { background: linear-gradient(180deg, #F5F8F7 0%, #FFFFFF 100%); }
.wp-block-group.as-center-hero { max-width: 840px; margin: 0 auto; padding: 80px 32px 56px; text-align: center; box-sizing: content-box; }
.wp-block-group.as-center-hero.as-center-hero-tight { padding-bottom: 40px; }
.as-center-hero .as-eyebrow { margin-bottom: 16px; }
.as-center-hero h1.as-h1 { max-width: none; }
h1.as-h1.as-h1-46 { font-size: 46px; line-height: 1.12; }
h1.as-h1.as-h1-44 { font-size: 44px; line-height: 1.14; }
.as-center-hero .as-lead { max-width: none; margin: 22px 0 18px; }

/* Model box / bottom-padding variants for the prose column */
.wp-block-group.as-prose.as-prose-pb64 { padding-bottom: 64px; }
.as-keeps.as-keeps-40 { padding: 40px; }

/* Vertical numbered steps (How It Works) */
.wp-block-group.as-prose.as-hsteps { padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; counter-reset: as-hstep; }
.as-hstep { display: flex; gap: 24px; counter-increment: as-hstep; }
.as-hstep::before {
  content: counter(as-hstep); font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 15px; color: #FFFFFF;
  background: #0B1D33; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none;
}
.as-hstep.as-step-accent::before { background: linear-gradient(135deg, #1F8A70, #2FBF8F); }
.as-hstep h2 { font-size: 22px; margin-bottom: 10px; }

/* "What you keep" band */
.wp-block-group.as-keep-band { max-width: 800px; margin: 0 auto; padding: 72px 32px; text-align: center; box-sizing: content-box; }
.as-keep-band h2 { font-size: 28px; font-weight: 800; color: #0B1D33; margin: 0 0 16px; }
.as-keep-band p { font-size: 17px; line-height: 1.75; color: #4B5A68; margin: 0 auto; }

/* ==========================================================
   Contact page intro (left column; the form stays in the theme)
   ========================================================== */
.as-contact-intro h1.as-h1 { max-width: none; }
.as-contact-intro .as-lead { font-size: 17px; max-width: 420px; margin: 20px 0 17px; }
.as-contact-alt { margin-top: 36px; padding-top: 28px; border-top: 1px solid #E7ECEA; }
.as-contact-alt .as-eyebrow { letter-spacing: 0.08em; margin-bottom: 12px; }
.as-contact-link { margin: 0 0 6px; }
.as-contact-link:last-child { margin-bottom: 0; }
.as-contact-link a, .as-contact-link a:hover { display: block; font-size: 16px; font-weight: 600; color: #0B1D33; text-decoration: none; }
.as-prose .as-keeps.as-keeps-40 h2 { font-size: 24px; }
