/* ============================================
   PSYCHOTERAPIA JÓZEFÓW - Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --cream:       #F5EFE6;
  --latte:       #D9C9B0;
  --mocha:       #A0856C;
  --espresso:    #5C3D2E;
  --dark:        #2C1F17;
  --white:       #FDFAF6;
  --text:        #3E2C22;
  --text-light:  #7A6455;
  --accent:      #8B6F5E;
  --border:      #E8DDD0;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --max-w: 1160px;
  --radius: 2px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--espresso);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; font-weight: 500; }

p { margin-bottom: 1.1em; color: var(--text); }
a { color: var(--mocha); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--espresso); }

/* ── LAYOUT ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

/* ── HEADER / NAV ───────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(253, 250, 246, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

header.scrolled { box-shadow: 0 2px 24px rgba(92,61,46,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: 0.02em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--mocha);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

nav ul li { position: relative; }

nav ul li a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--transition);
}

nav ul li a:hover,
nav ul li a.active { color: var(--mocha); }

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 1px;
  background: var(--mocha);
}

/* Dropdown */
.has-dropdown > ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 260px;
  box-shadow: 0 12px 40px rgba(92,61,46,0.12);
  padding: 0.6rem 0;
  flex-direction: column;
  gap: 0;
  z-index: 100;
}

.has-dropdown:hover > ul { display: flex; }

.has-dropdown > ul li a {
  padding: 0.65rem 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.has-dropdown > ul li a:hover {
  background: var(--cream);
  color: var(--espresso);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--espresso);
  transition: var(--transition);
}

/* ── HERO ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 120%;
  background: radial-gradient(ellipse at center, rgba(160,133,108,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 4rem 0;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mocha);
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  position: relative;
}

.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1.8rem;
  height: 1px;
  background: var(--mocha);
}

.hero h1 { margin-bottom: 1.5rem; font-weight: 300; }
.hero h1 em { font-style: italic; color: var(--mocha); }

.hero-text {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--espresso);
  color: var(--white);
  border: 1px solid var(--espresso);
}

.btn-primary:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(92,61,46,0.2);
}

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

.btn-outline:hover {
  background: var(--espresso);
  color: var(--white);
}

/* ── SECTION HEADERS ────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mocha);
  margin-bottom: 0.8rem;
  padding-left: 2rem;
  position: relative;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1.4rem; height: 1px;
  background: var(--mocha);
}

.section-title { margin-bottom: 1rem; }
.section-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── CARDS ──────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--latte);
  box-shadow: 0 8px 32px rgba(92,61,46,0.08);
  transform: translateY(-2px);
}

/* ── SVG ILLUSTRATIONS ──────────────────────── */
.section-illustration {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: var(--espresso);
  color: rgba(253,250,246,0.85);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-main { color: var(--white); }
.footer-brand .logo-sub { color: rgba(253,250,246,0.6); }
.footer-brand p {
  color: rgba(253,250,246,0.7);
  font-size: 0.88rem;
  margin-top: 1.2rem;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--latte);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(253,250,246,0.7);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: rgba(253,250,246,0.7);
  font-size: 0.88rem;
}

.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(253,250,246,0.12);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(253,250,246,0.45);
}

/* ── PAGE HEADER ────────────────────────────── */
.page-header {
  background: var(--cream);
  padding: 7rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* ── FORM ───────────────────────────────────── */
.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--mocha);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* ── BREADCRUMB ─────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--mocha); }
.breadcrumb span { opacity: 0.5; }

/* ── DIVIDER ────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ornament-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--latte);
}

/* ── PROBLEM LIST ───────────────────────────── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}

.problem-item:hover { background: var(--cream); }

.problem-dot {
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mocha);
  margin-top: 0.55rem;
}

.problem-item span { font-size: 0.92rem; color: var(--text); }

/* ── MOBILE ─────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.2rem; }

  .hamburger { display: flex; }

  nav {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    overflow-y: auto;
    padding: 2rem 1.5rem;
    z-index: 999;
  }

  nav.open { display: block; }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  nav ul li { width: 100%; border-bottom: 1px solid var(--border); }
  nav ul li a { padding: 1rem 0; font-size: 0.9rem; }

  .has-dropdown > ul {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--cream);
    padding: 0.2rem 0 0.5rem;
    min-width: unset;
    width: 100%;
  }

  .has-dropdown.open > ul { display: flex; }
  .has-dropdown > ul li a { padding: 0.65rem 1rem; font-size: 0.85rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .btn-outline { margin-left: 0; margin-top: 1rem; }
  .hero-btns { display: flex; flex-direction: column; align-items: flex-start; }
}
