/*
Theme Name: Ananasek
Author: Ananasek Catering
Description: Lekki motyw blokowy dla dostaw domowych posiłków w Trójmieście.
Requires at least: 6.6
Requires PHP: 8.1
Version: 1.0.0
Text Domain: ananasek
*/

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

:root { --ananasek-shadow: 0 20px 60px rgba(20, 66, 45, .13); }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #b64032;
  outline-offset: 3px;
}
.wp-site-blocks { overflow: clip; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 237, .96);
  border-bottom: 1px solid rgba(30, 80, 55, .12);
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { min-height: 76px; }
.site-logo { width: 56px; height: 56px; object-fit: contain; }
.site-brand { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.28rem; text-decoration: none; color: #153d2b; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .92rem; font-weight: 700; }
.site-nav a { color: #153d2b; text-decoration: none; }
.site-nav a:hover { color: #b34c3d; }
.ananasek-mobile-order { display: inline-flex; }
.hero {
  min-height: min(760px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  background: linear-gradient(90deg, rgba(21,61,43,.93) 0%, rgba(21,61,43,.79) 45%, rgba(21,61,43,.08) 76%), url("assets/images/demo-hero.webp") center/cover no-repeat;
}
.hero__content { max-width: 710px; padding: clamp(4rem, 9vw, 8rem) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; }
.hero h1 { text-wrap: balance; }
.hero .wp-block-buttons { margin-top: 2rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.pill { padding: .48rem .82rem; border: 1px solid rgba(255,255,255,.36); border-radius: 999px; font-size: .84rem; }
.section { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.section-heading { max-width: 760px; margin-bottom: 2.2rem; }
.section-heading h2 { text-wrap: balance; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.info-card, .price-card, .step-card {
  background: #fffbed;
  border: 1px solid rgba(30,80,55,.12);
  border-radius: 20px;
  padding: clamp(1.35rem, 3vw, 2rem);
}
.price-card { display: flex; flex-direction: column; }
.price-card--featured { background: #153d2b; color: #fffbed; transform: translateY(-8px); box-shadow: var(--ananasek-shadow); }
.price { font-family: "Fraunces", serif; font-size: 2rem; line-height: 1; color: #153d2b; }
.price-card--featured .price { color: #ffe86a; }
.step-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #ffe86a; color: #153d2b; font-weight: 800; }
.split-media { border-radius: 24px; overflow: hidden; box-shadow: var(--ananasek-shadow); }
.split-media img { display: block; width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.gallery-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1rem; }
.gallery-grid img { display: block; width: 100%; height: 100%; min-height: 290px; object-fit: cover; border-radius: 18px; }
.gallery-grid figure:first-child { grid-row: span 2; }
.gallery-grid figure:first-child img { min-height: 600px; }
.weekly-menu { display: grid; gap: 1rem; position: relative; left: 50%; width: min(1180px, calc(100vw - 2rem)); transform: translateX(-50%); }
.weekly-menu__days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.menu-day { background: #fff; border: 1px solid rgba(30,80,55,.14); border-radius: 18px; padding: 1.2rem; }
.menu-day h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.menu-day__date { color: #52695c; font-size: .82rem; margin-top: 0; }
.menu-day dl { margin: 1rem 0 0; }
.menu-day dt { margin-top: .8rem; color: #235b3d; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.menu-day dd { margin: .15rem 0 0; font-size: .9rem; }
.faq-list details { border-top: 1px solid rgba(30,80,55,.2); padding: 1.1rem 0; }
.faq-list details:last-child { border-bottom: 1px solid rgba(30,80,55,.2); }
.faq-list summary { cursor: pointer; font-weight: 800; }
.cta-band { border-radius: 28px; padding: clamp(2rem, 5vw, 4rem); background: #ffe86a; color: #153d2b; }
.order-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; }
.order-form__full { grid-column: 1 / -1; }
.order-form label, .order-form legend { display: block; margin-bottom: .35rem; font-weight: 750; }
.order-form fieldset { border: 0; padding: 0; margin: 0; }
.order-form input:not([type="checkbox"]), .order-form select, .order-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: .75rem .9rem;
  color: #153d2b;
  background: #fff;
  border: 1px solid #9aa99f;
  border-radius: 10px;
  font: inherit;
}
.order-form textarea { min-height: 130px; resize: vertical; }
.order-form__choices { display: flex; flex-wrap: wrap; gap: .8rem 1.3rem; }
.order-form__choices label { font-weight: 500; }
.order-form__consent { display: flex; align-items: flex-start; gap: .7rem; font-size: .9rem; }
.order-form__consent input { margin-top: .25rem; }
.order-form__note { font-size: .87rem; color: #52695c; }
.order-form__hp { position: absolute !important; left: -9999px !important; }
.form-message { grid-column: 1 / -1; padding: 1rem 1.2rem; border-radius: 12px; }
.form-message--success { background: #dcefe3; color: #153d2b; }
.form-message--error { background: #ffe1dc; color: #70271e; }
.form-message ul { margin: .4rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; }
footer a { color: #dcefe3; }
.legal-page { max-width: 820px; }
.page-hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.page-hero h1 { max-width: 850px; text-wrap: balance; }
.notice { padding: 1rem 1.2rem; border-left: 4px solid #b64032; background: #fff3dc; }

@media (max-width: 900px) {
  .site-nav { display: none !important; }
  .hero { min-height: 680px; background: linear-gradient(90deg, rgba(21,61,43,.94), rgba(21,61,43,.70)), url("assets/images/demo-hero.webp") 65% center/cover no-repeat; }
  .card-grid { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
  .weekly-menu__days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery-grid figure:first-child img { min-height: 390px; }
}

@media (max-width: 600px) {
  .admin-bar .site-header { top: 46px; }
  .site-header__inner { min-height: 66px; }
  .site-logo { width: 46px; height: 46px; }
  .site-brand { font-size: 1.05rem; }
  .hero { min-height: 650px; background-image: linear-gradient(90deg, rgba(21,61,43,.94), rgba(21,61,43,.70)), url("assets/images/demo-hero-640.webp"); }
  .hero__content { padding: 3.5rem 0; }
  .weekly-menu__days, .gallery-grid, .order-form { grid-template-columns: 1fr; }
  .gallery-grid figure:first-child { grid-column: auto; }
  .gallery-grid figure:first-child img, .gallery-grid img { min-height: 330px; }
  .order-form__full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
