/* =========================================================
   İrem Sözer Andan — Klinik Psikolog
   Minimal, responsive, JavaScript-free website
   ========================================================= */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #151515;
  --muted: #6a6a67;
  --line: #d9d9d4;
  --soft-line: #e9e9e5;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

main {
  flex: 1;
}

.page-shell,
.header-inner {
  width: min(calc(100% - 80px), var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 245, 0.98);
}

.header-inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  line-height: 1.15;
}

.brand-mark {
  width: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  letter-spacing: -0.025em;
}

.brand-title {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* Common page typography */

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

/* About */

.about-section {
  padding: clamp(80px, 10vw, 150px) 0 clamp(90px, 12vw, 170px);
}

.content-grid {
  display: block;
  margin-top: clamp(80px, 10vw, 145px);
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.body-copy {
  max-width: 820px;
}

.body-copy p {
  margin: 0 0 1.65em;
  color: #292927;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}

.body-copy p:last-child {
  margin-bottom: 0;
}

/* Contact */

.contact-section {
  padding: clamp(80px, 10vw, 150px) 0 clamp(110px, 14vw, 200px);
}

.contact-list {
  margin-top: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line);
}

.contact-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-item a {
  width: fit-content;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.2;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  text-decoration-color: transparent;
  transition: text-decoration-color 180ms ease;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  text-decoration-color: currentColor;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  text-underline-offset: 4px;
}

/* Responsive */

@media (max-width: 760px) {
  .page-shell,
  .header-inner {
    width: min(calc(100% - 40px), var(--max-width));
  }

  .header-inner {
    min-height: 96px;
    position: relative;
  }

  .brand {
    gap: 14px;
  }

  .brand-mark {
    width: 34px;
    flex-basis: 34px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand-title {
    margin-top: 6px;
    font-size: 0.65rem;
  }

  .nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .nav-toggle-label {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 3;
  }

  .nav-toggle-label span {
    width: 100%;
    height: 1px;
    display: block;
    background: var(--text);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-nav {
    position: absolute;
    z-index: 2;
    top: calc(100% + 1px);
    right: -20px;
    left: -20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 22px 20px 26px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(11.5px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-11.5px) rotate(-45deg);
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  .about-section,
  .contact-section {
    padding-top: 70px;
  }

  .content-grid {
    margin-top: 70px;
    padding-top: 30px;
  }

  .contact-list {
    margin-top: 72px;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }

  .contact-item a {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    min-height: 92px;
  }
}

@media (max-width: 420px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }
}
