/* Pectus Care with Fiona — shared custom styles | Last updated: May 2026 */

/* ── Inter font ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, sans-serif;
  color: #2D2D2D;
}

body {
  min-height: 100vh;
  margin: 0;
}

/* Reduced-motion overrides */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Skip link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  background: #1B3A5C;
  color: #FFFFFF;
  padding: 0.625rem 1rem;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ── Focus styles (WCAG 2.2 AAA) ─────────────────────────── */
/* Visible, high-contrast focus ring for all interactive elements */
:focus-visible {
  outline: 3px solid #1B3A5C;
  outline-offset: 3px;
  border-radius: 2px;
}

/* On dark (navy) backgrounds, invert the ring to white */
.bg-navy :focus-visible,
nav :focus-visible,
footer :focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* Remove ring for pointer users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Navigation ───────────────────────────────────────────── */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 4px rgba(27, 58, 92, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
}

.site-logo {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1B3A5C;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.site-logo:hover { color: #2A9D8F; }

#nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: #1B3A5C;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 4px;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: #2A9D8F;
  background: rgba(42, 157, 143, 0.08);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  color: #2A9D8F;
  font-weight: 600;
}

.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: #2A9D8F;
  border-radius: 1px;
}

/* Contact nav link — styled as a button on desktop */
.nav-link-cta {
  background: #1B3A5C;
  color: #FFFFFF !important;
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

.nav-link-cta:hover {
  background: #2A9D8F !important;
  color: #FFFFFF !important;
}

.nav-link-cta.active::after,
.nav-link-cta[aria-current="page"]::after {
  display: none;
}

/* Burger button */
#burger-btn {
  display: none;
  background: none;
  border: 1px solid #1B3A5C;
  border-radius: 6px;
  padding: 0.4375rem;
  cursor: pointer;
  color: #1B3A5C;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#burger-btn:hover {
  background: rgba(27, 58, 92, 0.06);
}

/* Mobile nav */
@media (max-width: 767px) {
  #burger-btn {
    display: flex;
  }

  #nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.12);
    z-index: 99;
  }

  #nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    width: 100%;
  }

  .nav-link-cta {
    margin: 0.5rem 1rem;
    width: calc(100% - 2rem);
    text-align: center;
    border-radius: 6px;
  }
}

/* ── Back-to-top button ───────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  background: #1B3A5C;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(27, 58, 92, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.2s ease;
  z-index: 80;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  background: #2A9D8F;
}

/* ── Info / Warning banners ───────────────────────────────── */
.banner-warning {
  background: #FEF9C3;
  border-left: 4px solid #B45309;
  color: #78350F;
  padding: 0.875rem 1.25rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.9375rem;
}

.banner-info {
  background: #EFF6FF;
  border-left: 4px solid #1B3A5C;
  color: #1B3A5C;
  padding: 0.875rem 1.25rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.9375rem;
}

/* ── Banner wrapper ───────────────────────────────────────── */
.banner-wrapper {
  background: #FEF9C3;
  border-bottom: 1px solid #FDE68A;
}

.banner-wrapper__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

/* ── HCPC badge ───────────────────────────────────────────── */
.hcpc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #EAF6F5;
  border: 2px solid #2A9D8F;
  color: #1B3A5C;
  border-radius: 9999px;
  padding: 0.4375rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ── Service cards ────────────────────────────────────────── */
.service-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  border: 1px solid #E5E7EB;
  border-top: 4px solid #2A9D8F;
  box-shadow: 0 2px 8px rgba(27, 58, 92, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 58, 92, 0.12);
}

/* ── How It Works steps ───────────────────────────────────── */
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1B3A5C;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
}

.step-connector {
  width: 2px;
  height: 2rem;
  background: #2A9D8F;
  margin-left: calc(22px - 1px);
  opacity: 0.5;
}

/* ── Accordion (FAQ) ──────────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid #E5E7EB;
}

.accordion-item:first-child {
  border-top: 1px solid #E5E7EB;
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.125rem 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #1B3A5C;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  transition: color 0.15s ease;
}

.accordion-btn:hover {
  color: #2A9D8F;
}

.accordion-btn[aria-expanded="true"] {
  color: #2A9D8F;
}

.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #2A9D8F;
  transition: transform 0.3s ease;
}

.accordion-btn[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.accordion-panel-inner {
  padding-bottom: 1.25rem;
  color: #2D2D2D;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.accordion-panel-inner p + p {
  margin-top: 0.75rem;
}

/* ── Form styles ──────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #2D2D2D;
  margin-bottom: 0.375rem;
}

.form-label.required::after {
  content: ' *';
  color: #B91C1C;
  font-size: 0.9375rem;
}

.form-hint {
  display: block;
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid #D1D5DB;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #2D2D2D;
  background: #FFFFFF;
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #2A9D8F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.25);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: #2D2D2D;
}

.form-radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #1B3A5C;
}

.form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: #2D2D2D;
  line-height: 1.5;
}

.form-check-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #1B3A5C;
  margin-top: 2px;
}

.conditional-section {
  display: none;
  margin-top: 1rem;
  padding: 1.5rem;
  background: #F4F7F9;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.conditional-section.visible {
  display: block;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
  background-color: #1B3A5C;
  color: #FFFFFF;
}

/* ── Section utility ──────────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

@media (max-width: 767px) {
  .section-inner {
    padding: 3.5rem 1.25rem;
  }
}

/* ── Page header (inner pages) ───────────────────────────── */
.page-header {
  background: #1B3A5C;
  color: #FFFFFF;
  padding: 3.5rem 1.25rem;
}

.page-header__inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #FFFFFF;
}

.page-header__subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.65;
}

/* ── Footer ───────────────────────────────────────────────── */
#main-footer {
  background: #1B3A5C;
  color: #FFFFFF;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.footer-link {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9375rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

.footer-link:hover {
  color: #2A9D8F;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  flex: 1;
  min-width: 220px;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.5rem;
}

.footer-brand-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.6;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0 0 1.25rem;
}

.footer-disclaimer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.5rem;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #2A9D8F;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: #238a7e;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #1B3A5C;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8125rem 1.75rem;
  border-radius: 8px;
  border: 2px solid #1B3A5C;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: #1B3A5C;
  color: #FFFFFF;
}

/* submit button */
.btn-submit {
  background: #1B3A5C;
  color: #FFFFFF;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: #2A9D8F;
}

/* ── Thank-you message ────────────────────────────────────── */
#thank-you {
  display: none;
  background: #EAF6F5;
  border: 2px solid #2A9D8F;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  color: #1B3A5C;
}

#thank-you.visible {
  display: block;
}

/* ── Pectus Matters link ──────────────────────────────────── */
a.charity-link {
  color: #1B3A5C;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.charity-link:hover {
  color: #2A9D8F;
}

/* ── Utility ──────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Policy content (Privacy & Cookie pages) ─────────────── */
.policy-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4.5rem;
}

.policy-meta {
  font-size: 0.875rem;
  color: #6B7280;
  font-style: italic;
  margin: 0 0 2rem;
}

.policy-section {
  margin-bottom: 2.5rem;
}

.policy-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1B3A5C;
  margin: 0 0 1rem;
}

.policy-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #2D2D2D;
  margin: 0 0 0.75rem;
}

