/* ========== Design tokens ========== */
:root {
  --gold: #C9A962;
  --gold-hover: #b8953a;
  --dark: #2B2523;
  --card-dark: #362F2A;
  --off-white: #FAF8F5;
  --warm: #F0EBE3;
  --white: #FFFFFF;
  --body: #6B6460;
  --body-dark: #A09890;
  --divider: #EAE3D7;
  --divider-dark: #3D3530;

  --radius-card: 20px;
  --radius-image: 24px;
  --radius-pill: 100px;

  --shadow-soft: 0 8px 20px rgba(43, 37, 35, 0.07);
  --shadow-medium: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-badge: 0 4px 12px rgba(0, 0, 0, 0.2);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-script: "Dancing Script", cursive;
  --font-quote: "Source Serif 4", Georgia, serif;

  --container: 1200px;
  --gutter: 24px;
}

/* ========== Reset / base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--dark); line-height: 1.15; }
p { margin: 0 0 1em; color: var(--body); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ========== Typography helpers ========== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.script-accent {
  font-family: var(--font-script);
  color: var(--gold);
  font-weight: 500;
}
.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
}
.section-head h2 { font-size: 46px; }
.section-head--dark .eyebrow { color: var(--gold); }
.section-head--dark h2 { color: var(--white); }
.section-head--dark .section-lead { color: var(--body-dark); }
.section-lead {
  font-size: 18px;
  color: var(--body);
  margin-top: 16px;
}

/* ========== Icons ========== */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--accent { color: var(--gold); width: 32px; height: 32px; }
.icon--star { fill: var(--gold); stroke: var(--gold); width: 18px; height: 18px; }
.chevron { transition: transform 0.25s ease; width: 20px; height: 20px; }
details[open] .chevron { transform: rotate(180deg); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.1s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--white); }
.btn--primary:hover { background: var(--gold-hover); }
.btn--outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--white); }
.btn--outline-dark { background: transparent; border-color: var(--dark); color: var(--dark); }
.btn--outline-dark:hover { background: var(--dark); color: var(--white); }
.btn--outline-light { background: transparent; border: 1px solid var(--body-dark); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--off-white);
  border-bottom: 1px solid var(--divider);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.header__logo img { height: 56px; width: auto; }
.nav {
  display: flex;
  gap: 36px;
  margin-left: 24px;
  flex: 1;
}
.nav a {
  font-size: 16px;
  color: var(--body);
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a:hover { color: var(--dark); }
.header__cta { padding: 12px 28px; font-size: 14px; }
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.lang__sep { color: var(--gold); }
.lang__btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: color 0.2s;
}
.lang__btn:hover { color: var(--dark); }
.lang__btn.lang__active { color: var(--dark); cursor: default; }

/* ========== Hero ========== */
.hero { background: var(--off-white); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 80px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 110px;
}
.hero__tagline { font-size: 30px; margin: 0 0 16px; }
.hero__title {
  font-size: 64px;
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}
.hero__sub {
  font-size: 19px;
  line-height: 1.75;
  margin: 0 0 36px;
  max-width: 560px;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__image img {
  border-radius: var(--radius-image);
  width: 100%;
  height: 580px;
  object-fit: cover;
}

/* ========== About ========== */
.about { background: var(--white); }
.about__inner {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 100px;
}
.about__image img {
  border-radius: var(--radius-image);
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.about__text h2 { font-size: 46px; margin-bottom: 24px; }
.about__text p { font-size: 17px; line-height: 1.8; }
.about__signature { font-size: 30px; margin-top: 16px; }

/* ========== Why EMECO ========== */
.why { background: var(--off-white); padding: 100px 0; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}
.why-card .icon { margin-bottom: 20px; }
.why-card h3 { font-size: 22px; margin-bottom: 12px; }
.why-card p { font-size: 15px; line-height: 1.6; margin: 0; }

/* ========== Services ========== */
.services { background: var(--off-white); padding: 100px 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ========== Card (services + products share) ========== */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card--popular { box-shadow: 0 16px 40px rgba(201, 169, 98, 0.25); }
.card--dark { background: var(--card-dark); box-shadow: var(--shadow-medium); }
.card--dark h3, .card--dark .card__price { color: var(--white); }
.card--dark p { color: var(--body-dark); }
.card__image {
  height: 240px;
  overflow: hidden;
  background: var(--warm);
}
.card__image img { width: 100%; height: 100%; object-fit: cover; }
.card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
}
.card__price { font-family: var(--font-display); font-size: 32px; color: var(--gold); margin: 0; line-height: 1; }
.card--dark .card__price { color: var(--gold); }
.card__body > p { font-size: 15px; line-height: 1.7; margin: 0; }
.card__cta { align-self: flex-start; margin-top: auto; }
.badge {
  position: absolute;
  top: 20px;
  left: 24px;
  background: var(--gold);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: var(--shadow-badge);
  z-index: 2;
}

/* "Zistiť viac" inline expander */
.card__expand summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  user-select: none;
  padding: 4px 0;
}
.card__expand summary::-webkit-details-marker { display: none; }
.card__expand summary:hover { color: var(--gold-hover); }
.card__extra {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  animation: cardExtraIn 0.28s ease;
}
.card--dark .card__extra { border-top-color: var(--divider-dark); }
.card__extra p { font-size: 14px; line-height: 1.7; }
.card__extra p:last-child { margin-bottom: 0; }
@keyframes cardExtraIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ========== Products ========== */
.products { background: var(--dark); padding: 100px 0; }
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* Equal heights when collapsed; only the open card grows */
.services__grid:has(.card__expand[open]),
.products__grid:has(.card__expand[open]) {
  align-items: start;
}

/* ========== How it works ========== */
.how { background: var(--white); padding: 100px 0; }
.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  background: var(--off-white);
  border-radius: var(--radius-card);
  padding: 32px 28px;
}
.step__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 { font-size: 22px; margin-bottom: 12px; }
.step p { font-size: 15px; line-height: 1.65; margin: 0; }
.how__cta {
  margin-top: 56px;
  text-align: center;
}
.how__cta p { margin: 0 0 16px; font-size: 18px; color: var(--dark); }

/* ========== Testimonials ========== */
.testimonials { background: var(--warm); padding: 100px 0; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-soft);
}
.testi__stars { display: flex; gap: 4px; }
.testi__quote {
  margin: 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark);
  flex: 1;
}
.testi__author { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.testi__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.testi__name { font-size: 24px; margin: 0; line-height: 1.2; }
.testi__meta { font-size: 12px; letter-spacing: 1.5px; color: var(--body); margin: 4px 0 0; text-transform: uppercase; }

/* ========== FAQ ========== */
.faq { background: var(--white); padding: 100px 0; }
.faq__inner { max-width: 880px; }
.faq__list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--divider);
  padding: 24px 0;
}
.faq-item:first-child { border-top: none; }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--dark);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron { color: var(--gold); }
.faq-item__body { padding-top: 16px; }
.faq-item__body p { font-size: 16px; line-height: 1.75; margin: 0; }

/* ========== Final CTA ========== */
.final-cta { background: var(--off-white); padding: 120px 0; }
.final-cta__image img {
  border-radius: var(--radius-image);
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.final-cta__overlay {
  text-align: center;
  margin-top: 40px;
  padding: 0 24px;
}
.final-cta__overlay h2 { font-size: 50px; margin-bottom: 16px; }
.final-cta__overlay p { font-size: 18px; max-width: 600px; margin: 0 auto 32px; }
.final-cta__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== Footer ========== */
.footer { background: var(--dark); padding: 64px 0 40px; color: var(--body-dark); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 80px;
  padding-bottom: 48px;
}
.footer__brand {}
.footer__logotype {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--white);
  margin: 0 0 12px;
}
.footer__tagline { font-size: 15px; line-height: 1.7; color: var(--body-dark); margin: 0; max-width: 280px; }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin: 0 0 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 15px; color: var(--body-dark); transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }
.footer__divider { height: 1px; background: var(--divider-dark); margin: 0 0 32px; }
.footer__slogan { text-align: center; font-size: 24px; margin: 0 0 16px; }
.footer__copy { text-align: center; font-size: 13px; color: var(--body-dark); margin: 0; }

/* ========== Mobile sticky CTA ========== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 60;
  background: var(--gold);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(43, 37, 35, 0.3);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr 420px; gap: 56px; }
  .hero__title { font-size: 52px; }
  .about__inner { grid-template-columns: 360px 1fr; gap: 56px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }

  /* Header — hide nav + CTA, keep just logo + lang switcher */
  .header__inner { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .nav, .header__cta { display: none; }
  .header__logo img { height: 44px; }
  .lang { margin-left: auto; }

  /* Hero — stack */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .hero__tagline { font-size: 26px; }
  .hero__title { font-size: 34px; letter-spacing: 0; }
  .hero__sub { font-size: 17px; }
  .hero__image { order: -1; }
  .hero__image img { height: 320px; }
  .hero__ctas .btn { flex: 1; justify-content: center; }

  /* About — stack */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .about__image img { height: 360px; }
  .about__text h2 { font-size: 32px; }

  /* Generic section padding tighten */
  .why, .services, .products, .how, .testimonials, .faq, .final-cta {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 30px; }

  /* Single-col grids */
  .why__grid, .services__grid, .products__grid, .how__steps, .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .step { padding: 24px; }

  /* FAQ */
  .faq-item summary { font-size: 17px; gap: 16px; }
  .faq-item summary .chevron { width: 18px; height: 18px; }

  /* Final CTA */
  .final-cta { padding: 64px 0; }
  .final-cta__image img { height: 240px; }
  .final-cta__overlay h2 { font-size: 30px; }
  .final-cta__buttons .btn { flex: 1; justify-content: center; }

  /* Footer — stack columns */
  .footer { padding: 48px 0 32px; }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
  }
  .footer__copy { font-size: 12px; line-height: 1.8; }

  /* Show mobile sticky CTA + leave room for it */
  body { padding-bottom: 88px; }
  .sticky-cta { display: block; }
}

/* ========== Scroll reveal ========== */
.js .section-head,
.js .about__image,
.js .about__text,
.js .why-card,
.js .card,
.js .step,
.js .testi,
.js .faq-item,
.js .how__cta,
.js .final-cta__image,
.js .final-cta__overlay {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.js .is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered reveal for grid siblings */
.js .why-card:nth-child(2),
.js .card:nth-child(2),
.js .step:nth-child(2),
.js .testi:nth-child(2),
.js .faq-item:nth-child(2) { transition-delay: 0.08s; }

.js .why-card:nth-child(3),
.js .card:nth-child(3),
.js .step:nth-child(3),
.js .testi:nth-child(3),
.js .faq-item:nth-child(3) { transition-delay: 0.16s; }

.js .why-card:nth-child(4),
.js .step:nth-child(4),
.js .faq-item:nth-child(4) { transition-delay: 0.24s; }

.js .faq-item:nth-child(5) { transition-delay: 0.32s; }
.js .faq-item:nth-child(6) { transition-delay: 0.40s; }

/* About: image first, text second */
.js .about__text { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  .js .section-head,
  .js .about__image,
  .js .about__text,
  .js .why-card,
  .js .card,
  .js .step,
  .js .testi,
  .js .faq-item,
  .js .how__cta,
  .js .final-cta__image,
  .js .final-cta__overlay {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
