:root {
  --coral: #E1856B;
  --apricot: #EEAD5C;
  --sage: #737A63;
  --sage-dark: #5F6651;
  --text: #3E4435;
  --white: #FFFFFF;
  --coral-soft: #FCEFEA;
  --apricot-soft: #FDF4E6;
  --sage-soft: #F0F2EC;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }

a { color: var(--sage-dark); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
a:focus-visible, label:focus-visible, button:focus-visible {
  outline: 3px solid var(--apricot);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 .6em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 20;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #EFE6DD;
  position: relative;
  z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 56px; height: 56px; display: block; }
.brand span { font-family: var(--serif); font-size: 1.3rem; white-space: nowrap; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; cursor: pointer; border-radius: 50%;
  background: var(--sage-soft);
}
.nav-button span, .nav-button span::before, .nav-button span::after {
  display: block; width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; content: ""; position: relative;
}
.nav-button span::before { position: absolute; top: -6px; }
.nav-button span::after { position: absolute; top: 6px; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 1px solid #EFE6DD;
  padding: 8px 20px 18px;
}
.nav-toggle:checked ~ .site-nav { display: block; }
.nav-toggle:focus-visible ~ .nav-button { outline: 3px solid var(--apricot); outline-offset: 3px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 12px 4px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid #F3ECE5; white-space: nowrap;
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 700; border-left: 4px solid var(--coral); padding-left: 10px; }
.site-nav a:hover { color: var(--sage-dark); }

@media (min-width: 980px) {
  .nav-button { display: none; }
  .site-nav {
    display: block; position: static; border: 0; padding: 0; background: none;
  }
  .site-nav ul { display: flex; gap: 6px; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 999px; font-size: .98rem; }
  .site-nav a[aria-current="page"] { background: var(--coral-soft); color: var(--text); border-left: 0; padding-left: 12px; font-weight: 600; }
  .site-nav a:hover { background: var(--sage-soft); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(circle at 12% 18%, var(--coral-soft) 0 22%, transparent 23%),
    radial-gradient(circle at 92% 80%, var(--apricot-soft) 0 26%, transparent 27%),
    var(--white);
}
.hero p.lead { font-size: 1.15rem; max-width: 36em; }
.page-head { padding-top: 44px; padding-bottom: 8px; }
.page-head h1 { margin-bottom: .3em; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--sage-dark);
  background: var(--sage-dark); color: var(--white); font-weight: 600; font-size: 1rem;
  line-height: 1.3;
}
.btn:hover { background: var(--text); border-color: var(--text); color: var(--white); }
.btn.outline { background: var(--white); color: var(--sage-dark); }
.btn.outline:hover { background: var(--sage-soft); color: var(--text); }

/* Sections */
section { padding: 40px 0; }
.soft-coral { background: var(--coral-soft); }
.soft-apricot { background: var(--apricot-soft); }
.soft-sage { background: var(--sage-soft); }

.cards { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 8px; }
.card {
  background: var(--white); border: 1px solid #F0E3D9;
  border-radius: 26px 34px 28px 36px; padding: 24px 24px 8px;
}
.card h3 { margin-bottom: .4em; }
.card.c1 { background: var(--coral-soft); border-color: transparent; }
.card.c2 { background: var(--apricot-soft); border-color: transparent; }
.card.c3 { background: var(--sage-soft); border-color: transparent; }
@media (min-width: 760px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li {
  background: var(--white); border: 1px solid #EBD9CC; border-radius: 999px;
  padding: 6px 16px; font-size: .98rem;
}

.facts { list-style: none; padding: 0; margin: 0 0 1em; }
.facts li { padding: 4px 0 4px 22px; position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: .85em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--apricot);
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 4px 0 18px 58px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--coral-soft); color: var(--text);
  font-family: var(--serif); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}

.service { padding: 26px 0; border-bottom: 1px solid #F0E3D9; }
.service:last-of-type { border-bottom: 0; }

.faq dt { font-weight: 700; margin-top: 1.4em; }
.faq dd { margin: .2em 0 0; }

.divider {
  height: 14px; margin: 0; border: 0;
  background: radial-gradient(circle at 7px 7px, var(--apricot) 0 3px, transparent 4px) repeat-x;
  background-size: 28px 14px; opacity: .6;
}

/* Footer */
.site-footer {
  margin-top: 48px; background: var(--sage-soft); padding: 36px 0 28px;
  font-size: .98rem; line-height: 1.8;
}
.site-footer p { margin: 0 0 .6em; overflow-wrap: anywhere; }
.site-footer .brandline { font-family: var(--serif); font-size: 1.2rem; }
.site-footer .note { font-size: .92rem; margin-top: 1em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Language switch */
.brand { order: 1; }
.lang {
  order: 2; margin-left: auto; text-decoration: none; font-weight: 700; font-size: .9rem;
  color: var(--sage-dark); border: 2px solid var(--sage-dark); border-radius: 999px; padding: 6px 13px; line-height: 1.2;
}
.lang:hover { background: var(--sage-soft); color: var(--text); }
.nav-button { order: 3; }
@media (min-width: 980px) {
  .site-nav { order: 2; margin-left: auto; }
  .lang { order: 3; margin-left: 10px; }
}

/* Quote */
.quote {
  margin: 0 0 1.1em; padding: 18px 22px; background: var(--white);
  border-left: 4px solid var(--coral); border-radius: 0 20px 20px 0;
  font-family: var(--serif); font-size: 1.1rem;
}
.service h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); }

/* Language switch: flag + code */
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang .flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(62, 68, 53, .25); }

/* ===== UI polish: bolder centred titles, hover feedback ===== */
section { padding: 56px 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; }
section h2, .page-head h1, .service h2 { text-align: center; margin-bottom: .9em; }
section h2::after, .page-head h1::after, .service h2::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--coral), var(--apricot)); margin: 14px auto 0;
}

/* hero and centred blocks */
.hero { text-align: center; }
.hero h1 { text-align: center; }
.hero p.lead { margin-left: auto; margin-right: auto; }
.hero .buttons, .centered .buttons, .page-head .buttons { justify-content: center; }
.centered, .centered p { text-align: center; }
.page-head.centered p { text-align: center; }

/* buttons */
.btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(62, 68, 53, .22); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* cards */
.card { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; cursor: pointer; padding-bottom: 14px; }
.card h3 { text-align: center; font-size: 1.3rem; margin-bottom: .6em; }
.card:active { transform: translateY(-1px); }

/* topic tags */
.tags { justify-content: center; gap: 12px; }
.tags li {
  font-weight: 500; padding: 10px 20px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.tags li:active { background: var(--coral-soft); border-color: var(--coral); }

/* FAQ items */
.faq { margin: 0; }
.qa {
  background: var(--white); border: 1px solid #F0E3D9; border-radius: 22px;
  padding: 18px 24px; margin-bottom: 14px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.qa dt { margin-top: 0; font-weight: 700; font-size: 1.08rem; }
.qa dd { margin: .4em 0 0; }

/* steps */
.steps li {
  background: var(--white); border: 1px solid #F0E3D9; border-radius: 22px;
  padding: 16px 22px 16px 78px; margin-bottom: 14px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.steps li::before { left: 22px; top: 16px; font-weight: 700; }

/* service blocks */
.service {
  background: var(--white); border: 1px solid #F0E3D9; border-radius: 26px 34px 28px 36px;
  padding: 26px 30px 12px; margin-bottom: 20px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.service:last-of-type { border-bottom: 1px solid #F0E3D9; }

/* hover colours (only on devices that can hover) */
@media (hover: hover) {
  .card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(62, 68, 53, .14); }
  .card.c1:hover { background: #F8DDD2; }
  .card.c2:hover { background: #FBE8C8; }
  .card.c3:hover { background: #E3E7DA; }
  .tags li:hover { background: var(--coral-soft); border-color: var(--coral); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(225, 133, 107, .28); }
  .qa:hover { background: var(--apricot-soft); border-color: var(--apricot); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(62, 68, 53, .1); }
  .steps li:hover { background: var(--coral-soft); border-color: var(--coral); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(62, 68, 53, .1); }
  .service:hover { background: var(--apricot-soft); border-color: var(--apricot); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(62, 68, 53, .12); }
}

@media (max-width: 520px) {
  section { padding: 44px 0; }
  .steps li { padding: 14px 16px 14px 66px; }
  .steps li::before { left: 14px; top: 14px; width: 38px; height: 38px; }
  .service { padding: 22px 20px 8px; }
  .qa { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover, .tags li:hover, .qa:hover, .steps li:hover, .service:hover, .btn:hover { transform: none; }
}

/* ===== Links: one consistent, clearly visible style ===== */
main a:not(.btn), .site-footer a {
  color: #A6452D; font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 2px; text-decoration-color: rgba(225, 133, 107, .6);
  text-underline-offset: 4px; text-decoration-skip-ink: auto;
  transition: color .15s ease, text-decoration-color .15s ease;
}
main a:not(.btn):hover, .site-footer a:hover { color: var(--text); text-decoration-color: var(--coral); }
main a:not(.btn):focus-visible, .site-footer a:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 4px; }

/* Language switch flags come from the stylesheet (always fresh), not from the HTML */
.lang .flag { display: none; }
.lang::before {
  content: ""; display: block; flex: none; width: 24px; height: 16px; border-radius: 2px;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(62, 68, 53, .25);
}
.lang[hreflang="en"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2060%2030%22%3E%3CclipPath%20id%3D%22s%22%3E%3Cpath%20d%3D%22M0%2C0%20v30%20h60%20v-30%20z%22%2F%3E%3C%2FclipPath%3E%3CclipPath%20id%3D%22t%22%3E%3Cpath%20d%3D%22M30%2C15%20h30%20v15%20z%20v15%20h-30%20z%20h-30%20v-15%20z%20v-15%20h30%20z%22%2F%3E%3C%2FclipPath%3E%3Cg%20clip-path%3D%22url(%23s)%22%3E%3Cpath%20d%3D%22M0%2C0%20v30%20h60%20v-30%20z%22%20fill%3D%22%23012169%22%2F%3E%3Cpath%20d%3D%22M0%2C0%20L60%2C30%20M60%2C0%20L0%2C30%22%20stroke%3D%22%23fff%22%20stroke-width%3D%226%22%2F%3E%3Cpath%20d%3D%22M0%2C0%20L60%2C30%20M60%2C0%20L0%2C30%22%20clip-path%3D%22url(%23t)%22%20stroke%3D%22%23C8102E%22%20stroke-width%3D%224%22%2F%3E%3Cpath%20d%3D%22M30%2C0%20v30%20M0%2C15%20h60%22%20stroke%3D%22%23fff%22%20stroke-width%3D%2210%22%2F%3E%3Cpath%20d%3D%22M30%2C0%20v30%20M0%2C15%20h60%22%20stroke%3D%22%23C8102E%22%20stroke-width%3D%226%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.lang[hreflang="tr"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2030%2020%22%3E%3Crect%20width%3D%2230%22%20height%3D%2220%22%20fill%3D%22%23E30A17%22%2F%3E%3Ccircle%20cx%3D%2210.6%22%20cy%3D%2210%22%20r%3D%225%22%20fill%3D%22%23fff%22%2F%3E%3Ccircle%20cx%3D%2211.9%22%20cy%3D%2210%22%20r%3D%224%22%20fill%3D%22%23E30A17%22%2F%3E%3Cpolygon%20points%3D%2215.20%2C6.90%2015.93%2C8.99%2018.15%2C9.04%2016.39%2C10.39%2017.02%2C12.51%2015.20%2C11.25%2013.38%2C12.51%2014.01%2C10.39%2012.25%2C9.04%2014.47%2C8.99%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); }

/* ===== About page portrait ===== */
.about-head { max-width: 960px; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; margin-top: 8px; }
.portrait { margin: 0 auto; width: min(320px, 78%); }
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border-radius: 32px 44px 34px 48px;
  box-shadow: 12px 12px 0 var(--coral-soft), 0 14px 30px rgba(62, 68, 53, .16);
}
.about-text p { text-align: left; }
@media (min-width: 820px) {
  .about-grid { grid-template-columns: 320px 1fr; gap: 48px; }
  .portrait { width: 320px; position: sticky; top: 24px; }
}

/* ===== Footer: centred and compact ===== */
.site-footer { text-align: center; padding: 26px 0 22px; font-size: .84rem; line-height: 1.7; margin-top: 40px; }
.site-footer p { margin: 0 0 .35em; }
.site-footer .brandline { font-size: 1rem; margin-bottom: .5em; }
.site-footer .note { font-size: .8rem; margin-top: .7em; opacity: .9; }

/* ===== Header: large logo that shrinks on scroll ===== */
.site-header { position: sticky; top: 0; z-index: 20; transition: box-shadow .25s ease; }
.header-inner { padding-top: 12px; padding-bottom: 12px; transition: padding .25s ease; }
.brand { gap: 12px; }
.brand img { width: 72px; height: 72px; transition: width .25s ease, height .25s ease; }
.brand span { font-size: 1.35rem; transition: font-size .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 18px rgba(62, 68, 53, .10); }
.site-header.scrolled .header-inner { padding-top: 6px; padding-bottom: 6px; }
.site-header.scrolled .brand img { width: 46px; height: 46px; }
.site-header.scrolled .brand span { font-size: 1.12rem; }

@media (min-width: 980px) {
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .brand { gap: 14px; }
  .brand img { width: 96px; height: 96px; }
  .brand span { font-size: 1.65rem; }
  .site-header.scrolled .brand img { width: 52px; height: 52px; }
  .site-header.scrolled .brand span { font-size: 1.25rem; }
}
@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand img { width: 58px; height: 58px; }
  .brand span { font-size: 1.1rem; }
  .site-header.scrolled .brand img { width: 42px; height: 42px; }
  .site-header.scrolled .brand span { font-size: 1rem; }
  .lang { padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .header-inner, .brand img, .brand span { transition: none; }
}

/* header fit fixes */
.header-inner { min-width: 0; }
.brand { min-width: 0; }
@media (min-width: 980px) {
  .header-inner.wrap { max-width: 1200px; }
  .brand img { width: 80px; height: 80px; }
  .brand span { font-size: 1.45rem; }
  .site-header.scrolled .brand img { width: 52px; height: 52px; }
  .site-header.scrolled .brand span { font-size: 1.2rem; }
}
@media (min-width: 1200px) {
  .brand img { width: 96px; height: 96px; }
  .brand span { font-size: 1.65rem; }
}
@media (max-width: 360px) {
  .header-inner.wrap { padding-left: 14px; padding-right: 14px; }
  .header-inner { gap: 6px; }
  .brand { gap: 6px; }
  .brand img { width: 50px; height: 50px; }
  .brand span { font-size: .95rem; }
  .site-header.scrolled .brand img { width: 40px; height: 40px; }
  .site-header.scrolled .brand span { font-size: .9rem; }
  .lang { padding: 4px 9px; gap: 6px; font-size: .82rem; }
  .nav-button { width: 42px; height: 42px; }
}

/* ===== Galleries (images added in the admin panel) ===== */
.gallery-sec { padding: 56px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.g-item { margin: 0; border-radius: 22px 28px 24px 30px; overflow: hidden; background: var(--sage-soft); transition: transform .2s ease, box-shadow .2s ease; }
.g-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sage-soft); }
.g-item figcaption { padding: 10px 14px 12px; font-size: .92rem; text-align: center; }
@media (hover: hover) { .g-item:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(62, 68, 53, .14); } }
.about-grid.no-photo { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) { .g-item { transition: none; } .g-item:hover { transform: none; } }

.gallery-grid.layout-wide { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.gallery-grid.layout-wide .g-item img { aspect-ratio: 16 / 10; }
.gallery-grid.layout-two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
@media (max-width: 560px) { .gallery-grid.layout-two { grid-template-columns: 1fr; } }

/* hidden elements must really disappear, even where a rule sets display */
[hidden] { display: none !important; }
