@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;600;700&display=swap');

body {
  font-family: 'Albert Sans', sans-serif;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1 {
  font-size: 64px;
  line-height: 68px;
  font-weight: 700;
  letter-spacing: -1px;
}

h2 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 600;
}

h3 {
  font-size: 40px;
  line-height: 48px;
  font-weight: 600;
}

h4 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
}

.body-xl {
  font-size: 20px;
  line-height: 32px;
  font-weight: 400;
}

.body-l {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.body-m {
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
}

.body-s {
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}

.strong {
  font-weight: 600;
}

:root {
  --deep-blue: #081e43;
  --purple: #525388;
  --soft-blue: #ADD2FF;
  --gray: #444444;
  --soft-purple: #F4F5F9;
}

.text-deep-blue { color: var(--deep-blue); }
.text-purple   { color: var(--purple); }
.text-soft-blue{ color: var(--soft-blue); }
.text-gray     { color: var(--gray); }
.text-soft-purple { color: var(--soft-purple); }
.bg-soft-purple   { background-color: var(--soft-purple); }

html, body {
  margin: 0;
padding: 0;
  height: 100%;
}

#container {
  display: flex;
  flex-direction: column;
}

/* Nav container */
#nav {
  position: fixed;
  top: 0;
  background: white;
  padding: 16px;            /* was 1rem */
  border-bottom: 1px solid #edeeef;
  z-index: 200;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Desktop links */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;                /* was 0.5rem */
}

.nav-link {
  color: var(--purple);
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  padding: 4px;
  margin: 0 8px;
  border-bottom: 1px solid var(--soft-blue);
  text-decoration: none;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;         /* was 1.5rem */
  cursor: pointer;
}

/* Mobile dropdown (hidden by default) */
.nav-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 32px;
  background: white;
  border: 1px solid #edeeef;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 8px 0;           /* was 0.5rem 0 */
  gap: 8px;                 /* was 0.5rem */
  z-index: 20;
}

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

/* Mobile breakpoint */
@media (max-width: 686px) {
  .nav-right   { display: none; }
  .nav-toggle  { display: block; }
}

/* Header section */
#header {
  width: 100%;
  height: 700px;
  background: linear-gradient(to bottom, #e9ecf6, #f4f5f9);
}

.header-inner {
  width: 100%;
  max-width: calc(1200px + 64px);
  margin: 0 auto;
  padding: 32px;
  box-sizing: border-box;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  column-gap: 32px;         /* was 2rem */
  row-gap: 32px;            /* was 2rem */
  align-content: center;
  align-items: center;
}

.header-left,
.header-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;                /* was 1.5rem */
  box-sizing: border-box;
}

.header-left { overflow-wrap: break-word; }
.header-right {
  justify-content: center;
  align-items: center;
}

.header-title-group {
  display: flex;
  flex-direction: column;
  gap: 16px;                /* was 1rem */
}

button {
  font-family: inherit;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  white-space: nowrap;
}

.button-row {
  display: flex;
  gap: 24px;
  align-items: center;
}

.button-row button {
  /* no flex */
}

.primary {
  background: #525388;
  padding: 10px 20px;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.secondary {
  border: 1px solid #ADD2FF;
  padding: 10px 20px;
  color: #525388;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

#clinic-intro {
  width: 100%;
  padding: 96px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;                /* was 2rem */
  background: linear-gradient(#f4f5f9, #fff);
}

.row {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;                /* was 1rem */
  align-items: stretch;
  align-self: center;
}

.column.vert-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.row-1 .column { flex: 1; min-width: 256px; }
.row-2 .column { flex: 1 100%; }
.row-3 .column { flex: 1; min-width: 120px; }

.column { text-align: left; }

.column-stack {
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;                 /* was 0.5rem */
}
.column-stack > * { margin: 0; }

.carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 32px auto;        /* was 2rem */
  overflow: hidden;
  border-radius: 12px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 5 / 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 687px) {
  .slide { aspect-ratio: 9 / 7; }
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 8px 16px;       /* was 0.5rem 1rem */
  font-size: 24px;         /* was 1.5rem */
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
}
.prev { left: 16px; }       /* was 1rem */
.next { right: 16px; }

.dots {
  position: absolute;
  bottom: 16px;             /* was 1rem */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;                 /* was 0.5rem */
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.3s;
}
.dot.active { background: rgba(255,255,255,1); }

/* FULL-WIDTH #pillars */
#pillars {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  padding: 96px 40px;
  display: flex;
  flex-direction: column;
  gap: 52px;               /* was 3.25rem */
}

.pillar-header {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 800px;
  align-self: center;
  gap: 20px;               /* was 1.25rem */
}

.pillar-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
}

.pillar-content .column {
  flex: 0 0 180px;
  width: 180px;
  padding: 16px;           /* was 1rem */
  text-align: center;
  box-sizing: border-box;
}

.pillar-cta {
  display: flex;
  justify-content: center;
}

#pain-points {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px 64px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 52px;               /* was 3.25rem */
}

.pain-header {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;
  max-width: 800px;
  align-self: center;
  gap: 20px;               /* was 1.25rem */
}

.pain-header h2 { margin: 0 0 8px; }  /* was 0.5rem */
.pain-header p  { margin: 0; color: #666; }

.pain-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;               /* was 1rem */
}

@media (max-width: calc(3*180px + 2*16px)) {
  .pain-content {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.point {
  padding: 16px;           /* was 1rem */
  border: 1px solid #DCE0F3;
  text-align: center;
  box-sizing: border-box;
  border-radius: 4px;
  color: #081E43;
}

#team {
  background: linear-gradient(to bottom, #fff, #f4f5f9);
  width: 100%;
  margin: 0 auto;
  padding: 96px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;               /* was 2rem */
}

.team-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  align-self: center;
}

.team-cta,
.team-member {
  flex: 1 1 256px;
  min-width: 256px;
}

.team-cta {
  text-align: left;
  box-sizing: border-box;
  padding-right: 10px;
  gap: 52px;               /* was 3.25rem */
}

.team-member {
  position: relative;
  overflow: hidden;
  max-height: 330px;
  min-height: 300px;
  max-width: 386px;
  min-width: 256px;
  text-align: center;
  box-sizing: border-box;
  border: solid 1px #edeeef;
  border-radius: 12px;
}

.member-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  background-color: #fff;
}

@media (max-width: calc(3*256px + 2*24px)) {
  .team-cta { flex-basis: 100%; }
}

@media (max-width: calc(2*256px + 1*24px)) {
  .team-member { flex-basis: 100%; }
}

#call-to-action {
  width: calc(100% - 64px);
  max-width: 1200px;
  margin: 0 auto;
  padding-top:    64px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  text-align: center;
  border-radius: 8px;
  gap: 24px;               /* was 1.5rem */
}

.cta-header {
  width: 100%;
  max-width: calc(100% - 64px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 12px;               /* was 0.75rem */
}

.cta-content {
  align-self: center;
}

#footer {
  background: #fff;
  width: 100%;
  margin: 0 auto;
  padding: 48px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;               /* was 2rem */
}

.footer-content {
  max-width: 1200px;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

.footer-column {
  flex: 1 1 164px;
  min-width: 164px;
  box-sizing: border-box;
  border-radius: 12px;
}

@media (max-width: 686px) {
  #clinic-intro,
  #pillars,
  #pain-points,
  #team,
  #footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  #call-to-action {
    width: calc(100% - 48px);
    margin: 0 auto;
  }

  .nav-dropdown {
    right: 24px;
  }
  
  #header {
  height: auto;
    padding-top: 28px;
  }
  
    .header-inner {
    max-width: calc(1200px + 48px);
    padding: 24px;
    column-gap: 24px;
    row-gap: 24px;
  }
}

@media (max-width: 768px) {
  .button-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;        /* make sure it’s full-width */
    gap: 24px;          /* keep your gap */
  }
  .button-row button {
    /* each button is 50% of the row minus half the gap on each side */
    flex: 1 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
    min-width: 0;       /* allow shrinking below intrinsic size */
  }
}

/* then at small phones stack them */
@media (max-width: 600px) {
  .button-row {
    flex-direction: column;
    gap: 16px;
  }
  .button-row button {
    flex: none;
    width: 100%;
    max-width: none;
  }
}
