/* ============================================================
   DENTISTRYEXPERTWITNESS.CO.UK
   Global Stylesheet
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #FFFFFF;
  --bg-alt:    #F5F5F7;
  --text:      #111111;
  --muted:     #666666;
  --border:    #E5E5EA;
  --accent:    #0B1F33;
  --radius:    6px;
  --max-w:     1100px;
  --section-v: 80px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

img { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: var(--section-v) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  margin-bottom: 48px;
}

.section__header h2 {
  margin-bottom: 16px;
}

.section__header p {
  color: var(--muted);
  max-width: 660px;
}

.prose {
  max-width: 680px;
}

.prose p + p {
  margin-top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
  text-decoration: none;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn--secondary:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.site-header__brand {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
}

.site-header__brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  text-decoration: none;
}

.site-nav .btn {
  padding: 9px 18px;
  font-size: 0.875rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}

.nav-toggle svg {
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
}

.hero h1 {
  max-width: 740px;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.hero__creds {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 20px;
}

.hero__response {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.trust-strip__item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.trust-strip__item span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Why instruct columns ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.why-col h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.why-col p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.step {
  position: relative;
}

.step__number {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Ordered step list (How to instruct page) ---------- */
.step-list {
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-list__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.step-list__item:last-child {
  border-bottom: none;
}

.step-list__num {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--muted);
  min-width: 28px;
  padding-top: 1px;
}

.step-list__body {
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- Bullet lists in body copy ---------- */
.bullet-list {
  list-style: none;
  margin: 16px 0 20px;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

.bullet-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ---------- Section with divider blocks (services, legal pages) ---------- */
.service-block {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 16px;
  max-width: 640px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-info .urgent {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text);
}

.contact-info .urgent a {
  font-weight: 500;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.825rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-check label {
  margin: 0;
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Legal page prose ---------- */
.legal-prose h2 {
  font-size: 1.1rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.7;
}

.legal-prose .bullet-list {
  margin-top: 12px;
}

.legal-date {
  font-size: 0.825rem;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ---------- Centre-align helper ---------- */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.footer-role {
  font-size: 0.825rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.825rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-contact {
  margin-top: 16px;
}

.footer-contact a {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-contact a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-nav h4 {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-nav ul li {
  margin-bottom: 8px;
}

.footer-nav ul li a {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-nav ul li a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__bottom p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-legal-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  :root { --section-v: 60px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav .btn {
    margin-top: 8px;
    text-align: center;
    padding: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root { --section-v: 48px; }

  .hero {
    padding: 64px 0 56px;
  }

  .trust-strip__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}
