/* =============================================================================
   Awwal Medical — site styles

   Colours and spacing live in the variables at the top (:root).
   Later sections override earlier ones, so read this file from top to bottom.
   ============================================================================= */

:root {
  --blue: #2f80c9;
  --hover: #2367a3;
  --light: #eaf5fd;
  --ink: #111b2e;
  --muted: #526176;
  --border: #e2e7ef;
  --shadow: 0 4px 8px #1525400b,0 18px 32px #15254007;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font: 16px/1.65 "Poppins",Arial,sans-serif;
  color: var(--ink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem,4vw,3.65rem);
  line-height: 1.15;
  letter-spacing: -1.8px;
  margin-bottom: 25px;
}

h2 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -.6px;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 600;
}

p {
  color: var(--muted);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select,
summary {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #2f80c9;
  outline-offset: 4px;
}

.container {
  width: min(1390px,calc(100% - 76px));
  margin: auto;
}

.section {
  padding: 76px 0;
}

.tint {
  background: linear-gradient(120deg,#f3f9fe,#fff 65%,#f2fbff);
}

.grid {
  display: grid;
  gap: 32px;
}

.two {
  grid-template-columns: 1fr 1fr;
}

.three {
  grid-template-columns: repeat(3,1fr);
}

.icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 50px;
  background: #e0effb;
  color: var(--blue);
  font-size: .9rem;
  margin-bottom: 23px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--blue);
  color: white;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 5px 10px #15254012;
}

.btn:hover {
  background: var(--hover);
  text-decoration: none;
}

.btn.outline {
  background: white;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  box-shadow: none;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.wide {
  width: 100%;
}

.circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e0effb;
  color: var(--blue);
  flex-shrink: 0;
}

.circle .icon {
  width: 30px;
  height: 30px;
}

.card {
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.center {
  text-align: center;
}

.section-head {
  text-align: center;
  max-width: 950px;
  margin: 0 auto 55px;
}

.section-head p {
  font-size: 1.15rem;
}

.section-head h2 {
  margin-bottom: 20px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 20;
  background: #fff;
  padding: 12px;
}

.skip:focus {
  top: 10px;
}

header {
  position: sticky;
  top: 0;
  background: #fffffff5;
  z-index: 10;
  box-shadow: 0 2px 4px #15254018;
}

.header-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--blue);
  line-height: 1.25;
}

.brand:hover {
  text-decoration: none;
}

.brand strong {
  font-size: 1.4rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
  margin-top: 6px;
}

.nav {
  display: flex;
  gap: 27px;
  align-items: center;
}

.nav>a,
.nav summary {
  color: #3d495d;
  font-size: 1rem;
}

.nav details {
  position: relative;
}

.nav summary {
  cursor: pointer;
  list-style: none;
}

.nav summary:after {
  content: '⌄';
  margin-left: 9px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-toggle {
  display: none;
}

.photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f0f2f5;
}

.photo img {
  position: absolute;
  max-width: none;
  height: auto;
}

.photo-logo {
  width: 50px;
  height: 54px;
  background: white;
  flex-shrink: 0;
}

.photo-logo img {
  width: 1472px;
  left: -43px;
  top: -13px;
}

.hero {
  padding: 80px 0 62px;
}

.hero h1 span {
  color: var(--blue);
}

.service {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .85rem;
  margin: 20px 0;
}

.separator:before,
.separator:after {
  content: '';
  height: 1px;
  background: var(--border);
  flex: 1;
}

.contact-grid {
  align-items: start;
  gap: 48px;
}

.contact-stack {
  display: grid;
  gap: 24px;
}

.contact-card {
  display: flex;
  gap: 20px;
}

.contact-card h3 {
  margin: 0 0 5px;
}

.contact-card p {
  margin: 0 0 15px;
}

.contact-card address {
  font-style: normal;
  color: var(--muted);
}

.contact-form {
  background: var(--light);
  padding: 35px;
  border-radius: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #34445b;
  font-size: .95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7dfeb;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  min-height: 46px;
}

textarea {
  resize: vertical;
  min-height: 125px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: .85rem;
  margin-bottom: 20px;
  color: var(--muted);
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
  flex-shrink: 0;
}

.small {
  font-size: .85rem;
}

.notice {
  padding: 15px;
  border: 1px solid #b9d9f2;
  border-radius: 10px;
  margin-bottom: 20px;
  background: #fff;
  scroll-margin-top: 120px;
}

.notice.error {
  border-color: #eeb9b9;
}

.hp {
  position: absolute;
  left: -9999px;
}

footer {
  background: #060b1d;
  color: #fff;
  padding: 65px 0 25px;
}

footer .brand {
  color: white;
  align-items: flex-start;
}

footer .brand strong {
  font-size: 1.2rem;
}

footer p,
footer a,
footer li {
  color: #cad3e3;
  font-size: .9rem;
}

footer h3 {
  font-size: 1rem;
  margin-bottom: 20px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin: 12px 0;
}

.footer-bottom {
  border-top: 1px solid #ffffff25;
  margin-top: 45px;
  padding-top: 23px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .8rem;
  color: #cad3e3;
}

@media (max-width: 1180px) {
  .nav {
    gap: 16px;
  }

  .nav>a,
  .nav summary {
    font-size: .9rem;
  }

  .brand strong {
    font-size: 1.15rem;
  }
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 40px);
  }

  .menu-toggle {
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    padding: 8px 12px;
  }

  .header-row {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
    min-height: 76px;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
  }

  .nav.open {
    display: flex;
  }

  .nav>a,
  .nav summary {
    padding: 10px;
  }

  .hero {
    padding-top: 50px;
  }

  .three {
    grid-template-columns: repeat(2,1fr);
  }

  .contact-grid {
    gap: 25px;
  }

  .contact-card {
    padding: 22px;
    gap: 12px;
  }

  .contact-card .circle {
    width: 42px;
    height: 42px;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 650px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 50px 0;
  }

  .brand {
    gap: 7px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: .66rem;
  }

  .photo-logo {
    width: 42px;
  }

  .header-actions>.btn {
    display: none;
  }

  .two,
  .three,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .card {
    padding: 24px;
  }

  .service {
    padding: 0;
  }

  .contact-grid {
    gap: 25px;
  }

  .contact-form {
    padding: 22px;
  }

  .form-grid {
    gap: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .header-actions {
    gap: 7px;
  }

  .pill {
    font-size: .82rem;
  }

  .contact-card a {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  header {
    position: static;
  }

  .nav,
  .header-actions,
  .contact-form {
    display: none;
  }

  .photo img {
    print-color-adjust: exact;
  }

  footer {
    background: white;
    color: black;
  }
}

/* Simplified homepage layout. */

.container {
  width: min(1200px,calc(100% - 64px));
}

.hero {
  padding: 65px 0;
}

.hero .pill .icon {
  width: 18px;
  height: 18px;
}

.about-simple {
  max-width: 860px;
}

.about-simple p {
  font-size: 1.1rem;
}

.about-simple .text-link {
  display: inline-block;
  margin-top: 5px;
  font-weight: 600;
}

.contact-stack {
  gap: 20px;
}

.contact-card p.open-hours {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0;
  color: var(--blue);
  font-size: .92rem;
}

.open-hours .icon {
  width: 19px;
  height: 19px;
}

.footer-simple {
  grid-template-columns: 1.3fr .7fr 1fr;
  gap: 45px;
}

.footer-simple>.brand+p,
footer .brand+p {
  margin-top: 18px;
}

.footer-simple a {
  overflow-wrap: anywhere;
}

.footer-bottom .icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 40px);
  }

  .footer-simple {
    gap: 25px;
  }
}

@media (max-width: 650px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .about-simple p {
    font-size: 1rem;
  }

  .footer-simple {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-simple>div:first-child {
    grid-column: 1/-1;
  }

  .header-actions>.btn {
    display: inline-flex;
    font-size: .8rem;
    padding: 9px 12px;
    min-height: 40px;
  }

  .header-actions>.btn .icon {
    display: none;
  }

  .header-row {
    gap: 8px;
  }

  .brand strong {
    font-size: .94rem;
  }

  .brand small {
    font-size: .62rem;
  }

  .menu-toggle {
    font-size: .82rem;
    padding: 8px;
  }

  .photo-logo {
    width: 38px;
  }

  .contact-form {
    padding: 22px;
  }
}

@media (max-width: 370px) {
  .header-row .photo-logo {
    display: none;
  }

  .footer-simple {
    grid-template-columns: 1fr;
  }
}

/* Reference-inspired hero; every selector is scoped to preserve the header. */

.connection-hero {
  --hero-blue: var(--blue);
  background: #f6fbff;
  padding: 100px 0 72px;
}

.connection-hero .connection-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 60px;
  align-items: center;
}

.connection-hero .connection-copy {
  min-width: 0;
}

.connection-hero .connection-eyebrow {
  display: inline-block;
  position: relative;
  padding: 8px 16px 8px 30px;
  border: 1px solid #bfdcf5;
  border-radius: 50px;
  background: #fff;
  color: #2367a3;
  font-size: .7rem;
  line-height: 1.5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 26px;
}

.connection-hero .connection-eyebrow:before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6daee0;
}

.connection-hero h1 {
  font-size: clamp(2.6rem,4.4vw,4.15rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.08;
  color: #080f20;
  margin: 0 0 32px;
}

.connection-hero h1 span {
  color: var(--hero-blue);
}

.connection-hero .connection-copy>p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 560px;
  color: #4d657e;
  margin: 0 0 34px;
}

.connection-hero .connection-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.connection-hero .connection-actions .btn {
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  padding: 11px 18px;
  min-height: 43px;
  box-shadow: none;
}

.connection-hero .connection-primary {
  background: var(--hero-blue);
  color: #fff;
}

.connection-hero .connection-primary:hover {
  background: #2367a3;
}

.connection-hero .connection-secondary {
  background: #fff;
  color: #111b2e;
  border: 1px solid #cddded;
  box-shadow: 0 2px 3px #142c4510!important;
  padding-inline: 24px!important;
}

.connection-hero .connection-secondary:hover {
  background: #eaf5fd;
}

.connection-hero .connection-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: #526d88;
  font-size: .83rem;
}

.connection-hero .connection-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.connection-hero .connection-trust .icon {
  width: 18px;
  height: 18px;
  color: var(--hero-blue);
}

.connection-hero .connection-panel {
  min-width: 0;
  background: linear-gradient(130deg,#dfEFFC 0%,#fff 45%,#e3f1fd 100%);
  border: 1px solid #fff;
  border-radius: 32px;
  padding: 25px;
  box-shadow: 0 25px 65px #276fa329;
  margin: 0;
}

.connection-hero .connection-feature {
  padding: 28px 28px 23px;
  border-radius: 25px;
  background: var(--hero-blue);
  color: white;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.connection-hero .connection-label {
  font-size: .7rem;
  line-height: 1.5;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #e1f1fd;
  font-weight: 700;
  margin: 0;
}

.connection-hero .connection-feature h2 {
  font-size: clamp(1.7rem,2.8vw,2.25rem);
  line-height: 1.24;
  font-weight: 500;
  letter-spacing: -.5px;
  color: white;
  margin: 62px 0 30px;
}

.connection-hero .connection-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 16px;
}

.connection-hero .connection-tile {
  padding: 22px 20px 20px;
  background: white;
  border-radius: 19px;
}

.connection-hero .connection-tile-blue {
  background: #ecf6fe;
}

.connection-hero .connection-tile>.icon {
  width: 24px;
  height: 24px;
  color: var(--hero-blue);
  margin-bottom: 25px;
}

.connection-hero .connection-tile h3 {
  font-size: .9rem;
  line-height: 1.4;
  margin: 0 0 5px;
  color: #111b2e;
}

.connection-hero .connection-tile p {
  font-size: .8rem;
  line-height: 1.6;
  margin: 0;
  color: #526d88;
}

@media (max-width: 1000px) {
  .connection-hero {
    padding: 70px 0 60px;
  }

  .connection-hero .connection-grid {
    gap: 32px;
    grid-template-columns: 1.12fr 1fr;
  }

  .connection-hero .connection-panel {
    padding: 20px;
  }

  .connection-hero .connection-feature {
    padding: 24px 22px;
  }

  .connection-hero .connection-feature h2 {
    margin-top: 45px;
  }

  .connection-hero .connection-tile {
    padding: 19px 15px;
  }
}

@media (max-width: 760px) {
  .connection-hero {
    padding: 45px 0 50px;
  }

  .connection-hero .connection-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .connection-hero h1 {
    font-size: clamp(2.4rem,7.5vw,3.5rem);
  }

  .connection-hero .connection-copy>p {
    font-size: 1rem;
    max-width: 570px;
  }

  .connection-hero .connection-eyebrow {
    font-size: .64rem;
    letter-spacing: 1.2px;
  }

  .connection-hero .connection-panel {
    width: 100%;
    max-width: 480px;
    justify-self: center;
  }

  .connection-hero .connection-feature {
    min-height: 270px;
  }

  .connection-hero .connection-feature h2 {
    font-size: 1.9rem;
  }

  .connection-hero .connection-trust {
    gap: 15px;
    margin-top: 25px;
  }

  .connection-hero .connection-actions .btn {
    font-size: .8rem;
  }

  .connection-hero .connection-tile>.icon {
    margin-bottom: 19px;
  }
}

@media (max-width: 360px) {
  .connection-hero .connection-panel {
    padding: 15px;
  }

  .connection-hero .connection-tiles {
    gap: 10px;
  }

  .connection-hero .connection-tile {
    padding: 17px 12px;
  }

  .connection-hero .connection-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Display the complete updated logo rather than cropping a design screenshot. */

.header-row .photo-logo {
  display: block;
  width: 64px;
  height: 64px;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.header-row .photo-logo img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: none;
}

@media (max-width: 650px) {
  .header-row .photo-logo {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 370px) {
  .header-row .photo-logo {
    display: block;
    width: 36px;
    height: 36px;
  }

  .header-row .brand strong {
    font-size: .82rem;
  }

  .header-row .brand small {
    font-size: .55rem;
  }

  .header-row .brand {
    gap: 5px;
  }
}

/* Transparent logo shared by the header and footer. */

.header-row .photo-logo,
footer .photo-logo {
  background: transparent;
}

footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

footer .photo-logo {
  display: block;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  overflow: hidden;
}

footer .photo-logo img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: none;
}

@media (max-width: 650px) {
  footer .photo-logo {
    width: 62px;
    height: 62px;
  }

  footer .footer-brand {
    gap: 12px;
  }
}

.visit-panel .connection-feature h2 {
  margin: 28px 0 15px;
}

.visit-panel address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 24px;
  color: #fff;
}

.visit-panel .connection-feature>.btn {
  align-self: flex-start;
  margin-top: auto;
}

.footer-policies {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.connection-hero h1 {
  font-size: clamp(2.4rem,4vw,3.8rem);
  line-height: 1.15;
}

.connection-actions .icon {
  width: 18px;
  height: 18px;
}

.contact-form>.btn {
  overflow-wrap: anywhere;
}

@media (max-width: 650px) {
  .connection-hero h1 {
    font-size: clamp(2.15rem,9vw,3rem);
  }

  .footer-policies {
    gap: 12px 18px;
  }
}

/* =============================================================================
   Spacing helpers
   (these replace style="" attributes, which the Content-Security-Policy blocks)
   ============================================================================= */

.contact-form p.form-footnote {
  margin: 18px 0 0;
}

.contact-form p.contact-help {
  margin-top: 20px;
}


/* =============================================================================
   Services carousel

   One row of photo cards that drifts sideways on its own. Hover over (or tab to)
   a card and the row pauses while that card grows. Visitors can also swipe,
   scroll sideways or use the arrow buttons.

   assets/site.js makes the row loop and shows the buttons. Without JavaScript
   the row still works as a normal swipeable strip.
   ============================================================================= */

.service-carousel {
  --card-gap: 22px;
}

.service-scroller {
  position: relative; /* lets site.js measure where each card sits */
  display: flex;
  gap: var(--card-gap);
  margin: -12px -20px; /* the padding below gives the cards room to grow and cast a shadow... */
  padding: 56px 20px;  /* ...and the negative margin above cancels the extra space on the page */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}

.service-scroller::-webkit-scrollbar {
  display: none;
}

.service-scroller:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -6px;
  border-radius: 30px;
}

/* ---- One card: three to a row on desktop ---- */

.service-card {
  position: relative;
  isolation: isolate; /* keeps the photo and shading behind the text, inside this card */
  flex: 0 0 calc((100% - 2 * var(--card-gap)) / 3);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 26px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background: #123f77; /* shown for a moment while the picture loads */
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}

.service-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops to fill the card instead of stretching */
  transition: transform .7s ease;
}

/* Dark gradient over the bottom of the picture so the white text is always readable. */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 24, 48, .92) 0%, rgba(7, 24, 48, .62) 38%, rgba(7, 24, 48, .08) 70%, rgba(7, 24, 48, 0) 100%);
}

.service-card .circle {
  width: 48px;
  height: 48px;
  margin-bottom: auto; /* pushes the icon to the top and the text to the bottom */
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .2);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  line-height: 1.25;
  color: #fff;
}

.service-card p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}

.service-card a {
  margin-top: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.service-card a:hover {
  border-bottom-color: #fff;
}

/* ---- The hovered (or keyboard-focused) card grows ---- */

.service-card:focus-within {
  z-index: 5;
  transform: scale(1.08);
  box-shadow: 0 18px 30px -10px rgba(10, 30, 60, .55);
}

.service-card:focus-within .service-photo {
  transform: scale(1.07);
}

@media (any-hover: hover) {
  .service-card:hover {
    z-index: 5;
    transform: scale(1.08);
    box-shadow: 0 18px 30px -10px rgba(10, 30, 60, .55);
  }

  .service-card:hover .service-photo {
    transform: scale(1.07);
  }
}

/* ---- Buttons under the row (shown by site.js) ---- */

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.carousel-controls[hidden] {
  display: none;
}

.carousel-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.carousel-button:hover {
  border-color: #b9d9f2;
  background: var(--light);
}

.carousel-button.toggle {
  width: auto;
  padding: 0 22px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
}

.carousel-hint {
  margin: 14px 0 0;
}

/* ---- Smaller screens: two cards, then one card with the next peeking in ---- */

@media (max-width: 1000px) {
  .service-card {
    flex-basis: calc((100% - var(--card-gap)) / 2);
  }
}

@media (max-width: 640px) {
  .service-scroller {
    margin: -12px -14px;
    padding: 48px 14px;
  }

  .service-card {
    flex-basis: 82%;
    min-height: 410px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-photo {
    transition: none;
  }
}
