/* ================================================================
   sub.css — shared styles for all subpages
   Iga Miller · Makeup Artist · Warszawa
   ================================================================ */

/* ── Sub-hero ─────────────────────────────────────────── */
.sub-hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: none;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.sub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 8, 3, 0.88) 0%,
    rgba(18, 8, 3, 0.45) 55%,
    rgba(18, 8, 3, 0.22) 100%
  );
}

.sub-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 100px);
  width: 100%;
}

.breadcrumb {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
  text-decoration: none;
}
.breadcrumb:hover { color: var(--white); }

.sub-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 1.0;
  color: var(--white);
  max-width: 800px;
}
.sub-hero h1 em { font-style: italic; color: var(--mocha); display: block; }

/* ── Text-only hero (no photo) ───────────────────── */
.sub-hero--text {
  background: linear-gradient(148deg, #2e1e16 0%, #4e3830 32%, #7a6559 62%, #a08a7c 100%);
  height: 46vh;
  min-height: 360px;
}

/* ── Subpage gradient wrapper ────────────────────── */
.subpage-gradient {
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f5efe8 30%,
    #ede0cf 58%,
    #f5efe8 80%,
    #ffffff 100%
  );
}
.subpage-gradient > section {
  background: transparent;
}

/* ── Icon cards ───────────────────────────────────────── */
.cards-section { background: var(--cream, #FAF8F5); padding: clamp(80px, 10vw, 140px) 0; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  margin-top: clamp(48px, 6vw, 72px);
}
.icon-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(32px, 3.5vw, 52px) clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.icon-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,0.09); transform: translateY(-4px); }
.card-icon svg { width: 28px; height: 28px; stroke: var(--mocha); fill: none; stroke-width: 1.2; }
.icon-card h4 { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 28px); font-weight: 400; color: var(--ink); line-height: 1.15; }
.icon-card p { font-size: 14px; line-height: 1.75; color: #555; font-weight: 300; }

/* ── Two-col ──────────────────────────────────────────── */
.two-col-section { background: var(--cream, #FAF8F5); padding: clamp(80px, 10vw, 140px) 0; }
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.two-col-text .eyebrow { margin-bottom: 28px; display: inline-block; }
.two-col-text h2 { font-style: italic; margin-bottom: 36px; font-size: clamp(36px, 4.5vw, 64px); }
.two-col-text p { font-size: 15px; line-height: 1.85; color: #3a3a3a; font-weight: 300; margin-bottom: 16px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.check-list li { font-size: 14px; font-weight: 300; color: #2a2a2a; padding-left: 26px; position: relative; line-height: 1.6; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--mocha); font-size: 12px; top: 2px; }

/* ── Path cards (szkolenia) ───────────────────────────── */
.paths-section { background: var(--cream, #FAF8F5); padding: clamp(80px, 10vw, 140px) 0; }
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 36px);
  margin-top: clamp(48px, 6vw, 72px);
}
.path-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(44px, 5vw, 72px) clamp(36px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.path-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.1); transform: translateY(-5px); }
.path-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--mocha);
  transition: height 0.5s ease;
}
.path-card:hover::before { height: 100%; }
.path-label { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mocha); font-weight: 500; }
.path-card h3 { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.2vw, 48px); font-weight: 400; color: var(--ink); line-height: 1.05; }
.path-card .path-desc { font-size: 15px; line-height: 1.85; color: #3a3a3a; font-weight: 300; }
.path-benefits { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.path-benefits li { font-size: 14px; font-weight: 300; color: #2a2a2a; padding-left: 24px; position: relative; line-height: 1.5; }
.path-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--mocha); font-size: 12px; top: 1px; }
.path-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid var(--ink);
  align-self: flex-start; margin-top: 12px;
  transition: gap 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  text-decoration: none;
}
.path-link:hover { gap: 20px; color: var(--mocha); border-bottom-color: var(--mocha); }

/* ── Pricing ──────────────────────────────────────────── */
.pricing-section { background: var(--white); padding: clamp(80px, 10vw, 140px) 0; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 72px); }
.pricing-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.price-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(32px, 3.5vw, 52px) clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column;
  position: relative; background: var(--white);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.price-card:hover { box-shadow: 0 16px 56px rgba(0,0,0,0.08); transform: translateY(-4px); }
.price-card.featured { border-color: var(--mocha); border-width: 2px; }
.price-badge { position: absolute; top: -1px; right: 36px; background: var(--mocha); color: var(--white); font-size: 9px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; padding: 7px 18px; }
.price-tag-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mocha); font-weight: 500; margin-bottom: 12px; }
.price-card h3 { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 34px); font-weight: 400; color: var(--ink); line-height: 1.1; margin-bottom: 8px; }
.price-card .price-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 28px; font-weight: 300; line-height: 1.55; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-list li { font-size: 13px; font-weight: 300; color: #2a2a2a; padding-left: 22px; position: relative; line-height: 1.5; }
.price-list li::before { content: "—"; position: absolute; left: 0; color: var(--mocha); }
.price-amount { font-family: var(--serif); font-size: clamp(28px, 3vw, 48px); font-weight: 300; color: var(--ink); line-height: 1; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.price-amount span { font-size: 12px; font-family: var(--sans); color: var(--muted); font-weight: 300; letter-spacing: 0.1em; display: block; margin-top: 4px; }

/* ── Gallery ──────────────────────────────────────────── */
.sub-gallery { background: var(--white); padding: clamp(80px, 10vw, 140px) 0; }
.sub-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: clamp(48px, 6vw, 72px);
}
.sub-gallery-item {
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.sub-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.sub-gallery-item:hover img { transform: scale(1.04); }

/* ── Contact ──────────────────────────────────────────── */
.contact-section { background: var(--cream, #FAF8F5); padding: clamp(80px, 10vw, 140px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(48px, 7vw, 110px); align-items: flex-start; margin-top: clamp(48px, 6vw, 72px); }
.contact-info p { font-size: 15px; line-height: 1.85; color: #4a4a4a; font-weight: 300; margin-bottom: 16px; }
.contact-detail { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.contact-detail a { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--ink); transition: color 0.3s ease; text-decoration: none; }
.contact-detail a:hover { color: var(--mocha); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.form-group input,
.form-group select,
.form-group textarea { font-family: var(--sans); font-size: 14px; font-weight: 300; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 16px 20px; outline: none; transition: border-color 0.3s ease; border-radius: 0; -webkit-appearance: none; appearance: none; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--mocha); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }

/* Radio group */
.radio-group { display: flex; gap: 0; border: 1px solid var(--line); overflow: hidden; }
.radio-option { flex: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.radio-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.radio-label { width: 100%; padding: 15px 20px; text-align: center; font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); background: var(--white); border: none; transition: background 0.25s ease, color 0.25s ease; cursor: pointer; display: block; }
.radio-option:not(:last-child) .radio-label { border-right: 1px solid var(--line); }
.radio-option input[type="radio"]:checked + .radio-label { background: var(--ink); color: var(--white); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .sub-hero { height: 60vh; min-height: 380px; }
  .sub-hero--text { height: 38vh; min-height: 260px; }
  .two-col-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .paths-grid { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-grid.cols-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sub-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .sub-hero { height: 65vh; min-height: 360px; }
  .sub-hero--text { height: 34vh; min-height: 270px; }
  .sub-hero h1 { font-size: clamp(40px, 11vw, 64px); }
  .cards-grid { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }
  .radio-option:not(:last-child) .radio-label { border-right: none; border-bottom: 1px solid var(--line); }
  .sub-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
