@import url("/assets/fonts.css");

:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --white: #fffdf8;
  --ink: #1b2d26;
  --pine: #20382e;
  --pine-dark: #192b24;
  --sage: #cddac4;
  --sage-ink: #3f604e;
  --muted: #525e54;
  --line: #dcded3;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid #9e6429; outline-offset: 5px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 96px, 1176px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; inset: 10px auto auto 10px; z-index: 3; padding: 10px 16px; background: var(--white); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: block; flex: 0 1 300px; min-width: 0; }
.brand-logo { width: 100%; height: auto; }
.site-nav { display: flex; gap: clamp(18px, 3vw, 35px); align-items: center; }
.site-nav a { padding: 10px 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sage-ink); text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 18px; padding: 10px 17px; border: 1px solid transparent; border-radius: 6px; white-space: nowrap; font-size: 14px; font-weight: 700; transition: background-color .18s, color .18s, border-color .18s; }
.button span, .text-link span { font-size: 1.2em; line-height: 1; }
.arrow-up-right { display: inline-block; transform: rotate(45deg); }
.button-outline { border-color: #829589; }
.button-outline:hover { background: var(--pine); color: var(--white); border-color: var(--pine); }
.button-light { background: var(--sage); color: var(--pine-dark); }
.button-light:hover { background: #e5eddf; }

.hero { background: var(--pine); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: clamp(42px, 6vw, 96px); align-items: center; padding-block: 43px; }
.hero-copy { padding-block: 20px 28px; }
.eyebrow { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--sage-ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-line { width: 24px; height: 1px; flex: 0 0 auto; background: currentColor; }
.hero .eyebrow, .contact .eyebrow { color: var(--sage); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, .card h3 { font-family: var(--serif); font-weight: 500; }
.hero h1 { font-size: clamp(54px, 6.45vw, 96px); line-height: .99; letter-spacing: -.055em; }
.hero h1 em { display: block; margin-top: 4px; color: var(--sage); font-weight: 500; }
.hero-description { max-width: 420px; margin-top: 24px; color: #e2e8df; font-size: clamp(16px, 1.6vw, 19px); }
.hero-actions { display: flex; gap: 14px; margin-top: 25px; }
.hero-photo { position: relative; display: grid; isolation: isolate; overflow: hidden; border-radius: 8px; background: #e1e3d8; aspect-ratio: 1.17; }
.hero-photo img { grid-area: 1 / 1; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 10%; mix-blend-mode: multiply; }
.hero-photo figcaption { align-self: end; justify-self: start; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 14px; padding: 7px 11px; border-radius: 4px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600; }
.hero-photo figcaption span { width: 6px; height: 6px; border-radius: 50%; background: #56745d; }

.section { padding-block: 72px; }
.archive-intro { display: grid; grid-template-columns: 1fr minmax(200px, 350px); gap: 24px; align-items: end; }
h2, .archive-page-title { font-size: clamp(37px, 4.5vw, 61px); line-height: 1.08; letter-spacing: -.045em; }
.archive-intro > p, .about-copy > p { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 22px; }
.filters button { min-height: 42px; padding: 7px 15px; border: 1px solid #c9d1c6; border-radius: 4px; background: transparent; color: var(--pine); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .18s, color .18s; }
.filters button:hover { background: #e7ebe0; }
.filters button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.filters[hidden] + .sr-only + .cards { margin-top: 26px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card > img { width: 100%; height: auto; aspect-ratio: 1.67; object-fit: cover; background: #dcded4; }
.card-copy { display: flex; flex-direction: column; flex: 1; align-items: start; padding: 21px 22px 24px; }
.card-category { margin-bottom: 9px; color: var(--sage-ink); text-transform: uppercase; font-size: 11px; letter-spacing: .09em; font-weight: 700; }
.card h3 { margin-bottom: 9px; font-size: clamp(24px, 2.25vw, 31px); line-height: 1.16; letter-spacing: -.034em; }
.card-copy > p:not(.card-category) { margin-bottom: 16px; color: var(--muted); font-size: 15px; }
.card-link, .text-link { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; }
.card-link { margin-top: auto; color: var(--pine); }
.card-link:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.about { background: #eeeee6; border-top: 1px solid var(--line); }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: start; gap: clamp(26px, 6vw, 90px); }
.about-copy { padding-top: 19px; }
.about-copy p { margin-bottom: 13px; font-size: 17px; }
.contact { background: var(--pine-dark); color: var(--white); }
.contact h2 em { color: var(--sage); }
.contact address { margin-block: 18px 12px; color: #e0e8df; font-style: normal; }
.contact .text-link { color: var(--sage); }
.contact-details { display: grid; gap: 18px; align-self: end; }
.contact-details > div { border-top: 1px solid #687b6d; display: grid; grid-template-columns: minmax(98px, .7fr) 1fr; gap: 2px 16px; padding-top: 13px; }
.contact-details h3 { font: 700 14px/1.5 var(--sans); color: var(--sage); }
.contact-details > div > a, .contact-details > div > p { grid-column: 2; }
.contact-details a:hover { text-decoration: underline; }
.site-footer { background: var(--pine-dark); color: #d5dfd5; border-top: 1px solid #52695c; font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-block: 19px; }
.footer-row a:hover { text-decoration: underline; }

.detail-header { padding-block: 53px 45px; background: var(--pine); color: var(--white); }
.detail-header .eyebrow, .detail-header .text-link { color: var(--sage); }
.detail-header .eyebrow { margin-top: 28px; }
.detail-header h1 { max-width: 900px; font-size: clamp(39px, 6vw, 76px); line-height: 1.05; letter-spacing: -.045em; }
.detail-header p:last-child { max-width: 620px; margin-top: 17px; color: #e2e8df; }
.detail-content { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 54px; align-items: start; }
.detail-content figure { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.detail-content figure img { aspect-ratio: 1.53; width: 100%; height: auto; object-fit: cover; }
.detail-content figcaption { padding: 11px 14px; color: var(--muted); font-size: 13px; }
.case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.case-gallery figure img { aspect-ratio: auto; }
.case-gallery img[src="/assets/implant-yenileme-gulus-detay.webp"] { transform: rotate(180deg); }
.case-gallery figcaption { color: var(--ink); font-weight: 700; }
.case-photo-section { padding-bottom: clamp(36px, 6vw, 72px); }
.case-photo-section h2 { margin-bottom: 18px; font-size: clamp(25px, 3.5vw, 40px); }
.detail-body section + section { margin-top: 26px; }
.detail-body h2 { margin-bottom: 9px; font-size: clamp(25px, 2.8vw, 35px); }
.detail-body p { color: var(--muted); }
.detail-source { margin-top: 28px; padding-top: 17px; border-top: 1px solid var(--line); }
.detail-source .text-link { color: var(--pine); }

@media (max-width: 980px) {
  .wrap { width: min(100% - 64px, 1176px); }
  .header-row { gap: 18px; }
  .site-nav { gap: 16px; }
  .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 24px; }
  .hero h1 { font-size: clamp(51px, 7.3vw, 72px); }
  .hero-photo { aspect-ratio: .98; }
  .card-copy { padding-inline: 16px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-row { min-height: 67px; flex-wrap: wrap; gap: 0 15px; }
  .brand { flex-basis: min(280px, calc(100% - 104px)); padding-block: 10px; }
  .header-action { display: none; }
  .menu-enhanced .menu-toggle { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 600; }
  .site-nav { flex: 1 0 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; padding: 4px 0 12px; border-top: 1px solid var(--line); }
  .menu-enhanced .site-nav:not(.is-open) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(51px, 10.6vw, 76px); }
  .hero-description { margin-top: 17px; }
  .hero-actions { margin-top: 19px; }
  .hero-photo { aspect-ratio: 1.42; }
  .hero-photo img { object-position: 50% 9%; }
  .section { padding-block: 50px; }
  .archive-intro, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .archive-intro > p { max-width: 440px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .about-copy { padding-top: 0; }
  .contact-details { margin-top: 13px; }
  .detail-header { padding-block: 36px; }
  .detail-content { grid-template-columns: 1fr; gap: 28px; }
  .detail-content figure { max-width: 500px; }
  .case-gallery { gap: 16px; }
  .case-gallery figure { max-width: none; }
}
@media (max-width: 490px) {
  .wrap { width: calc(100% - 36px); }
  .cards { grid-template-columns: 1fr; gap: 17px; }
  .card-copy { padding: 18px; }
  .hero h1 { font-size: clamp(41px, 12.2vw, 59px); }
  .filters { gap: 6px; margin-block: 19px; }
  .filters button { padding-inline: 11px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
