/* GoldCare Doctors: mobile-first styles */
:root {
  --primary: hsl(210 100% 45%);
  --primary-light: hsl(210 100% 97%);
  --trust-blue: hsl(215 84% 25%);
  --foreground: hsl(215 25% 27%);
  --muted: hsl(215 15% 55%);
  --border: hsl(210 20% 90%);
  --input-bg: hsl(210 20% 96% / .5);
  --gradient-hero: linear-gradient(135deg, hsl(210 100% 45%) 0%, hsl(215 84% 25%) 100%);
  --gradient-subtle: linear-gradient(180deg, #fff 0%, hsl(210 20% 98%) 100%);
  --gradient-card: linear-gradient(145deg, #fff 0%, hsl(210 100% 97%) 100%);
  --shadow-card: 0 8px 30px hsl(215 84% 25% / .12);
  --shadow-hero: 0 20px 60px hsl(210 100% 45% / .15);
  --radius: .5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: #fff;
  line-height: 1.5;
}
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }

.container { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.mb-12 { margin-bottom: 2.5rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only, .hidden-field {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; cursor: pointer; border: 0; text-decoration: none;
  border-radius: var(--radius); color: #fff;
  min-height: 44px;
}
.btn-hero {
  background: var(--gradient-hero);
  padding: 1rem 2rem; font-size: 1.125rem;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.btn-hero:hover, .btn-hero:focus-visible { transform: scale(1.05); box-shadow: var(--shadow-hero); }
.btn-hero:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-full { width: 100%; padding: .75rem 1rem; font-size: 1rem; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 5rem 0 6rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background-color: var(--trust-blue);
  background-image: url("/images/hero-1024.jpg");
  background-image: image-set(url("/images/hero-1024.webp") type("image/webp"), url("/images/hero-1024.jpg") type("image/jpeg"));
  background-size: cover; background-position: center;
}
.hero-brand {
  position: absolute; top: 1.25rem; left: 1rem; z-index: 2;
  color: #fff; font-weight: 700; font-size: 1.25rem;
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 56rem; padding: 0 1rem; text-align: center; }
.hero-card {
  background: rgb(17 24 39 / .7);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-radius: 1rem; padding: 2.5rem 1.25rem;
}
.hero h1 {
  color: #fff; font-weight: 700; line-height: 1.1;
  font-size: 2.25rem; margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--primary-light); }
.hero-card p {
  color: rgb(255 255 255 / .9); font-size: 1.125rem; line-height: 1.6;
  max-width: 48rem; margin: 0 auto 2rem;
}
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  animation: bounce 1s infinite;
}
.scroll-cue::before {
  content: ""; display: flex; width: 1.5rem; height: 2.5rem;
  border: 2px solid rgb(255 255 255 / .3); border-radius: 9999px;
}
.scroll-cue span {
  position: absolute; top: .5rem; left: 50%; transform: translateX(-50%);
  width: .25rem; height: .75rem; background: rgb(255 255 255 / .6); border-radius: 9999px;
}

/* Sections */
.section { padding: 4rem 0; }
.section-subtle { background: var(--gradient-subtle); }
.section-title {
  color: var(--trust-blue); font-weight: 700;
  font-size: 2rem; line-height: 1.2; margin-bottom: 1.5rem;
}
.lead { font-size: 1.0625rem; line-height: 1.65; }

/* Cards */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.card:hover { box-shadow: var(--shadow-hero); }
.card.narrow { max-width: 48rem; margin: 0 auto; }
.card-title { color: var(--trust-blue); font-weight: 600; font-size: 1.5rem; margin-bottom: 1.5rem; }
.grid-2 { display: grid; gap: 1.5rem; }

/* Form */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 16px; /* prevents iOS zoom */
  color: var(--foreground);
  background: var(--input-bg);
  border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px);
  padding: .625rem .75rem; min-height: 44px;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(210 100% 45% / .2);
}

.email-box { background: var(--primary-light); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.email-box p { margin-bottom: .25rem; }
.email-box a {
  color: var(--primary); font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; word-break: break-word; transition: color .2s;
}
.email-box a:hover { color: var(--trust-blue); }

/* Footer */
.footer { background: var(--trust-blue); color: #fff; padding: 3rem 0; }
.footer-brand { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; }
.footer-rule { border-top: 1px solid rgb(255 255 255 / .2); padding-top: 1.5rem; color: rgb(255 255 255 / .8); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { to { opacity: 1; transform: scale(1); } }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, -25%); animation-timing-function: cubic-bezier(.8,0,1,1); }
  50% { transform: translate(-50%, 0); animation-timing-function: cubic-bezier(0,0,.2,1); }
}
.fade-in { animation: fadeIn .8s ease-out forwards; }
.scale-in { opacity: 0; transform: scale(.95); animation: scaleIn .6s ease-out .3s forwards; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scale-in { opacity: 1; transform: none; }
}

/* Tablet and up */
@media (min-width: 640px) {
  .container, .hero-inner { padding: 0 1.5rem; }
  .hero-brand { top: 1.5rem; left: 1.5rem; font-size: 1.5rem; }
  .hero-card { padding: 4rem 3rem; }
  .hero h1 { font-size: 3.75rem; }
  .hero-card p { font-size: 1.5rem; }
  .section { padding: 5rem 0; }
  .section-title { font-size: 3rem; margin-bottom: 2rem; }
  .lead { font-size: 1.25rem; }
  .card { padding: 2rem; }
  .mb-12 { margin-bottom: 3rem; }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (min-width: 1024px) {
  .container, .hero-inner { padding: 0 2rem; }
  .hero h1 { font-size: 4.5rem; }
}
@media (min-width: 1025px) {
  .hero-bg {
    background-image: url("/images/hero.jpg");
    background-image: image-set(url("/images/hero.webp") type("image/webp"), url("/images/hero.jpg") type("image/jpeg"));
  }
}
