/* Berra Perde: direction B "Usta". Mobile first; laptop layout from 768px. */

/* Manrope from @fontsource/manrope, copied to /assets/fonts/ at build (latin + latin-ext). */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/assets/fonts/manrope-latin-ext-500-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/assets/fonts/manrope-latin-500-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/assets/fonts/manrope-latin-ext-700-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/assets/fonts/manrope-latin-700-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('/assets/fonts/manrope-latin-ext-800-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('/assets/fonts/manrope-latin-800-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #16181b;
  --muted: #45484e;
  --oak: #8a5a2b;
  --wa: #1d7a4c;
  --wa-dark: #165f3b;
  --band: #f3f2ef;
  --line: #e4e2dd;
  --tbc: #ffe58a;
  --tbc-q: #ffd43b;
  --focus: #8a5a2b;
  --bar-h: 60px;
  --gutter: 16px;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font:
    500 16px/1.55 Manrope,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  overflow-x: clip;
  /* keep the last content above the fixed phone bar (FR1.3) */
  padding-bottom: calc(var(--bar-h) + 1px + env(safe-area-inset-bottom, 0px));
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
/* eleventy-img wraps each photo in <picture> (S16) */
picture {
  display: block;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
h1 {
  font-size: clamp(30px, 7.5vw, 54px);
}
h2 {
  font-size: clamp(24px, 4.5vw, 34px);
  margin-bottom: 18px;
}
h3 {
  font-size: 20px;
}
p {
  margin: 0;
}

a {
  color: var(--oak);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.in {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.sec {
  padding-top: 40px;
  padding-bottom: 40px;
}
.band2 {
  background: var(--band);
}

/* Skip link (FR1.5) */
.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 700;
}
.skip:focus {
  top: 8px;
}
main:focus {
  outline: none;
}

/* Unconfirmed-fact marker (FR8.2) */
.tbc {
  background: var(--tbc);
  color: var(--ink);
  border-bottom: 1px dashed #8a6a00;
  padding: 0 3px;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.tbc-nw {
  white-space: nowrap;
}
h1 .tbc {
  /* a marker-pen band that leaves the top clear, so the line above keeps its g, p and ç tails */
  background: linear-gradient(transparent 0.28em, var(--tbc) 0.28em);
}
h1 {
  line-height: 1.18;
}
.tbc-q {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  background: var(--tbc-q);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: middle;
  box-shadow: 0 0 0 1.5px #fff;
}

/* Top strip */
.top {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.top-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.top-tel {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.top-tel:hover {
  text-decoration: underline;
}
.top-hours {
  display: none;
}

/* Header and menu (FR1.1) */
.hd {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.hd-in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.logo-mark {
  color: var(--oak);
  width: 44px;
  height: 44px;
  flex: none;
}
.brand-name {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.menu-btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  cursor: pointer;
}
.menu-btn[aria-expanded='true'] {
  background: var(--ink);
  color: #fff;
}
.site-nav {
  flex-basis: 100%;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.site-nav a[aria-current='page'] {
  color: var(--oak);
}
.site-nav.is-collapsible:not(.is-open) {
  display: none;
}
/* When scripts can run, the phone menu is collapsed from the first paint, so the page does not
   jump up by the height of the nav when menu.mjs runs after it (CLS, S16). Without scripts the
   nav stays open and the button hidden, as before. */
@media (scripting: enabled) and (max-width: 767.98px) {
  .menu-btn[hidden] {
    display: inline-block;
  }
  .site-nav:not(.is-open) {
    display: none;
  }
}

/* Buttons */
.cts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 0;
}
.btn-wa {
  background: var(--wa);
  color: #fff;
}
.btn-wa:hover {
  background: var(--wa-dark);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-line {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

/* Home hero (FR2.1) */
.hero {
  display: grid;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 36px;
}
.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  max-width: 60ch;
}

/* Photo grids */
.gal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #ddd;
}
.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 14px;
}
.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--oak);
}

/* Drawings, always labelled (FR10.2) */
.drw {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #f3efe8;
}
.drw svg {
  width: 100%;
  height: 100%;
}
.ill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #fff;
  color: #3d3a35;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #d8d2c7;
}

/* Product cards (FR2.2, FR3.1) */
.prods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pc a {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 8px 8px 12px;
  color: var(--ink);
  text-decoration: none;
}
.pc a:hover b {
  text-decoration: underline;
}
.pc b {
  display: block;
  margin-top: 10px;
  font-size: 16px;
}
.pc b::after {
  content: ' ›';
  color: var(--oak);
}
.pc span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 14px;
  row-gap: 2px;
}
.steps li::before {
  content: counter(s);
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--ink);
  color: #fff;
}
.steps span {
  color: var(--muted);
}

/* Showroom block (FR5) */
.shop {
  display: grid;
  gap: 20px;
}
.map {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: #e4e6dc;
}
.map-svg {
  width: 100%;
  height: 100%;
}
.map-open {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
}
.map:hover .map-open {
  text-decoration: underline;
}
.map .ill {
  top: 10px;
  bottom: auto;
}
.shop-title {
  font-size: 24px;
  margin-bottom: 10px;
}
.shop-info address {
  font-style: normal;
  margin-bottom: 10px;
}
.ah {
  margin: 30px 0 12px;
}
.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.areas li {
  border: 1px solid var(--ink);
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 15px;
  background: #fff;
}

/* Page heads, breadcrumb, text pages */
.page-head {
  padding-top: 28px;
  padding-bottom: 8px;
}
.page-head .lead {
  margin-top: 10px;
}
.crumbs ol {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  font-size: 15px;
}
.crumbs li {
  display: flex;
  align-items: center;
}
.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--muted);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.prose {
  max-width: 70ch;
}
.prose h2 {
  font-size: 22px;
  margin: 30px 0 10px;
}
.prose p,
.prose ul {
  margin: 0 0 12px;
}
.prose li {
  margin-bottom: 6px;
}

/* Product page (FR3.2) */
.product {
  display: grid;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 32px;
}
.product .ph {
  max-width: 560px;
}
.product-text {
  font-size: 17px;
  max-width: 60ch;
}
.others {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.others a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.others a:hover {
  border-color: var(--ink);
}

/* Gallery (FR4.1) */
.work {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.work figure {
  margin: 0;
}
.work figcaption {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* Keşif form (FR6) */
.form {
  display: grid;
  gap: 18px;
  max-width: 520px;
}
.form[hidden] {
  display: none;
}
/* When scripts can run, the form takes its place from the first paint instead of pushing the
   page down when kesif.mjs shows it (CLS, S16). Without scripts it stays hidden. */
@media (scripting: enabled) {
  .form[hidden] {
    display: grid;
  }
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 700;
}
.field select,
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #8b8e94;
  border-radius: 8px;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field [aria-invalid='true'] {
  border-color: #b3261e;
  border-width: 2px;
}
.hint {
  font-size: 14px;
  color: var(--muted);
}
.err {
  color: #b3261e;
  font-weight: 700;
  font-size: 15px;
}
.err:empty {
  display: none;
}
.note-box {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  background: var(--band);
  max-width: 620px;
}
.note-box p + p {
  margin-top: 8px;
}

/* Footer (FR1.2) */
.ft {
  background: var(--ink);
  color: #ecebe8;
  font-size: 15px;
  padding: 32px 0;
}
.ft-in {
  display: grid;
  gap: 18px;
}
.ft p + p {
  margin-top: 8px;
}
.ft a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.ft-brand {
  font-weight: 800;
  font-size: 18px;
}
.ft-legend {
  margin-top: 8px;
  color: #cfcdc8;
  font-size: 14px;
}
.ft-legend .tbc-q {
  box-shadow: none;
  margin: 0 0.25em 0 0;
}
.ft-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Phone bar under 768px (FR1.3) */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border-top: 1px solid #d9d7d2;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--bar-h);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}
.bar a + a {
  border-left: 1px solid #e5e3de;
}
.bar .wa {
  background: var(--wa);
  color: #fff;
}

/* 404 */
.nf-links {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.nf-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

@media (min-width: 560px) {
  .work {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
  .bar,
  .menu-btn {
    display: none;
  }
  .top-hours {
    display: block;
  }
  .hd-in {
    flex-wrap: nowrap;
    min-height: 84px;
  }
  .site-nav,
  .site-nav.is-collapsible:not(.is-open) {
    display: block;
    flex-basis: auto;
  }
  .site-nav ul {
    display: flex;
    gap: 6px 24px;
    padding: 0;
  }
  .site-nav a {
    border-top: 0;
    font-size: 15px;
  }
  .sec {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .prods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }
  .gal:not(.hero-gal) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .hero-gal {
    gap: 12px;
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
  .shop {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
  .ft-in {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
  .page-head {
    padding-top: 48px;
  }
}

@media (min-width: 1100px) {
  .work {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
