/* Door Line Pilates — shared styles
 *
 * Palette: Deep Green · Gold · Sage · Beige, taken from the brand PDF
 * (Reference_Assets/Door Line Pilates Eğitmenlik Sertifika Programı Detayları.pdf).
 * Values marked "derived" are not in the PDF: they are shades added so text,
 * labels and focus outlines meet WCAG AA. Gold (--color-gold) is about 3:1 on
 * white, so it is used for rules and borders only, never for text or focus
 * outlines on light surfaces.
 */

:root {
  --color-primary: #244f46;        /* deep green */
  --color-primary-dark: #1b3b34;   /* derived: hover and footer */
  --color-ink: #24302d;            /* green-charcoal body text */
  --color-muted: #68736f;          /* grey-green secondary text */
  --color-gold: #b88a4a;           /* gold: decorative rules only */
  --color-gold-text: #816134;      /* derived: small labels on light */
  --color-gold-on-dark: #d4b992;   /* derived: labels on deep green */
  --color-sage: #dce9e3;           /* sage: hover tint, callouts */
  --color-beige: #e9ded0;          /* beige: footer text, notes */
  --color-surface: #ffffff;
  --color-surface-alt: #f4f7f5;    /* pale green-white */
  --color-border: #dee5e3;         /* derived: hairlines */

  /* System and classic book faces: all ship with full Turkish (Latin Extended-A) coverage. */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --container: 72rem;
  --gutter: 1rem;
  --radius: 0.5rem;
  --header-height: 4.5rem;
}

@media (min-width: 48em) {
  :root {
    --gutter: 1.5rem;
  }
}

/* Base ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header and navigation -------------------------------------------------
 *
 * Without JavaScript the menu is a plain, always-visible list (stacked on
 * small screens, horizontal with a hover/focus dropdown on large screens).
 * main.js adds the mobile menu toggle and the submenu disclosure button.
 */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: var(--header-height);
}

.site-logo {
  display: inline-flex;
  padding-block: 0.5rem;
}

.site-logo img {
  width: auto;
  height: 3rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle[hidden] {
  display: none;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  flex-basis: 100%;
}

.site-nav__list,
.submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list {
  padding-block: 0.5rem 1rem;
}

.site-nav__item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--color-border);
}

.site-nav__link,
.submenu__link {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--color-ink);
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link {
  flex: 1;
}

.site-nav__link:hover,
.submenu__link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.site-nav__link[aria-current="page"],
.site-nav__link.is-active,
.submenu__link[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 700;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  color: var(--color-primary);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.submenu-toggle[hidden] {
  display: none;
}

.submenu-toggle__icon {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__icon {
  transform: translateY(25%) rotate(-135deg);
}

.submenu {
  flex-basis: 100%;
  padding: 0 0 0.5rem 1rem;
  border-left: 2px solid var(--color-sage);
}

.submenu__link {
  padding-block: 0.5rem;
  font-weight: 400;
}

/* Small screens with JavaScript: collapse the menu behind the toggle. */
@media (max-width: 59.99em) {
  .js .site-nav {
    display: none;
  }

  .js .site-header.is-nav-open .site-nav {
    display: block;
  }

  .js .has-submenu:not(.is-open) .submenu {
    display: none;
  }
}

/* Large screens: horizontal menu with a dropdown. */
@media (min-width: 60em) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: none !important;
  }

  .site-nav {
    flex-basis: auto;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
  }

  .site-nav__item {
    flex-wrap: nowrap;
    border-top: 0;
  }

  .site-nav__link {
    padding: 0.5rem 0.625rem;
    border-bottom: 2px solid transparent;
  }

  .site-nav__link:hover {
    text-decoration: none;
    border-bottom-color: var(--color-border);
  }

  .site-nav__link[aria-current="page"],
  .site-nav__link.is-active {
    border-bottom-color: var(--color-gold);
  }

  .submenu-toggle {
    width: 2rem;
    height: 2rem;
    margin-left: -0.375rem;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 17rem;
    padding: 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-gold);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 0.75rem 1.5rem rgb(36 48 45 / 0.12);
    display: none;
  }

  .submenu__link {
    padding: 0.5rem 0.75rem;
    border-radius: calc(var(--radius) / 2);
  }

  .submenu__link:hover {
    background: var(--color-surface-alt);
    text-decoration: none;
  }

  /* Without JavaScript the dropdown opens on hover and keyboard focus. */
  html:not(.js) .has-submenu:hover .submenu,
  html:not(.js) .has-submenu:focus-within .submenu,
  .js .has-submenu.is-open .submenu {
    display: block;
  }
}

/* Page structure -------------------------------------------------------- */

.page-hero {
  padding-block: 3rem 2.5rem;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-hero--home {
  padding-block: 4.5rem 4rem;
}

.page-hero__lead {
  max-width: 44rem;
  font-size: 1.1875rem;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--color-gold-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tagline {
  margin-top: 1.5rem;
  color: var(--color-gold-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--color-muted);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-muted);
}

.section {
  padding-block: 3.5rem;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section__header {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section__header::after {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  margin-top: 1rem;
  background: var(--color-gold);
}

.section__intro {
  color: var(--color-muted);
}

.prose {
  max-width: 44rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid + * {
  margin-top: 1.5rem;
}

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

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Components ------------------------------------------------------------ */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
}

.button:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.button--secondary {
  background: transparent;
  color: var(--color-primary);
}

.button--secondary:hover {
  background: var(--color-sage);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
}

.card > :last-child {
  margin-bottom: 0;
}

.card__meta {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.card__link {
  margin-top: auto;
  font-weight: 600;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding-left: 3.25rem;
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  border-radius: calc(var(--radius) / 2);
}

.steps h3 {
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
}

.check-list {
  padding-left: 1.25rem;
}

.check-list li + li {
  margin-top: 0.375rem;
}

.callout {
  padding: 1.25rem 1.5rem;
  background: var(--color-sage);
  border-radius: var(--radius);
}

.callout--note {
  background: var(--color-beige);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout h2,
.callout h3 {
  font-size: 1.125rem;
}

/* Visible marker for content that still needs to be confirmed by the client. */
.placeholder-note {
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.9375rem;
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius);
}

.facts {
  display: grid;
  gap: 0.75rem 1.5rem;
  margin: 0;
}

.facts div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.facts dt {
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

@media (min-width: 40em) {
  .facts {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }
}

/* Active trainings on the training detail pages: one card per training.
 * auto-fill keeps every card at column width (at most five in the container),
 * so a page with a single training doesn't get one stretched card. */
.sessions {
  margin-top: 2rem;
}

.sessions__title {
  margin-bottom: 1rem;
  color: var(--color-gold-text);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.session-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.375rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
}

.session-card__title {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Short gold rule under the title, as under the brand PDF's headings. */
.session-card__title::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin-top: 0.75rem;
  background: var(--color-gold);
}

.session-card__details {
  margin: 0 0 1.25rem;
}

.session-card__details div {
  padding-block: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.session-card__details div:first-child {
  padding-top: 0;
  border-top: 0;
}

.session-card__details dt {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-card__details dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Pinned to the bottom so buttons line up across cards of unequal height. */
.session-card__button {
  width: 100%;
  margin-top: auto;
}

/* Tables: scroll horizontally on small screens instead of overflowing the page. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table caption {
  padding: 0.75rem 1rem;
  color: var(--color-muted);
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--color-border);
}

.data-table thead th {
  background: var(--color-primary);
  color: #fff;
  border-top: 0;
}

.data-table tbody tr:nth-child(even) {
  background: var(--color-surface-alt);
}

.data-table tbody th {
  color: var(--color-primary);
}

/* Training calendar ----------------------------------------------------- */

.schedule-year {
  margin-top: 2.5rem;
  color: var(--color-gold-text);
}

.schedule {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-item {
  display: grid;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
}

.schedule-item__date {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.schedule-item__title {
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
}

.schedule-item__scope,
.schedule-item__price {
  margin: 0;
}

.schedule-item__scope {
  color: var(--color-muted);
}

.schedule-item__price {
  margin-top: 0.25rem;
  font-weight: 600;
}

/* "Detaylar" above "Ön Kayıt"; the single auto column gives both the same width. */
.schedule-item__actions {
  display: grid;
  justify-content: start;
  gap: 0.5rem;
  font-weight: 600;
}

/* Matches the homepage timetable's "Detaylar" button: a compact outline
 * button that fills deep green on hover. "Ön Kayıt" is the same size, filled. */
.schedule-item__link,
.schedule-item__register {
  gap: 0.625rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
  border-width: 1px;
  border-radius: 0.25rem;
}

.schedule-item__link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.schedule-item__arrow {
  font-size: 1.0625rem;
  line-height: 1;
}

@media (min-width: 48em) {
  .schedule-item {
    grid-template-columns: 11rem 1fr auto;
    align-items: center;
  }

  .schedule-item__actions {
    justify-content: end;
  }
}

/* Accreditation logos --------------------------------------------------- */

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin: 1.5rem 0;
}

.logo-row img {
  width: auto;
  height: 3.5rem;
}

/* Call to action band --------------------------------------------------- */

.cta-band {
  padding-block: 3.5rem;
  background: var(--color-primary);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
}

.cta-band .eyebrow {
  color: var(--color-gold-on-dark);
}

.cta-band a:not(.button) {
  color: #fff;
}

.cta-band .button {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.cta-band .button:hover {
  background: var(--color-sage);
  border-color: var(--color-sage);
}

.cta-band .button--secondary {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.6);
}

.cta-band .button--secondary:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: #fff;
}

.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-gold-on-dark);
}

.cta-band__phone {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 600;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  padding-block: 3rem 1.5rem;
  background: var(--color-primary-dark);
  color: var(--color-beige);
  font-size: 0.9375rem;
}

.site-footer a {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48em) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer__logo {
  display: inline-flex;
  margin-bottom: 1rem;
}

.site-footer__logo img {
  width: auto;
  height: 2.75rem;
  filter: brightness(0) invert(1);
}

.site-footer__heading {
  margin-bottom: 0.75rem;
  color: var(--color-gold-on-dark);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li + li {
  margin-top: 0.375rem;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer__social svg {
  flex: none;
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(233 222 208 / 0.25);
}

.site-footer__bottom p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .skip-link,
  .button,
  .submenu-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }
}
