/* Homepage-only layout: related sections share a row on wide screens. */
.home-row > section, .home-row > section > .container { min-width: 0; }
.home-row > section > .container { width: 100%; }
.home-row h2, .home-row p, .home-row a { overflow-wrap: anywhere; }
.home-row--discovery, .home-row--about, .home-row--stories { display: grid; gap: 18px; }
.home-row--discovery { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: stretch; padding: 8px 0 18px; }
.home-row--discovery > section { background: transparent; padding: 0; }
.home-row--discovery .feature-banner__inner, .home-row--discovery .knowledge-teaser__inner { height: 100%; }
.home-row--discovery .feature-banner__copy { padding: clamp(24px, 2.8vw, 40px); }
.home-row--discovery .feature-banner__copy h2 { font-size: clamp(28px, 2.8vw, 40px); }
.home-row--discovery .knowledge-teaser__inner { flex-direction: column; justify-content: center; align-items: flex-start; padding: 30px; }
.home-row--discovery .knowledge-teaser .knowledge-link { margin-top: 10px; }
.home-row--about { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; padding: 18px 0; }
.home-row--about > section { padding: 34px; border-radius: 22px; }
.home-row--about .intro { background: #f9f2ea; }
.home-row--about .clinic { background: #fff8f1; border: 1px solid #edddcf; }
.home-row--about .intro-grid { display: block; }
.home-row--about .intro h2, .home-row--about .clinic h2 { font-size: clamp(29px, 2.8vw, 39px); }
.home-row--about .intro-copy { margin: 18px 0 0; }
.home-row--about .intro-copy p:first-child { font-size: 16px; }
.home-row--about .values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; padding-top: 18px; }
.home-row--about .values > div:not(:last-child) { gap: 8px; }
.home-row--about .values p { font-size: 14px; }
.home-row--about .smile-mark { display: none; }
.home-row--about .clinic-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.home-row--about .clinic-image img { aspect-ratio: 1 / 1; }
.home-row--about .clinic-caption { right: 0; padding: 10px; font-size: 8px; flex-wrap: wrap; gap: 4px; }
.home-row--about .video-link { margin-top: 18px; max-width: 100%; }
.team.section { padding: 26px 0; }
.team .section-heading { margin: 0; }
.home-row--stories { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; padding: 18px 0 38px; }
.home-row--stories > section { padding: 0; background: transparent; }
.home-row--stories .feature-banner__inner { display: flex; flex-direction: column; height: 100%; }
.home-row--stories .feature-banner__media { order: 0; }
.home-row--stories .feature-banner__copy { flex: 1; padding: 24px 30px 30px; }
.home-row--stories .feature-banner__copy h2 { max-width: 18ch; font-size: clamp(29px, 2.8vw, 40px); margin-bottom: 18px; }
.home-row--stories .reviews-header { min-height: 0; padding: 24px 28px; margin-bottom: 14px; }
.home-row--stories .reviews-header h2 { font-size: clamp(27px, 2.5vw, 36px); }
.home-row--stories .reviews-intro { font-size: 14px; max-width: 210px; }
.home-row--stories .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-row--stories .review-card { min-height: 150px; padding: 18px; }
.home-row--stories .review-card__mark { font-size: 40px; margin-bottom: 12px; }
.home-row--stories .review-card blockquote { font-size: 15px; margin-bottom: 15px; }
.contact-banner { padding: 20px 0; }
.contact.section { padding: 55px 0; }
/* Align the split and card edges across the two desktop homepage rows. */
@media (min-width: 1001px) {
 .home-row--discovery .feature-banner__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
 .home-row--discovery .feature-banner__copy { padding: clamp(22px, 2.4vw, 32px); }
 .home-row--discovery .feature-banner__button { font-size: 12px; padding-inline: 14px; gap: 8px; }
 .home-row--discovery, .home-row--stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .home-row--discovery > section > .container, .home-row--stories > section > .container { height: 100%; }
 .home-row--stories .reviews-grid { grid-auto-rows: 1fr; }
}
@media (max-width: 1000px) {
 .home-row--discovery, .home-row--about, .home-row--stories { grid-template-columns: 1fr; }
 .home-row--discovery, .home-row--about, .home-row--stories { gap: 14px; }
 .home-row--about .clinic-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
 .home-row--stories .feature-banner__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
 .home-row--stories .feature-banner__media { order: 0; }
}
@media (max-width: 760px) {
 .home-row--discovery { padding-top: 4px; }
 .home-row--discovery .feature-banner__inner, .home-row--stories .feature-banner__inner { display: grid; grid-template-columns: 1fr; }
 .home-row--discovery .feature-banner__media { order: -1; }
 .home-row--discovery .feature-banner__copy, .home-row--stories .feature-banner__copy { padding: 22px 24px 26px; }
 .home-row--discovery .feature-banner__copy h2, .home-row--stories .feature-banner__copy h2 { font-size: clamp(27px, 7vw, 36px); margin-bottom: 16px; }
 .home-row--discovery .knowledge-teaser__inner { padding: 23px; }
 .home-row--about > section { padding: 25px 23px; }
 .home-row--about .clinic-grid { display: flex; flex-direction: column-reverse; gap: 18px; }
 .home-row--about .clinic-image img { aspect-ratio: 1.6 / 1; }
 .home-row--about .values > div:not(:last-child) { border: 0; display: block; }
 .home-row--about .values p { font-size: 13px; }
 .home-row--stories .reviews-header { padding: 25px 23px; }
 .team.section { padding: 20px 0; }
 .contact.section { padding: 42px 0; }
}
@media (max-width: 380px) {
 .home-row--stories .reviews-grid { grid-template-columns: 1fr; }
 .home-row--about .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Treatment cards: stronger contrast, clear interaction and a warm brand palette. */
.ref-services .ref-service-grid { gap: 14px; }
.ref-services .ref-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 194px;
  padding: 19px 12px 23px;
  border: 1px solid #ecd2b8;
  border-radius: 17px;
  background: linear-gradient(150deg, #fffaf4 0%, #fff0df 100%);
  box-shadow: 0 5px 18px rgba(112, 61, 26, .07);
  color: #382920;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ref-services .ref-service-card:nth-child(even) { background: linear-gradient(150deg, #fff8ef 0%, #fbe8d6 100%); }
.ref-services .ref-service-card::after {
  content: '';
  position: absolute;
  inset-inline: 32% 32%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #cf6d24;
}
.ref-services .ref-service-card:hover {
  transform: translateY(-4px);
  border-color: #ce8a54;
  background: #fff0df;
  box-shadow: 0 10px 22px rgba(112, 61, 26, .15);
}
.ref-services .ref-service-card:focus-visible { outline: 3px solid #9f430c; outline-offset: 3px; }
.ref-services .ref-service-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border: 1px solid #f1d0b2;
  background: #fff;
  box-shadow: 0 4px 12px rgba(150, 75, 22, .09);
}
.ref-services .ref-service-icon svg { width: 31px; height: 31px; stroke: #a84a0c; stroke-width: 1.65; }
.ref-services .ref-service-card h3 { color: #36261c; font-size: 14px; line-height: 1.3; margin-bottom: 7px; }
.ref-services .ref-service-card p { color: #665146; font-size: 12px; line-height: 1.45; }
@media (max-width: 760px) {
  .ref-services .ref-service-grid { gap: 10px; }
  .ref-services .ref-service-card { min-height: 175px; padding: 16px 10px 19px; }
  .ref-services .ref-service-icon { width: 52px; height: 52px; margin-bottom: 10px; }
  .ref-services .ref-service-card h3 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ref-services .ref-service-card { transition: none; }
  .ref-services .ref-service-card:hover { transform: none; }
}

/* Compact portrait strip on the home page; images retain their full frame. */
.home-team.section { padding: 36px 0; }
.home-team__layout { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.55fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.home-team__intro h2 { font-family: var(--heading); font-weight: 800; letter-spacing: -.045em; line-height: 1.12; font-size: clamp(32px, 3.5vw, 52px); margin: 0; }
.home-team__intro h2 em { color: #ad642e; }
.home-team__intro > p:not(.eyebrow) { color: #69594c; max-width: 360px; margin: 14px 0 0; }
.home-team__intro .text-link { margin-top: 16px; }
.home-team__portraits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.home-team__portraits figure { margin: 0; min-width: 0; overflow: hidden; border: 1px solid #eddcc9; border-radius: 13px; background: #fff; }
.home-team__portraits img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 1242; object-fit: contain; object-position: center top; background: #f4e8dc; }
/* Portreleri hafif yakınlaştırırken üst kenarı koru; logo yer tutucusu değişmez. */
.home-team__portraits img:not(.team-placeholder) { object-view-box: inset(0 6% 11%); }
.home-team__portraits figure:has(img[src*="irem-asya-kafadar-gurbuz-logo"]) { background: #f3e9db; }
.home-team__portraits img[src*="irem-asya-kafadar-gurbuz-logo"] { object-view-box: none; transform: scale(.85); transform-origin: center bottom; background: transparent; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%); mask-composite: intersect; }
.home-team__portraits figure:has(img[src*="irem-asya-kafadar-gurbuz-logo"]) figcaption { background: #fff; }
.home-team__portraits img.team-placeholder { box-sizing: border-box; padding: 24%; object-position: center; background: linear-gradient(145deg, #fdf9f4, #f2e7db); }
.home-team__portraits figcaption { text-align: center; padding: 9px 8px 11px; color: #49372c; font-size: clamp(11px, 1vw, 13px); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.home-team__portraits figcaption { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 4.5em; }
@media (max-width: 760px) { .home-team__layout { grid-template-columns: 1fr; gap: 24px; } .home-team__portraits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .home-team__intro h2 { font-size: clamp(30px, 8vw, 40px); } }
@media (max-width: 480px) { .home-team__portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .home-team__portraits figcaption { font-size: 12px; } }

/* Soft border glow highlights each portrait in turn. */
.home-team__name, .home-team__title { display: block; }
.home-team__title { margin-top: 5px; color: #755b49; font-size: 11px; font-weight: 500; line-height: 1.35; }
@keyframes home-team-border-glow {
  0%, 100% { border-color: #eddcc9; box-shadow: 0 3px 10px #8b54200b; }
  50% { border-color: #d9945d; box-shadow: 0 0 0 3px #d9945d20, 0 6px 18px #8b54201a; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-team__portraits figure { animation: home-team-border-glow 5s ease-in-out infinite; }
  .home-team__portraits figure:nth-child(2) { animation-delay: .65s; }
  .home-team__portraits figure:nth-child(3) { animation-delay: 1.3s; }
  .home-team__portraits figure:nth-child(4) { animation-delay: 1.95s; }
}
