/* Tapetništvo Kukovica - concept stylesheet
   Petrol velvet and cognac leather on a linen-grey ground. The logo is the white sofa outline.
   Type: Young Serif (headings, references, materials) and Hanken Grotesk (body).
   Signature detail: the pinked (zigzag) lower edge of the hero band, like fabric cut with pinking shears. */

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/young-serif-latin-ext.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: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/young-serif-latin.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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-latin-ext.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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-latin.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 {
  --linen: #ebe8e2;
  --paper: #f7f5f1;
  --tint: #dde5e4;
  --ink: #262523;
  --ink-soft: #57544f;
  --rule: #d3cec5;
  --petrol: #1d4f55;
  --petrol-deep: #153b40;
  --petrol-line: #2f656b;
  --cognac: #9a5528;
  --cognac-hover: #83461f;
  --on-petrol: #ffffff;
  --on-petrol-soft: #c7dbd9;
  --focus: #9a5528;
  --font: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --gutter: clamp(1rem, 5vw, 3rem);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: 4.75rem;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 38rem; }
.petrol { background: var(--petrol); color: var(--on-petrol); --focus: #f0c29a; }
.paper { background: var(--paper); }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--cognac); color: #fff; padding: .75rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; }

.concept { background: var(--petrol-deep); color: var(--on-petrol-soft); font-size: .8125rem; line-height: 1.4; padding: .5rem var(--gutter); text-align: center; }
.concept strong { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--petrol); color: var(--on-petrol); border-bottom: 1px solid var(--petrol-line); --focus: #f0c29a; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4.25rem; }
.brand { display: inline-flex; padding-block: .625rem; }
.brand img { height: 2.625rem; width: auto; }
.header-end { display: flex; align-items: center; gap: .5rem; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: .125rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .75rem; text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--on-petrol-soft); }
.nav a[aria-current="page"] { border-bottom-color: #f0c29a; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding-inline: .875rem; border: 2px solid var(--on-petrol); border-radius: var(--radius); font-weight: 600; font-size: .9375rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--on-petrol); color: var(--petrol); }
.menu ul { list-style: none; position: absolute; right: 0; top: calc(100% + .5rem); width: min(16rem, calc(100vw - 2rem)); background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(21, 59, 64, .3); }
.menu li + li { border-top: 1px solid var(--rule); }
.menu a { display: block; padding: .875rem 1rem; text-decoration: none; font-weight: 600; }
.menu a[aria-current="page"] { color: var(--cognac); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .625rem 1.25rem; border: 2px solid transparent; border-radius: var(--radius); font: 600 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.btn-cognac { background: var(--cognac); color: #fff; }
.btn-cognac:hover { background: var(--cognac-hover); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: rgba(38, 37, 35, .06); }
.petrol .btn-line:hover { background: rgba(255, 255, 255, .1); }
.header-call { display: none; min-height: 44px; padding-inline: .875rem; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero with pinked edge */
.hero { position: relative; padding-block: 2.5rem 3.75rem; }
.hero { z-index: 2; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  /* Each 20x10 tile: petrol triangle with its base on the band and apex pointing down (apex at bottom centre, wedge opens upward) */
  background: conic-gradient(from -45deg at 50% 100%, var(--petrol) 90deg, transparent 0) 0 0 / 20px 10px repeat-x;
}
.hero .wrap { display: grid; gap: 2.25rem; }
.hero-place { color: var(--on-petrol-soft); font-weight: 500; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.75rem); margin-top: .625rem; }
.hero-lead { margin-top: 1.25rem; font-size: 1.1875rem; color: var(--on-petrol-soft); max-width: 34rem; }
.hero .photo img { --ratio: 4 / 3; }

/* Photos and stand-ins */
figure { margin: 0; }
.photo img { width: 100%; aspect-ratio: var(--ratio, 3 / 2); object-fit: cover; border-radius: var(--radius); background: var(--tint); }
.stand-in { position: relative; }
.stand-in::before { content: "Začasna fotografija"; position: absolute; top: .625rem; left: .625rem; z-index: 1; background: var(--ink); color: #fff; padding: .25rem .5rem; border-radius: 3px; font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.stand-in img { filter: saturate(.85); }

/* Sections */
.band { padding-block: 4rem; }
.band-head h2 { font-size: clamp(2rem, 6vw, 3.25rem); }
.band-head p { margin-top: 1rem; font-size: 1.125rem; color: var(--ink-soft); max-width: 40rem; }
.petrol .band-head p { color: var(--on-petrol-soft); }
.seam { height: 2px; margin-block: 2rem; background: repeating-linear-gradient(90deg, var(--cognac) 0 10px, transparent 10px 17px); opacity: .55; border: 0; }

/* Programme list: uneven on purpose */
.work-list { list-style: none; margin-top: 2rem; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.work-list li { padding-block: 1.125rem; border-bottom: 1px solid var(--rule); display: grid; gap: .25rem; }
.work-list strong { font-family: var(--display); font-size: 1.375rem; font-weight: 400; line-height: 1.2; }
.work-list span { color: var(--ink-soft); }
.work-list .lead strong { font-size: clamp(1.625rem, 4.5vw, 2.125rem); }
.aside-note { margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--cognac); color: var(--ink-soft); max-width: 40rem; }

/* References */
.refs { list-style: none; margin-top: 2rem; }
.refs li { padding-block: 1rem; border-top: 1px solid var(--petrol-line); display: grid; gap: .125rem; }
.refs li:last-child { border-bottom: 1px solid var(--petrol-line); }
.refs strong { font-family: var(--display); font-size: clamp(1.375rem, 4vw, 1.875rem); font-weight: 400; line-height: 1.15; }
.refs span { color: var(--on-petrol-soft); }
.paper .refs li { border-color: var(--rule); }
.paper .refs span { color: var(--ink-soft); }

/* Materials */
.materials { margin-top: 2rem; display: grid; gap: 1.5rem; }
.material { padding-top: 1rem; border-top: 3px solid var(--petrol); }
.material dt { font-family: var(--display); font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.material dd { margin-top: .375rem; color: var(--ink-soft); }
.material .tags { list-style: none; display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .75rem; }
.material .tags li { padding: .25rem .625rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--ink); }

/* Split blocks */
.split { display: grid; gap: 2rem; }

/* Visit */
.visit { display: grid; gap: 2rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-family: var(--display); font-size: 1.375rem; font-weight: 400; padding-bottom: .5rem; }
.hours th, .hours td { padding: .625rem 0; border-top: 1px solid var(--rule); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 1rem; }
.petrol .hours th, .petrol .hours td { border-color: var(--petrol-line); }
.big-contact { list-style: none; display: grid; }
.big-contact a { display: flex; flex-direction: column; min-height: 44px; justify-content: center; padding-block: .75rem; text-decoration: none; border-bottom: 1px solid var(--rule); }
.petrol .big-contact a { border-color: var(--petrol-line); }
.big-contact small { font-size: .875rem; color: var(--ink-soft); }
.petrol .big-contact small { color: var(--on-petrol-soft); }
.big-contact span { font-size: clamp(1.0625rem, 4.9vw, 1.375rem); font-weight: 700; overflow-wrap: normal; }
.big-contact a:hover span { text-decoration: underline; }
address { font-style: normal; }

/* Page head */
.page-head { padding-block: 2.5rem 2.75rem; }
.page-head h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); max-width: 18ch; }
.page-head p { margin-top: 1.125rem; font-size: 1.1875rem; color: var(--ink-soft); max-width: 40rem; }
.page-head.petrol p { color: var(--on-petrol-soft); }

/* Form */
.form { display: grid; gap: 1.125rem; margin-top: 1.75rem; }
.field { display: grid; gap: .375rem; }
.field label { font-weight: 600; }
.field .hint { font-size: .875rem; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: .75rem .875rem; font: 400 1.0625rem/1.4 var(--font); color: var(--ink); background: #fff; border: 2px solid #7a746c; border-radius: var(--radius); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--petrol); outline: 3px solid var(--cognac); outline-offset: 0; }
.field input[type="file"] { background: var(--paper); padding: .625rem; }
.form .btn { justify-self: start; }
.form-legal { font-size: .875rem; color: var(--ink-soft); }
.hidden-field { position: absolute; left: -9999px; }
.contact-card { padding: 1.75rem; border-radius: var(--radius); }
.company { margin-top: 1.5rem; font-size: .875rem; color: var(--on-petrol-soft); line-height: 1.55; }

.thanks { padding-block: 4rem 6rem; }
.thanks h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); }
.thanks p { margin-top: 1.25rem; font-size: 1.1875rem; max-width: 36rem; }
.thanks a:not(.btn) { color: var(--cognac); font-weight: 600; }

/* Footer */
.site-footer { background: var(--petrol-deep); color: var(--on-petrol-soft); padding-block: 3rem; font-size: .9375rem; --focus: #f0c29a; }
.foot-contact ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: .25rem; }
.foot-contact a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }
.form-concept { font-size: .9375rem; font-weight: 600; color: var(--ink); background: var(--tint); padding: .625rem .875rem; border-radius: var(--radius); }
.credits { list-style: none; margin-top: 2rem; display: grid; gap: 1.5rem; }
.credits li { display: grid; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.credits img { width: 9rem; height: auto; border-radius: var(--radius); }
.credits a { color: var(--cognac); font-weight: 600; overflow-wrap: anywhere; }
.site-footer .wrap { display: grid; gap: 1.75rem; }
.site-footer img { height: 2.5rem; width: auto; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; color: #fff; }
.footer-concept { border-top: 1px solid var(--petrol-line); padding-top: 1.5rem; font-size: .875rem; }

/* Mobile action bar */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.3fr; gap: .5rem; padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom)); background: var(--petrol); --focus: #f0c29a; }
.action-bar .btn { width: 100%; padding-inline: .5rem; font-size: .9375rem; }
.action-bar .btn-line { color: #fff; }

@media (max-width: 30rem) {
  .contact-card { padding: 1.25rem; }
}

@media (min-width: 37.5rem) {
  .materials { grid-template-columns: 1fr 1fr; }
  .material-wide { grid-column: 1 / -1; }
}

@media (min-width: 48rem) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .header-call { display: inline-flex; }
  .hero { padding-block: 3.5rem 4.75rem; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3.5rem; }
  .band { padding-block: 5.5rem; }
  .work-list li { grid-template-columns: minmax(15rem, .9fr) 1.4fr; align-items: baseline; gap: 2rem; }
  .split { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: start; }
  .split.flip > :first-child { order: 2; }
  .visit { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
  .refs li { grid-template-columns: 1.2fr 1fr; align-items: baseline; gap: 2rem; }
  .page-head { padding-block: 3.5rem 3.25rem; }
  .site-footer .wrap { grid-template-columns: 1fr 1.2fr 1fr; align-items: start; }
  .footer-concept { grid-column: 1 / -1; }
  .credits li { grid-template-columns: 9rem 1fr; align-items: start; }
}

@media (min-width: 64rem) {
  .nav { display: block; }
  .menu { display: none; }
}
