/* Rahat Dom landing pages.
   Palette from Mersin itself: deep Mediterranean (sea), limestone white (stone),
   Mersin lemon (sun). WhatsApp green is reserved for WhatsApp actions only. */
:root {
  --sea: #0d4a5f;
  --sea-2: #13677f;
  --sea-3: #d9ecec;
  --stone: #f5f8f8;
  --paper: #ffffff;
  --ink: #0a1d24;
  --muted: #4a5f67;
  --line: #d6e1e3;
  --sun: #f3c443;
  --sun-2: #fbe7a8;
  --wa: #16803f;
  --wa-d: #0f6a33;

  --display: 'Young Serif', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r: 18px;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scroll-padding-bottom: calc(var(--dock-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  padding-bottom: var(--dock-h);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sea-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--sea-2); background: linear-gradient(transparent 62%, var(--sun-2) 62%); padding: 0 .06em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sun); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sea-2); margin-bottom: 14px; }
.fine { font-size: .82rem; color: var(--muted); line-height: 1.5; }
section { padding: clamp(56px, 8vw, 104px) var(--gut); max-width: var(--max); margin: 0 auto; }
section > h2, .section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font: 700 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px -10px rgba(20, 124, 62, .8); }
.btn--wa:hover { background: var(--wa-d); transform: translateY(-1px); }
.btn--lg { min-height: 60px; padding: 0 28px; font-size: 1.08rem; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.btn--sm svg { width: 19px; height: 19px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--sea); border-color: var(--sea); }
.btn--ghost:hover { background: var(--sea); color: #fff; }
.btn--light { background: #fff; color: var(--sea); }
.btn--light:hover { background: var(--sun); }
.btn--dark { background: var(--sea); color: #fff; }
.link-offer, .link-detail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sea); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--sun); min-height: 44px; }
.link-offer svg, .link-detail svg, .btn--ghost svg, .btn--light svg { width: 18px; height: 18px; transition: transform .15s ease; }
.link-offer:hover svg, .link-detail:hover svg, .btn:hover svg { transform: translateX(3px); }
.btn--wa:hover svg { transform: none; }
.link-inline { color: var(--sea); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link-inline svg { width: 14px !important; height: 14px !important; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut); background: rgba(245, 248, 248, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.logo { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--sea); text-decoration: none; font: 400 1.35rem/1 var(--display); }
.logo small { font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logo__sun { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); align-self: center; box-shadow: 0 0 0 4px var(--sun-2); }
.top__nav { display: flex; align-items: center; gap: 18px; }
.top__offer { min-height: 40px; font-size: .95rem; }
[data-offer] svg { width: 18px; height: 18px; flex: none; }
.top__wa { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; }
.top__wa svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .top__offer { display: none; } }

/* Hero */
.hero { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; padding-top: clamp(24px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { font-size: clamp(2.15rem, 4.4vw, 3.9rem); }
.hero__sub { margin-top: 20px; font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 38em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px; }
.hero__agent { display: flex; gap: 14px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.hero__agent b { color: var(--ink); }
@media (max-width: 899px) { .hero .window { order: -1; } }

/* Signature: the arched window */
.window { position: relative; margin: 0; }
.window::before { content: ''; position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); top: -4%; right: -3%; z-index: 0; }
.window__frame { position: relative; z-index: 1; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sea-3); box-shadow: 0 30px 60px -30px rgba(13, 74, 95, .55); outline: 10px solid var(--paper); }
.window__frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .window__frame { aspect-ratio: 16 / 9.5; width: 100%; outline-width: 6px; }
  .window::before { width: 22%; top: -8px; right: -6px; }
  .window__chip { bottom: 40px; left: 12px; padding: 7px 12px; font-size: .85rem; }
  .window figcaption { margin-top: 10px; font-size: .76rem; }
  .hero { gap: 22px; padding-top: 18px; }
  .hero__sub { margin-top: 14px; font-size: 1.02rem; }
  .hero__cta { margin-top: 22px; }
  .hero__cta .btn--lg { width: 100%; }
  .eyebrow { font-size: .72rem; margin-bottom: 10px; }
}
.window__chip { position: absolute; z-index: 2; left: 18px; bottom: 58px; background: var(--paper); color: var(--sea); padding: 9px 14px; border-radius: 999px; font-size: .92rem; box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.window__chip b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.window figcaption { position: relative; z-index: 1; margin-top: 18px; font-size: .82rem; color: var(--muted); }

/* Avatar */
.avatar { position: relative; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--sea); color: var(--sun); font-family: var(--display); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 52px; height: 52px; font-size: 1.4rem; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--wa); }
.avatar--lg { width: clamp(110px, 18vw, 170px); height: clamp(110px, 18vw, 170px); font-size: 3rem; box-shadow: 0 0 0 6px var(--paper), 0 0 0 9px var(--sun); }

/* Perks */
.perks { padding-top: 0; padding-bottom: 0; }
.perks ul { list-style: none; margin: 0; padding: 22px; display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--sea); color: #fff; border-radius: var(--r); }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks svg { width: 30px; height: 30px; flex: none; color: var(--sun); margin-top: 2px; }
.perks b { display: block; font-size: 1.02rem; }
.perks p { color: #cfe3e6; font-size: .93rem; line-height: 1.45; }
.perks b { color: #fff; }

/* Compare */
.compare__table { margin-top: 28px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.compare__row { display: grid; grid-template-columns: .8fr 1fr 1.15fr; }
.compare__row > span { padding: 16px 18px; border-top: 1px solid var(--line); font-size: .98rem; }
.compare__row > span:first-child { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.compare__row > span:nth-child(2) { color: var(--muted); }
.compare__row > span:last-child { background: var(--sea-3); color: var(--sea); font-weight: 600; }
.compare__head > span { border-top: 0; font-family: var(--display); font-size: 1.15rem !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--ink) !important; }
.compare__head > span:last-child { background: var(--sea); color: #fff !important; }
@media (max-width: 640px) {
  .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__row > span:first-child { grid-column: 1 / -1; padding-bottom: 0; border-top: 1px solid var(--line); background: none; }
  .compare__row > span:nth-child(2), .compare__row > span:last-child { border-top: 0; padding-top: 6px; }
  .compare__head > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
}

/* Why */
.why { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .why { grid-template-columns: 1.1fr .9fr; } }
.why h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.why dl { margin: 28px 0 30px; display: grid; gap: 22px; }
.why dl div { padding-left: 20px; border-left: 3px solid var(--sun); }
.why dt { font-weight: 700; font-size: 1.12rem; }
.why dd { margin: 4px 0 0; color: var(--muted); }
.why__img { margin: 0; }
.why__img img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.why__img figcaption { margin-top: 10px; font-size: .82rem; color: var(--muted); }

/* Projects */
.section-head { display: grid; gap: 14px; max-width: 760px; }
.section-head p { color: var(--muted); }
.cards { margin-top: 36px; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards[data-n="4"] { grid-template-columns: repeat(4, 1fr); gap: 16px; } .cards[data-n="5"], .cards[data-n="3"] { grid-template-columns: repeat(3, 1fr); } .cards[data-n="4"] .card h3 { font-size: 1.35rem; } .cards[data-n="4"] .card__price { font-size: 1.6rem; } }
.card { background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 16 / 11; background: var(--sea-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.badge, .status { position: absolute; font-size: .74rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.badge { left: 12px; top: 12px; background: rgba(10, 29, 36, .72); color: #fff; }
.status { right: 12px; bottom: 12px; background: var(--paper); color: var(--ink); }
.status--done { background: var(--sun); }
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 1.55rem; }
.card__specs { color: var(--muted); font-size: .93rem; margin-top: -6px; }
.card__price { font: 400 1.9rem/1 var(--display); color: var(--sea); }
.card__price small { font: 600 .85rem var(--body); color: var(--muted); }
.card__price span { display: block; font: 500 .88rem var(--body); color: var(--muted); margin-top: 6px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--stone); border: 1px solid var(--line); }
.card__note { font-size: .93rem; color: var(--muted); }
.card__actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.link-detail { font-size: .92rem; }
.projects__more { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: var(--r); border: 2px dashed var(--line); }
.projects__more p { font-weight: 600; max-width: 34em; }

/* Signature: distance-to-sea ruler, drawn to scale */
.ruler { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; }
.ruler__home { width: 10px; height: 10px; border-radius: 2px; background: var(--ink); grid-row: 1; }
.ruler__line { grid-row: 1; height: 2px; width: calc(var(--d) * (100% - 30px)); background: repeating-linear-gradient(90deg, var(--sea-2) 0 6px, transparent 6px 10px); position: relative; }
.ruler__sea { position: absolute; top: -2px; left: calc(20px + (100% - 50px) * var(--d) + 2px); width: 26px; color: var(--sea-2); }
.ruler__sea svg { width: 26px; height: 13px; display: block; }
.ruler__label { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
.ruler__label b { color: var(--sea); font-size: 1rem; }

/* Calculator */
.calc { display: grid; gap: 28px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.calc h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 16px; }
.calc__intro p:last-child { color: var(--muted); }
.calc__box { background: var(--paper); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(13,74,95,.5); display: grid; gap: 12px; }
.calc__box label { font-weight: 700; font-size: .92rem; }
.calc__box select { width: 100%; min-width: 0; font: 600 1rem var(--body); min-height: 52px; padding: 0 14px; border-radius: 12px; border: 2px solid #768c94; background: var(--stone); color: var(--ink); }
.calc__box input[type=range] { width: 100%; accent-color: var(--sea-2); height: 32px; }
.calc__box output { color: var(--sea); }
.calc__out { margin: 8px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.calc__out div { background: var(--paper); padding: 14px 16px; }
.calc__out dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.calc__out dd { margin: 4px 0 0; font: 400 1.45rem/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__out .calc__hl { background: var(--sea); }
.calc__out .calc__hl dt { color: #cfe3e6; }
.calc__out .calc__hl dd { color: var(--sun); }
.calc__out dd small { display: block; font: 500 .8rem var(--body); color: var(--muted); margin-top: 4px; }
.calc__out div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Gallery */
.gallery > p { color: var(--muted); margin-top: 10px; }
.gallery__grid { margin-top: 28px; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.gallery figure:nth-child(odd) img { border-radius: 999px 999px 14px 14px; }

/* Steps: a real sequence, so it is numbered */
.steps ol { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps ol { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps ol { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 22px; display: grid; gap: 6px; }
.steps li::before { content: counter(s); font: 400 1.6rem/1 var(--display); color: var(--sea); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--sun-2); margin-bottom: 8px; }
.steps b { font-size: 1.08rem; }
.steps span { color: var(--muted); font-size: .96rem; }

/* Agent */
.agent { display: grid; gap: 28px; align-items: center; background: var(--paper); border-radius: calc(var(--r) * 1.4); margin: 0 var(--gut); max-width: calc(var(--max) - 2 * var(--gut)); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); }
@media (min-width: 1180px) { .agent { margin: 0 auto; } }
@media (min-width: 760px) { .agent { grid-template-columns: auto 1fr; gap: 48px; } }
.agent h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.agent p { color: var(--muted); max-width: 40em; }
.agent__cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.agent__meta { font-weight: 600; font-size: .92rem; }

/* FAQ */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--sea); border-bottom: 2.5px solid var(--sea); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 44em; }
.faq__more { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 600; }

/* Final */
.final { background: var(--sea); color: #fff; border-radius: calc(var(--r) * 1.4); margin: 0 var(--gut) clamp(40px, 6vw, 72px); max-width: calc(var(--max) - 2 * var(--gut)); text-align: center; position: relative; overflow: hidden; }
@media (min-width: 1180px) { .final { margin-left: auto; margin-right: auto; } }
.final::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); top: -120px; left: 50%; transform: translateX(-50%); opacity: .95; }
.final h2 { position: relative; font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 18em; margin: 40px auto 0; }
.final__cta { position: relative; margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Footer */
.foot { padding: 32px var(--gut) 40px; max-width: var(--max); margin: 0 auto; display: grid; gap: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a, .foot nav button { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }

/* Mobile dock */
.dock { display: none; }
@media (max-width: 899px) {
  :root { --dock-h: calc(76px + env(safe-area-inset-bottom)); }
  .dock { visibility: hidden; display: flex; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease, visibility 0s .25s; }
  .dock.is-on { transform: none; visibility: visible; transition: transform .25s ease; }
  .dock .btn--wa { flex: 1; min-height: 54px; }
  .dock__offer { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; min-height: 54px; border-radius: 999px; border: 2px solid var(--sea); color: var(--sea); font-weight: 700; text-decoration: none; }
  .dock__offer svg { width: 18px; height: 18px; }
}

/* Consent */
.consent { position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(var(--dock-h) + 10px); max-width: 620px; margin: 0 auto; background: var(--ink); color: #e8f1f2; border-radius: 14px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .84rem; line-height: 1.4; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.consent[hidden] { display: none; }
.consent a { color: var(--sun); }
.consent p { flex: 1 1 260px; }
.consent div { display: flex; gap: 8px; margin-left: auto; }
.consent .btn--sm { min-height: 44px; padding: 0 14px; }
.consent p a { display: inline-block; padding: 4px 2px; }
.consent .btn--ghost { color: #fff; border-color: #5d7780; }
.consent .btn--dark { background: var(--sun); color: var(--ink); }

/* Reveal on scroll (progressive: content is visible without JS) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.is-in { opacity: 1; transform: none; }

/* Legal page */
.legal { max-width: 720px; margin: 0 auto; padding: 40px var(--gut) 80px; }
.legal h1 { font-size: 2.4rem; margin: 20px 0; }
.legal h2 { font-size: 1.5rem; margin: 28px 0 10px; }
.legal p { margin-bottom: 12px; color: var(--muted); }
