/*
Theme Name: Doctor Appointment Care
Theme URI: https://arina.codetrappers.tech/
Author: Codetrappers
Description: A clean medical appointment theme with a responsive landing page, doctor cards, services, and a working appointment request form.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: doctor-appointment-care
*/

:root {
  --ink: #102027;
  --muted: #5d6f78;
  --line: #dbe7e8;
  --paper: #ffffff;
  --soft: #eef7f5;
  --mint: #d8f1ec;
  --teal: #0f7b7b;
  --teal-dark: #075d61;
  --coral: #e66b5b;
  --gold: #f4b95b;
  --shadow: 0 18px 45px rgba(16, 32, 39, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--teal-dark);
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
}
.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.button,
button,
input[type="submit"] {
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 123, 123, 0.2);
}
.button.secondary {
  background: white;
  color: var(--teal-dark);
  border: 1px solid var(--line);
  box-shadow: none;
}
.hero {
  background:
    linear-gradient(110deg, rgba(238,247,245,0.98) 0%, rgba(238,247,245,0.88) 48%, rgba(216,241,236,0.46) 100%),
    radial-gradient(circle at 82% 26%, rgba(244,185,91,0.22), transparent 30%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 48px;
  min-height: 620px;
  padding: 64px 0;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}
.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  margin: 24px 0 30px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
  max-width: 620px;
}
.stat {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.stat strong { display: block; color: var(--teal-dark); font-size: 26px; }
.hero-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-featured {
  margin: -22px -22px 20px;
  aspect-ratio: 16 / 10;
  background: var(--soft);
  overflow: hidden;
}
.hero-featured img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.doctor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 28px;
}
.schedule {
  display: grid;
  gap: 10px;
}
.slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--muted);
}
.slot strong { color: var(--ink); }
.section { padding: 76px 0; }
.section.soft { background: var(--soft); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: var(--mint);
  font-weight: 900;
}
.card h3 { margin: 18px 0 8px; font-size: 20px; }
.card p { color: var(--muted); margin: 0; }
.doctor-card .role { color: var(--coral); font-weight: 800; }
.booking {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}
.form-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}
textarea { min-height: 116px; resize: vertical; }
.notice {
  border: 1px solid #b8dfd6;
  background: #ecfaf6;
  color: var(--teal-dark);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-weight: 700;
}
.site-footer {
  background: var(--ink);
  color: white;
  padding: 34px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 860px) {
  .menu { display: none; }
  .hero-grid, .booking, .grid-3 { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; padding: 52px 0; }
  .stats { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .form-grid { grid-template-columns: 1fr; }
  .actions { display: grid; }
  .footer-row { display: block; }
}