/*
Theme Name: Lunéa
Theme URI: https://lunea.pl
Author: Adnmar
Author URI: https://adnmar.pl
Description: Dedykowany motyw premium dla Lunéa – sklep z płaszczami damskimi
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: LICENSE
Text Domain: lunea
Tags: e-commerce, woocommerce, minimalist, premium, fashion
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Kolory */
  --color-blush:         #f9e8e8;
  --color-blush-light:   #fdf4f4;
  --color-blush-mid:     #f2d5d5;
  --color-rose:          #d4838a;
  --color-rose-dark:     #b5626a;
  --color-dusty:         #c9a0a6;
  --color-mauve:         #8c5f65;
  --color-cream:         #faf7f5;
  --color-white:         #ffffff;
  --color-text:          #2a1f22;
  --color-text-light:    #7a6469;
  --color-text-muted:    #7d676d;

  /* Warianty dostępne (WCAG AA) – do TEKSTU na jasnym tle.
     --color-rose (#d4838a) ma kontrast 2.83:1 na bieli i wolno go używać
     wyłącznie do elementów dekoracyjnych (ikony, obramowania, tła). */
  --color-rose-text:     #9c4d57; /* 5.81:1 na bieli, 5.45:1 na --color-cream, 4.91:1 na --color-blush */
  --color-dusty-text:    #8c5f65; /* 5.33:1 na bieli */
  /* Gwiazdki ocen – grafika niosąca informację, wymóg 3:1.
     Poprzedni #f4b942 miał 1.77:1. Aby wrócić do jaśniejszego złota,
     zmień tylko tę jedną zmienną. */
  --color-star:          #b8860b; /* 3.25:1 na bieli */

  /* Tekst na ciemnym tle stopki (--color-text #2a1f22) */
  --color-on-dark:         rgba(255,255,255,0.92); /* 12.6:1 */
  --color-on-dark-muted:   rgba(255,255,255,0.72); /* 8.8:1  */
  --color-on-dark-subtle:  rgba(255,255,255,0.62); /* 6.9:1  */
  --color-border:        #ecdcdc;
  --color-border-light:  #f5ecec;
  --color-overlay:       rgba(42, 31, 34, 0.45);

  /* Typografia */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', 'Helvetica Neue', sans-serif;
  --font-accent:   'Cormorant Garamond', Georgia, serif;

  /* Przestrzeń */
  --container-width: 1280px;
  --container-padding: clamp(16px, 4vw, 48px);

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Promienie */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Cienie */
  --shadow-sm:  0 1px 4px rgba(42,31,34,0.06);
  --shadow-md:  0 4px 16px rgba(42,31,34,0.10);
  --shadow-lg:  0 12px 40px rgba(42,31,34,0.14);
  --shadow-xl:  0 24px 64px rgba(42,31,34,0.18);

  /* Animacje */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --duration-fast:   200ms;
  --duration-base:   350ms;
  --duration-slow:   600ms;
  --duration-slower: 900ms;

  /* Header */
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.875rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.375rem); }

p {
  color: var(--color-text-light);
  line-height: 1.75;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-3xl);
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--space-2xl);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background-color: var(--color-text);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-mauve);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn--outline:hover {
  background-color: var(--color-text);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--rose {
  background-color: var(--color-rose);
  color: var(--color-white);
}

.btn--rose:hover {
  background-color: var(--color-rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,131,138,0.4);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  padding: 14px 0;
}

.btn--ghost:hover {
  color: var(--color-rose-text);
}

.btn--ghost i {
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn--ghost:hover i {
  transform: translateX(4px);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.section-header__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-rose-text);
  margin-bottom: var(--space-sm);
}

.section-header__title {
  color: var(--color-text);
}

@media (max-width: 600px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
