/* Harbour Dental Care — warm private healthcare demo */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&family=Nunito+Sans:wght@400;500;600;700&display=swap");

:root {
  --hd-white: #fefefe;
  --hd-cream: #f7f9fc;
  --hd-blue: #4a7c9b;
  --hd-blue-l: #6b9bb8;
  --hd-blue-pale: #e8f1f7;
  --hd-ink: #2c3e50;
  --hd-muted: #6b7c8a;
  --hd-line: #d8e4ed;
  --hd-focus: #4a7c9b;
  --hd-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hd-ink);
  background: var(--hd-white);
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--hd-radius); }

.hd-wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

.hd-concept {
  margin: 0;
  text-align: center;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hd-muted);
  padding: 0.45rem 1rem;
  background: var(--hd-blue-pale);
}

/* Header */
.hd-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(254, 254, 254, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hd-line);
}

.hd-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.hd-logo {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--hd-ink);
  text-decoration: none;
}

.hd-logo span { color: var(--hd-blue); }

.hd-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--hd-line);
  background: var(--hd-white);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .hd-nav-btn { display: none; }
}

.hd-nav-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--hd-blue);
  position: relative;
}

.hd-nav-icon::before,
.hd-nav-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--hd-blue);
}

.hd-nav-icon::before { top: -6px; }
.hd-nav-icon::after { top: 6px; }

.hd-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--hd-white);
  border-bottom: 1px solid var(--hd-line);
  padding: 1rem 1.25rem 1.25rem;
  gap: 0.85rem;
}

.hd-nav.is-open { display: flex; }

@media (min-width: 900px) {
  .hd-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    border: none;
    padding: 0;
    gap: 1.5rem;
    background: transparent;
  }
}

.hd-nav a {
  color: var(--hd-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.hd-nav a:hover { color: var(--hd-blue); }

.hd-nav-book { margin-top: 0.25rem; }

/* Keep CTA text white in all link states — nav `a` colour must not win */
.hd-nav a.hd-btn-fill,
.hd-nav a.hd-btn-fill:link,
.hd-nav a.hd-btn-fill:visited,
.hd-nav a.hd-btn-fill:hover,
.hd-nav a.hd-btn-fill:focus,
.hd-nav a.hd-btn-fill:focus-visible,
.hd-nav a.hd-btn-fill:active {
  color: var(--hd-white);
}

.hd-nav a.hd-btn-fill:hover,
.hd-nav a.hd-btn-fill:focus-visible,
.hd-nav a.hd-btn-fill:active {
  background: var(--hd-blue-l);
}

@media (min-width: 900px) {
  .hd-nav-book { margin-top: 0; margin-left: 0.5rem; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--hd-focus);
  outline-offset: 2px;
}

/* Buttons */
.hd-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .hd-btn { transition: none; }
}

.hd-btn-fill {
  background: var(--hd-blue);
  color: var(--hd-white);
}

.hd-btn-fill:hover { background: var(--hd-blue-l); }

/* Hero */
.hd-hero { padding: 3rem 0 3.5rem; }

.hd-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hd-hero-grid { grid-template-columns: 1fr 1fr; }
}

.hd-hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.hd-lead { color: var(--hd-muted); margin: 0 0 1.75rem; }

.hd-hero-img { margin: 0; }

.hd-hero-img img { aspect-ratio: 11/8; object-fit: cover; width: 100%; }

/* Sections */
.hd-section { padding: 3.5rem 0; }

.hd-section-soft { background: var(--hd-cream); }

.hd-section h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  text-align: center;
}

.hd-intro {
  text-align: center;
  color: var(--hd-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* Treatments */
.hd-treatment-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .hd-treatment-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .hd-treatment-grid { grid-template-columns: repeat(3, 1fr); }
}

.hd-treatment {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.hd-section-soft .hd-treatment { background: var(--hd-white); }

.hd-treatment:hover {
  box-shadow: 0 8px 28px rgba(74, 124, 155, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
  .hd-treatment:hover { transform: translateY(-2px); }
}

.hd-treatment h3 {
  font-size: 1.0625rem;
  color: var(--hd-blue);
  margin: 0 0 0.5rem;
}

.hd-treatment p { margin: 0; font-size: 0.9375rem; color: var(--hd-muted); }

/* Team */
.hd-team {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hd-team { grid-template-columns: repeat(3, 1fr); }
}

.hd-team-card {
  text-align: center;
  background: var(--hd-white);
  border-radius: var(--hd-radius);
  padding: 1.5rem;
  border: 1px solid var(--hd-line);
}

.hd-team-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.hd-team-card h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
}

.hd-role {
  font-size: 0.8125rem;
  color: var(--hd-blue);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hd-team-card p:last-child { margin: 0; font-size: 0.875rem; color: var(--hd-muted); }

/* Journey */
.hd-journey {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0;
  max-width: 640px;
  display: grid;
  gap: 1.5rem;
}

.hd-journey li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.hd-step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hd-blue-pale);
  color: var(--hd-blue);
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.9375rem;
}

.hd-journey h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--hd-ink);
}

.hd-journey p { margin: 0; font-size: 0.9375rem; color: var(--hd-muted); }

/* Appointment */
.hd-appointment-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hd-appointment-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

.hd-appointment-grid > div h2 { text-align: left; }

.hd-appointment-grid > div p { color: var(--hd-muted); margin: 0; }

.hd-form {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .hd-form { grid-template-columns: 1fr 1fr; }
}

.hd-field-full { grid-column: 1 / -1; }

.hd-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--hd-ink);
}

.hd-field input,
.hd-field select,
.hd-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--hd-line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--hd-cream);
}

.hd-field textarea { min-height: 90px; resize: vertical; }

.hd-form > .hd-btn { grid-column: 1 / -1; width: 100%; }

.hd-form-note {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--hd-muted);
  margin: 0;
  text-align: center;
}

/* Finance */
.hd-finance { max-width: 680px; margin: 0 auto; }

.hd-finance h2 { text-align: left; }

.hd-finance > p { color: var(--hd-muted); }

.hd-finance ul {
  color: var(--hd-muted);
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.hd-finance-note {
  font-size: 0.8125rem;
  font-style: italic;
  border-left: 3px solid var(--hd-blue-pale);
  padding-left: 1rem;
  margin: 1.5rem 0 0;
}

/* FAQ */
.hd-faq {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.hd-faq-item {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  padding: 0 1.25rem;
}

.hd-faq-item summary {
  padding: 1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.hd-faq-item summary::-webkit-details-marker { display: none; }

.hd-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--hd-blue);
  font-weight: 700;
}

.hd-faq-item[open] summary::after { content: "−"; }

.hd-faq-item p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--hd-muted);
}

/* Contact */
.hd-contact-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hd-contact-grid { grid-template-columns: 1fr 1fr; }
}

.hd-contact h2 { text-align: left; }

.hd-contact-detail { color: var(--hd-muted); }

.hd-contact-note { font-size: 0.8125rem; color: var(--hd-muted); font-style: italic; }

.hd-contact-img { margin: 0; }

.hd-contact-img img { aspect-ratio: 8/5; object-fit: cover; width: 100%; }

/* Footer */
.hd-footer {
  background: var(--hd-ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.hd-footer-inner {
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hd-footer-inner { text-align: left; }
}

.hd-footer strong { color: #fff; }

.hd-footer p { margin: 0; }

/* Demo strip */
.hd-demo-strip {
  text-align: center;
  font-size: 0.6875rem;
  padding: 1rem;
  color: var(--hd-muted);
  background: var(--hd-cream);
  border-top: 1px solid var(--hd-line);
}

.hd-demo-strip a {
  color: var(--hd-blue);
  font-weight: 600;
  text-decoration: none;
}

.hd-demo-strip a:hover { text-decoration: underline; }
