:root {
  --ink: #24302d;
  --muted: #68736d;
  --sage: #8ba08d;
  --sage-dark: #566c5f;
  --ivory: #f8f5ed;
  --cream: #efe7d8;
  --stone: #d7d0c3;
  --wood: #c49f6f;
  --amber: #d7aa56;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(43, 39, 29, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.83);
  box-shadow: 0 16px 45px rgba(37, 32, 22, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-brand img {
  width: min(430px, 50vw);
  height: 66px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--sage-dark);
  color: var(--white);
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: 28px;
  color: #3f4b46;
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a {
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-color: var(--sage-dark);
}

.header-cta,
.primary-button,
.secondary-button,
.booking-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
}

.header-cta,
.primary-button,
.booking-form button {
  border: 1px solid var(--sage-dark);
  background: var(--sage-dark);
  color: var(--white);
}

.header-cta {
  padding: 0 18px;
  white-space: nowrap;
}

.secondary-button {
  border: 1px solid rgba(255, 253, 248, 0.72);
  color: var(--white);
  padding: 0 20px;
}

.hero-content .secondary-button {
  border-color: rgba(86, 108, 95, 0.32);
  color: var(--sage-dark);
  background: rgba(255, 253, 248, 0.48);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: start;
  gap: 20px;
  padding: 150px max(24px, calc((100vw - 1160px) / 2)) 48px;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(36, 48, 45, 0.22) 0%, rgba(248, 245, 237, 0.22) 47%, rgba(248, 245, 237, 0.7) 100%),
    linear-gradient(0deg, rgba(36, 48, 45, 0.28), rgba(36, 48, 45, 0.01) 52%);
}

.hero-content,
.appointment-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  grid-column: 2;
  max-width: 560px;
  color: var(--ink);
  padding-bottom: 20px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 4.7vw, 4.7rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 560px;
  color: #4d5a54;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button {
  padding: 0 22px;
}

.appointment-panel {
  grid-column: 2;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.appointment-panel h2 {
  margin-bottom: 20px;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.booking-form {
  display: grid;
  gap: 14px;
}

.booking-form label {
  display: grid;
  gap: 7px;
  color: #41504a;
  font-size: 0.84rem;
  font-weight: 700;
}

.booking-form input,
.booking-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--stone);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 12px;
}

.booking-form button {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.direct-phone {
  display: block;
  margin-top: 14px;
  color: var(--sage-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  background: var(--stone);
}

.trust-strip div {
  min-height: 138px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px 24px;
  background: var(--white);
  text-align: center;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.1rem;
}

.trust-strip span {
  max-width: 260px;
  color: var(--muted);
  line-height: 1.35;
}

.section,
.location-section {
  padding: 96px max(24px, calc((100vw - 1160px) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -28px;
}

.section-heading p:not(.eyebrow),
.profile-card p,
.location-copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--stone);
  border-left: 1px solid var(--stone);
}

.service-card {
  min-height: 218px;
  padding: 28px;
  border-right: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  background: rgba(255, 253, 248, 0.5);
}

.service-number {
  display: block;
  margin-bottom: 44px;
  color: var(--sage-dark);
  font-weight: 800;
}

.service-card p,
.quote-panel p,
.map-card p {
  color: var(--muted);
}

.section-action {
  display: flex;
  margin-top: 32px;
}

.care-gallery {
  background: #e9e1d2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(43, 39, 29, 0.08);
}

.gallery-card-large {
  grid-row: span 2;
}

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

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(36, 48, 45, 0.64), rgba(36, 48, 45, 0.04) 58%);
}

.gallery-card figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  left: 22px;
  color: var(--white);
}

.gallery-card strong,
.gallery-card span {
  display: block;
}

.gallery-card strong {
  font-size: 1.08rem;
}

.gallery-card span {
  max-width: 360px;
  color: rgba(255, 253, 248, 0.84);
}

.professional-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.profile-card,
.quote-panel,
.map-card {
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(43, 39, 29, 0.08);
}

.profile-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: center;
  padding: 34px;
}

.profile-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.quote-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 30px;
  background: var(--sage-dark);
}

.quote-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.quote-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(36, 48, 45, 0.82), rgba(36, 48, 45, 0.24));
}

.quote-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--white);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.14;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: 44px;
  align-items: stretch;
  background: #f3eee3;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  color: var(--sage-dark);
  font-weight: 700;
}

.map-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  padding: 0;
  background: var(--white);
  color: var(--ink);
}

.map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.map-card-caption {
  padding: 24px 26px 26px;
  border-top: 1px solid var(--stone);
  background: var(--white);
}

.map-card-caption span {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef3ed;
  color: var(--sage-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.map-card-caption strong {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.map-card-caption p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px max(24px, calc((100vw - 1160px) / 2));
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.footer-logo {
  width: min(360px, 72vw);
  height: auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--white);
}

.site-footer a {
  color: #f2dfbb;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.mobile-action-bar {
  display: none;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  padding: 180px max(24px, calc((100vw - 1160px) / 2)) 72px;
  background:
    linear-gradient(90deg, rgba(248, 245, 237, 0.96), rgba(248, 245, 237, 0.82)),
    url("assets/hero-profesional.png");
  background-size: cover;
  background-position: center;
}

.catalog-hero h1 {
  max-width: 850px;
  color: var(--ink);
}

.catalog-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.catalog-summary {
  padding: 26px;
  border: 1px solid rgba(86, 108, 95, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.catalog-summary span,
.catalog-summary a {
  display: block;
}

.catalog-summary span {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-summary a {
  margin-bottom: 12px;
  color: var(--sage-dark);
  font-size: 1.4rem;
  font-weight: 800;
}

.catalog-summary p {
  margin: 0;
  font-size: 0.96rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 80px max(24px, calc((100vw - 1160px) / 2)) 96px;
}

.catalog-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--stone);
  border-radius: 8px;
  background: var(--white);
}

.catalog-sidebar h2 {
  margin: 0;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 1rem;
}

.catalog-sidebar ul,
.catalog-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.catalog-sidebar p,
.catalog-card p,
.catalog-card li {
  color: var(--muted);
}

.catalog-list {
  display: grid;
  gap: 18px;
}

.catalog-card {
  padding: 28px;
  border: 1px solid var(--stone);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(43, 39, 29, 0.06);
}

.catalog-card.featured {
  border-color: rgba(86, 108, 95, 0.42);
  box-shadow: 0 20px 54px rgba(86, 108, 95, 0.14);
}

.catalog-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.catalog-card-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.catalog-card-head strong {
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef3ed;
  color: var(--sage-dark);
  font-size: 1rem;
  white-space: nowrap;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.price-grid span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--ivory);
  color: var(--muted);
}

.price-grid strong {
  color: var(--sage-dark);
}

.check-list {
  columns: 2;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.72fr);
  gap: 52px;
  align-items: end;
  padding: 170px max(24px, calc((100vw - 1160px) / 2)) 76px;
  background:
    linear-gradient(90deg, rgba(248, 245, 237, 0.98), rgba(239, 231, 216, 0.8)),
    url("assets/clinica-hero.png");
  background-size: cover;
  background-position: center;
}

.about-intro h1 {
  margin-bottom: 12px;
}

.about-role {
  margin: 0;
  color: var(--sage-dark);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 800;
}

.about-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(86, 108, 95, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.about-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 38% center;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
  background: #f3eee3;
}

.about-story-card,
.about-quote {
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(43, 39, 29, 0.08);
}

.about-story-card {
  display: grid;
  gap: 18px;
  padding: 42px;
}

.about-story-card p {
  margin: 0;
  color: #46554e;
  font-size: 1.08rem;
}

.about-quote {
  position: sticky;
  top: 112px;
  padding: 32px;
  background: var(--sage-dark);
}

.about-quote p {
  margin: 0;
  color: var(--white);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--stone);
    border-radius: 8px;
    background: var(--white);
  }

  .menu-button span {
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.is-open {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 8px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 45px rgba(37, 32, 22, 0.12);
  }

  .site-nav.is-open a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-top: 136px;
    padding-bottom: 28px;
  }

  .hero-image {
    object-position: 24% 50%;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(36, 48, 45, 0.82), rgba(36, 48, 45, 0.24)),
      linear-gradient(0deg, rgba(36, 48, 45, 0.5), rgba(36, 48, 45, 0.05) 48%);
  }

  .hero-content {
    grid-column: 1;
    color: var(--white);
    padding-bottom: 0;
  }

  .hero .eyebrow {
    color: #f2dfbb;
  }

  .hero-content .secondary-button {
    border-color: rgba(255, 253, 248, 0.72);
    color: var(--white);
    background: transparent;
  }

  .hero-copy {
    color: rgba(255, 253, 248, 0.88);
  }

  .appointment-panel {
    grid-column: 1;
  }

  h1 {
    font-size: clamp(2.65rem, 11vw, 4.35rem);
  }

  .appointment-panel {
    max-width: 520px;
  }

  .trust-strip,
  .section-heading,
  .services-grid,
  .professional-section,
  .location-section,
  .catalog-hero,
  .catalog-layout,
  .about-hero,
  .about-story {
    grid-template-columns: 1fr;
  }

  .catalog-hero {
    padding-top: 140px;
  }

  .catalog-sidebar {
    position: static;
  }

  .about-quote {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery-card-large {
    grid-row: auto;
  }

  .trust-strip div {
    min-height: 112px;
    padding: 24px;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .services-grid {
    border-left: 0;
  }

  .service-card {
    border-left: 1px solid var(--stone);
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 82px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 64px;
  }

  .brand small {
    display: none;
  }

  .logo-brand img {
    width: min(390px, calc(100vw - 104px));
    height: 62px;
  }

  .hero {
    padding-right: 16px;
    padding-left: 16px;
    padding-bottom: 18px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 9.2vw, 3.25rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .section,
  .location-section,
  .catalog-layout {
    padding: 64px 16px;
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(178px, 1fr));
    overflow-x: auto;
    padding: 0 16px 10px;
    scroll-snap-type: x mandatory;
  }

  .trust-strip div {
    min-height: 118px;
    border-radius: 8px;
    scroll-snap-align: start;
  }

  .services-grid {
    gap: 12px;
    border: 0;
  }

  .service-card {
    min-height: auto;
    padding: 20px;
    border: 1px solid var(--stone);
    border-radius: 8px;
    background: var(--white);
  }

  .service-number {
    margin-bottom: 22px;
  }

  .gallery-card {
    min-height: 230px;
  }

  .profile-card {
    padding: 22px;
  }

  .quote-panel {
    min-height: 240px;
  }

  .map-card {
    grid-template-rows: 230px auto;
  }

  .catalog-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .catalog-card-head,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card-head strong {
    width: fit-content;
    white-space: normal;
  }

  .check-list {
    columns: 1;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    padding-right: 16px;
    padding-left: 16px;
  }

  .footer-links {
    justify-content: center;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 40;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 14px 44px rgba(37, 32, 22, 0.18);
    backdrop-filter: blur(16px);
  }

  .mobile-action-bar a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
  }

  .mobile-action-bar a:first-child {
    background: var(--sage-dark);
    color: var(--white);
  }

  .mobile-action-bar a:last-child {
    border: 1px solid var(--sage-dark);
    color: var(--sage-dark);
  }
}
