/* ============================================
   Kingsway Podiatry – Mockup Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --font-display: 'Syne', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;

  --text-h1: 3rem;
  --text-h2: 2.25rem;
  --text-h3: 1.5rem;
  --text-h4: 1.125rem;
  --text-body: 1rem;
  --text-body-lg: 1.125rem;
  --text-caption: 0.875rem;
  --text-overline: 0.75rem;
  --text-nav: 0.9375rem;
  --text-btn: 0.9375rem;

  --color-charcoal: #1A1A1A;
  --color-warm-white: #F5F3EF;
  --color-paper: #FFFFFF;
  --color-burnt-amber: #C47A1E;
  --color-burnt-amber-dark: #A06214;
  --color-burnt-amber-light: #F0D9B8;
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #5C5C5C;
  --color-text-muted: #8A8A8A;
  --color-border: #D4D0C8;
  --color-border-light: #E8E5DE;
  --color-surface: #FAF9F7;
  --color-success: #2D6B4F;
  --color-success-bg: #E8F0EB;
  --color-error: #B33A3A;
  --color-error-bg: #F5E5E5;
  --color-focus: #C47A1E;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --width-max: 1200px;
  --width-narrow: 720px;
  --width-wide: 960px;
}

@media (max-width: 768px) {
  :root {
    --text-h1: 2.25rem;
    --text-h2: 1.75rem;
    --text-h3: 1.25rem;
    --text-body-lg: 1rem;
  }
}

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

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;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-burnt-amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-burnt-amber-dark);
}

a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text-primary);
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--text-h3); line-height: 1.25; }
h4 { font-family: var(--font-body); font-size: var(--text-h4); font-weight: 600; line-height: 1.35; letter-spacing: 0.01em; }

p {
  margin-bottom: var(--space-5);
  text-wrap: pretty;
}

ul, ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--width-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  max-width: var(--width-narrow);
}

.container-wide {
  max-width: var(--width-wide);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-charcoal);
  color: var(--color-warm-white);
  padding: var(--space-3) var(--space-4);
  z-index: 200;
  text-decoration: none;
  font-weight: 600;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav.scrolled {
  box-shadow: 0 2px 8px rgba(26,26,26,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--width-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-logo:hover {
  color: var(--color-burnt-amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-nav);
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: var(--space-2) 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-burnt-amber);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-burnt-amber);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-phone {
  font-family: var(--font-body);
  font-size: var(--text-nav);
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-phone:hover {
  color: var(--color-burnt-amber);
}

.nav-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
}

.nav-menu-btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-warm-white);
  z-index: 150;
  flex-direction: column;
  padding: var(--space-8) var(--space-5);
}

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

.nav-overlay-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-overlay-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.nav-overlay-links a {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
}

.nav-overlay-links a:hover,
.nav-overlay-links a[aria-current="page"] {
  color: var(--color-burnt-amber);
}

.nav-overlay-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta .btn-primary {
    display: none;
  }
  .nav-menu-btn {
    display: flex;
  }
  .nav-phone {
    font-size: 0.875rem;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: var(--text-btn);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--color-charcoal);
  color: var(--color-warm-white);
}

.btn-primary:hover {
  background: var(--color-burnt-amber);
  color: var(--color-warm-white);
}

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

.btn-secondary:hover {
  background: var(--color-charcoal);
  color: var(--color-warm-white);
}

.btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.btn-full {
  width: 100%;
}

/* --- Hero --- */
.hero {
  padding-top: 72px;
  background: var(--color-warm-white);
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding: var(--space-10) 0;
}

.hero-content {
  max-width: var(--width-narrow);
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero p {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--color-charcoal);
  color: var(--color-warm-white);
  padding: var(--space-5) 0;
}

.trust-list {
  display: flex;
  justify-content: center;
  gap: var(--space-7);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}

.trust-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .trust-list {
    gap: var(--space-4);
  }
  .trust-list li {
    font-size: 0.75rem;
  }
}

/* --- Sections --- */
.section {
  padding: var(--space-10) 0;
}

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

.section-header {
  margin-bottom: var(--space-8);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-bottom: 0;
}

/* --- Service Grid --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Cards --- */
.card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--color-burnt-amber);
  box-shadow: 0 4px 16px rgba(26,26,26,0.06);
}

.card h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-3);
}

.card p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.card-link {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-burnt-amber);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.card-link:hover {
  color: var(--color-burnt-amber-dark);
  text-decoration: underline;
}

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.card-team {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.card-team img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.card-team .content {
  padding: var(--space-5);
}

.card-team h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-1);
}

.card-team .role {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-burnt-amber);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.card-team p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- Why Us / Feature List --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-item h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-2);
}

.feature-item p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --- About Layout --- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

.about-content h2 {
  margin-bottom: var(--space-5);
}

.about-content p {
  color: var(--color-text-secondary);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

/* --- Contact Layout --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-details h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-4);
  margin-top: var(--space-6);
}

.contact-details h3:first-child {
  margin-top: 0;
}

.contact-details p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.contact-details a {
  color: var(--color-burnt-amber);
}

.contact-details ul {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.contact-map {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-caption);
}

/* --- Services Page --- */
.service-section {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.service-section h2 {
  margin-bottom: var(--space-4);
}

.service-section p {
  color: var(--color-text-secondary);
  max-width: var(--width-narrow);
}

/* --- Podiatrist Bio Page --- */
.bio-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 768px) {
  .bio-layout {
    grid-template-columns: 1fr;
  }
}

.bio-sidebar img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
}

.bio-sidebar .name {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.bio-sidebar .role {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-burnt-amber);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

.bio-sidebar .detail {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.bio-content h2 {
  margin-bottom: var(--space-5);
}

.bio-content p {
  color: var(--color-text-secondary);
}

/* --- Footer --- */
.footer {
  background: var(--color-charcoal);
  color: var(--color-warm-white);
  padding: var(--space-9) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  color: var(--color-warm-white);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: var(--space-2);
}

.footer a {
  color: var(--color-warm-white);
  text-decoration: none;
  font-size: var(--text-caption);
  opacity: 0.8;
}

.footer a:hover {
  opacity: 1;
  color: var(--color-burnt-amber);
}

.footer p {
  font-size: var(--text-caption);
  opacity: 0.8;
  margin-bottom: var(--space-2);
}

.footer-bottom {
  border-top: 1px solid rgba(245,243,239,0.15);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-caption);
  opacity: 0.6;
  margin: 0;
}

.footer-badges {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.footer-badges img {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

/* --- Dividers --- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-9) 0;
  border: none;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: var(--space-4) 0;
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Print --- */
@media print {
  .nav,
  .nav-menu-btn,
  .nav-overlay,
  .btn,
  .trust-bar,
  .footer-badges,
  .contact-map {
    display: none !important;
  }
  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.5;
  }
  h1 { font-size: 24pt; }
  h2 { font-size: 18pt; }
  h3 { font-size: 14pt; }
  a {
    text-decoration: underline;
    color: black;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }
  .card,
  .card-team {
    border: 1px solid #ccc;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .section {
    padding: 24pt 0;
  }
  .hero {
    padding-top: 0;
    min-height: auto;
  }
  .hero-inner {
    padding: 24pt 0;
    min-height: auto;
  }
}
