/*
Theme Name: Ital Kuckó
Theme URI: https://italkucko.hu
Author: Ital Kuckó
Author URI: https://italkucko.hu
Description: Egyoldalas landing oldal az Ital Kuckó számára – két esztergomi üzlet bemutatása, nyitvatartással és nyitási értesítővel. Performance-optimized build.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: italkucko
*/

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5efe2;
  color: #1c1917;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.ik-page { min-height: 100vh; display: flex; flex-direction: column; background: #f5efe2; }
.ik-main { display: contents; }

/* Top banner */
.ik-banner {
  background: #b8281f; color: #fff; text-align: center;
  font-weight: 600; letter-spacing: .03em; font-size: 14px;
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ik-banner svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 640px) { .ik-banner { font-size: 13px; } }

/* Hours pill */
.ik-hours {
  display: inline-flex; align-items: center; gap: 12px;
  background: #b8281f; color: #fff;
  border-radius: 9999px; padding: 12px 28px 12px 20px;
  box-shadow: 0 14px 32px -10px rgba(184,40,31,.6);
  outline: 2px solid rgba(255,255,255,.8); outline-offset: 0;
}
.ik-hours svg { width: 20px; height: 20px; }
.ik-hours-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.ik-hours-sep { display: inline-block; width: 1px; height: 16px; background: rgba(255,255,255,.4); margin: 0 8px; }
.ik-hours-value { font-weight: 800; letter-spacing: .02em; font-size: 16px; }

/* DESKTOP HERO */
.ik-hero { position: relative; flex: 1; overflow: hidden; min-height: 720px; }
.ik-hero-bg {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-size: 140% auto;
  background-position: center 38%;
}
.ik-hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16rem; z-index: 10;
  pointer-events: none;
  background: linear-gradient(to top, rgba(245,239,226,.92) 0%, rgba(245,239,226,.65) 40%, rgba(245,239,226,0) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to top, black 55%, transparent 100%);
          mask-image: linear-gradient(to top, black 55%, transparent 100%);
}
.ik-hero-top { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); z-index: 30; }
.ik-hero-logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 108px; z-index: 30;
}
.ik-hero-logo img {
  width: 180px; height: 180px; max-width: 80vw; border-radius: 9999px;
  border: 4px solid #fff; background: #fff; object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
.ik-hero-logo .stem {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 100%; width: 1px; height: 96px; background: rgba(38,38,38,.4);
}
.ik-shops {
  position: absolute; left: 0; right: 0; bottom: 40px; z-index: 20;
  padding: 0 32px;
}
.ik-shops-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.ik-shop {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.25);
  border-top: 4px solid #b8281f;
  padding: 16px 24px 20px;
  text-align: center;
}
.ik-shop h3 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #b8281f; font-family: Georgia, "Times New Roman", serif;
  font-style: italic; font-size: 24px; font-weight: 700; margin: 0;
}
.ik-shop h3 svg { width: 20px; height: 20px; }
.ik-shop p { color: #525252; margin: 4px 0 0; font-size: 14px; }
.ik-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #b8281f; border: 2px solid #b8281f;
  font-weight: 600; border-radius: 6px; padding: 10px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05); margin-top: 12px;
  cursor: pointer; transition: background-color .15s ease;
}
.ik-cta:hover { background: #fdf6e8; }
.ik-cta svg { width: 16px; height: 16px; }
.ik-cta .label-upper { text-transform: uppercase; letter-spacing: .03em; font-size: 12px; }

/* Pulsating — GPU-composited (transform + opacity only).
   The pulsing ring is a ::after pseudo-element scaled via transform,
   so the animation runs on the compositor thread (not on box-shadow/layout). */
.ik-pulse { position: relative; will-change: transform; }
.ik-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 2px rgba(184,40,31,.55);
  pointer-events: none;
  transform-origin: center;
  animation: ik-pulse 1.8s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes ik-pulse {
  0%   { transform: scale(1);    opacity: .9; }
  70%  { transform: scale(1.18); opacity: 0;  }
  100% { transform: scale(1.18); opacity: 0;  }
}
@media (prefers-reduced-motion: reduce) {
  .ik-pulse::after { animation: none; }
}

/* Footer (legacy hero foot — hidden) */
.ik-foot { display: none; }

/* MOBILE */
.ik-mobile { display: none; }
@media (max-width: 767px) {
  .ik-hero { display: none; }
  .ik-mobile { display: block; flex: 1; padding: 24px 16px 40px; }
  .ik-mobile .ik-hours { padding: 8px 16px 8px 12px; gap: 8px; }
  .ik-mobile .ik-hours svg { width: 16px; height: 16px; }
  .ik-mobile .ik-hours-value { font-size: 14px; }
  .ik-mobile .ik-hours-label { font-size: 10px; }
  .ik-mobile-top { display: flex; justify-content: center; }
  .ik-mobile-logo { display: flex; justify-content: center; margin-top: 20px; }
  .ik-mobile-logo img {
    width: 140px; height: 140px; max-width: 60vw; border-radius: 9999px;
    box-shadow: 0 18px 28px -10px rgba(0,0,0,.25);
    border: 4px solid #fff; background: #fff; object-fit: cover;
  }
  .ik-mobile-house { margin-top: 32px; }
  /* Reserve aspect ratio so the image cannot cause CLS while loading */
  .ik-mobile-house .img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background: #f5efe2;
  }
  .ik-mobile-house .img-wrap img {
    width: 100%; height: 100%;
    object-fit: contain;
    margin: 0 auto;
  }
  .ik-mobile-house .cta-row { margin-top: 16px; display: flex; justify-content: center; }
  .ik-mobile-house .ik-cta { padding: 12px 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
}

/* ============================================================
   "ÉRKEZIK: ITAL KUCKÓ II." card
============================================================ */
.ik-shop.ik-coming h3 { font-size: 22px; letter-spacing: .01em; }
.ik-shop.ik-coming p  { color: #525252; margin: 8px 0 4px; font-size: 14px; line-height: 1.45; }

.ik-coming-mobile { text-align: center; margin-top: 14px; padding: 0 8px; }
.ik-coming-mobile h3 {
  color: #b8281f; font-family: Georgia, "Times New Roman", serif;
  font-style: italic; font-size: 20px; font-weight: 700; margin: 0 0 6px;
}
.ik-coming-mobile p { color: #525252; font-size: 14px; line-height: 1.5; margin: 0; }

/* Facebook CTA */
.ik-cta.ik-cta-fb {
  background: #1877F2; color: #fff; border-color: #1877F2;
}
.ik-cta.ik-cta-fb:hover { background: #145fc4; border-color: #145fc4; }
.ik-cta.ik-cta-fb svg { width: 18px; height: 18px; fill: #fff; }

/* ============================================================
   SITE FOOTER — improved contrast for WCAG AA (4.5:1)
============================================================ */
.ik-site-footer {
  background: #1E1510;
  color: #E5D9CB; /* was #C8B9AA — lifted for contrast */
  font-size: .82rem;
  line-height: 1.7;
  margin-top: auto;
}
.ik-site-footer .foot-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px 36px;
}
.ik-site-footer .foot-col h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem; color: #fff;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.ik-site-footer .foot-col a { color: #E5D9CB; text-decoration: none; transition: color .15s; }
.ik-site-footer .foot-col a:hover,
.ik-site-footer .foot-col a:focus { color: #fff; text-decoration: underline; }
.ik-site-footer .foot-info-row {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 6px;
}
.ik-site-footer .foot-info-row svg {
  flex-shrink: 0; width: 14px; height: 14px;
  opacity: .95; color: #E0837C;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ik-site-footer .foot-social { display: flex; gap: 10px; margin-top: 14px; }
.ik-site-footer .soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  transition: background .15s;
}
.ik-site-footer .soc:hover { background: #C8221A; }
.ik-site-footer .soc svg { width: 16px; height: 16px; fill: #fff; stroke: none; opacity: 1; color: #fff; }
.ik-site-footer .foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 24px;
  text-align: center;
  font-size: .75rem;
  color: #D8C9B8; /* was rgba(200,185,170,.55) — now meets WCAG AA */
  max-width: 1100px;
  margin: 0 auto;
}
.ik-site-footer .foot-bottom a { color: #D8C9B8; }
.ik-site-footer .foot-bottom a:hover,
.ik-site-footer .foot-bottom a:focus { color: #fff; text-decoration: underline; }

@media (max-width: 760px) {
  .ik-site-footer .foot-inner { grid-template-columns: 1fr; }
}
