/*
Theme Name: DNS Kávégép
Template: twentytwentyfour
Version: 1.3.0
Author: DNS Kávégép
Text Domain: dns-kavegep
*/

/* ===== Base ===== */
html { scroll-behavior: smooth; }
body { background: var(--wp--preset--color--cream); overflow-x: clip; }

/* ===== Header ===== */
.dns-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 234, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 18, 15, 0.08);
  padding: 0.6rem clamp(1rem, 4vw, 3rem) !important;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}
.dns-header.is-condensed { padding-top: 0.35rem !important; padding-bottom: 0.35rem !important; box-shadow: 0 6px 20px rgba(20,18,15,0.08); }
.dns-header__brand { align-items: center; gap: 0.75rem !important; }
.dns-header__brand img { border-radius: 10px; }
.dns-header__title a { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; }
.dns-header__nav ul.wp-block-navigation__container { gap: 1.75rem !important; }
/* Core Navigation block's mobile overlay collapses to a tiny box when the nav is a flex
   child of another flex container (this header). Force it to actually fill the screen. */
.wp-block-navigation__responsive-container.is-menu-open {
  height: 100vh !important;
  height: 100dvh !important;
  background: var(--wp--preset--color--cream) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  height: 100%;
  padding: 1.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__container {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  margin-top: 3rem;
}
.wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content {
  font-size: 1.4rem !important;
  padding: 0.6rem 0 !important;
  color: var(--wp--preset--color--ink) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--ink) !important;
}
.dns-header__nav a.wp-block-navigation-item__content { font-weight: 600; font-size: 0.95rem; position: relative; text-decoration: none !important; }
.dns-header__nav a.wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--wp--preset--color--gold-deep);
  transition: right 0.25s ease;
}
.dns-header__nav a.wp-block-navigation-item__content:hover::after { right: 0; }
.dns-header__cta .wp-block-button__link {
  background: var(--wp--preset--color--ink) !important;
  color: var(--wp--preset--color--gold) !important;
  padding: 0.65rem 1.4rem !important;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(20,18,15,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dns-header__cta .wp-block-button__link:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 24px rgba(20,18,15,0.28); }
.dns-header__cta .wp-block-button__link::before { content: "\260E"; }

/* ===== Hero ===== */
.dns-hero {
  position: relative;
  background: var(--wp--preset--gradient--ink-to-espresso);
  color: var(--wp--preset--color--white);
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 5vw, 3rem) clamp(6rem, 12vw, 9rem) !important;
  overflow: hidden;
}
.dns-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,211,26,0.14) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
}
.dns-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 6vw; min-height: 48px;
  background: var(--wp--preset--color--cream);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}
.dns-hero > * { position: relative; z-index: 1; }
.dns-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,211,26,0.14); border: 1px solid rgba(255,211,26,0.4);
  color: var(--wp--preset--color--gold);
  padding: 0.35rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.dns-hero .is-style-dns-ghost .wp-block-button__link {
  background: transparent !important; color: var(--wp--preset--color--white) !important;
  border: 1.5px solid rgba(255,255,255,0.5) !important;
}
.dns-hero .is-style-dns-ghost .wp-block-button__link:hover { border-color: var(--wp--preset--color--gold) !important; color: var(--wp--preset--color--gold) !important; background: transparent !important; }

.dns-hero h1 {
  font-size: clamp(2.5rem, 1.8rem + 3.2vw, 4.25rem) !important;
  line-height: 1.08 !important;
  color: var(--wp--preset--color--white) !important;
  max-width: 15ch;
}
.dns-hero h1 em { color: var(--wp--preset--color--gold); font-style: normal; }
.dns-hero p.dns-hero__lede { color: rgba(255,255,255,0.78); max-width: 44ch; font-size: 1.15rem; margin-top: 1.25rem !important; }
.dns-hero .wp-block-buttons { margin-top: 2rem !important; }
.dns-hero__media { align-self: center; }
.dns-hero__image { margin: 0 !important; border-radius: 20px; overflow: hidden; box-shadow: var(--wp--preset--shadow--lifted); }
.dns-hero__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 782px) {
  .dns-hero .wp-block-columns { flex-wrap: wrap-reverse; }
  .dns-hero .wp-block-column { flex-basis: 100% !important; }
  .dns-hero__media { margin-bottom: 2rem; }
  .dns-hero h1 { max-width: none; }
}

/* ===== Stat bar (replaces the old "3 equal cards" trust row) ===== */
.dns-statbar {
  margin-top: clamp(-4rem, -6vw, -3rem) !important;
  position: relative; z-index: 2;
  background: var(--wp--preset--color--ink);
  border: 1px solid rgba(255,211,26,0.18);
  border-radius: 22px;
  padding: 0 !important;
  box-shadow: var(--wp--preset--shadow--lifted);
  overflow: hidden;
}
.dns-statbar .wp-block-columns { margin: 0 !important; align-items: stretch; }
.dns-stat {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.6rem 1.75rem !important;
  border-left: 1px solid rgba(255,255,255,0.1);
  height: 100%;
}
.dns-statbar .wp-block-column:first-child .dns-stat { border-left: none; }
.dns-stat .dns-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,211,26,0.12); color: var(--wp--preset--color--gold);
}
.dns-stat strong { display: block; color: var(--wp--preset--color--white); font-family: var(--wp--preset--font-family--heading); font-size: 1.05rem; line-height: 1.3; }
.dns-stat span { display: block; color: rgba(255,255,255,0.55); font-size: 0.82rem; line-height: 1.3; margin-top: 2px; }
@media (max-width: 782px) {
  .dns-stat { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.1); }
  .dns-statbar .wp-block-column:first-child .dns-stat { border-top: none; }
}

/* ===== Section rhythm ===== */
.dns-section { padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 3rem) !important; }
.dns-section-dark { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }
.dns-section-dark h2, .dns-section-dark h3 { color: var(--wp--preset--color--white) !important; }
.dns-section-dark .dns-price-card:not(.dns-price-card--featured) { color: var(--wp--preset--color--ink); }
.dns-section-dark .dns-price-card:not(.dns-price-card--featured) h3,
.dns-section-dark .dns-price-card:not(.dns-price-card--featured) .dns-price { color: var(--wp--preset--color--ink) !important; }
.dns-kicker {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem;
  color: var(--wp--preset--color--gold-deep);
}
.dns-section-dark .dns-kicker { color: var(--wp--preset--color--gold); }
.dns-section h2 { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem) !important; max-width: 18ch; line-height: 1.05 !important; }

/* ===== Bento services grid ===== */
.dns-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.25rem;
}
.dns-bento-item {
  background: var(--wp--preset--color--white);
  border-radius: 24px;
  padding: 2rem !important;
  border: 1px solid rgba(20,18,15,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column;
}
.dns-bento-item:hover { transform: translateY(-6px); box-shadow: var(--wp--preset--shadow--lifted); border-color: var(--wp--preset--color--gold); }
.dns-bento-item--big { grid-column: span 2; grid-row: span 2; background: var(--wp--preset--gradient--ink-to-espresso); border: none; justify-content: flex-end; }
.dns-bento-item--big h3, .dns-bento-item--big p { color: var(--wp--preset--color--white) !important; }
.dns-bento-item--big .dns-icon { background: var(--wp--preset--color--gold); }
.dns-bento-item--wide { grid-column: span 2; }
.dns-bento-item h3 { margin-top: auto; }
.dns-bento-item .dns-icon {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--wp--preset--color--gold); border-radius: 14px; font-size: 1.5rem; margin-bottom: 1rem;
}
.dns-bento-item a.dns-more { font-weight: 700; color: inherit; text-decoration: none; margin-top: 0.75rem; display: inline-block; }
.dns-bento-item a.dns-more::after { content: " \2192"; transition: margin-left 0.2s ease; display: inline-block; }
.dns-bento-item:hover a.dns-more::after { margin-left: 4px; }
@media (max-width: 900px) {
  .dns-bento { grid-template-columns: 1fr 1fr; }
  .dns-bento-item--big { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
  .dns-bento { grid-template-columns: 1fr; }
  .dns-bento-item--big, .dns-bento-item--wide { grid-column: span 1; }
}

/* ===== Pricing ===== */
.dns-price-card {
  background: var(--wp--preset--color--white);
  border-radius: 20px; padding: 1.75rem !important;
  border: 1px solid rgba(20,18,15,0.08);
  position: relative;
}
.dns-price-card .dns-price { font-family: var(--wp--preset--font-family--heading); font-size: 2rem; font-weight: 700; }
.dns-price-card--featured {
  background: var(--wp--preset--gradient--ink-to-espresso);
  color: var(--wp--preset--color--white);
  transform: scale(1.04);
  box-shadow: var(--wp--preset--shadow--lifted);
  border: none;
}
.dns-price-card--featured h3, .dns-price-card--featured .dns-price { color: var(--wp--preset--color--gold) !important; }
.dns-price-card--featured .dns-was { color: rgba(255,255,255,0.55); }
.dns-ribbon {
  position: absolute; top: -12px; right: 20px;
  background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink);
  font-weight: 700; font-size: 0.8rem; padding: 0.35rem 0.9rem; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.dns-was { text-decoration: line-through; opacity: 0.6; }

/* ===== CTA banner ===== */
.dns-cta {
  background: var(--wp--preset--gradient--gold-sheen) !important;
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4rem) !important;
  color: var(--wp--preset--color--ink);
  text-align: center;
}
.dns-cta h2 { color: var(--wp--preset--color--ink) !important; }
.dns-cta .wp-block-button__link { background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--gold) !important; }
.dns-cta .wp-block-button__link:hover { background: var(--wp--preset--color--white) !important; color: var(--wp--preset--color--ink) !important; }

/* ===== Footer ===== */
.dns-footer { background: var(--wp--preset--color--ink); color: rgba(255,255,255,0.75); padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem,5vw,3rem) 2rem !important; }
.dns-footer h2, .dns-footer h3 { color: var(--wp--preset--color--white) !important; }
.dns-footer a { color: rgba(255,255,255,0.75); }
.dns-footer a:hover { color: var(--wp--preset--color--gold) !important; }
.dns-footer .dns-legal { font-size: 0.82rem; opacity: 0.6; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem !important; padding-top: 1.5rem !important; }

/* ===== Page hero (inner pages) ===== */
.dns-page-hero {
  position: relative;
  background: var(--wp--preset--gradient--ink-to-espresso);
  color: var(--wp--preset--color--white);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3rem) !important;
  text-align: center;
}
.dns-page-hero h1 { color: var(--wp--preset--color--white) !important; }

/* ===== Scroll reveal (opacity only — a transform here fought with this tool's
   compositing during testing, and it isn't needed for the effect to read well) ===== */
.dns-reveal { opacity: 0; transition: opacity 0.5s ease; }
.dns-reveal.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .dns-reveal { opacity: 1; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 782px) {
  .dns-price-card--featured { transform: none; }
}
