/* ==========================================================================
   fotozasvideozas.hu — additions on top of tw.css (the original site's compiled Tailwind CSS, unchanged).
   Brand (original theme): primary #ff2800, primary-soft #f03310, ink #000, secondary #1f3a5f, Nunito Sans.
   ========================================================================== */

/* Nunito Sans, self-hosted variable font (400–900), latin + latin-ext */
@font-face {
  font-family: "Nunito Sans"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/nunito-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito Sans"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/nunito-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; }
body { overflow-x: clip; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li, dd, label) { text-wrap: pretty; }
:where(.grid) > * { min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* phrase units from the build: kept on one line in headings on tablet/desktop only */
.ph { display: inline; }
@media (min-width: 768px) { :is(h1, h2, h3) .ph { display: inline-block; max-width: 100%; } }
.split-line .ph { display: inline; }
:is(a, button) .ph { display: contents; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: #000; color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* ------------------------------------------- former inline styles of the React app */
.op-55 { opacity: .55; }
.watermark-tilt { transform: translateY(80px) rotate(-8deg); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
[data-parallax] { --py: 0%; translate: 0 var(--py); will-change: translate; }  /* GSAP animates --py only; composes with Tailwind scale-110 */

/* ---------------------------------------------------------------- header */
.mega-panel { max-height: 0; opacity: 0; pointer-events: none; }
.mega-open .mega-panel { max-height: 600px; opacity: 1; pointer-events: auto; }
.mega-open [data-mega-btn] { color: var(--color-ink); }
[data-mega-btn] svg { transition: transform .2s; }
.mega-open [data-mega-btn] svg { transform: rotate(180deg); }
nav a[aria-current="page"], [data-mega-btn][aria-current="page"] { color: var(--color-ink); }
nav a[aria-current="page"] .relative > span { width: 100%; }

.mobile-menu { max-height: 0; }
.menu-open .mobile-menu { max-height: 90vh; overflow-y: auto; border-bottom-width: 1px; }
.mobile-menu a[aria-current="page"] { background-color: var(--color-muted); }
.burger .lucide-x, .menu-open .burger .lucide-menu { display: none; }
.menu-open .burger .lucide-x { display: block; }
.sub-panel { max-height: 0; }
.sub-open .sub-panel { max-height: 800px; }
[data-sub] svg { transition: transform .2s; }
.sub-open [data-sub] svg { transform: rotate(180deg); }

/* sticky mobile "Ajánlatkérés" bar: slides in after 300px of scroll (as before) */
.sticky-bar.is-on { transform: translateY(0); }
.cookie:not([hidden]) ~ .sticky-bar { display: none; }

/* hero scroll hint (the old app bounced it with framer-motion) */
@keyframes hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.scroll-hint { animation: hint 2s ease-in-out infinite; }

/* ------------------------------------------------------------------- FAQ */
[data-faq] .lucide-chevron-down { transition: transform .2s; }
[data-faq][aria-expanded="true"] .lucide-chevron-down { transform: rotate(180deg); color: var(--color-primary); }

/* ------------------------------------------------------------------ forms */
.is-invalid { border-color: var(--color-primary) !important; }
.accent-primary { accent-color: var(--color-primary); }

/* ---------------------------------------------- Google Maps (loads after consent) */
.map { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; background: var(--color-muted); }
.map a { font-weight: 700; color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ------------------------------------------------------------- showreel */
.showreel { border: 0; padding: 0 16px; color: inherit; background: rgb(0 0 0 / .92); }   /* bg-ink/92 of the old modal (not in tw.css) */
.showreel[open] { display: flex; }
.showreel::backdrop { background: transparent; }
.showreel iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------- motion
   Initial states only when JS runs and motion is allowed; head.js adds .reduced as a safety net. */
/* Reveal offsets use the individual `translate` / `scale` properties driven by CSS variables. They compose with
   Tailwind v3 utilities (which use `transform`: -translate-y-1/2, scale-110, hover:scale-105 …) instead of replacing
   them, and GSAP animates only the variables. */
[data-reveal] { --rx: 0px; --ry: 0px; --rs: 1; }
.js:not(.reduced) [data-reveal] { opacity: 0; --ry: 24px; translate: var(--rx) var(--ry); scale: var(--rs); }
.js:not(.reduced) [data-reveal="left"] { --rx: -16px; --ry: 0px; }
.js:not(.reduced) [data-reveal="right"] { --rx: 16px; --ry: 0px; }
.js:not(.reduced) [data-reveal="scale"] { --ry: 24px; --rs: .97; }
.js:not(.reduced) [data-split] { visibility: hidden; }
.split-line { padding-bottom: .08em; margin-bottom: -.08em; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* "Miért WOIMS" (home): the old section background was a fixed wave-pattern SVG on hsl(0 2% 7%) — kept the base colour only */
.bg-why { background-color: hsl(0 2% 7%); }

/* group bar (WOIMS · MARKETING · MEDIA · WEB · DESIGN): five links at px-4 are wider than a 375px phone — tighter there */
@media (max-width: 420px) { .site-header > div:first-child a { padding-inline: .55rem; letter-spacing: .08em; } .site-header > div:first-child > div { padding-inline: .75rem; justify-content: center; } }

/* utilities used by the added markup (consent checkbox, map placeholder, showreel dialog) that tw.css lacks */
.h-4 { height: 1rem; } .w-4 { width: 1rem; } .h-\[450px\] { height: 450px; } .underline-offset-2 { text-underline-offset: 2px; }
.m-0 { margin: 0; } .max-h-none { max-height: none; } .max-w-none { max-width: none; } .bg-ink\/92 { background-color: rgb(0 0 0 / .92); }
