/* mersusgida.com — 1:1 port of the Wix site.
   Layout mirrors Wix's own model: every section is a fixed-width grid
   (980px desktop, 320px mobile) and components sit at the coordinates
   measured on the live Wix pages (archive/data/blocks.txt). Each .b element
   carries --dx/--dy/--dw/--dh (desktop) and --mx/--my/--mw/--mh (mobile).
   The mobile layout is drawn at 320px, exactly like Wix; a small script in
   <head> sets the phone viewport to 320 so it scales the same way. */

/* Headings/menu: Archivo (SIL OFL, free) in place of Wix's licensed Alfabet.
   Selim, 2026-11-20: "ücretsiz benzeri kullan". Archivo scored closest of 26
   free grotesques; the two static cuts below are tuned to Alfabet's width and
   stroke weight (bold = wght 720 / wdth 101, regular = wght 450 / wdth 104),
   and the metric overrides give it Alfabet's line box so text sits where it did. */
@font-face { font-family: "archivo"; font-weight: 400; font-display: swap;
  src: url(/fonts/archivo-400.woff2) format("woff2");
  ascent-override: 100%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: "archivo"; font-weight: 700; font-display: swap;
  src: url(/fonts/archivo-700.woff2) format("woff2");
  ascent-override: 100%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: "poppins"; font-weight: 400; font-display: swap;
  src: url(/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "poppins"; font-weight: 500; font-display: swap;
  src: url(/fonts/poppins-500-latin.woff2) format("woff2");
  unicode-range: U+20-7E, U+A0-FF; }

:root {
  --bg: #f9f9f8; --red: #e52c12; --ink: #000; --gray: #7d7d7c; --line: #bbbbba;
  --soft-line: rgba(125, 125, 124, .2); --copy: #3e3e3e;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
/* no grey box flashing on tap (iOS/Android tap highlight), and no focus ring on a
   touch/mouse press; the keyboard still gets :focus-visible (Selim, 2026-11-20) */
html { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
body { background: var(--bg); color: var(--ink); font-family: archivo, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overflow-wrap: break-word; min-width: 980px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; font-weight: inherit; font-size: inherit; }
svg { display: block; }
img { display: block; }
button, input, textarea { font: inherit; color: inherit; }

/* ---------- positioning model ---------- */
.sec { position: relative; height: var(--sh); overflow-x: clip; }
.in { position: relative; width: 980px; height: 100%; margin: 0 auto; }
/* the empty grid box must not swallow clicks meant for full-bleed layers under it (the map) */
.in { pointer-events: none; }
.in > * { pointer-events: auto; }
.b { position: absolute; left: var(--dx); top: var(--dy); width: var(--dw, auto); height: var(--dh, auto); }
.full { position: absolute; left: 0; right: 0; top: var(--dy); }
.m-only { display: none !important; }

/* Wix horizontal line component: a 1px top border */
.hl { height: 0; border-top: 1px solid var(--line); }
.hl.soft { border-top-color: var(--soft-line); }
.hl.black { border-top-color: #000; }
.hl.red { border-top-color: var(--red); }

/* ---------- typography presets (measured) ---------- */
.t-hero { font: 700 50px/65px archivo, sans-serif; color: var(--red); }
.t-hero.black { color: var(--ink); }
.t-lead { font: 400 25px/40px poppins, sans-serif; }
.t-body { font: 400 16px/25.6px poppins, sans-serif; }
.t-body14 { font: 400 14px/22.4px poppins, sans-serif; }
.t-h20 { font: 700 20px/28px archivo, sans-serif; }
.t-h40 { font: 700 40px/48px archivo, sans-serif; }
.red { color: var(--red); }

/* ---------- header ---------- */
.hdr .logo { --dw: 79px; --dh: 79px; --mw: 69px; --mh: 69px; }
.hdr .logo svg { width: 100%; height: 100%; fill: #000; }
.nav { left: auto; right: 0; top: 34px; display: flex; }
.nav a { display: block; margin: 0 5px; padding: 0 10px; font: 700 14px/45px archivo, sans-serif; color: #000; transition: color .4s; }
.nav a:hover { color: var(--gray); }
.nav a.on { color: var(--red); }
.burger { display: none; }
.menu { display: none; }

/* ---------- shared components ---------- */
.btn { display: block; border: 1px solid var(--red); border-radius: 10px; overflow: hidden;
  background: linear-gradient(90deg, rgba(229, 44, 18, .15) 0%, rgba(229, 44, 18, .04) 100%); }
/* hover: the same gradient fills in from the left, the arrow slides right (Selim, 2026-11-20) */
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(229, 44, 18, .28) 0%, rgba(229, 44, 18, .12) 100%);
  opacity: 0; transition: opacity .25s ease; }
/* text and arrow a touch smaller than Wix (Selim, 2026-11-20); arrow keeps its centre */
.btn span { position: absolute; left: var(--tx); top: 10.5px; font: 700 13px/19px archivo, sans-serif; letter-spacing: 1.3px; color: var(--red); white-space: nowrap; }
.btn svg { position: absolute; left: calc(var(--ax) + 3px); top: -2px; width: 44px; height: 44px; fill: var(--red); transition: transform .25s ease; }
@media (hover: hover) {
  .btn:hover::before { opacity: 1; }
  .btn:hover svg { transform: translateX(5px); }
}

.mp { display: block; border: 1px solid rgba(125, 125, 124, .21); border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(187, 187, 186, .08) 100%); }
.mp svg { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); transform: translate(-50%, -50%); fill: var(--gray); }

.pic { overflow: hidden; }
/* factory drawing (home, desktop): its machines' base line (row 315 of 349 in the image)
   sits exactly on the footer's top line at every screen width. The box is anchored to
   that line and pushed down by the empty strip under the drawing (34/349 of its height). */
.pic.fabrika { top: auto; bottom: -4px; overflow: visible; transform: translateY(9.742%); }
.pic.fabrika img { height: auto; }
.pic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- footer ---------- */
.ftr .flogo svg { width: 100%; height: 100%; fill: #000; }
.fnav a { display: block; font: 700 14px/30px archivo, sans-serif; color: #000; transition: color .4s; }
.fnav a:hover { color: var(--gray); }
.fnav a.on { color: var(--red); }
.fc { font: 400 14px/16.8px archivo, sans-serif; }
.fc span, .fc a { display: block; }
.fc .v { color: var(--red); }
.fc .v[href] { cursor: pointer; }
.byl { display: flex; align-items: center; gap: 16px; }
.byl .kayla svg { width: 51px; height: 51px; }
.byline { font: 400 14px/16.8px archivo, sans-serif; white-space: nowrap; }
.copy { font: 400 12px/16.8px poppins, sans-serif; color: var(--copy); white-space: nowrap; }
.social { display: flex; gap: 16px; }
.social img { width: 20px; height: 20px; }

/* ---------- product cards (Ürünler) ---------- */
.pcard { border: 1px solid rgba(0, 0, 0, .12); border-radius: 30px; }
.pcard.tea { background: linear-gradient(90deg, rgba(229, 44, 18, .09) 0%, rgba(226, 226, 242, .55) 100%); }
.pcard.coffee { background: linear-gradient(90deg, rgba(170, 134, 82, .09) 0%, rgba(220, 229, 192, .32) 100%); }
.pc-title { font: 700 40px/44px archivo, sans-serif; }
.circle { border-radius: 50%; transition: transform .25s ease, filter .25s ease; }
/* Wix rotates the diagonal arrow to point right; smaller inside its circle (Selim, 2026-11-20) */
.circle svg { position: absolute; left: 50%; top: 50%; width: 21px; height: 21px; fill: #fff;
  transform: translate(-50%, -50%) rotate(45deg); transition: transform .25s ease; }
@media (hover: hover) {
  .circle:hover { transform: scale(1.08); filter: brightness(1.15); }
  .circle:hover svg { transform: translate(calc(-50% + 3px), -50%) rotate(45deg); }
}
.dl svg { position: absolute; left: -2px; top: -2px; width: 50px; height: 50px; fill: #000; }
.dl span { position: absolute; left: 50px; top: 13px; font: 700 14px/19.6px archivo, sans-serif; }

/* ---------- Hakkımızda ---------- */
.about p { margin: 0; }
.about p + p { margin-top: 22.4px; }
.bg-shape svg { width: 100%; height: 100%; fill: #bbbbba; fill-opacity: .15; }
.mq { border: 1px solid rgba(123, 98, 61, .59); border-radius: 20px; overflow: hidden;
  background: linear-gradient(90deg, rgba(123, 98, 61, .09) 0%, rgba(170, 134, 82, .55) 100%); }
.mq-track { position: absolute; left: 0; top: 11px; display: flex; white-space: nowrap; animation: mq 40.14s linear infinite; will-change: transform; }
.mq-unit { display: flex; align-items: center; }
.mq-unit b { font: 700 25px/30px archivo, sans-serif; color: #323232; padding: 0 20px 0 0; }
.mq-unit svg { width: 31px; height: 32px; fill: #323232; margin-right: 20.5px; flex: none; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- İletişim ---------- */
.ci { font: 400 15px/24px archivo, sans-serif; }
.ci .v { color: var(--red); display: block; }
.form label { position: absolute; left: 0; top: 0; font: 400 15px/18px archivo, sans-serif; white-space: nowrap; }
.field { position: absolute; left: var(--fx); top: var(--fy); width: var(--fw); }
.form .send { position: absolute; left: 328px; top: 326px; width: 140px; height: 43px; }
.form-msg { position: absolute; left: 0; top: 380px; width: 468px; }
.field .box { position: absolute; left: 0; right: 0; top: 26px; height: 42px; border-bottom: 1px solid #000; }
.field.ta .box { height: 92px; }
.field .box:focus-within { border-bottom-color: #381323; }
.field.bad .box { border-bottom-color: #fa9878; }
.field input, .field textarea { position: absolute; left: 0; top: 0; width: 100%; height: 41px; border: 0; background: transparent;
  padding: 8px 2px 8px 0; font: 400 16px/1.2 poppins, sans-serif; outline: none; border-radius: 0; -webkit-appearance: none; appearance: none; }
.field textarea { top: 8px; height: 75px; padding: 0 12px 0 0; resize: none; }
.send { border: 1px solid var(--red); border-radius: 100px; background: transparent; color: var(--red);
  font: 400 16px/19.2px archivo, sans-serif; cursor: pointer; transition: color .2s ease-in-out, border-color .2s ease-in-out; padding: 0; }
.send:hover { color: #000; border-color: #000; }
.send:disabled { opacity: .6; cursor: default; }
.form-msg { font: 400 15px/18px archivo, sans-serif; text-align: right; }
.map { height: 513px; }
.map-canvas { width: 100%; height: 100%; background: #f2f0ed; }
/* pin: BCF's head + stem marker, in Mersus red; drop-shadow chain draws one outline for both halves */
/* MapLibre positions the marker element with an inline transform, so the hover
   scale goes on the inner link (.map-pin), never on the marker itself */
.pin-wrap { width: 20px; height: 33px; cursor: pointer; }
.map-pin { position: relative; display: block; width: 20px; height: 33px; transform-origin: 50% 100%; transition: transform .2s ease;
  filter: drop-shadow(.5px 0 0 #f5f3f1) drop-shadow(-.5px 0 0 #f5f3f1) drop-shadow(0 .5px 0 #f5f3f1) drop-shadow(0 -.5px 0 #f5f3f1); }
.map-pin::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 20px; border-radius: 50%; background: var(--red); }
.map-pin::after { content: ""; position: absolute; left: 50%; top: 16px; width: 4px; height: 17px; margin-left: -2px; border-radius: 0 0 2px 2px; background: var(--red); }
.pin-wrap:hover .map-pin, .map-pin:focus-visible { transform: scale(1.2); }

/* ---------- legal / FAQ pages (blocks captured from Wix) ---------- */
.lgb { font: 400 16px/25.6px poppins, sans-serif; }
.lgb h1 { font: 700 40px/56px archivo, sans-serif; color: var(--red); }
.lgb h2 { font: 700 20px/28px archivo, sans-serif; color: var(--red); }
.lgb.note { color: var(--red); }
.lgb a { color: var(--red); text-decoration: underline; }
.lgb ol, .lgb ul { padding: 0; margin: 0 0 0 8px; }
.lgb ul { list-style: disc; }
.lgb li { margin-left: 20.8px; }

/* ---------- kahvehersey "çok yakında" ---------- */
.kh { background: #f4ba92; }
.kh-sec { min-height: 100vh; }
.kh .wordmark svg { width: 100%; height: 100%; fill: #4c2e15; }
.kh .msg { font: 700 20px/26px archivo, sans-serif; color: #4c2e15; }
.kh .ml svg { width: 100%; height: 100%; fill: #4c2e15; }
.kh .vr { border-left: 1px solid #4c2e15; }

/* ======================= MOBILE (Wix mobile view, 320px) ======================= */
@media (max-width: 767px) {
  body { min-width: 0; }
  .sec { height: var(--smh); }
  .in { width: 320px; }
  .b { left: var(--mx); top: var(--my); width: var(--mw, auto); height: var(--mh, auto); }
  .full { top: var(--my); }
  .d-only { display: none !important; }
  .m-only { display: block !important; }

  .nav { display: none; }
  .burger { display: block; --mx: 245px; --my: 49px; --mw: 50px; --mh: 50px; background: none; border: 0; padding: 0; cursor: pointer; }
  .burger i { position: absolute; left: 14px; width: 22px; height: 2px; border-radius: 2px; background: var(--red); }
  .burger i:nth-child(1) { top: 15px; } .burger i:nth-child(2) { top: 24px; } .burger i:nth-child(3) { top: 33px; }
  /* Menu sheet in the page's own colour, red items, no fade (Selim, 2026-11-20).
     Wix's red sheet (rgba(229,44,18,.88)) tinted iPhone Safari's status bar and
     bottom bar red, and Safari let that tint go late after closing. Same lesson as
     the Beyoğlu Caz menu: a sheet the colour of the page leaves nothing to lag. */
  .menu { display: block; position: fixed; inset: 0; z-index: 50; background: var(--bg); visibility: hidden; }
  .menu.open { visibility: visible; }
  .menu nav { position: absolute; left: 57px; top: 138px; width: 205px; }
  .menu nav a { display: block; text-align: center; font: 700 35px/45px archivo, sans-serif; color: var(--red); }
  .menu .x { position: absolute; left: 262px; top: 66px; width: 17px; height: 17px; background: none; border: 0; padding: 0; cursor: pointer; }
  .menu .x::before, .menu .x::after { content: ""; position: absolute; left: -3px; top: 7.5px; width: 23px; height: 2px; background: var(--red); transform: rotate(45deg); }
  .menu .x::after { transform: rotate(-45deg); }
  .menu-in { position: relative; width: 320px; height: 100%; margin: 0 auto; }

  .t-hero { font-size: 26px; line-height: 33.8px; }
  .t-lead { font-size: 16px; line-height: 25.6px; }
  .t-body { font-size: 14px; line-height: 22.4px; }

  .btn span { left: var(--mtx); top: 8.5px; font-size: 11px; line-height: 15px; letter-spacing: 1.1px; }
  .btn svg { left: calc(var(--max) + 2.5px); top: -1.5px; width: 35px; height: 35px; }

  .fc { text-align: center; }
  .byl { justify-content: center; gap: 15px; }
  .byline { font-size: 12px; line-height: 14.4px; }
  .copy { text-align: center; }
  .copy a { white-space: nowrap; }

  .pc-title { font-size: 24px; line-height: 26.4px; }
  .dl span { left: 50px; top: 13px; font-size: 15px; line-height: 21px; }
  .t-h20.m18 { font-size: 18px; line-height: 25.2px; }
  .t-h20.m16 { font-size: 16px; line-height: 22.4px; }
  .t-h40 { font-size: 20px; line-height: 24px; }
  .t-hero.m24 { font-size: 24px; line-height: 31.2px; text-align: center; }

  .mq { border-radius: 0; }
  .mq-track { top: 8px; }
  .mq-unit b { font-size: 16.25px; line-height: 19.5px; padding-right: 20px; }
  .mq-unit svg { width: 20px; height: 20px; margin-right: 20.5px; }
  .kh-sec { min-height: 0; }

  .ci { font-size: 14px; line-height: 22.4px; }
  .form label { font-size: 12px; line-height: 15px; }
  .field { left: var(--mfx); top: var(--mfy); width: var(--mfw); }
  .field .box { top: 23px; }
  .form .send { left: 0; top: 406px; width: 280px; height: 41px; }
  .form-msg { top: 455px; width: 280px; text-align: center; }
  .map { height: 403px; }
  .circle svg { width: 17px; height: 17px; }
  .send { font-size: 14px; line-height: 16.8px; }

  .lgb { font-size: 15px; line-height: 24px; }
  .lgb h1 { font-size: 24px; line-height: 33.6px; }
  .lgb h2 { font-size: 16px; line-height: 22.4px; }

  .kh .msg { font-size: 14px; line-height: 18.2px; text-align: center; }
}

@media print { .burger, .menu { display: none !important; } }
