/* 47-clinical.css */
/* Calm clinical: the redesign's look, from concept A ("Calm clinical") on the design canvas: Inter for the words,
   Poppins for titles, navy titles and black words on white and soft blue (as the hire section's, James: "make sure
   other text colors are like the hire dedicated va section"), one teal for actions; teal gradient icons on the
   feature cards (as the "Why More Eye Doctors" icons), line icons on the role cards.
   Width and type sizes are the site's own (the .container width and --t-h2, --t-h3, --t-lede, --t-body); all spacing
   and every text width follow the spacing standard (Hello Rache's, the --sp- and --measure- tokens in 01-tokens.css).
   On the home page: "EyeCareWorks VA for Optometry & Ophthalmology", the services, "Why More Eye Doctors Choose
   EyeCareWorks" (the reasons) and "Why EyeCareWorks"; any page can use it with  styles: clinical. */

/* Sections */
.clin { padding-block: var(--sp-section); background: var(--white); font-family: var(--f-ui); font-size: var(--t-body); line-height: var(--lh-body); color: var(--ink); }  /* the words black, as the hire section's */
.clin--fill { background: var(--clin-fill); }  /* James's gray: the VA section, its boxes white */

/* Section heads: our own type and colors (Poppins titles in navy, words in black), sized and as wide as Hello
   Rache's ("Virtual Assistant Services for Modern Medical Practices"): the title 40px at every width at 1.18, its words
   16px at 1.47; under a centered title as wide as theirs (--measure-head, --measure-intro), the title wrapping as
   theirs (each line as full as it can be, never one word alone on the last). Gaps: the title to its words --sp-title, the head to its cards
   --sp-intro. Other words stop at about 70 characters a line and never leave a word alone on their last line. */
.clin-h2 { max-width: var(--measure-title); font-size: var(--t-head); line-height: 1.176; letter-spacing: var(--track-head); color: var(--navy); text-wrap: balance; }
.clin-card__title, .clin-role__title, .clin-point__title { font-size: var(--t-h3); line-height: 1.35; letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.clin-point__title { font-family: var(--f-display); font-weight: 600; }
.clin p { max-width: var(--measure-text); text-wrap: pretty; }
.clin-center-head > p, .clin-why__body > p { font-size: 16px; line-height: 1.467; }
.clin-center-head > p { max-width: var(--measure-intro); }
.clin p.clin-point__text { text-wrap: balance; }  /* two to four even lines, no word left alone */

/* A section head: the title, then its words under it (never side by side), centered, then the content it heads */
.clin-features, .clin-services, .clin-compare { display: flex; flex-direction: column; gap: var(--sp-intro); }
.clin-compare { gap: var(--sp-head); }  /* a title alone */
.clin-center-head { display: flex; flex-direction: column; align-items: center; gap: var(--sp-title); text-align: center; }
.clin-center-head > .clin-h2, .clin-compare > .clin-h2 { max-width: var(--measure-head); text-wrap: pretty; }  /* a centered title as wide as Hello Rache's */

/* Features: four boxes, two a row (each at least --measure-card, so its words keep 30+ characters a line), one on
   phones; white boxes on the section's gray (the services the other way round), shaped as the services' (20px
   corners, no border, 32px inside), each opening with its line icon in the color of its words, a little more
   detailed and bigger than the services' (44px) */
.clin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--measure-card), (100% - var(--sp-grid)) / 2)), 1fr)); gap: var(--sp-grid); }
.clin-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border-radius: var(--radius-lg); background: var(--white); }
.clin-card__icon { display: flex; margin-bottom: var(--sp-title); }
.clin-card__icon svg { display: block; width: 80px; height: 80px; overflow: visible; }  /* the duotone box icons draw their own colors and lines */
@media (max-width: 767px) { .clin-card__icon svg { width: 72px; height: 72px; } }
.clin-card__title + p { margin-top: var(--sp-card-title); }

/* Services: a centered head, then the three roles: three a row from 1140px (each card's words 30+ characters a line),
   one a row below (on tablets the title beside its words, so no line runs long); each box in the gray James chose,
   with 20px corners and no border, a little roomier inside than other cards (32px), opening with its line icon alone
   (no tile), in the color of its words; a shade deeper under the pointer */
.clin-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-grid); }
.clin-role { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); background: var(--clin-fill); color: var(--ink); transition: background-color .2s; }
.clin-role:hover { background: var(--clin-fill-hover); color: var(--ink); }
.clin-role__top { display: flex; margin-bottom: var(--sp-title); }
.clin-role__top svg { display: block; width: 72px; height: 72px; overflow: visible; }  /* the service tiles draw their own colors, lines and shadow */
@media (max-width: 767px) { .clin-role__top svg { width: 64px; height: 64px; } }
.clin-role__text { flex: 1 1 auto; margin-top: var(--sp-card-title); }
.clin-role__go { margin-top: var(--sp-title); font-size: 15px; font-weight: 600; color: var(--teal-text); }

/* Reasons ("Why More Eye Doctors Choose EyeCareWorks"): the words and the call on the left, the picture (on a clear
   background) on the right, then the six reasons in rows, three, two or one a row (never one left alone); the call is
   the hero's (btn--lift) with the fine print under it, as in the hero */
.clin-reasons { display: flex; flex-direction: column; gap: var(--sp-block); }
.clin-why { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-head) var(--sp-block); }
.clin-why__body { display: flex; flex: 1 1 440px; flex-direction: column; align-items: flex-start; min-width: 0; }
.clin-why__body > .clin-h2 + p { margin-top: var(--sp-title); }
.clin-why__media { display: flex; flex: 1 1 380px; justify-content: center; min-width: 0; }
.clin-why__media img { width: 100%; max-width: 507px; }
.clin-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: var(--sp-action); }
.clin-fine { font-size: 14px; line-height: 1.6; color: var(--slate); }
.clin-cta--center { align-self: center; align-items: center; margin-top: 0; text-align: center; }  /* under the VA boxes, the section's own gap above it */
.clin-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(356px, 100%), 1fr)); column-gap: var(--sp-grid); }  /* 300px of words beside the 40px icon and its 16px gap */
.clin-point { display: flex; align-items: flex-start; gap: 16px; padding-block: var(--sp-card); border-top: 1px solid var(--line); }
.clin-point > div { min-width: 0; }
.clin-point__title + p { margin-top: var(--sp-card-title); }

/* The reasons' teal icons (the Webflow staging site's): each part takes its color from its class; the two gradients
   (#ecwg, #ecwl) sit in the section, in .clin-defs */
.clin-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.clin-glyph { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; }  /* James: bigger */
.clin-glyph svg { width: 100%; height: 100%; overflow: visible; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) { .clin-glyph { width: 36px; height: 36px; } }
.clin-glyph .l { fill: url(#ecwl); stroke: url(#ecwl); stroke-width: 1.3; }
.clin-glyph .g { fill: url(#ecwg); stroke: url(#ecwg); stroke-width: 1.3; }
.clin-glyph .w { fill: var(--white); stroke: var(--white); stroke-width: .5; }
.clin-glyph .s { fill: none; stroke: var(--white); stroke-width: 1.8; }
.clin-glyph .d { fill: none; stroke: var(--icon-deep); stroke-width: 1.8; }
.clin-glyph .b { fill: none; stroke: var(--icon-light); stroke-width: 1.6; }
.clin-glyph .dx { fill: var(--icon-deep); }

/* Us and them: the live site's two boxes, ours and theirs, each with its own list, marked with a check or an x in a
   circle, both raised off the white by the same layered shadow (--shadow-raise); side by side from 768px, one under
   the other on phones */
.clin-compare { align-items: center; }
.clin-compare .clin-h2 { text-align: center; }
.clin-compare:has(> .clin-center-head) { gap: var(--sp-intro); }  /* a title with its words, as the other heads */
.clin-compare > .clin-center-head { align-self: stretch; }  /* full width (it centers its own words); a size container on phones */
.clin-link { color: var(--teal-text); font-weight: 500; }  /* a link in the words: our deep teal, underlined under the pointer */
@media (hover: hover) { .clin-link:hover { text-decoration-line: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; } }
.clin-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-grid); width: 100%; }
.clin-vs__card { padding: var(--sp-card) var(--sp-card) calc(var(--sp-card) - 14px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-raise); }
.clin-vs__h { margin-bottom: 6px; font-family: var(--f-display); font-size: 14px; font-weight: 600; line-height: var(--lh-base); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-text); }
.clin-vs__card--them .clin-vs__h { color: var(--mist); }
.clin-vs__list { margin: 0; padding: 0; list-style: none; }
.clin-vs__list li { display: flex; align-items: flex-start; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); font-family: var(--f-display); font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--ink); text-wrap: balance; }
.clin-mark { display: flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; }
.clin-mark svg { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.clin-mark--yes { background: var(--teal-hover); color: var(--white); }
.clin-mark--yes svg { width: 14px; height: 14px; }
.clin-mark--no { border: 1.5px solid var(--clin-muted); color: var(--clin-muted); }
.clin-mark--no svg { width: 12px; height: 12px; }

@media (min-width: 768px) and (max-width: 1139px) {
  /* one role a row: the label and icon across the top, then the title beside its words (both starting at the same height) */
  .clin-role { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--sp-block); }
  .clin-role__top { grid-column: 1 / -1; }
  .clin-role__title { grid-area: 2 / 1; }
  .clin-role__text { grid-area: 2 / 2; margin-top: 0; }
  .clin-role__go { grid-area: 3 / 2; }
}
@media (max-width: 1139px) {
  .clin-roles { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .clin-card__title, .clin-role__title, .clin-point__title { font-size: 19px; }  /* as the live cards on phones */
  .clin-vs { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  /* phones: each reason's icon beside its title, its words under both at full width (30+ characters a line); the
     call full width with its fine print centered under it, as in the hero */
  .clin-point { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 14px; }
  .clin-point > div { display: contents; }
  .clin-point__title + p { grid-column: 1 / -1; }
  .clin-cta { align-self: stretch; align-items: stretch; text-align: center; }
  .clin-vs__list li { font-size: 14.5px; }
}
