/* Product pages (spec 6.8, polish spec 6): one template for every insurance product,
   full width, in the old site's language. */

/* 1. Head: the old site's banner photo under a navy veil; quote card on the right. */
.gs-product-head { position: relative; overflow: hidden; background: var(--gs-navy) url("../img/banner.webp") center / cover no-repeat; padding-block: calc(32px + clamp(28px, 4vw, 48px)) clamp(36px, 5vw, 64px); }
.gs-product-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 62, 95, 0.95) 0%, rgba(8, 62, 95, 0.86) 55%, rgba(8, 62, 95, 0.7) 100%); }
.gs-product-head__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px 56px; align-items: start; }
/* Ten or more fields: a wider card with two columns of fields (forms.css), so the head stays short. */
.gs-product-head__grid:has(.gs-quote--long) { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 32px 48px; }
.gs-product-head__intro { padding-top: 8px; color: #E1E9F1; }

.gs-product-head h1 { color: var(--gs-white); font-size: var(--gs-fs-3xl); max-width: 22ch; margin-bottom: 16px; overflow-wrap: anywhere; hyphens: auto; }
.gs-product-head__lede { max-width: 54ch; font-size: var(--gs-fs-lg); line-height: 1.55; }

.gs-ticks { display: grid; gap: 10px; margin: 24px 0 0 !important; padding: 0; list-style: none; }
.gs-ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--gs-white); font-weight: 600; }
.gs-ticks .gs-icon { width: 22px; height: 22px; padding: 3px; border-radius: var(--gs-radius); background: var(--gs-accent); color: var(--gs-white); stroke-width: 3; }

.gs-product-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px !important; }
/* "Teklif al" only scrolls to the form: phones, where the form is below; desktop gets WhatsApp. */
.gs-product-head__wa { display: none; }
@media (min-width: 992px) {
  .gs-product-head__quote { display: none; }
  .gs-product-head__wa { display: inline-flex; }
}
.gs-product-head__call { color: var(--gs-white); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.gs-quote { scroll-margin-top: 88px; padding: clamp(20px, 3vw, 28px); border-top: 4px solid var(--gs-accent); border-radius: var(--gs-radius); background: var(--gs-white); box-shadow: 0 18px 40px rgba(0, 20, 40, 0.28); }
.gs-quote:focus { outline: none; }
.gs-quote h2 { font-size: var(--gs-fs-lg); margin-bottom: 6px; }
.gs-quote > p { margin-bottom: 18px; color: var(--gs-muted); font: 400 0.9375rem/1.5 var(--gs-font-info); }
.gs-quote__contact { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gs-quote__contact .gs-btn { width: 100%; }
.gs-quote__contact .gs-btn--ghost { color: var(--gs-navy); }

/* 2. Intro: title left, text right with a rule (the old site's two-column intro), large photo below. */
.gs-product-intro { padding-block: clamp(44px, 6vw, 64px) 0; }
.gs-product-intro__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 48px; align-items: center; margin-bottom: 32px; }
.gs-product-intro__head h2 { font-size: var(--gs-fs-2xl); }
.gs-product-intro__text { padding-left: 24px; border-left: 3px solid var(--gs-navy); color: #193656; font: 400 1rem/1.65 var(--gs-font-info); }
.gs-product-intro__text p { margin-bottom: 0.8em; }
/* Products without photos: the group's two-tone icon under the title (UI/UX round). */
.gs-product-intro__head--visual { align-items: start; }
.gs-product-visual { display: grid; place-items: center; max-width: 360px; margin-top: 28px; aspect-ratio: 16 / 10; border-radius: var(--gs-radius-lg); background: var(--gs-mist); }
.gs-product-visual img { width: 136px; height: 136px; padding: 26px; border-radius: 50%; background: var(--gs-white); box-shadow: 0 10px 28px rgba(8, 62, 95, 0.1); }
/* The large photo in its own proportions, at most 520 px tall (it was cropped to 440 px,
   cutting posters' text); a blurred copy of the same file fills the sides of narrow ones. */
.gs-product-big { position: relative; overflow: hidden; display: flex; justify-content: center; border-radius: var(--gs-radius-lg); background: var(--gs-mist); }
.gs-product-big__img { position: relative; display: block; width: min(100%, calc(520px * var(--gs-ratio, 2.6))); height: auto; }
.gs-product-big .gs-product-big__fill { position: absolute; inset: -40px; width: calc(100% + 80px); max-width: none; height: calc(100% + 80px); object-fit: cover; filter: blur(28px) saturate(1.1); opacity: 0.55; }

/* 3. Benefits: the old boxes, a blue strip over a white body, on a grey band. */
.gs-benefits { margin-top: clamp(44px, 6vw, 64px); padding-block: clamp(44px, 6vw, 64px); background: var(--gs-band); }
.gs-benefits h2 { font-size: var(--gs-fs-2xl); margin-bottom: 28px; text-align: center; }
.gs-benefits__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* No box left alone: three in a row; another odd count lets the last one span the row. */
.gs-benefits__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gs-benefits__grid--odd .gs-benefit:last-child { grid-column: 1 / -1; }
.gs-benefit { overflow: hidden; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); background: var(--gs-white); }
.gs-benefit h3 { margin: 0; padding: 14px 16px; background: var(--gs-navy); color: var(--gs-white); font: 700 0.9375rem/1.3 var(--gs-font); text-align: center; text-transform: uppercase; letter-spacing: 0.02em; }
.gs-benefit p { margin: 0; padding: 16px 20px; color: #4F5459; font: 400 0.9375rem/1.6 var(--gs-font-read); }

/* 4. Story: "Bu sayfada" and the product's other photos in one column that stays in view
   beside the text (the photos used to hang in the middle of a 2,000 px column). */
.gs-product-story { padding-block: clamp(44px, 6vw, 72px); }
.gs-product-story__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.gs-product-story__aside { display: grid; gap: 28px; }
.gs-product-story__text { display: grid; gap: 28px; max-width: 72ch; }
.gs-product-story h2 { font-size: var(--gs-fs-xl); margin-bottom: 12px; scroll-margin-top: 96px; }
/* Sub-headings inside a section: below the section titles, not shouting. */
.gs-product-story h3, .gs-product-intro__text h3 { margin: 1.4em 0 0.5em; color: var(--gs-navy); font: 700 1.0625rem/1.35 var(--gs-font); text-transform: none; }
.gs-product-story p, .gs-product-story ul, .gs-product-story ol { margin-bottom: 1em; color: #5F6368; font: 400 1rem/1.7 var(--gs-font-read); }
.gs-product-story :is(ul, ol) { padding-inline-start: 1.3em; }
.gs-product-story li + li { margin-top: 0.35em; }
.gs-product-story a { color: var(--gs-navy); font-weight: 600; text-underline-offset: 3px; }
.gs-product-story strong { color: var(--gs-navy); }

.gs-toc { font-family: var(--gs-font-info); }
.gs-product-story .gs-toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--gs-line); }
.gs-toc__title { margin-bottom: 10px !important; color: var(--gs-orange-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.gs-product-story .gs-toc li + li { margin-top: 0; }
.gs-product-story .gs-toc a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; color: var(--gs-muted); font: 400 0.9375rem/1.35 var(--gs-font-info); text-decoration: none; }
.gs-product-story .gs-toc a:hover { color: var(--gs-navy); }
.gs-product-story .gs-toc a[aria-current] { border-left-color: var(--gs-accent); color: var(--gs-navy); font-weight: 600; }

.gs-product-photos { display: grid; gap: 10px; }
.gs-product-photos__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--gs-radius); }
.gs-product-photos--3, .gs-product-photos--4 { grid-template-columns: 1fr 1fr; }
.gs-product-photos--3 { grid-template-rows: 160px 110px; }
.gs-product-photos--3 .gs-product-photos__img:first-child { grid-column: span 2; }
.gs-product-photos--4 { grid-template-rows: 120px 120px; }
.gs-product-photos--1 .gs-product-photos__img, .gs-product-photos--2 .gs-product-photos__img { height: auto; }

/* 1200 px and up: one sticky column on the left. */
@media (min-width: 1200px) {
  .gs-product-story__inner:has(.gs-product-story__aside) { grid-template-columns: 260px minmax(0, 1fr); }
  .gs-product-story__aside { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; }
}
/* Below: the list becomes a row of chips above the text; photos beside it (tablets) or after it (phones). */
@media (max-width: 1199px) {
  .gs-product-story__aside { display: contents; }
  .gs-toc { grid-column: 1 / -1; }
  .gs-product-story .gs-toc ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; border-left: 0; scrollbar-width: thin; }
  .gs-product-story .gs-toc li { flex: none; }
  .gs-product-story .gs-toc a { margin: 0; padding: 8px 12px; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); background: var(--gs-white); color: var(--gs-navy); font-size: 0.875rem; white-space: nowrap; }
  .gs-product-story .gs-toc a[aria-current] { border-color: var(--gs-navy); }
  .gs-product-story__text { order: 1; }
  .gs-product-photos { order: 2; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .gs-product-story__inner--photos { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); }
  .gs-product-story__inner--photos .gs-product-photos { position: sticky; top: 96px; grid-column: 2; }
  .gs-product-story__inner--photos .gs-product-story__text { grid-column: 1; }
  .gs-product-story__inner--photos.gs-product-story__inner--toc .gs-product-photos,
  .gs-product-story__inner--photos.gs-product-story__inner--toc .gs-product-story__text { grid-row: 2; }
}

/* 5. FAQ accordion (only when written). */
.gs-faq { padding-block: 0 clamp(44px, 6vw, 64px); }
.gs-faq h2 { font-size: var(--gs-fs-2xl); margin-bottom: 12px; scroll-margin-top: 96px; }
.gs-faq__item { border-bottom: 1px solid var(--gs-line); }
.gs-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding-block: 12px; color: var(--gs-navy); font-weight: 600; list-style: none; cursor: pointer; }
.gs-faq__item summary::-webkit-details-marker { display: none; }
.gs-faq__item summary .gs-icon { transition: transform 0.2s; }
.gs-faq__item[open] summary .gs-icon { transform: rotate(180deg); }
.gs-faq__answer { padding-bottom: 16px; font-family: var(--gs-font-read); }

/* Empty products: the group's description (and the health photo for the health group). */
.gs-empty { padding-block: clamp(44px, 6vw, 64px) 0; }
.gs-empty__intro { max-width: 62ch; margin-bottom: 28px !important; padding-left: 24px; border-left: 3px solid var(--gs-navy); color: #193656; font: 400 var(--gs-fs-lg)/1.55 var(--gs-font-info); }

/* 6. End band: the group's other products and the office, full width. */
.gs-product-more { margin-top: clamp(44px, 6vw, 64px); padding-block: clamp(44px, 6vw, 64px); border-top: 1px solid var(--gs-line); }
.gs-product-story + .gs-product-more, .gs-faq + .gs-product-more { margin-top: 0; }
.gs-product-more__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
.gs-product-more h2 { font-size: var(--gs-fs-lg); margin-bottom: 16px; }
.gs-product-more ul { margin: 0; padding: 0; list-style: none; }
.gs-product-more__links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gs-product-more__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; min-height: 56px; padding: 12px 16px; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); background: var(--gs-white); color: var(--gs-navy); font-weight: 600; line-height: 1.3; text-decoration: none; }
.gs-product-more__links a:hover { background: var(--gs-band); }
.gs-product-more__office { padding: 24px; border-radius: var(--gs-radius); background: var(--gs-band); }
.gs-product-more address { margin-bottom: 12px; font: normal 400 1rem/1.5 var(--gs-font-info); }
.gs-product-more__hours { margin: -4px 0 4px; color: var(--gs-muted); font: 400 0.9375rem/1.5 var(--gs-font-info); }
.gs-product-more__hours:last-of-type { margin-bottom: 12px; }
.gs-product-more__office a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--gs-navy); font-weight: 600; text-decoration: none; }
.gs-product-more__office a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1199px) {
  .gs-product-head__grid:has(.gs-quote--long) { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
}
@media (max-width: 991px) {
  .gs-product-head__grid, .gs-product-head__grid:has(.gs-quote--long), .gs-product-intro__head, .gs-product-more__inner { grid-template-columns: minmax(0, 1fr); }
  .gs-benefits__grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-benefits__grid--three .gs-benefit:last-child { grid-column: 1 / -1; }
  .gs-product-visual { max-width: none; aspect-ratio: auto; padding-block: 28px; }
}
@media (max-width: 600px) {
  .gs-benefits__grid, .gs-benefits__grid--three, .gs-product-more__links ul { grid-template-columns: minmax(0, 1fr); }
  .gs-product-head__actions .gs-btn { width: 100%; }
  .gs-product-photos--3 { grid-template-rows: 180px 130px; }
  .gs-product-photos--4 { grid-template-rows: 140px 140px; }
}
