/* style.css — modernized and responsive */
/* CSS variables for quick theme adjustments */
:root{
  --bg: #ffffff;
  --muted-bg: #f7f8fa;
  --text: #21313f;
  --muted-text: #586069;
  --accent: #0b5b86; /* primary brand-like color — tweak to match the real site */
  --accent-2: #008fa1;
  --radius: 8px;
  --container-max: 1100px;
  --gap: 1rem;
  --focus: 3px rgba(11,91,134,0.18);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* { box-sizing: border-box; }
html,body { height: 100%; }
body{
  margin:0;
  font-family: var(--font-sans);
  background: var(--muted-bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus{
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .5rem;
  background: #fff;
  border-radius: 6px;
  z-index: 999;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* Container */
.container{
  width: 94%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header */
.site-header{
  background: white;
  border-bottom: 1px solid rgba(10,10,10,0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner{
  display:flex;
  gap: var(--gap);
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:.5rem;
  text-decoration:none;
}
.logo{
  height:auto;
  max-height:120px;
  width:auto;
  display:block;
  object-fit:contain;
}

/* Nav */
.site-nav{
  display:flex;
  gap: .75rem;
  align-items:center;
}
.site-nav a{
  text-decoration:none;
  color: var(--muted-text);
  font-weight:600;
  padding:.5rem .6rem;
  border-radius:6px;
  transition: background .15s, color .15s;
}
.site-nav a:hover,
.site-nav a:focus{
  background: rgba(11,91,134,0.06);
  color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11,91,134,0.06);
}

/* Hero */
.hero{
  margin-top: 1rem;
}
.hero-inner{
  display:flex;
  align-items:center;
  min-height: 46vh;
  border-radius: 12px;
  overflow: hidden;
  background-color: #e9f2f6;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  box-shadow: 0 8px 30px rgba(19,25,28,0.06);
}
.hero-content{
  padding: 3rem;
  max-width: 720px;
  background: linear-gradient(90deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.6) 100%);
}
.hero h1{
  margin:0 0 .5rem;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height:1.03;
  color: var(--text);
  letter-spacing: -0.01em;
}
.lead{
  margin: .5rem 0 1.25rem;
  color: var(--muted-text);
  font-size: 1.02rem;
}

/* Buttons */
.button,
.muted-button{
  display:inline-block;
  text-decoration:none;
  border-radius: 8px;
  font-weight:600;
  padding: .6rem 1rem;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease;
}
.button{
  background: var(--accent);
  color: white;
  border: none;
  box-shadow: 0 8px 20px rgba(11,91,134,0.12);
}
.button:hover,
.button:focus{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(11,91,134,0.14);
  outline: none;
}
.muted-button{
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(11,91,134,0.12);
}

/* Intro grid */
.intro-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.intro-grid article{
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(11,91,134,0.04);
}
.intro-grid h2{
  margin:0 0 .5rem;
  font-size: 1.03rem;
}

/* Card media (image inside cards) */
.card-media{
  width: 100%;
  aspect-ratio: 16 / 9; /* default for photo-style images */
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 .85rem;
  background: rgba(0,0,0,0.03);
  position: relative;
}

.card-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* clean crop */
  object-position: center;
}

/* Square variant for brand-style IV graphics */
.card-media.square{
  aspect-ratio: 1 / 1;
}

/* Improve spacing when cards contain media */
.intro-grid article h2,
.intro-grid article h3{
  margin-top: .2rem;
}

/* --- Card polish: hover lift + image overlay + micro-CTA --- */

/* Hover lift (only on devices that support hover) */
@media (hover: hover) and (pointer: fine){
  .intro-grid article{
    transition: transform .14s ease, box-shadow .18s ease;
  }
  .intro-grid article:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(19,25,28,0.10);
  }
}

/* Softer focus ring for keyboard users */
.intro-grid article:focus-within{
  box-shadow: 0 0 0 3px rgba(11,91,134,0.12), 0 10px 26px rgba(19,25,28,0.08);
}

/* Gradient overlay on card images */
.card-media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.06) 55%,
    rgba(0,0,0,0.12) 100%
  );
}

/* Micro-CTA buttons inside cards */
.card-ctas{
  display:flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.micro-cta{
  padding: .42rem .7rem;
  border-radius: 8px;
  font-size: .92rem;
  line-height: 1;
}

/* Keep micro-CTAs from looking too heavy */
.micro-cta.muted-button{
  border: 1px solid rgba(11,91,134,0.14);
}

/* Patient links */
.patient-links{
  margin-top: 1.5rem;
  padding: 1rem;
  background: transparent;
}

/* Footer */
.site-footer{
  margin-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.04);
  background: white;
  padding: 1rem 0;
}
.footer-inner{
  display:flex;
  gap: 1rem;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.footer-legal a{
  color: var(--muted-text);
  text-decoration:none;
  margin-left: .6rem;
}

/* Responsive layout tweaks */
@media (max-width:720px){
  .header-inner{ flex-direction:column; align-items:flex-start; gap:.5rem; padding: .75rem 0; }
  .hero-inner{ min-height: 38vh; }
  .hero-content{ padding: 1.4rem; }
  .site-nav{ flex-wrap:wrap; }

  /* Mobile stacking spacing improvements */
  .intro-grid{
    gap: 1rem;
  }
  .intro-grid article{
    padding: 1.1rem;
  }
  .card-media{
    margin-bottom: .75rem;
  }
}
