/* Stoneleaf Dental - page sections */

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 700px;
  overflow: hidden;
  background: var(--stone-100);
}

@media (max-height: 700px) {
  .hero {
    min-height: 100dvh;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 620px;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

@media (max-width: 768px) {
  .hero__bg img {
    object-position: 70% center;
  }
}

.hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(250 250 249 / 0.96) 0%, rgb(250 250 249 / 0.78) 38%, rgb(250 250 249 / 0.35) 58%, transparent 78%);
}

.hero__wash-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--paper) 0%, transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 10;
  height: 100%;
  width: min(100% - 3rem, var(--max-7xl));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__copy {
  max-width: 42rem;
  padding-block-start: 5rem;
}

.hero__copy .badge {
  margin-block-end: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--stone-800);
  margin-block-end: 1.5rem;
}

.hero h1 .accent {
  font-style: italic;
  font-weight: 300;
  color: var(--teal-700);
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--stone-700);
  font-weight: 400;
  margin-block-end: 2rem;
  max-width: 28rem;
  line-height: var(--leading-relaxed);
  text-shadow: 0 1px 0 rgb(250 250 249 / 0.65);
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero__ctas {
    flex-direction: row;
    align-items: center;
  }

  .hero__ctas .btn {
    width: auto;
  }
}

.hero__ctas .btn {
  width: 100%;
}

/* Services header */
.section-head {
  display: flex;
  flex-direction: column;
  margin-block-end: 4rem;
}

.section-head h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  letter-spacing: var(--tracking-tight);
  color: var(--stone-800);
}

.section-head p {
  font-size: 0.875rem;
  color: var(--stone-500);
  font-weight: 300;
  margin-block-start: 1rem;
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .section-head p {
    width: 33%;
    margin-block-start: 0;
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

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

  .about-grid__media {
    order: 1;
  }

  .about-grid__copy {
    order: 2;
  }
}

.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.about-portrait:hover img {
  transform: scale(1.05);
}

.about-quote {
  position: absolute;
  inset-block-end: 1.5rem;
  inset-inline: 1.5rem;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--stone-100);
}

.about-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--stone-800);
}

.about-grid__copy h2 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  letter-spacing: var(--tracking-tight);
  margin-block-end: 1.5rem;
}

.about-grid__copy h2 .muted {
  font-style: italic;
  color: var(--stone-400);
}

.about-grid__copy > p {
  color: var(--stone-600);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  margin-block-end: 1.5rem;
}

/* Transformation */
.transform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .transform-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.transform-copy .eyebrow {
  color: var(--teal-400);
}

.transform-copy h2 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  color: var(--white);
  letter-spacing: var(--tracking-tight);
  margin-block-end: 1.5rem;
}

.transform-copy h2 .muted {
  font-style: italic;
  color: var(--stone-500);
}

.transform-copy p {
  color: var(--stone-400);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  font-size: 0.875rem;
  max-width: 28rem;
  margin-block-end: 2rem;
}

.transform-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  border-block-end: 1px solid var(--teal-500);
  padding-block-end: 0.25rem;
  min-height: 44px;
}

.transform-link:hover {
  color: var(--teal-400);
}

/* Booking split */
.booking-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--stone-100);
}

@media (min-width: 768px) {
  .booking-card {
    flex-direction: row;
  }
}

.booking-panel {
  background: var(--teal-800);
  color: var(--white);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .booking-panel {
    width: 33.333%;
  }
}

.booking-panel h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-block-end: 1rem;
}

.booking-panel > p {
  font-size: 0.75rem;
  color: var(--teal-100);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  margin-block-end: 2rem;
}

.booking-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--teal-50);
}

.booking-panel li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.booking-panel__phone {
  margin-block-start: 3rem;
}

.booking-panel__phone .label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal-300);
  margin-block-end: 0.25rem;
}

.booking-panel__phone .num {
  font-size: 0.875rem;
  font-weight: 500;
}

.booking-form {
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .booking-form {
    width: 66.666%;
  }
}

.booking-form .field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-block-end: 1.5rem;
}

@media (min-width: 640px) {
  .booking-form .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-block-end: 2rem;
}

/* Inner page shells */
.inner-hero {
  background: var(--stone-50);
  border-block-end: 1px solid var(--stone-100);
  padding: 3rem 0 2.5rem;
}

.inner-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: var(--tracking-tight);
  margin-block-end: 0.75rem;
}

.inner-hero p {
  max-width: 36rem;
  color: var(--stone-500);
  font-weight: 300;
}

.prose {
  max-width: 42rem;
  font-weight: 300;
  line-height: var(--leading-relaxed);
  color: var(--stone-600);
}

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

.prose h2 {
  margin-block: 2rem 1rem;
  font-size: 1.75rem;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  text-align: center;
}

.team-card__img {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-block-end: 1rem;
  background: var(--stone-100);
}

.team-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  margin-block-end: 0.25rem;
}

.team-card .role {
  font-size: 0.75rem;
  color: var(--teal-700);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--stone-100);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.login-shell {
  max-width: 28rem;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-3xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.login-shell h1 {
  font-size: 1.75rem;
  margin-block-end: 0.5rem;
}

.login-shell .hint {
  font-size: 0.8125rem;
  color: var(--stone-500);
  margin-block-end: 1.5rem;
}

.portal-grid {
  display: grid;
  gap: 1.5rem;
}

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

.contact-grid {
  display: grid;
  gap: 3rem;
}

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

.contact-info {
  background: var(--stone-50);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid var(--stone-100);
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-block-end: 1.5rem;
}

.contact-info dl {
  margin: 0;
}

.contact-info dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-block-start: 1.25rem;
}

.contact-info dd {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--stone-700);
}

.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--teal-700);
  margin-block-end: 1rem;
}

.error-page p {
  color: var(--stone-500);
  margin-block-end: 2rem;
}

.doctor-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .doctor-layout {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}

.doctor-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--stone-100);
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .newsletter {
    flex-direction: row;
  }

  .newsletter input {
    flex: 1;
  }
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

.testimonial p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--stone-800);
  margin-block-end: 1.25rem;
  line-height: 1.5;
}

.testimonial__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial__who img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial__who strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone-800);
}

.testimonial__who span {
  font-size: 0.75rem;
  color: var(--stone-500);
}
