/* ==========================================================================
   3Dino – shared stylesheet for every language version of the site.
   Edit colours, fonts and spacing in the :root block below; everything else
   reads from those variables.
   ========================================================================== */

/* ---------- Fonts (self-hosted: no Google Fonts = faster + GDPR-friendly) ---------- */

/* Headline font, basic Latin characters */
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
/* Headline font, Czech letters (č, ř, ě, ů …) */
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-cz-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+010C-010F, U+011A-011B, U+0139-013A, U+013D-013E, U+0147-0148, U+0150-0151, U+0154-0155, U+0158-0161, U+0164-0165, U+016E-0171, U+017D-017E;
}
/* Headline font, Cyrillic letters for the Ukrainian page */
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Body font, basic Latin characters */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
/* Body font, Czech letters */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cz-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+010C-010F, U+011A-011B, U+0139-013A, U+013D-013E, U+0147-0148, U+0150-0151, U+0154-0155, U+0158-0161, U+0164-0165, U+016E-0171, U+017D-017E;
}
/* Body font, Cyrillic letters */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Design tokens ---------- */
:root {
  --alu: #e8ebed;          /* page background – brushed aluminium grey */
  --plate: #f7f8f9;        /* lighter surface for panels */
  --graphite: #1b1f23;     /* main text and dark sections */
  --steel: #545d66;        /* secondary text */
  --line: #c9ced3;         /* thin divider lines */
  --filament: #ff6b00;     /* brand orange – buttons, highlights */
  --filament-ink: #a03f00; /* darker orange that is readable as text on light grey */

  --font-head: "Unbounded", "Arial Black", system-ui, sans-serif; /* headlines */
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif; /* everything else */

  --wrap: 1180px;          /* maximum content width */
  --gap: clamp(1rem, 3vw, 2rem); /* standard spacing that grows with screen size */
  --radius: 6px;           /* corner rounding for buttons and images */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; } /* padding counts inside the width */
html { scroll-behavior: smooth; scroll-padding-top: 5rem; } /* anchor links stop below the sticky header */
body {
  margin: 0;
  background: var(--alu);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 1.0625rem;  /* 17px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; } /* images never overflow their box */
a { color: var(--filament-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--graphite); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.6em; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 500; }
p { margin: 0 0 1em; max-width: 68ch; } /* keeps lines short enough to read comfortably */

/* Visible keyboard focus everywhere */
:focus-visible { outline: 3px solid var(--filament); outline-offset: 3px; border-radius: 2px; }

/* Hides text visually but keeps it for screen readers and search engines */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Centred content column used by every section */
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }

/* Vertical rhythm between sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
/* Every other block gets the lighter background so the page has rhythm */
.section-alt { background: var(--plate); }
.section-alt .price-item, .section-alt .materials { background: var(--alu); }
.section-intro { max-width: 60ch; color: var(--steel); margin-bottom: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.4em;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
/* Main call to action: orange with dark text (white on this orange is too low-contrast) */
.btn-primary { background: var(--filament); color: var(--graphite); }
.btn-primary:hover { background: var(--graphite); color: var(--plate); }
/* Secondary action: outline only */
.btn-quiet { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn-quiet:hover { background: var(--graphite); color: var(--plate); }

/* ---------- Language suggestion bar (Czech page only) ---------- */
.lang-hint { background: var(--graphite); color: var(--plate); font-size: 0.95rem; }
.lang-hint .wrap { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 0.6rem; }
.lang-hint a { color: var(--filament); font-weight: 600; }
.lang-hint button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0.25rem 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(232, 235, 237, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--graphite); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.main-nav { display: flex; gap: 0.25rem; margin-left: auto; }
.main-nav a { color: var(--graphite); text-decoration: none; padding: 0.4rem 0.65rem; border-radius: var(--radius); font-weight: 500; }
.main-nav a:hover { background: var(--plate); }
.lang-switch { display: flex; gap: 0.15rem; font-size: 0.9rem; }
.lang-switch a { color: var(--steel); text-decoration: none; padding: 0.3rem 0.45rem; border-radius: var(--radius); }
.lang-switch a[aria-current="true"] { color: var(--graphite); font-weight: 700; background: var(--plate); }
.header-cta { padding: 0.55em 1em; }
.menu-toggle { display: none; } /* only shown on small screens, see media query */

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }

/* Wrapper for the headline: holds the orange "nozzle" line that rides up during the build animation */
.hero-title-wrap { position: relative; }
.hero-title {
  font-size: clamp(3.25rem, 8.6vw, 7rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  /* Fine horizontal stripes inside the letters = FDM layer lines */
  color: var(--graphite);
  background-image: repeating-linear-gradient(180deg, var(--graphite) 0 0.052em, #4a525a 0.052em 0.064em);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Smaller size for languages where the headline words are longer (English) */
.hero-title.is-long { font-size: clamp(2.75rem, 7vw, 5.5rem); }
.hero-lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 34ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Photo on the right; the orange bar under it echoes the build plate edge */
.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--line); }
.hero-media::after { content: ""; display: block; height: 8px; background: var(--filament); border-radius: 0 0 var(--radius) var(--radius); }

/* Key facts below the hero text */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(2.5rem, 5vw, 4rem); }
.facts div { background: var(--plate); padding: 1.1rem 1.25rem; }
.facts dt { font-size: 0.9rem; color: var(--steel); }
.facts dd { margin: 0.2rem 0 0; font-weight: 600; }

/* The one animated moment: the headline "prints" bottom-up in layer steps when the page loads */
@media (prefers-reduced-motion: no-preference) {
  .hero-title { animation: print-up 1.1s steps(14, end) both; }
  .hero-title-wrap::after {
    content: "";
    position: absolute; left: 0; right: 0; height: 3px;
    background: var(--filament);
    box-shadow: 0 0 12px var(--filament);
    animation: nozzle 1.1s steps(14, end) both, nozzle-off 0.3s 1.1s forwards;
    pointer-events: none;
  }
}
@keyframes print-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes nozzle { from { bottom: 0; } to { bottom: 100%; } }
@keyframes nozzle-off { to { opacity: 0; } }

/* ---------- Services ---------- */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gap); list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.service-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.service-list h3 { margin-bottom: 0.4rem; }
.service-list p { color: var(--steel); margin: 0; }
.service-list .price-note { display: block; margin-top: 0.4rem; color: var(--filament-ink); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; } /* first photo is the big one */
.gallery button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery button:focus-visible { outline: 3px solid var(--filament); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; background: var(--line); transition: transform 0.4s; }
.gallery button:hover img { transform: scale(1.03); }

/* Full-size photo viewer (native <dialog> element) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); }
.lightbox::backdrop { background: rgba(27, 31, 35, 0.88); }
.lightbox img { max-height: 86vh; width: auto; margin: auto; border-radius: var(--radius); }
.lightbox button { position: fixed; top: 1rem; right: 1rem; background: var(--filament); color: var(--graphite); border: 0; border-radius: var(--radius); font: inherit; font-weight: 600; padding: 0.5rem 0.9rem; cursor: pointer; }

/* ---------- Process (a real sequence, so it is numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--graphite); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--filament-ink); line-height: 1; margin-bottom: 0.75rem; }
.steps p { color: var(--steel); margin: 0; }

/* ---------- Materials ---------- */
.materials { width: 100%; border-collapse: collapse; background: var(--plate); border-radius: var(--radius); overflow: hidden; }
.materials th, .materials td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.materials thead th { font-size: 0.9rem; color: var(--steel); font-weight: 500; }
.materials tbody th { font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.materials tr:last-child th, .materials tr:last-child td { border-bottom: 0; }
.table-note { color: var(--steel); font-size: 0.95rem; margin-top: 1rem; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.price-item { background: var(--plate); border-radius: var(--radius); padding: 1.75rem; }
.price-item .amount { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; margin: 0 0 0.75rem; }
.price-item ul { margin: 0; padding-left: 1.1rem; color: var(--steel); }
.price-item li + li { margin-top: 0.35rem; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.reviews figure { margin: 0; border-left: 3px solid var(--filament); padding-left: 1.25rem; }
.reviews blockquote { margin: 0 0 0.75rem; font-size: 1.1rem; }
.reviews figcaption { color: var(--steel); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9rem; font-family: var(--font-head); font-size: 1.4rem; color: var(--filament-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--steel); padding-bottom: 1rem; }

/* ---------- Contact (the one dark section) ---------- */
.contact { background: var(--graphite); color: var(--alu); }
.contact h2 { color: var(--plate); }
.contact .section-intro { color: #b9c0c6; }
.contact a { color: var(--filament); }
.contact a:hover { color: var(--plate); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); }

/* Quote request form */
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form label { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; font: inherit; color: var(--graphite);
  background: var(--plate); border: 2px solid transparent; border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  min-height: 3.25rem;  /* inputs and the dropdown get the same height */
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--filament); }
.quote-form textarea { min-height: 7.5rem; resize: vertical; }
.form-hint { font-size: 0.95rem; color: #b9c0c6; margin: 0; }
.form-status { font-size: 0.95rem; color: var(--plate); margin: 0; min-height: 1.5em; }

/* Direct contact list */
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { padding: 0.9rem 0; border-bottom: 1px solid #353b41; }
.contact-list span { display: block; font-size: 0.9rem; color: #9aa3ab; }
.contact-list a { font-size: 1.15rem; font-weight: 600; }
.copy-btn { margin-left: 0.5rem; background: none; border: 1px solid #4a525a; color: var(--alu); border-radius: var(--radius); font: inherit; font-size: 0.85rem; padding: 0.15rem 0.55rem; cursor: pointer; }
.copy-btn:hover { border-color: var(--filament); }
.business { font-size: 0.95rem; color: #9aa3ab; }
.business p { margin: 0 0 0.3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: #9aa3ab; border-top: 1px solid #353b41; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-block: 1.5rem; }
.site-footer a { color: #c4cad0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* ---------- Footer extras ---------- */
.site-footer p { margin: 0; }
.footer-id { font-size: 0.85rem; margin-top: 0.3rem !important; }

/* ---------- Legal pages (privacy, cookies, terms) ---------- */
.header-link { margin-left: auto; color: var(--graphite); font-weight: 500; text-decoration: none; padding: 0.4rem 0.65rem; border-radius: var(--radius); }
.header-link:hover { background: var(--plate); }
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal .updated { color: var(--steel); margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
.legal h3 { margin: 1.5rem 0 0.5rem; }
.legal ul, .legal ol { padding-left: 1.25rem; max-width: 68ch; }
.legal li + li { margin-top: 0.4rem; }
.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; }   /* wide tables scroll sideways on phones */
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--plate); border-radius: var(--radius); font-size: 0.95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.legal-table thead th { color: var(--steel); font-weight: 500; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal code { font-size: 0.9em; background: var(--plate); padding: 0.1em 0.35em; border-radius: 3px; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }                 /* photo moves under the text */
  .hero-media img { aspect-ratio: 16 / 10; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .pricing, .reviews { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  /* Navigation collapses behind a "Menu" button */
  .menu-toggle { display: inline-block; margin-left: auto; background: none; border: 2px solid var(--graphite); border-radius: var(--radius); font: inherit; font-weight: 600; padding: 0.35rem 0.8rem; cursor: pointer; color: var(--graphite); }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--plate); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gap) 1rem; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 0.75rem 0.5rem; }
  .header-cta { display: none; }
  .lang-switch { margin-left: auto; }               /* languages sit next to the Menu button */
  .menu-toggle { order: 2; margin-left: 0.25rem; }  /* Menu button goes last */
}
@media (max-width: 620px) {
  .service-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .materials thead { display: none; }                         /* table turns into stacked blocks */
  .materials tr { display: block; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
  .materials th, .materials td { display: block; padding: 0.15rem 0; border: 0; }
  .header-link { display: none; }                             /* the logo already links home */
  .legal-table { min-width: 0; }                              /* legal tables stack like cards */
  .legal-table thead { display: none; }
  .legal-table tr { display: block; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
  .legal-table td { display: block; padding: 0.2rem 0; border: 0; }
  .legal-table td::before { content: attr(data-label); display: block; font-size: 0.8rem; color: var(--steel); }
}
