/*
Theme Name:  Gerbera Kwiaciarnia
Theme URI:   https://kwiaciarniagerbera.pl
Author:      Petala Studio
Author URI:  https://kwiaciarniagerbera.pl
Description: Profesjonalny motyw WordPress dla Kwiaciarni Gerbera w Białymstoku.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gerbera
*/
/* Fonty ładowane przez wp_enqueue_style w functions.php (petala-fonts).
   @import usunięty — blokuje renderowanie i jest redundantny. */

/* ── Skip link (WCS-02: przeniesiony z inline wp_head do style.css) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 6px;
  z-index: 99999;
  padding: 8px 16px;
  background: #22c55e;
  color: #fafafa;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  border-radius: 0 0 8px 8px;
  transition: top 0.15s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── prefers-reduced-motion (A11Y-06) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Sora', sans-serif;
  background-color: #fafafa;
  color: #0a0a0a;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  color: #0a0a0a;
  line-height: 1.2;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #22c55e;
  color: #fafafa;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  height: 52px;
  padding: 0 28px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 140px;
}

.btn:hover  { background-color: #16a34a; }
.btn:active { transform: scale(0.97); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: #fafafa;
  border-bottom: 1px solid rgba(10,10,10,0.08);
  height: 68px;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo img {
  height: 32px;
  width: auto;
  display: block;
}

.navbar__logo svg {
  height: 32px;
  width: auto;
}

/* Desktop nav */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #0a0a0a;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-item > a:hover,
.nav-item > button:hover {
  color: #22c55e;
  background-color: rgba(34,197,94,0.06);
}

.nav-item__chevron {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-item__chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background-color: #fafafa;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 200;
}

.nav-item .dropdown { transition: opacity 0.15s ease; opacity: 0; pointer-events: none; display: block; }
.nav-item:hover .dropdown { opacity: 1; pointer-events: auto; }
.nav-item .dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 400;
  color: #0a0a0a;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.dropdown a:hover {
  color: #22c55e;
  background-color: rgba(34,197,94,0.06);
}

/* CTA nav button */
.navbar__cta {
  margin-left: 12px;
}

.navbar__cta .btn {
  font-size: 0.78rem;
  height: 42px;
  padding: 0 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background-color: #0a0a0a;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background-color: #fafafa;
  border-bottom: 1px solid rgba(10,10,10,0.08);
  padding: 16px 0 24px;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  z-index: 999;
}

.navbar__mobile.open { display: block; }

.mobile-nav-item { border-bottom: 1px solid rgba(10,10,10,0.05); }

.mobile-nav-item > a,
.mobile-nav-item > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0a0a0a;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-dropdown { display: none; background-color: rgba(34,197,94,0.04); }
.mobile-dropdown.open { display: block; }

.mobile-dropdown a {
  display: block;
  padding: 11px 36px;
  font-size: 0.88rem;
  color: #0a0a0a;
}

.mobile-dropdown a:hover { color: #22c55e; }

.mobile-nav__cta {
  padding: 20px 24px 0;
}

.mobile-nav__cta .btn {
  width: 100%;
  font-size: 0.9rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  margin-top: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1490750967868-88df5691cc9e?w=1600&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.38);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.hero__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #fafafa;
  max-width: 760px;
  margin-bottom: 36px;
}

/* Occasion selector */
.hero__selector {
  background-color: #fafafa;
  border-radius: 9999px;
  padding: 10px 10px 10px 24px;
  max-width: 480px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Occasion selector */
.hero__selector {
  background-color: #fafafa;
  border-radius: 9999px;
  padding: 8px 8px 8px 28px;
  max-width: 480px;
  width: 100%;
  display: flex;
  align-items: center;
}

.hero__selector h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 18px;
}

.hero__select-wrap {
  position: relative;
  flex: 1;
  margin-bottom: 0;
}

.hero__select-wrap::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  pointer-events: none;
  background-color: #22c55e;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}

.hero__select {
  width: 100%;
  height: 52px;
  padding: 0 56px 0 4px;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  color: #0a0a0a;
  background-color: transparent;
  border: none;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.hero__select:focus { outline: none; }

/* ============================================================
   WHY US
   ============================================================ */
.why {
  padding: 96px 0 80px;
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}

.why__image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.why__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why__image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: #22c55e;
  color: #fafafa;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
}

.why__text-eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 12px;
}

.why__text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
}

.why__text p {
  font-size: 0.95rem;
  color: rgba(10,10,10,0.7);
  line-height: 1.75;
  margin-bottom: 14px;
}

.why__text .btn { margin-top: 12px; }

/* Feature cards */
.why__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: #fafafa;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: #22c55e;
  box-shadow: 0 6px 24px rgba(34,197,94,0.1);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  background-color: rgba(34,197,94,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.feature-card h4,
.feature-card__title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 2.6em; /* rezerwuje miejsce na 2 linie — karty równej wysokości */
}

.feature-card p {
  font-size: 0.82rem;
  color: rgba(10,10,10,0.6);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: #0a0a0a;
  color: #fafafa;
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,250,250,0.08);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer__brand-logo img {
  height: 28px;
  width: auto;
  /* SVG jest zielony — na ciemnym tle działa świetnie */
}

.footer__brand p {
  font-size: 0.85rem;
  color: rgba(250,250,250,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 260px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: rgba(250,250,250,0.6);
  margin-bottom: 10px;
}

.footer__contact-icon { color: #22c55e; flex-shrink: 0; margin-top: 2px; }

.footer__col h5 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fafafa;
  margin-bottom: 18px;
}

.footer__col ul li { margin-bottom: 10px; }

.footer__col ul li a {
  font-size: 0.85rem;
  color: rgba(250,250,250,0.55);
  transition: color 0.18s ease;
}

.footer__col ul li a:hover { color: #22c55e; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.78rem;
  color: rgba(250,250,250,0.35);
  flex-wrap: wrap;
  gap: 10px;
}

.footer__bottom a { color: rgba(250,250,250,0.35); }
.footer__bottom a:hover { color: #22c55e; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .navbar__nav  { display: none; }
  .navbar__cta  { display: none; }
  .navbar__hamburger { display: flex; }

  .why__inner { grid-template-columns: 1fr; gap: 40px; }
  .why__image-wrap { aspect-ratio: 16/9; max-width: 560px; }

  .why__features { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Mobile: ≤ 640px */
@media (max-width: 640px) {
  .hero__content { padding: 40px 20px 60px; }
  .hero__selector {
    padding: 6px 6px 6px 22px;
    max-width: 100%;
  }
  .hero__select { font-size: 0.88rem; }

  .why { padding: 64px 0 56px; }
  .why__features { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature-card { padding: 22px 16px; }
  .feature-card__icon { width: 44px; height: 44px; font-size: 1.2rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .why__features { grid-template-columns: 1fr; }
  .hero__title { font-size: 2rem; }
}
