/* Good Samaritan Senior Care — site styles */
:root {
  --navy: #023c7a;
  --navy-dark: #012a56;
  --sky: #e8f1fb;
  --green: #5a9e3a;
  --cream: #faf8f4;
  --ink: #1d2733;
  --muted: #55606e;
  --line: #dde3ea;
  --radius: 14px;
  --max: 1140px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--cream); }
.section--sky { background: var(--sky); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; color: var(--green); margin-bottom: .5rem; }
.lead { font-size: 1.3rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 600; padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid var(--navy);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--navy-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--sky); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Header */
.topbar { background: var(--navy); color: #fff; font-size: .95rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 1.5rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand img { width: 50px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }

.nav-toggle { display: none; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 8px; padding: .45rem .8rem; font: inherit; font-weight: 600; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem; }
.main-nav a { display: block; padding: .5rem .9rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.main-nav a:hover { background: var(--sky); color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.main-nav .btn { color: #fff; padding: .6rem 1.2rem; margin-left: .4rem; border-radius: 999px; }
.main-nav .btn:hover { background: var(--navy-dark); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; gap: 0; }
  .main-nav a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: none; color: var(--green); }
  .main-nav .btn { margin: 1rem 0 0; text-align: center; border-bottom: 0; }
  .topbar .container { justify-content: center; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(1,42,86,.92) 0%, rgba(2,60,122,.75) 50%, rgba(2,60,122,.35) 100%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 3rem; padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.3rem; max-width: 34ch; color: #eaf2fb; }
.hero em { font-style: normal; color: #b9e29f; }
.hero-portrait { justify-self: center; width: min(340px, 80%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid rgba(255,255,255,.9); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-portrait { order: -1; width: 200px; }
}

/* Page banner (inner pages) */
.page-banner { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { margin: .6rem 0 0; color: #d8e6f5; font-size: 1.2rem; max-width: 60ch; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .55rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.6 4.4 10l-1.4 1.4 5 5 9-9-1.4-1.4z'/%3E%3C/svg%3E") center/80% no-repeat; }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tile { position: relative; display: block; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(1,42,86,.9) 0%, rgba(1,42,86,.2) 60%, transparent); }
.tile span { position: absolute; z-index: 1; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.tile span::after { content: " →"; color: #b9e29f; }
.tile:hover img { transform: scale(1.05); }
.tile:hover, .tile:focus { color: #fff; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 16/10; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { background: #fff; border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line); display: flex; flex-direction: column; margin: 0; }
.quote .stars { color: #e3a008; letter-spacing: .15em; font-size: 1.15rem; margin-bottom: .6rem; }
.quote blockquote { margin: 0 0 1.2rem; flex: 1; color: var(--ink); }
.quote figcaption { font-weight: 700; color: var(--navy); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }

/* Services */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-card .body { padding: 1.5rem 1.6rem 1.2rem; }
.service-card ul { margin: 0; padding-left: 1.2rem; font-size: 1.02rem; }
.service-card li { break-inside: avoid; margin-bottom: .3rem; }

.awards { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.awards li { background: #fff; border-left: 4px solid var(--green); padding: .8rem 1rem; border-radius: 6px; font-weight: 600; color: var(--navy); }
.awards small { display: block; font-weight: 400; color: var(--muted); }

/* Staff */
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.staff-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.staff-card h3 { font-size: 1.2rem; margin: 0; }
.staff-card .role { color: var(--muted); margin: .15rem 0 .5rem; font-size: 1rem; }
.staff-card a { font-size: .98rem; overflow-wrap: anywhere; }
.founders-photo { border-radius: var(--radius); box-shadow: 0 15px 40px rgba(2,60,122,.15); width: 100%; max-width: 380px; }

/* Careers */
.pullquote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--navy); text-align: center; max-width: 30ch; margin: 0 auto; line-height: 1.35; }
.pullquote cite { display: block; font-family: var(--sans); font-size: 1rem; font-style: normal; color: var(--muted); margin-top: .8rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.card--navy { background: var(--navy); color: #fff; border: 0; }
.card--navy h2, .card--navy h3 { color: #fff; }
.card--navy a:not(.btn) { color: #fff; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.map { width: 100%; min-height: 420px; border: 0; border-radius: var(--radius); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d8e6f5; font-size: 1.2rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .phone { font-size: 1.6rem; font-weight: 700; color: #fff; text-decoration: none; }

/* Footer */
.site-footer { background: #0e1a28; color: #c3cdd8; padding: 3.5rem 0 1.5rem; font-size: 1rem; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-family: var(--sans); color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address { font-style: normal; }
.social { display: flex; gap: .8rem; margin-top: 1rem; }
.social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.social a:hover { background: rgba(255,255,255,.22); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; margin-top: 1rem; font-size: .9rem; color: #8b98a7; }
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; } }

:focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
