/* JBS Gerontology Centre — shared styles */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f0ece3;
  --color-surface: #ffffff;
  --color-primary: #10545f;
  --color-primary-dark: #0b3d45;
  --color-primary-light: #e4eef0;
  --color-accent: #c98a2c;
  --color-accent-light: #f6e8d2;
  --color-text: #24313a;
  --color-text-muted: #55636b;
  --color-border: #e1dbcd;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 6px 20px rgba(16, 84, 95, 0.08);
  --max-width: 1140px;
  --font-base: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-primary-dark);
}

.brand-logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.brand-name span {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 2px;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary-dark);
  position: relative;
}
.nav-toggle span::before {
  content: "";
  position: absolute;
  top: -7px;
}
.nav-toggle span::after {
  content: "";
  position: absolute;
  top: 7px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-light);
}

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

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg) 60%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--color-accent);
  background: var(--color-accent-light);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1.15;
  color: var(--color-primary-dark);
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--color-primary-dark);
}

.hero-stat span {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.hero-visual {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  border: 1px solid var(--color-border);
}

.hero-visual-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--color-primary) 0%, #1c7a89 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.hero-visual-media img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Section */
.section {
  padding: 72px 0;
}

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

.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--color-primary-dark);
  margin: 0 0 14px;
}

.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.service-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  flex-grow: 1;
}

.service-link {
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.approach-card {
  text-align: center;
  padding: 8px;
}

.approach-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.approach-card h3 {
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.approach-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 28px 22px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.process-step h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

.process-step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.93rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}

.testimonial-quote {
  margin: 0 0 18px;
  color: var(--color-text);
  font-size: 1rem;
}

.testimonial-quote::before {
  content: "\201C";
  color: var(--color-accent);
  font-size: 1.4rem;
  font-weight: 700;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.testimonial-role {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

.faq-item p,
.faq-item ul {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

.faq-item ul {
  padding-left: 1.2em;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 20px;
}

/* Footer social */
.footer-social {
  display: flex;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  color: #d9e6e8;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-social a:hover {
  color: #fff;
}

.footer-links-inline {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links-inline a {
  color: #a9c0c3;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links-inline a:hover {
  color: #fff;
  text-decoration: underline;
}

/* CTA band */
.cta-band {
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.cta-band p {
  margin: 0;
  color: #cfe3e6;
  max-width: 46ch;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-band .btn-outline {
  border-color: #fff;
  color: #fff;
}
.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #d9e6e8;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 14px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 16px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a {
  color: #d9e6e8;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: #a9c0c3;
}

/* Consultation modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 61, 69, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 10px;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal h2 {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
  font-size: 1.4rem;
}

.modal-subtitle {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--color-text);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-actions .btn {
  width: 100%;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach-grid,
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
  }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
  }
  .services-grid,
  .approach-grid,
  .process,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .faq-item ul {
    grid-template-columns: 1fr;
  }
  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }
  .cta-actions {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
