/* Tesarstvo-krovstvo Kamenšek - concept stylesheet
   Palette and roof line from Matej's current logo: orange TKK under an open roof, on navy.
   Brand orange fails AA as small text on light grounds, so text links use --orange-ink
   and orange buttons carry dark text. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/outfit-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: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/outfit-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 {
  --paper: #f6f5f1;
  --panel: #e8ebf3;       /* navy tint */
  --panel-rule: #cbd2e3;
  --navy: #243978;        /* logo ground */
  --navy-deep: #1a2b5c;
  --navy-line: #3a4f8f;
  --ink: #161c2e;
  --ink-soft: #4a5268;
  --rule: #dcdde3;
  --orange: #f25824;      /* logo mark */
  --orange-hover: #ff6a38;
  --orange-ink: #b93d0f;  /* orange for text on light grounds */
  --on-navy: #ffffff;
  --on-navy-soft: #c9d1ea;
  --focus: #b93d0f;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1rem, 5vw, 3rem);
  --radius: 6px;
}

*, *::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(--paper);
  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.05; text-wrap: balance; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 40rem; }
.navy { background: var(--navy); color: var(--on-navy); --focus: var(--orange); }
.panel { background: var(--panel); }

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

/* Concept notice */
.concept {
  background: var(--navy-deep); color: var(--on-navy-soft);
  font-size: .8125rem; line-height: 1.4; padding: .5rem var(--gutter); text-align: center;
}
.concept strong { color: var(--on-navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--on-navy); border-bottom: 1px solid var(--navy-line); --focus: var(--orange); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; padding-block: .5rem; }
.brand img { height: 2.75rem; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.brand-small { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; color: var(--on-navy-soft); }
.brand-big { font-size: 1.375rem; font-weight: 800; letter-spacing: .01em; margin-top: .2rem; }
.header-end { display: flex; align-items: center; gap: .5rem; }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: .25rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: .75rem;
  text-decoration: none; font-size: 1rem; font-weight: 500;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--navy-line); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }

.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-navy); border-radius: var(--radius); font-weight: 600; font-size: .9375rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--on-navy); color: var(--navy); }
.menu ul {
  list-style: none; position: absolute; right: 0; top: calc(100% + .5rem);
  width: min(17rem, calc(100vw - 2rem)); background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: 0 16px 32px rgba(22, 28, 46, .28); overflow: hidden;
}
.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(--orange-ink); box-shadow: inset 4px 0 0 var(--orange); }

/* 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-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(22, 28, 46, .06); }
.navy .btn-line:hover { background: rgba(255, 255, 255, .1); }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-deep); }
.brand-text > span { white-space: nowrap; }
/* On phones the fixed bottom bar already has "Pokličite", so the header keeps only brand + menu */
.header-call { display: none; min-height: 44px; padding-inline: .875rem; font-size: .9375rem; }
.header-call .num { display: none; }
@media (max-width: 22.5rem) {
  .brand img { height: 2.25rem; }
  .brand-big { font-size: 1.1875rem; }
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Roof line: the open roof from the logo */
.roof-line { display: block; overflow: visible; }
.roof-line polyline { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linejoin: miter; stroke-linecap: butt; vector-effect: non-scaling-stroke; }

/* Photo placeholders: roof battens */
.ph {
  position: relative;
  aspect-ratio: var(--ratio, 3 / 2);
  width: 100%; max-width: 100%;
  background-color: var(--panel);
  background-image: repeating-linear-gradient(180deg, transparent 0 20px, var(--panel-rule) 20px 23px);
  border-radius: var(--radius);
  display: flex; align-items: flex-end; padding: .875rem;
  overflow: hidden;
}
.ph::before {
  content: attr(data-ratio);
  position: absolute; top: .625rem; right: .75rem;
  background: var(--panel); padding: .125rem .375rem;
  font-size: .75rem; font-weight: 600; color: var(--ink-soft);
}
.ph span {
  background: #fff; color: var(--ink);
  font-size: .8125rem; font-weight: 600; line-height: 1.35;
  padding: .375rem .625rem; max-width: 100%; border-radius: 4px;
}
.panel .ph { background-color: #dde2ee; }
.panel .ph::before { background: #dde2ee; }
.need {
  display: inline; background: var(--panel); padding: .0625rem .375rem; border-radius: 3px;
  font-size: .875em; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.panel .need { background: #fff; }
.navy .need { background: var(--navy-deep); color: var(--on-navy); }

/* Photos */
figure { margin: 0; }
.photo img { width: 100%; aspect-ratio: var(--ratio, 3 / 2); object-fit: cover; border-radius: var(--radius); background: var(--panel); }
figcaption { margin-top: .5rem; font-size: .9375rem; color: var(--ink-soft); line-height: 1.4; }
.photo-square { --ratio: 1 / 1; max-width: 24rem; }
.photo-square img { --ratio: 1 / 1; }
.story .photo img { --ratio: 4 / 5; }

/* Stand-in photos: free-licensed, clearly marked until the client's own arrive */
.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: 4px;
  font-size: .8125rem; font-weight: 600; line-height: 1.3;
}
.stand-in img { filter: saturate(.8); }
.navy figcaption { color: var(--on-navy-soft); }

/* Hero (home) */
.hero { padding-block: 2.5rem 3.5rem; overflow: hidden; }
.hero .wrap { display: grid; gap: 2.5rem; }
.hero-place { font-size: 1rem; font-weight: 500; color: var(--on-navy-soft); }
.hero h1 { font-size: clamp(2.625rem, 10vw, 5.25rem); line-height: .98; letter-spacing: -.025em; margin-top: .75rem; }
.hero-lead { font-size: 1.1875rem; margin-top: 1.5rem; max-width: 34rem; color: var(--on-navy-soft); }
.roof-photo { position: relative; padding-top: 24%; }
.roof-photo .roof-line { position: absolute; top: 0; left: -5%; width: 110%; height: auto; }
.roof-photo .photo img { --ratio: 4 / 3; border-radius: 2px; }

/* Values */
.values { padding-block: 3rem; }
.values ul { list-style: none; display: grid; gap: 1.75rem; }
.values li { border-top: 4px solid var(--orange); padding-top: 1rem; }
.values h2 { font-size: 1.5rem; }
.values p { margin-top: .5rem; color: var(--ink-soft); }

/* Bands and headings */
.band { padding-block: 4rem; }
.band-head { max-width: 44rem; }
.band-head h2 { font-size: clamp(2.125rem, 6.5vw, 3.5rem); }
.band-head p { margin-top: 1rem; font-size: 1.125rem; color: var(--ink-soft); }
.navy .band-head p { color: var(--on-navy-soft); }

/* Service index (home) */
.svc-index { list-style: none; margin-top: 2.25rem; border-top: 2px solid var(--navy); }
.svc-index a {
  display: grid; gap: .25rem; padding-block: 1.125rem; text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.svc-index strong { font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: var(--navy); }
.svc-index span { color: var(--ink-soft); }
.svc-index a:hover strong { color: var(--orange-ink); text-decoration: underline; text-decoration-thickness: 2px; }

/* Story */
.story .wrap { display: grid; gap: 2.5rem; }
.story-body { margin-top: 1.5rem; }
.story-body p + p { margin-top: 1rem; }
.pull {
  margin: 2rem 0 0; padding: 1.25rem 0 0; border-top: 4px solid var(--orange);
  font-size: clamp(1.375rem, 4vw, 1.875rem); font-weight: 600; line-height: 1.25; color: var(--navy);
}
.pull footer { margin-top: .75rem; font-size: .9375rem; font-weight: 500; color: var(--ink-soft); line-height: 1.4; }
.timeline { list-style: none; margin-top: 2.25rem; border-top: 1px solid var(--panel-rule); }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--panel-rule); }
.tl-when { font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--navy); }
.story .ph { --ratio: 4 / 5; }
.motto { margin-top: 2rem; font-size: 1.125rem; font-weight: 600; color: var(--navy); }

/* Recent work strip and galleries */
.work { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1rem; margin-top: 2.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.work figure { scroll-snap-align: start; }
.work .photo img, .gallery .photo img { --ratio: 4 / 3; }
.more-link { margin-top: 1.25rem; font-weight: 600; }
.more-link a { color: var(--orange-ink); text-decoration-thickness: 2px; }
.feature { margin-top: 2.25rem; }
.feature .photo img { --ratio: 3 / 2; }
.gallery { list-style: none; display: grid; gap: 1.5rem 1rem; grid-template-columns: 1fr; margin-top: 2.25rem; }
.review { margin: 2.5rem 0 0; padding: 1.5rem; background: #fff; border-left: 6px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; }
.review p { font-size: clamp(1.25rem, 3.5vw, 1.5rem); font-weight: 500; line-height: 1.35; color: var(--navy); }
.review footer { margin-top: .75rem; color: var(--ink-soft); font-size: .9375rem; }
.source-note { margin-top: 1rem; font-size: .9375rem; color: var(--ink-soft); }

/* Call-back band */
.callback .wrap { display: grid; gap: 1.5rem; }
.callback h2 { font-size: clamp(2.125rem, 6.5vw, 3.5rem); }
.callback p { margin-top: 1rem; color: var(--on-navy-soft); font-size: 1.125rem; max-width: 36rem; }

/* Sub-page head */
.page-head { padding-block: 2.5rem 2.75rem; border-bottom: 1px solid var(--rule); }
.page-head .roof-line { width: 4.5rem; height: auto; margin-bottom: 1rem; }
.page-head .roof-line polyline { stroke-width: 4; }
.page-head h1 { font-size: clamp(2.5rem, 9vw, 4.5rem); line-height: 1; color: var(--navy); max-width: 18ch; }
.page-head p { margin-top: 1.25rem; font-size: 1.1875rem; color: var(--ink-soft); max-width: 40rem; }
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: 1.75rem; }
.jump a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: var(--panel-rule); }
.jump a:hover { text-decoration-color: var(--orange); }

/* Service sections */
.svc { padding-block: 3.5rem; border-bottom: 1px solid var(--rule); }
.svc .wrap { display: grid; gap: 2rem; }
.svc h2 { font-size: clamp(1.875rem, 5.5vw, 3rem); color: var(--navy); }
.svc-text > p { margin-top: 1rem; }
.svc .ph-square { --ratio: 1 / 1; max-width: 24rem; }
.ticks { list-style: none; margin-top: 1.25rem; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .55rem; background: var(--orange); clip-path: polygon(50% 0, 100% 100%, 82% 100%, 50% 32%, 18% 100%, 0 100%); }
.brands { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.brands strong { color: var(--ink); }
.svc-cta { margin-top: 1.5rem; }
.svc-cta a { font-weight: 600; color: var(--orange-ink); text-decoration-thickness: 2px; }

/* Materials */
.mat { display: grid; gap: 1rem; }
.mat-group { background: #fff; padding: 1.5rem; border-top: 4px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); }
.mat-group h2 { font-size: 1.75rem; color: var(--navy); }
.mat-group p { margin-top: .5rem; color: var(--ink-soft); }
.mat-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.mat-list li { padding: .375rem .75rem; border: 1px solid var(--panel-rule); background: var(--paper); border-radius: 4px; font-weight: 600; }
.plain { display: grid; gap: 1.5rem; }
.plain h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); color: var(--navy); }
.plain p { margin-top: .75rem; }

/* Contact */
.contact .wrap { display: grid; gap: 3rem; }
.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%; font: 400 1.0625rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 2px solid #6c7489; border-radius: var(--radius);
  padding: .75rem .875rem; min-height: 48px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(242, 88, 36, .45); outline-offset: 0; }
.field input[type="file"] { padding: .625rem; background: var(--panel); }
.form .btn { justify-self: start; }
.form-legal { font-size: .875rem; color: var(--ink-soft); }
.form-concept { font-size: .9375rem; font-weight: 600; color: var(--ink); background: var(--panel); border-left: 4px solid var(--orange); padding: .625rem .875rem; border-radius: 0 var(--radius) var(--radius) 0; }
.hidden-field { position: absolute; left: -9999px; }
.contact-card { padding: 1.75rem; border-radius: var(--radius); }
.contact-list { list-style: none; display: grid; }
.contact-list a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding-block: .75rem; text-decoration: none; border-bottom: 1px solid var(--navy-line); }
.contact-list small { font-size: .875rem; color: var(--on-navy-soft); }
.contact-list span { font-size: clamp(1.0625rem, 4.9vw, 1.25rem); font-weight: 700; overflow-wrap: normal; }
@media (max-width: 30rem) {
  .contact-card { padding: 1.25rem; }
}
.contact-list a:hover span { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; margin-top: 1.75rem; }
.hours caption { text-align: left; font-weight: 700; font-size: 1.375rem; padding-bottom: .5rem; }
.hours th, .hours td { text-align: left; padding: .625rem 0; border-top: 1px solid var(--navy-line); font-weight: 400; }
.hours td { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 1rem; }
.contact-card address { font-style: normal; margin-top: 1.75rem; font-size: 1.1875rem; line-height: 1.45; }
.contact-card address strong { display: block; font-size: 1.375rem; font-weight: 700; margin-bottom: .25rem; }
.company { margin-top: 1.5rem; font-size: .875rem; color: var(--on-navy-soft); line-height: 1.5; }

/* Thank-you page */
.thanks { padding-block: 4rem 6rem; }
.thanks h1 { font-size: clamp(2.5rem, 9vw, 4.5rem); line-height: 1; color: var(--navy); }
.thanks p { margin-top: 1.25rem; font-size: 1.1875rem; max-width: 36rem; }
.thanks a:not(.btn) { color: var(--orange-ink); font-weight: 600; }

/* Footer */
.site-footer { padding-block: 3rem; background: var(--navy-deep); }
.site-footer .wrap { display: grid; gap: 1.75rem; }
.site-footer p { color: var(--on-navy-soft); font-size: .9375rem; }
.foot-brand { display: flex; align-items: center; gap: .75rem; }
.foot-brand img { height: 3.25rem; 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; }
.site-footer p a { display: inline-flex; align-items: center; min-height: 44px; }
.credits { list-style: none; display: grid; gap: 1.25rem; max-width: 48rem; }
.credits li { display: grid; gap: .25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.credits strong { color: var(--navy); }
.credits a { color: var(--orange-ink); }
.footer-concept { border-top: 1px solid var(--navy-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.35fr; gap: .5rem;
  padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
  background: var(--navy); --focus: var(--orange);
}
.action-bar .btn { width: 100%; padding-inline: .5rem; font-size: .9375rem; }
.action-bar .btn-line { color: var(--on-navy); }

/* 600px */
@media (min-width: 37.5rem) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .mat { grid-template-columns: 1fr 1fr; }
  .values ul { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* 768px */
@media (min-width: 48rem) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .header-call { display: inline-flex; }
  .header-call .num { display: inline; }
  .hero { padding-block: 3.5rem 4.5rem; }
  .hero .wrap { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 3.5rem; }
  .roof-photo .photo img { --ratio: 3 / 2; }
  .band { padding-block: 5.5rem; }
  .svc-index a { grid-template-columns: minmax(14rem, 1fr) 1.6fr; align-items: baseline; gap: 2rem; }
  .story .wrap { grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: start; }
  .work { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .callback .wrap { grid-template-columns: 1.3fr .7fr; align-items: end; gap: 3rem; }
  .callback .actions { justify-content: flex-end; }
  .page-head { padding-block: 3.5rem 3.25rem; }
  .svc .wrap { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: start; }
  .svc:nth-of-type(even) .svc-text { order: 2; }
  .plain { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .contact .wrap { grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: start; }
  .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .footer-concept { grid-column: 1 / -1; }
}

/* 1024px */
@media (min-width: 64rem) {
  .nav { display: block; }
  .menu { display: none; }
  .values ul { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .mat { gap: 1.5rem; }
}

@media print {
  .site-header, .concept { position: static; }
  .action-bar { display: none; }
}
