/* COSMETIC & FAMILY DENTISTRY (HULL) LIMITED
   Narrow-viewport-first stylesheet. System fonts only. */

:root {
  --teal: #0f4c46;
  --teal-dark: #0a332f;
  --teal-mid: #1a6b63;
  --mint: #e6f4ef;
  --mint-strong: #c7e8dc;
  --ivory: #fbf8f2;
  --ivory-deep: #f1ebe0;
  --gold: #c4a35a;
  --gold-dark: #8f732f;
  --ink: #1b2c2a;
  --muted: #4a5d5a;
  --white: #ffffff;
  --line: #d7e5e0;
  --danger: #8a2b2b;
  --shadow: 0 12px 32px rgba(15, 76, 70, 0.08);
  --shadow-soft: 0 6px 18px rgba(15, 76, 70, 0.06);
  --radius: 1.15rem;
  --radius-sm: 0.75rem;
  --header-h: 4.5rem;
  --max: 70rem;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px var(--ivory), 0 0 0 6px var(--gold);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  min-height: 100%;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 1000;
  background: var(--gold);
  color: var(--teal-dark);
  padding: 0.65rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--teal-dark);
}

.brand:hover,
.brand:focus-visible {
  color: var(--teal);
}

.brand-mark {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
}

.brand-place {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle:hover {
  background: var(--mint);
  border-color: var(--mint-strong);
}

.nav-toggle:active {
  transform: translateY(1px);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.js .nav-toggle {
  display: inline-flex;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
}

.site-nav a:hover {
  background: var(--mint);
  color: var(--teal-dark);
}

.site-nav a[aria-current="page"] {
  background: var(--teal);
  color: var(--ivory);
}

.site-nav a[aria-current="page"]:hover {
  background: var(--teal-mid);
  color: var(--ivory);
}

@media (max-width: 52.99rem) {
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.1rem;
    box-shadow: var(--shadow-soft);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
  }

  .js .site-nav a {
    display: block;
    border-radius: var(--radius-sm);
  }
}

@media (min-width: 53rem) {
  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }

  .js .site-nav,
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--teal-dark);
  box-shadow: 0 8px 18px rgba(196, 163, 90, 0.28);
}

.btn-primary:hover {
  background: #d4b56e;
  color: var(--teal-dark);
}

.btn-primary:active {
  background: var(--gold-dark);
  color: var(--ivory);
}

.btn-secondary {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(251, 248, 242, 0.7);
}

.btn-secondary:hover {
  background: rgba(251, 248, 242, 0.12);
  color: var(--ivory);
  border-color: var(--ivory);
}

.btn-secondary:active {
  background: rgba(251, 248, 242, 0.22);
}

.btn-teal {
  background: var(--teal);
  color: var(--ivory);
}

.btn-teal:hover {
  background: var(--teal-mid);
  color: var(--ivory);
}

.btn-teal:active {
  background: var(--teal-dark);
}

.btn-outline {
  background: var(--white);
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--mint);
  color: var(--teal-dark);
}

.btn-outline:active {
  background: var(--mint-strong);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(196, 163, 90, 0.18), transparent 28%),
    linear-gradient(160deg, var(--teal-dark) 0%, var(--teal) 55%, #165e57 100%);
  color: var(--ivory);
  padding: 3.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  color: var(--ivory);
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 38rem;
  color: rgba(251, 248, 242, 0.9);
  margin-bottom: 1.75rem;
}

.hero-panel {
  position: relative;
  min-height: 16rem;
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(230, 244, 239, 0.16), rgba(251, 248, 242, 0.08));
  border: 1px solid rgba(251, 248, 242, 0.16);
  overflow: hidden;
}

.hero-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3.5rem;
  background: var(--ivory);
  clip-path: ellipse(58% 100% at 50% 100%);
}

@media (min-width: 64rem) {
  .hero {
    padding: 5.2rem 0 6.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .hero-panel {
    min-height: 22rem;
  }
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-mint {
  background-color: var(--mint);
  background-image:
    url("../images/dental-pattern.svg"),
    linear-gradient(180deg, var(--mint) 0%, var(--ivory) 100%);
  background-size: 220px 220px, auto;
  background-repeat: repeat, no-repeat;
  background-blend-mode: soft-light, normal;
}

.section-teal {
  background: var(--teal);
  color: var(--ivory);
}

.section-teal h2,
.section-teal h3 {
  color: var(--ivory);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head.center,
.center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.55rem;
  color: var(--gold-dark);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.section-teal .eyebrow {
  color: var(--gold);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.section-teal .lead,
.section-teal p {
  color: rgba(251, 248, 242, 0.88);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.15rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.35rem 1.45rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--mint-strong);
}

.card-icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  color: var(--teal);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--teal-mid);
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card-link {
  display: inline-flex;
  margin-top: 0.85rem;
  font-weight: 650;
  color: var(--teal);
  text-decoration: none;
}

.card-link:hover {
  color: var(--gold-dark);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.service-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--mint);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

@media (min-width: 40rem) {
  .card-grid.cols-2,
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Approach */
.approach-grid {
  display: grid;
  gap: 1.15rem;
}

.approach-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--gold);
}

.approach-num {
  display: inline-block;
  font-family: var(--font-serif);
  color: var(--gold-dark);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

@media (min-width: 64rem) {
  .approach-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Journey */
.journey {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.journey-step {
  position: relative;
  background: rgba(251, 248, 242, 0.08);
  border: 1px solid rgba(251, 248, 242, 0.14);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.3rem 4.4rem;
}

.journey-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.25rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--teal-dark);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.journey-step h3 {
  color: var(--ivory);
  font-size: 1.12rem;
}

@media (min-width: 64rem) {
  .journey {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Page hero */
.page-hero {
  background:
    radial-gradient(circle at 90% 0%, rgba(196, 163, 90, 0.16), transparent 32%),
    linear-gradient(180deg, var(--teal-dark), var(--teal));
  color: var(--ivory);
  padding: 3rem 0 3.4rem;
}

.page-hero h1 {
  color: var(--ivory);
}

.page-hero p {
  max-width: 40rem;
  color: rgba(251, 248, 242, 0.9);
  font-size: 1.1rem;
}

/* Prose pages */
.prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.35rem;
}

.prose h2 {
  margin-top: 1.8rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 1rem 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  font-weight: 600;
}

@media (min-width: 48rem) {
  .prose {
    padding: 2.4rem 2.6rem;
  }
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.contact-panel,
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.contact-panel h2,
.form-panel h2 {
  margin-bottom: 1rem;
}

.detail-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.form-intro {
  background: var(--mint);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
  color: var(--teal-dark);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.req {
  color: var(--gold-dark);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.75rem 0.85rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: var(--mint-strong);
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  accent-color: var(--teal);
  flex: none;
}

.error {
  color: var(--danger);
  font-size: 0.92rem;
  margin: 0.35rem 0 0;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

.form-errors {
  display: none;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #f8ecec;
  color: var(--danger);
}

.form-errors.is-visible {
  display: block;
}

@media (min-width: 64rem) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

/* Footer */
.site-footer {
  background: var(--teal-dark);
  color: rgba(251, 248, 242, 0.86);
  padding: 2.6rem 0 1.8rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer h2 {
  color: var(--ivory);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: var(--ivory);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer-meta {
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(251, 248, 242, 0.12);
  font-size: 0.92rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* 404 */
.empty-state {
  text-align: center;
  padding: 4rem 0 5rem;
}

.empty-state p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.25rem; }
.disclaimer {
  margin-top: 2rem;
  padding: 1.1rem 1.2rem;
  background: var(--ivory-deep);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
