/*
Theme Name: Janachowska Concept Store
Theme URI: https://janachowska.pl
Author: Janachowska
Author URI: https://janachowska.pl
Description: Pełny motyw WordPress dla Janachowska Concept Store — butik modowy z kolekcjami, rezerwacją wizyt, blogiem i formularzem kontaktowym. Wymaga ACF Pro.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: janachowska
Tags: custom-menu, custom-logo, featured-images, full-width-template, theme-options
*/

/* ========================================
   CSS VARIABLES — Design Tokens from Figma
   ======================================== */
:root {
  /* Brand colors */
  --jcs-gold: #bc8f4d;
  --jcs-gold-hover: #a67d3d;
  --jcs-dark: #333333;
  --jcs-black: #000000;
  --jcs-white: #ffffff;
  --jcs-bg: #ffffff;
  --jcs-bg-warm: #faf8f5;
  --jcs-border: #ebebeb;
  --jcs-footer-bg: #333333;

  /* Typography */
  --font-display: 'pf-marlet-display', serif;
  --font-body: 'Barlow', sans-serif;
  --font-ui: 'Lato', sans-serif;

  /* Spacing */
  --container-max: 1640px;
  --content-max: 1080px;
  --container-px: 2.5rem;
  --container-px-mobile: 1.5rem;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--jcs-dark);
  background-color: var(--jcs-bg);
  line-height: 1.6;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ========================================
   TYPOGRAPHY UTILITIES
   ======================================== */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.font-ui {
  font-family: var(--font-ui);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.jcs-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px-mobile);
  padding-right: var(--container-px-mobile);
}

@media (min-width: 1024px) {
  .jcs-container {
    padding-left: var(--container-px);
    padding-right: var(--container-px);
  }
}

.jcs-content {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px-mobile);
  padding-right: var(--container-px-mobile);
}

@media (min-width: 1024px) {
  .jcs-content {
    padding-left: var(--container-px);
    padding-right: var(--container-px);
  }
}

/* ========================================
   GOLD TOP BAR
   ======================================== */
.jcs-top-bar {
  width: 100%;
  background-color: var(--jcs-gold);
  min-height: 40px;
  position: relative;
  z-index: 60;
}

.jcs-top-bar p {
  font-family: var(--font-ui);
  color: var(--jcs-white);
  text-align: center;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 40px;
}

.jcs-top-bar .mobile-lines {
  display: none;
}

@media (max-width: 639px) {
  .jcs-top-bar p.desktop-line {
    display: none;
  }
  .jcs-top-bar .mobile-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    gap: 2px;
  }
  .jcs-top-bar .mobile-lines span {
    font-family: var(--font-ui);
    color: var(--jcs-white);
    text-align: center;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
  }
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.jcs-header {
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
  height: 70px;
}

.jcs-header.transparent {
  background: transparent;
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
}

.jcs-header.white {
  background: var(--jcs-white);
  border-bottom: 1px solid var(--jcs-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.jcs-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.jcs-header-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

@media (min-width: 640px) {
  .jcs-header-inner {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .jcs-header-inner {
    padding: 0 40px;
  }
}

/* Nav links */
.jcs-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 1024px) {
  .jcs-nav {
    display: flex;
  }
}

.jcs-nav a {
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.48px;
  white-space: nowrap;
  transition: color 0.2s;
}

.jcs-header.transparent .jcs-nav a {
  color: var(--jcs-white);
}

.jcs-header.transparent .jcs-nav a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.jcs-header.white .jcs-nav a {
  color: var(--jcs-black);
}

.jcs-header.white .jcs-nav a:hover,
.jcs-nav a.active {
  color: var(--jcs-gold);
}

/* Dropdown */
.jcs-dropdown {
  position: relative;
}

.jcs-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  z-index: 50;
}

.jcs-dropdown:hover .jcs-dropdown-menu {
  display: block;
}

.jcs-dropdown-inner {
  background: var(--jcs-white);
  border: 1px solid var(--jcs-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  min-width: 260px;
}

.jcs-dropdown-inner a {
  display: block;
  padding: 8px 20px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--jcs-black);
  transition: all 0.2s;
}

.jcs-dropdown-inner a:hover {
  color: var(--jcs-gold);
  background: var(--jcs-bg-warm);
}

/* Header right */
.jcs-header-right {
  display: none;
  align-items: center;
  gap: 20px;
}

@media (min-width: 1024px) {
  .jcs-header-right {
    display: flex;
  }
}

.jcs-header-right a {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

/* Mobile menu */
.jcs-mobile-toggle {
  display: block;
  padding: 4px;
}

@media (min-width: 1024px) {
  .jcs-mobile-toggle {
    display: none;
  }
}

.jcs-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}

.jcs-mobile-menu.open {
  display: block;
}

.jcs-mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.jcs-mobile-panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  background: var(--jcs-white);
  box-shadow: 10px 0 25px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  animation: slideInLeft 0.2s ease;
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.jcs-mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--jcs-border);
}

.jcs-mobile-panel nav a {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.48px;
  color: var(--jcs-black);
  transition: color 0.2s;
}

.jcs-mobile-panel nav a:hover {
  color: var(--jcs-gold);
}

.jcs-mobile-panel nav .sub-menu a {
  padding-left: 36px;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: rgba(0, 0, 0, 0.7);
}

/* ========================================
   HERO SLIDER
   ======================================== */
.jcs-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: min(984px, 85vh);
  margin-top: -70px;
}

.jcs-hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
}

.jcs-hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jcs-hero-slide .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.jcs-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 24px;
}

.jcs-hero-content h1 {
  font-family: var(--font-display);
  color: var(--jcs-white);
  font-weight: 400;
  line-height: 1.15;
  max-width: 700px;
  white-space: pre-line;
  font-size: clamp(28px, 4vw, 56px);
}

.jcs-hero-content p {
  font-family: var(--font-ui);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-top: 24px;
  max-width: 500px;
  white-space: pre-line;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 26px;
}

/* Hero arrows */
.jcs-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: var(--jcs-white);
  transition: background 0.2s;
}

.jcs-hero-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.jcs-hero-arrow.prev { left: 16px; }
.jcs-hero-arrow.next { right: 16px; }

/* Hero dots */
.jcs-hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 12px;
}

.jcs-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s;
}

.jcs-hero-dot.active {
  background: var(--jcs-white);
}

/* ========================================
   SECTION LABELS (Gold uppercase)
   ======================================== */
.jcs-section-label {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2.24px;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--jcs-gold);
  margin-bottom: 16px;
}

/* ========================================
   SECTION HEADINGS
   ======================================== */
.jcs-heading {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--jcs-dark);
  line-height: 1.15;
}

.jcs-heading em,
.jcs-heading .gold {
  font-style: italic;
  color: var(--jcs-gold);
}

.jcs-heading-48 {
  font-size: clamp(30px, 3.5vw, 48px);
}

.jcs-heading-36 {
  font-size: clamp(24px, 2.8vw, 36px);
}

/* ========================================
   BODY TEXT
   ======================================== */
.jcs-body-text {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--jcs-black);
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: 18px;
}

@media (min-width: 1024px) {
  .jcs-body-text {
    font-size: 24px;
    line-height: 18px;
  }
}

/* ========================================
   GOLD BUTTONS
   ======================================== */
.jcs-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--jcs-gold);
  color: var(--jcs-white);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  transition: background-color 0.2s;
  cursor: pointer;
}

.jcs-btn-gold:hover {
  background-color: var(--jcs-gold-hover);
}

.jcs-btn-gold.size-240 {
  width: 240px;
  height: 39px;
}

.jcs-btn-gold.size-278 {
  width: 278px;
  height: 43px;
}

/* ========================================
   COLLECTION TILES (Kolekcje page)
   ======================================== */
.jcs-collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

@media (min-width: 768px) {
  .jcs-collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .jcs-collection-grid {
    gap: 32px;
  }
}

.jcs-collection-tile {
  position: relative;
  overflow: hidden;
  height: 393px;
}

@media (min-width: 768px) {
  .jcs-collection-tile {
    height: auto;
    aspect-ratio: 520 / 568;
  }
}

.jcs-collection-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.jcs-collection-tile:hover img {
  transform: scale(1.05);
}

.jcs-collection-tile .tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 50%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.jcs-collection-tile .tile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  color: var(--jcs-white);
  margin-bottom: 12px;
  width: fit-content;
}

.jcs-collection-tile h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 400;
  color: var(--jcs-white);
  line-height: 1.15;
  margin-bottom: 8px;
}

.jcs-collection-tile .tile-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 20px;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.jcs-faq-item {
  border-bottom: 1px solid var(--jcs-border);
}

.jcs-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 35px);
  font-weight: 400;
  color: var(--jcs-dark);
  line-height: 40px;
}

@media (max-width: 1023px) {
  .jcs-faq-question {
    line-height: 30px;
  }
}

.jcs-faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.jcs-faq-item.open .jcs-faq-question svg {
  transform: rotate(180deg);
}

.jcs-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.jcs-faq-item.open .jcs-faq-answer {
  max-height: 800px;
  padding-bottom: 24px;
}

.jcs-faq-answer p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 300;
  color: var(--jcs-black);
  line-height: 35px;
}

@media (max-width: 1023px) {
  .jcs-faq-answer p {
    line-height: 25px;
  }
}

/* ========================================
   MAP SECTION
   ======================================== */
.jcs-map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .jcs-map-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.jcs-map-block {
  width: 100%;
  height: 300px;
}

@media (min-width: 768px) {
  .jcs-map-block {
    height: 450px;
  }
}

@media (min-width: 1024px) {
  .jcs-map-block {
    height: 570px;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.jcs-footer {
  background-color: var(--jcs-footer-bg);
  padding: 48px 0;
}

.jcs-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px-mobile);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

@media (min-width: 1024px) {
  .jcs-footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0 var(--container-px);
    text-align: left;
  }
}

.jcs-footer a {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 49px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.jcs-footer a:hover {
  color: var(--jcs-white);
}

.jcs-footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.jcs-footer-center p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 22px;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.jcs-form input,
.jcs-form textarea,
.jcs-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--jcs-border);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--jcs-dark);
  background: var(--jcs-white);
  transition: border-color 0.2s;
}

.jcs-form input:focus,
.jcs-form textarea:focus,
.jcs-form select:focus {
  outline: none;
  border-color: var(--jcs-gold);
}

.jcs-form label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--jcs-dark);
  display: block;
  margin-bottom: 8px;
}

/* ========================================
   BLOG
   ======================================== */
.jcs-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .jcs-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .jcs-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.jcs-blog-card {
  overflow: hidden;
}

.jcs-blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.jcs-blog-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--jcs-dark);
  line-height: 1.3;
  margin-top: 16px;
}

.jcs-blog-card .meta {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--jcs-gold);
  margin-top: 8px;
}

.jcs-blog-card .excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--jcs-dark);
  line-height: 24px;
  margin-top: 12px;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
.hide-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .hide-mobile {
    display: block;
  }
  .hide-desktop {
    display: none;
  }
}
