/*
Theme Name: Kwiatowy Kredens
Theme URI: https://kwiatowykredens.pl
Author: Kwiatowy Kredens
Description: Elegancki motyw dla pracowni florystycznej Kwiatowy Kredens w Krakowie.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: kwiatowy-kredens
*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --cream: #faf7f2;
    --cream-dark: #f0ebe0;
    --sage: #7a8c6e;
    --sage-light: #b5c4a8;
    --sage-dark: #4a5c3e;
    --blush: #d9a89c;
    --text: #2a2420;
    --text-light: #6b5f58;
    --white: #ffffff;
    --border: rgba(122,140,110,0.2);
    --nav-h: 72px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(250,247,242,0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
  }

  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  .nav-logo span {
    font-size: 0.65rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage);
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }
  .nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.25s;
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 0;
    height: 1px;
    background: var(--sage);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  .nav-links a:hover { color: var(--sage-dark); }
  .nav-links a:hover::after { transform: scaleX(1); }

  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s;
  }

  /* SECTIONS */
  section {
    min-height: 100vh;
    padding: calc(var(--nav-h) + 4rem) 5% 5rem;
  }

  /* HERO */
  #strona-glowna {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5%;
    min-height: 100vh;
    padding-top: var(--nav-h);
  }

  .hero-text { padding: 3rem 0; }

  .hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sage);
    font-weight: 400;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--sage-light);
  }

  .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
  }
  .hero-title em {
    font-style: italic;
    color: var(--sage);
  }

  .hero-desc {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 420px;
    margin-bottom: 2.5rem;
    font-weight: 300;
  }

  .btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
  }
  .btn-primary {
    background: var(--sage-dark);
    color: var(--white);
  }
  .btn-primary:hover { background: var(--sage); }

  .btn-outline {
    background: transparent;
    color: var(--sage-dark);
    border: 1px solid var(--sage);
    margin-left: 1rem;
  }
  .btn-outline:hover {
    background: var(--sage-dark);
    color: var(--white);
    border-color: var(--sage-dark);
  }

  .hero-visual {
    position: relative;
    height: 100vh;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-img-frame {
    width: 100%;
    height: 80%;
    background: var(--cream-dark);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }

  .hero-placeholder {
    text-align: center;
    color: var(--text-light);
  }
  .hero-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
    margin-bottom: 1rem;
  }
  .hero-placeholder p {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
  }

  .hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1rem 1.4rem;
    font-family: 'Cormorant Garamond', serif;
  }
  .hero-badge strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--sage-dark);
    line-height: 1;
  }
  .hero-badge span {
    font-size: 0.7rem;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
  }

  /* SECTION HEADER */
  .section-header {
    text-align: center;
    margin-bottom: 4rem;
  }
  .section-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sage);
    font-weight: 400;
    margin-bottom: 0.8rem;
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text);
  }
  .section-title em { font-style: italic; color: var(--sage); }
  .section-divider {
    width: 48px;
    height: 1px;
    background: var(--sage-light);
    margin: 1.2rem auto 0;
  }

  /* HERO STRIPS */
  .hero-strips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--white);
  }
  .hero-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 2rem;
    border-right: 1px solid var(--border);
  }
  .hero-strip:last-child { border-right: none; }
  .hero-strip-icon { font-size: 1.6rem; flex-shrink: 0; }
  .hero-strip strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
  }
  .hero-strip span {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 300;
  }
  @media (max-width: 700px) {
    .hero-strips { grid-template-columns: 1fr; }
    .hero-strip { border-right: none; border-bottom: 1px solid var(--border); }
    .hero-strip:last-child { border-bottom: none; }
  }

  /* O NAS */
  #o-nas {
    background: var(--white);
  }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6%;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
  }
  .about-img {
    background: var(--cream-dark);
    border: 1px solid var(--border);
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
  }
  .about-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 1.2rem;
    color: var(--text);
  }
  .about-text p {
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }
  .about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }
  .value-item {
    padding: 1rem;
    border: 1px solid var(--border);
    background: var(--cream);
  }
  .value-item strong {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage-dark);
    font-weight: 500;
    margin-bottom: 0.3rem;
  }
  .value-item span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 300;
  }

  /* OFERTA */
  #oferta {
    background: var(--cream);
  }
  .offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  .offer-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem 1.8rem;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
  }
  .offer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--sage-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }
  .offer-card:hover { border-color: var(--sage-light); transform: translateY(-4px); }
  .offer-card:hover::before { transform: scaleX(1); }

  .offer-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--sage-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--sage);
    font-size: 1.3rem;
  }
  .offer-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.7rem;
  }
  .offer-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.7;
  }
  .offer-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .offer-list li {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 300;
    padding-left: 1.1rem;
    position: relative;
  }
  .offer-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--sage-light);
  }
  .offer-card--wide {
    grid-column: span 2;
  }
  @media (max-width: 700px) {
    .offer-card--wide { grid-column: span 1; }
  }

  /* GALERIA */
  #galeria { background: var(--white); }

  .gallery-folders {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
  }

  .folder {
    border-bottom: 1px solid var(--border);
  }
  .folder:last-child { border-bottom: none; }

  .folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 2rem;
    cursor: pointer;
    background: var(--white);
    transition: background 0.25s;
    user-select: none;
    gap: 1rem;
  }
  .folder-header:hover { background: var(--cream); }
  .folder.open .folder-header { background: var(--cream-dark); }

  .folder-header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
  }
  .folder-emoji {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
  }
  .folder-info { }
  .folder-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text);
    display: block;
  }
  .folder-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.06em;
  }

  .folder-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s ease, background 0.25s, border-color 0.25s;
    color: var(--sage);
  }
  .folder.open .folder-arrow {
    transform: rotate(180deg);
    background: var(--sage-dark);
    border-color: var(--sage-dark);
    color: var(--white);
  }
  .folder-arrow svg { width: 14px; height: 14px; }

  .folder-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
  }
  .folder.open .folder-body { max-height: 1200px; }

  .folder-inner {
    padding: 1.5rem 2rem 2rem;
    background: var(--cream);
    border-top: 1px solid var(--border);
  }

  .folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
  }

  .folder-img {
    aspect-ratio: 1;
    background: var(--cream-dark);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s;
    cursor: pointer;
  }
  .folder-img:hover { border-color: var(--sage-light); }
  .folder-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    display: block;
  }
  .folder-img-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.5;
  }
  .folder-img-icon { font-size: 1.6rem; opacity: 0.25; }

  /* KONTAKT */
  #kontakt {
    background: var(--cream);
  }
  .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5%;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
  }
  .contact-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.8rem;
    color: var(--text);
  }
  .contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.4rem;
    align-items: flex-start;
  }
  .contact-item-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1rem;
  }
  .contact-item-text strong {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage-dark);
    font-weight: 500;
    margin-bottom: 0.25rem;
  }
  .contact-item-text span, .contact-item-text a {
    font-size: 0.92rem;
    color: var(--text-light);
    font-weight: 300;
    text-decoration: none;
  }
  .contact-item-text a:hover { color: var(--sage-dark); }

  .social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
  }
  .social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: all 0.3s;
    font-weight: 400;
  }
  .social-link:hover {
    background: var(--sage-dark);
    color: var(--white);
    border-color: var(--sage-dark);
  }

  .map-container {
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--cream-dark);
  }
  .map-container iframe {
    width: 100%;
    height: 420px;
    display: block;
    border: 0;
    filter: grayscale(20%);
  }
  .map-placeholder {
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 300;
    text-align: center;
  }
  .map-placeholder .map-icon { font-size: 2.5rem; opacity: 0.3; }

  /* FOOTER */
  footer {
    background: var(--text);
    color: rgba(255,255,255,0.55);
    text-align: center;
    padding: 2.5rem 5%;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.06em;
  }
  footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
  footer a:hover { color: var(--white); }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    #strona-glowna { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--nav-h) + 2rem); }
    .hero-visual { height: 50vw; max-height: 360px; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; }
    .gallery-item.featured { grid-row: span 1; }
    .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--cream); padding: 2rem 5%; border-bottom: 1px solid var(--border); gap: 1.5rem; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
  }

  @media (max-width: 560px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .about-values { grid-template-columns: 1fr; }
    .offer-grid { grid-template-columns: 1fr; }
  }