/* Keramika Šimić — site styles. Palette taken from the business's own stair photo:
   oak tile, plaster pink, oxblood door/plinth, paver grey, grout white. */
:root {
  --grout: #f6f1ea;
  --grout-2: #ece4d8;
  --line: #d9cdbd;
  --oak: #a9825a;
  --oak-dark: #7a5b3d;
  --plaster: #efc2a6;
  --plaster-soft: #f8e3d5;
  --oxblood: #6f2a22;
  --oxblood-dark: #561f19;
  --paver: #3a3936;
  --ink: #23211f;
  --muted: #5e5852;
  --white: #fffdf9;
  --radius: 4px;
  --wrap: 1180px;
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --text: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--grout);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); text-underline-offset: .18em; }
a:hover { color: var(--oxblood-dark); }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-weight: 600; font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tile grid texture: thin grout lines */
.tiles {
  background-color: var(--grout);
  background-image:
    linear-gradient(var(--grout-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grout-2) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--oak-dark);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--oxblood); box-shadow: 16px 0 0 var(--oak), 32px 0 0 var(--plaster); margin-right: 32px; }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1; }
.brand-name small { display: block; font-family: var(--text); font-weight: 400; font-size: .72rem; letter-spacing: .04em; color: var(--muted); margin-top: .25rem; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .55rem .8rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--oxblood); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--oxblood); }
.lang { font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--muted); border: 1px solid var(--line); padding: .35rem .6rem; border-radius: var(--radius); }
.lang:hover { color: var(--oxblood); border-color: var(--oxblood); }
.header-actions { display: flex; align-items: center; gap: .6rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--text); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .85rem 1.3rem; border-radius: var(--radius); text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--oxblood); color: #fff; }
.btn-primary:hover { background: var(--oxblood-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--plaster); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .55rem .9rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- hero (home) ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 span { color: var(--oxblood); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; margin-bottom: 1.8rem; }
.hero-facts { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-facts li { padding: 1rem 1rem 0 0; font-size: .92rem; color: var(--muted); }
.hero-facts strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.hero-media { position: relative; }
.hero-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); box-shadow: 18px 18px 0 var(--plaster); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-detail {
  position: absolute; left: -2.5rem; bottom: -2rem; width: 46%;
  border: 6px solid var(--white); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(35,33,31,.22);
}
.photo-tag {
  position: absolute; top: 1rem; right: 1rem; background: rgba(35,33,31,.82); color: #fff;
  font-size: .8rem; font-weight: 600; padding: .35rem .65rem; border-radius: var(--radius); letter-spacing: .02em;
}
.stock-tag {
  position: absolute; left: .7rem; bottom: .7rem; background: rgba(255,253,249,.9); color: var(--muted);
  font-size: .72rem; font-weight: 600; padding: .2rem .5rem; border-radius: 2px; letter-spacing: .03em;
}

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* services: tiles that step up like stairs */
.service-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); align-items: end; }
.service-steps > * { background: var(--white); }
.service-tile { display: flex; flex-direction: column; height: 100%; }
.service-tile .img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-tile .img img { width: 100%; height: 100%; object-fit: cover; }
.service-tile .body { padding: 1.3rem 1.3rem 1.5rem; }
.service-tile p { color: var(--muted); font-size: .97rem; margin: 0; }
.service-tile .num { font-family: var(--display); font-weight: 800; color: var(--oak-dark); font-size: .95rem; display: block; margin-bottom: .4rem; }
@media (min-width: 981px) {
  .service-steps { background: transparent; border: 0; gap: 0; }
  .service-steps > * { border: 1px solid var(--line); margin-left: -1px; }
  .service-steps > :nth-child(1) { margin-top: 6rem; }
  .service-steps > :nth-child(2) { margin-top: 4rem; }
  .service-steps > :nth-child(3) { margin-top: 2rem; }
  .service-steps { align-items: start; }
  .service-tile { height: auto; }
  .service-tile .body { min-height: 13.5rem; }
}
.note-line { margin-top: 1.6rem; color: var(--muted); }
.note-line a { font-weight: 600; }

/* featured real project */
.project { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.project-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.project-photos figure { margin: 0; position: relative; }
.project-photos .tall img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 60%; width: 100%; border-radius: var(--radius); }
.project-photos .wide { margin-bottom: 2.5rem; }
.project-photos .wide img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: var(--radius); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.detail-list { list-style: none; margin: 1.5rem 0 1.8rem; padding: 0; border-top: 1px solid var(--line); }
.detail-list li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.detail-list li::before { content: ""; width: 14px; height: 14px; margin-top: .35rem; background: var(--oak); box-shadow: inset 0 0 0 2px var(--white), 0 0 0 1px var(--oak); }

/* review */
.review { background: var(--paver); color: #f3ede5; position: relative; overflow: hidden; }
.review::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(#000 2px, transparent 2px), linear-gradient(90deg, #000 2px, transparent 2px);
  background-size: 88px 44px;
}
.review .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.review-score { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 8vw, 6rem); line-height: .9; color: var(--plaster); }
.review-score small { display: block; font-family: var(--text); font-weight: 400; font-size: .9rem; color: #cfc6bb; margin-top: .6rem; letter-spacing: .02em; }
.review blockquote { margin: 0; }
.review blockquote p { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.3; color: #fff; }
.review cite { font-style: normal; color: #cfc6bb; font-size: .95rem; }
.review cite a { color: var(--plaster); }
.review .h-label { color: var(--plaster); }

/* process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); padding: 1.6rem 1.5rem 1.7rem; position: relative; border-radius: var(--radius); }
.steps li::before { content: "0" counter(s); font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--plaster); line-height: 1; display: block; margin-bottom: .8rem; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }

/* CTA band */
.cta-band { background: var(--oxblood); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 46%;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 48px 48px;
  clip-path: polygon(30% 100%, 30% 75%, 50% 75%, 50% 50%, 70% 50%, 70% 25%, 90% 25%, 90% 0, 100% 0, 100% 100%);
}
.cta-band .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #f1d9cf; }
.cta-phone { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: #fff; text-decoration: none; white-space: nowrap; }

/* ---------- inner page hero ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-bottom: 1.4rem; }

/* services page */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc:nth-child(even) .svc-img { order: 2; }
.svc-img { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc ul { padding-left: 1.1rem; color: var(--muted); margin: 0 0 1rem; }
.svc li { margin-bottom: .3rem; }
.svc li::marker { color: var(--oak); }
.svc .kicker { font-family: var(--display); font-weight: 800; color: var(--oak-dark); }

.real-work { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.real-work .photos { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.real-work .photos img { width: 100%; border-radius: var(--radius); }
.real-work .photos .p-tall { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; }

.ask-box { margin-top: 2rem; background: var(--plaster-soft); border-left: 6px solid var(--oxblood); padding: 1.4rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }
.ask-box p:last-child { margin: 0; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-card { background: var(--white); padding: clamp(1.5rem, 3.5vw, 2.4rem); }
.contact-card h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--oak-dark); margin-bottom: .8rem; font-weight: 600; }
.contact-big { font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 3vw, 2.2rem); color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: .6rem; overflow-wrap: anywhere; line-height: 1.15; }
.contact-big:hover { color: var(--oxblood); }
.contact-big[href^="mailto"] { font-size: clamp(1.1rem, 2.4vw, 2.2rem); }
.contact-card p { color: var(--muted); }
.contact-card .btn { margin-top: .4rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem; }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .4rem; }
.checklist li::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--oxblood); margin-top: .3rem; border-radius: 2px; }
.legal { font-size: .92rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc6bb; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand { display: flex; gap: .7rem; align-items: center; margin-bottom: .9rem; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-brand span { font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.25rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid #3d3a36; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* mobile action bar */
.action-bar { display: none; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .code { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--plaster); }
.notfound .btn-row { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .project, .real-work { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-detail { left: auto; right: -.5rem; width: 40%; bottom: -1.5rem; }
  .service-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .header-row { flex-wrap: wrap; gap: .5rem 1rem; min-height: 0; padding: .7rem 0 0; }
  .header-actions .btn { display: none; }
  .main-nav { order: 3; width: 100%; border-top: 1px solid var(--line); }
  .main-nav ul { justify-content: space-between; }
  .main-nav a { padding: .65rem .2rem; font-size: .95rem; }
  .brand svg { width: 32px; height: 32px; }
  .brand-name { font-size: 1.15rem; }
  .hero-facts { gap: .6rem; margin-top: 1.6rem; }
  .hero-facts li { padding: .7rem 0 0; font-size: .8rem; line-height: 1.35; }
  .hero-facts strong { font-size: .92rem; margin-bottom: .15rem; }
  .hero-photo { box-shadow: 10px 10px 0 var(--plaster); }
  .service-steps { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc:nth-child(even) .svc-img { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .review .wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band::before { width: 70%; opacity: .6; }
  .action-bar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--line); box-shadow: 0 -6px 18px rgba(35,33,31,.15); padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 60px; font-weight: 600; text-decoration: none; }
  .action-bar svg { width: 1.2em; height: 1.2em; }
  .action-bar .call { background: var(--oxblood); color: #fff; }
  .action-bar .mail { background: var(--white); color: var(--ink); }
}
@media (max-width: 400px) {
  .brand-name small { display: none; }
}
[id] { scroll-margin-top: 110px; }
.contact-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.contact-photo { margin: 0; }
.contact-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: 12px 12px 0 var(--plaster); }
@media (max-width: 760px) { .contact-hero { grid-template-columns: 1fr; } .contact-photo img { box-shadow: 8px 8px 0 var(--plaster); } }
.nowrap { white-space: nowrap; }
.main-nav a, .header-actions .btn { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 761px) {
  .brand-name small { display: none; }
  .header-row { gap: 1rem; }
  .main-nav a { padding: .55rem .5rem; }
  .hdr-mail span { display: none; }
  .real-work .photos { max-width: 560px; }
}
@media (max-width: 980px) { .real-work .photos { max-width: 560px; } }
