/* Eitic Healthcare Compliance Solutions: site styles. Built to the client's element-by-element direction: no decorative lines, fixed top bar, minimal hover motion, bios on hover. */

@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --prussian: #002b44; --prussian-deep: #001f33; --green: #2da546; --green-deep: #1f7a33; --apricot: #f4b271; --pink: #f4877a;
  --white: #fff; --grey: #f3f5f7; --ink: #14212b; --ink-2: #44525d; --ink-3: #5e6b75;
  --head: "Work Sans", "DM Sans", sans-serif; --body: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --motion: 180ms ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--apricot); color: var(--prussian); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; line-height: 1.2; letter-spacing: -0.01em; color: var(--prussian); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.125rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding-left: 1.25rem; }
a { color: var(--prussian); text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--prussian); color: #fff; padding: 0.6rem 1rem; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 480px) { br.desk { display: none; } }

/* Buttons: one rounded style; grow and turn apricot on hover */
.button { display: inline-block; font: 700 0.9375rem/1 var(--body); color: var(--prussian); background: var(--green); border: 0; padding: 0.9rem 1.5rem; border-radius: 999px; text-decoration: none; cursor: pointer; transition: transform var(--motion), background-color var(--motion); }
.button:hover, .button:focus-visible { background: var(--apricot); color: var(--prussian); transform: scale(1.05); }
.button[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.button[disabled]:hover { background: var(--green); transform: none; }

/* Top bar: fixed, wordmark left linking home, bold links right */
:root { --bar-h: 5rem; }
.top-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--prussian-deep); }
.top-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--bar-h); }
.site-logo img { width: 9.5rem; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2rem; }
.site-nav a { display: inline-block; font: 700 1.0625rem/1.2 var(--body); color: #fff; text-decoration: none; padding: 0.4rem 0; transition: transform var(--motion), color var(--motion); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--apricot); transform: scale(1.08); }
.site-nav a[aria-current="page"] { color: var(--apricot); }
@media (max-width: 640px) { .site-nav ul { gap: 1.1rem; } .site-nav a { font-size: 0.95rem; } .site-logo img { width: 7.5rem; } }

/* Hero: full-page photograph with the blue filter, no buttons */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; padding: calc(var(--bar-h) + 3rem) 0 4rem; }
@media (max-width: 999px) { .hero { min-height: 70vh; } }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(0 31 51 / 0.9) 0%, rgb(0 43 68 / 0.78) 45%, rgb(0 43 68 / 0.5) 100%); }
.hero-copy { display: grid; grid-template-columns: max-content; }
.hero h1 { color: #fff; white-space: nowrap; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); line-height: 1.08; }
.hero .lede { margin-top: 1.25rem; font-size: 1.1875rem; font-weight: 700; color: rgb(255 255 255 / 0.92); width: 0; min-width: 100%; }
@media (max-width: 480px) { .hero-copy { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .hero h1 { white-space: normal; } .hero h1 br { display: none; } }

/* Page banner (inner pages) */
.banner { background: var(--prussian); color: #fff; padding: calc(var(--bar-h) + 3rem) 0 4rem; }

.banner h1 { color: #fff; }
.banner p { margin-top: 0.75rem; color: rgb(255 255 255 / 0.9); max-width: none; font-size: 1.0625rem; }

/* Sections: no rules anywhere */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--grey { background: var(--grey); }
.section--dark { background: var(--prussian); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgb(255 255 255 / 0.9); }
.section--dark a { color: #fff; }
.section--dark a:hover { color: var(--apricot); }
.section-head { margin-bottom: 2rem; }
.section-head p { margin-top: 0.75rem; color: var(--ink-2); max-width: 60ch; }
.section--dark .section-head p { color: rgb(255 255 255 / 0.9); }



/* Betsy section (from Attempt 4A) */
.principal { display: grid; gap: 2rem 4rem; align-items: center; }
@media (min-width: 900px) { .principal { grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); } }
.principal figure { margin: 0; }
.principal img { width: 100%; height: auto; aspect-ratio: 780 / 941; object-fit: cover; border-radius: 2.5rem 0.375rem 2.5rem 0.375rem; }
.principal figcaption { margin-top: 1rem; }
.principal .creds { display: block; color: var(--apricot); font-weight: 500; font-size: 0.9rem; }
.principal .role { color: rgb(255 255 255 / 0.85); margin: 0.2rem 0 1rem; }
.principal ul { color: rgb(255 255 255 / 0.9); margin-top: 0.75rem; }


/* Photo strip and settings */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 640px) { .strip { grid-template-columns: 1fr; } }
.strip img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1.25rem 0.25rem 1.25rem 0.25rem; }
.settings { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.5rem; }
@media (min-width: 640px) { .settings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .settings { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.settings li { margin: 0; padding: 0.5rem 0; color: var(--ink-2); font-weight: 500; }

/* Approach: four plain blocks, no numbers */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { margin: 0; background: var(--grey); border-radius: 1.25rem 0.25rem 1.25rem 0.25rem; padding: 1.5rem; }
.steps h3 { font-size: 1.0625rem; }
.steps p { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.5rem; }

/* Contact band */
.cta { background: var(--prussian-deep); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta .wrap { display: block; }
.cta h2 { color: #fff; }
.cta p { color: rgb(255 255 255 / 0.85); margin-top: 0.5rem; }
.cta p a { color: #fff; }
.cta a:hover { color: var(--apricot); }

/* Services page */
.icon { width: 5rem; height: 5rem; border-radius: 50%; background: var(--prussian); display: grid; place-items: center; flex: none; }
.icon svg { width: 2.25rem; height: 2.25rem; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-head .icon { margin: 0; }
.service-block { padding: clamp(2.25rem, 5vw, 3.25rem) 0; scroll-margin-top: 6rem; }
.service-block:nth-child(even) { background: var(--grey); }
.service-head { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.service-head .intro-line { color: var(--ink-2); margin-top: 0.35rem; font-size: 0.975rem; white-space: nowrap; }
@media (max-width: 1100px) { .service-head .intro-line { white-space: normal; } }
.service-items { margin: 1.25rem 0 0 6.5rem; padding-left: 1.25rem; }
@media (max-width: 640px) { .service-items { margin-left: 0; } }
.service-items li { margin: 0 0 0.4rem; }
.service-items ul { margin: 0.3rem 0 0.5rem; color: var(--ink-2); font-size: 0.95rem; }


/* Team page: Betsy feature, then a grid where hovering a photo shows the bio */
.feature { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 860px) { .feature { grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); } }
.feature img { width: 100%; height: auto; aspect-ratio: 780 / 941; object-fit: cover; border-radius: 2.5rem 0.375rem 2.5rem 0.375rem; }
.feature .creds { color: var(--green-deep); font-weight: 500; font-size: 0.95rem; }
.feature .role { color: var(--ink-3); margin: 0.1rem 0 1rem; }
.feature p { color: var(--ink-2); }
.honours { display: grid; gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .honours { grid-template-columns: 1fr 1fr; } }
.honours h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.honours ul { color: var(--ink-2); font-size: 0.975rem; }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.member { margin: 0; align-self: start; position: relative; border-radius: 1.25rem 0.25rem 1.25rem 0.25rem; overflow: hidden; background: #fff; scroll-margin-top: 2rem; }
.member img { width: 100%; height: auto; aspect-ratio: 600 / 714; object-fit: cover; object-position: 50% 0; }
.member .who { padding: 1rem 1.25rem 1.25rem; }
.member .who strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.375rem; }
.member .who .place { display: block; color: var(--ink-2); font-size: 0.9rem; margin-top: 0.15rem; }
.member .who .creds { display: block; color: var(--green-deep); font-size: 1rem; font-weight: 700; margin-top: 0.15rem; }
.member .bio { position: absolute; inset: 0; background: rgb(0 43 68 / 0.94); color: #fff; padding: 1.1rem 1.25rem; overflow: auto; opacity: 0; transition: opacity var(--motion); font-size: 0.875rem; line-height: 1.5; }
.member .bio p { color: #fff; }
.member .bio strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1rem; margin-bottom: 0.4rem; }
.member .bio p { margin-bottom: 0.6em; }
.member .bio { visibility: hidden; transition: opacity var(--motion), visibility 0s linear var(--motion); }
.member:hover .bio, .member:focus-within .bio, .member.is-open .bio { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (hover: none) { .member .bio { position: static; opacity: 1; visibility: visible; background: var(--grey); color: var(--ink); padding: 1rem 1.25rem 1.25rem; } .member .bio p { color: var(--ink-2); } .member .bio strong { display: none; } .member .reveal { display: none; } }
.member .reveal { position: absolute; inset: 0; opacity: 0; border: 0; background: transparent; cursor: pointer; }
.member .reveal:focus-visible { opacity: 1; outline: 3px solid var(--apricot); outline-offset: -3px; background: transparent; }

/* Contact page */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; } }
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form .row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field label .req, .form-note .req { color: #b23b2e; font-weight: 700; }
.field .hint { color: var(--ink-3); font-size: 0.8125rem; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--grey); border: 0; border-radius: 0.75rem; padding: 0.8rem 0.95rem; }
.field textarea { min-height: 8rem; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23002b44' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1rem; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 3px rgb(45 165 70 / 0.35); }
.field .error { display: none; color: #b23b2e; font-size: 0.875rem; }
.was-validated .field :is(input, select, textarea):invalid { box-shadow: 0 0 0 2px #b23b2e; }
.was-validated .field :is(input, select, textarea):invalid ~ .error { display: block; }
.form-note { font-size: 0.875rem; color: var(--ink-3); }
.form-status { border-radius: 0.75rem; padding: 1rem 1.1rem; background: var(--grey); }
.form-status p:first-child { margin-bottom: 0.3rem; }
.form-status.is-success { background: #e7f6ea; }
.form-status.is-error { background: #fbe9e6; }
.form-status.is-note { background: #fdf0e0; }
.direct { background: var(--grey); padding: 1.75rem; border-radius: 1.25rem 0.25rem 1.25rem 0.25rem; align-self: start; }
.direct h2 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.direct dl { margin: 0; }
.direct dt { color: var(--ink-3); font-size: 0.8125rem; font-weight: 700; margin-top: 1rem; }
.direct dd { margin: 0.15rem 0 0; }

/* Footer */
.site-footer { background: var(--prussian-deep); color: rgb(255 255 255 / 0.8); padding: 2.75rem 0 2rem; font-size: 0.9375rem; }
.site-footer img { width: 8.5rem; height: auto; }
.site-footer .tagline { margin: 0.75rem 0 1rem; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--apricot); }
.legal { margin-top: 2rem; color: rgb(255 255 255 / 0.55); font-size: 0.8125rem; }
