/* ==========================================================================
   Mgr. Denisa Hanáková — advokátka
   Dark blue / cognac / taupe / dusty rose / cream palette, EB Garamond
   ========================================================================== */

:root {
  --bg: #F5F1EB;
  --bg-band: #D2C0BA;

  --ink: #172A3A;
  --ink-soft: rgba(23, 42, 58, .78);

  --accent: #B5A89B;      /* decorative only: icons, rules, logo mark border */
  --accent-ink: #80604E;  /* interactive: buttons, links, focus */
  --accent-ink-hover: #172A3A;

  --line: rgba(23, 42, 58, .14);
  --wrap: 1200px;

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

/* Base ------------------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font: 400 1rem/1.7 var(--sans);
}

h1, h2, h3, blockquote {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

h1 { font-size: clamp(2.2rem, 1.1rem + 3.6vw, 3.5rem); line-height: 1.14; }

.section { padding-block: 0; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.lead { font-size: clamp(1rem, .95rem + .35vw, 1.15rem); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  /* stretch the band to the .wrap outer edge — exactly the width of the
     hero picture, which spans .wrap including its own inline padding */
  margin-inline: calc(-1 * clamp(1.25rem, 4vw, 3rem));
}

.section-title::before,
.section-title::after {
  content: "";
  height: 1px;
  width: clamp(1.5rem, 6vw, 6rem);
  background: rgba(245, 241, 235, .3);
}

/* Accessibility ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: .75rem 1rem;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

section[id] { scroll-margin-top: 96px; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  border-bottom: 1px solid rgba(245, 241, 235, .25);
}

.site-header.is-scrolled { box-shadow: 0 1px 12px rgba(0, 0, 0, .25); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: var(--bg);
  border: 1px solid var(--accent);
}

.mark-svg { width: 24px; height: 24px; }

.mark-glyph {
  font-family: var(--serif);
  font-size: 300px;
}

.mark-d { fill: #172A3A; }
.mark-h { fill: #80604E; }

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
}

.brand-role {
  display: block;
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(245, 241, 235, .75);
}

.primary-nav { margin-inline: auto; }

.nav-list { display: flex; gap: 1.75rem; }

.nav-list a {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245, 241, 235, .8);
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
}

.nav-list a.is-active,
.nav-list a:hover {
  color: var(--bg);
  border-bottom-color: var(--accent);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.5rem;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn-solid { background: var(--accent-ink); color: #F5F1EB; }
.btn-solid:hover { background: var(--accent-ink-hover); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(280px, 38vw, 520px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero-media {
  position: absolute;
  inset: 0;
  max-width: var(--wrap);   /* column width, same 1200px cap as .wrap */
  margin-inline: auto;      /* centered, same mechanics as .wrap */
  background:
    linear-gradient(rgba(245, 241, 235, .45), rgba(245, 241, 235, .45)),
    url("background.png") center / cover no-repeat;
}

.hero .lead { color: var(--ink); }

/* About ------------------------------------------------------------------ */

.section-about .about-body {
  max-width: 62ch;
  margin-inline: auto;
  margin-top: 2.5rem;
  display: grid;
  gap: 1.2rem;
}

.about-lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + .9vw, 1.5rem);
  color: var(--ink);
}

/* Services --------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem 0;
  margin-top: 2.5rem;
}

.service {
  padding-inline: clamp(.75rem, 1.6vw, 1.25rem);
  border-left: 1px solid var(--line);
}

.service:first-child { border-left: 0; }

.service .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.service-text { font-size: .82rem; line-height: 1.6; }

/* Quote band ------------------------------------------------------------- */

.quote-band {
  padding-block: 0;
}

/* band background spans exactly the .wrap column — same width as the
   hero picture, not the whole page */
.quote-band .wrap {
  background: var(--bg-band);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 56ch;
  margin-inline: auto;
  text-align: center;
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem);
}

.quote::before,
.quote::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: var(--line);
}

/* Contact ---------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2.5rem;
}

.contact-list {
  display: grid;
  gap: 1.1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.contact-list .icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--accent);
}

.contact-list a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.contact-list a:hover { border-bottom-color: var(--accent); }

.contact-map {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.map-embed {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  background: var(--bg-band);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: .85rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}

.tagline {
  margin-top: .35rem;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-contact { margin-top: 1.25rem; }

.footer-contact a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.footer-contact a:hover { border-bottom-color: var(--accent); }

.copyright { margin-top: 1.5rem; color: var(--ink-soft); }

/* Reveal on scroll ------------------------------------------------------- */

.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* Responsive nav --------------------------------------------------------- */

.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(245, 241, 235, .4);
    background: none;
    cursor: pointer;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--bg);
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  .header-cta { display: none; }

  .brand-text { display: none; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(245, 241, 235, .25);
    display: none;
  }

  .primary-nav.is-open,
  .no-js .primary-nav { display: block; }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  }

  .nav-list a {
    display: block;
    padding-block: .85rem;
    border-bottom: 1px solid rgba(245, 241, 235, .18);
  }
}

@media (min-width: 900px) {
  .primary-nav { display: block; }
}

/* Breakpoints: contact, services --------------------------------------- */

@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service:nth-child(3n+1) { border-left: 0; }
}

@media (max-width: 767px) {
  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .service {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.5rem 0;
  }
  .service:first-child { border-top: 0; }
}
