/* ============================================================
   Krzemivela Mobile CSS — mkrzemivela.css
   Mobile-only, max-width 430px editorial design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --a50:  #FFFBEB;
  --a100: #FEF3C7;
  --a200: #FDE68A;
  --a400: #FBBF24;
  --a500: #D97706;
  --a600: #B45309;
  --a700: #92400E;
  --a900: #451A03;

  --bg:       #FFFEF9;
  --bg-dark:  #111008;
  --bg-card:  #1C1A14;
  --text:     #111008;
  --muted:    #6B6355;
  --border:   #E5DFD5;
  --white:    #FFFFFF;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --header-h: 54px;
  --section-pad: 52px 22px;
  --font: 'DM Sans', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { line-height: 1.65; }

.overline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--a500);
  margin-bottom: 14px;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  max-width: 430px;
  height: var(--header-h);
  background: var(--bg-dark);
  border-bottom: 2px solid var(--a500);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--a500);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: flex-end;
  min-width: 48px;
  min-height: 48px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  background: var(--white);
  border-radius: 2px;
  transition: width 0.2s, opacity 0.2s, transform 0.25s;
}

.hamburger span:nth-child(1) { width: 24px; height: 2px; }
.hamburger span:nth-child(2) { width: 18px; height: 2px; }
.hamburger span:nth-child(3) { width: 24px; height: 2px; }

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 24px;
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 24px;
}

/* ── Nav Overlay ───────────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 32px) 28px 48px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 430px;
  margin: 0 auto;
}

.nav-overlay.open {
  transform: translateX(0);
}

.nav-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-overlay nav a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  letter-spacing: -0.02em;
}

.nav-overlay nav a:active,
.nav-overlay nav a.active {
  color: var(--a500);
}

.nav-overlay-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 15px 24px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-md);
  text-align: center;
  min-height: 50px;
  transition: opacity 0.15s;
}

.btn-primary {
  background: var(--a500);
  color: var(--bg-dark);
  border: 2px solid var(--a500);
}

.btn-primary:active {
  background: var(--a600);
  border-color: var(--a600);
}

.btn-outline-dark {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-dark:active {
  border-color: var(--white);
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--white);
  border: 2px solid var(--bg-dark);
}

.btn-dark:active {
  background: #000;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--bg-dark);
  padding: 96px 22px 52px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a500);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
}

.hero-lead {
  color: #A89F91;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
}

.stat-item {
  text-align: center;
  padding: 0 4px;
}

.stat-item:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--a500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Services ──────────────────────────────────────────────── */
.services {
  background: var(--bg);
  padding: var(--section-pad);
}

.services-header {
  margin-bottom: 28px;
}

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px;
  background: var(--white);
  transition: border-color 0.15s;
}

.service-card:active {
  border-color: var(--a500);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--a50);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--a600);
  margin-bottom: 14px;
}

.service-card h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--a500);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-link:active {
  color: var(--a600);
}

/* ── Process ───────────────────────────────────────────────── */
.process {
  background: var(--bg-dark);
  padding: var(--section-pad);
}

.process h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 36px;
}

.process-steps {
  display: flex;
  flex-direction: column;
}

.process-step {
  padding: 24px 0;
}

.process-step:not(:last-child) {
  border-bottom: 1px solid var(--a500);
}

.step-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--a500);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.process-step h3 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.process-step p {
  color: #A89F91;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── About ─────────────────────────────────────────────────── */
.about {
  background: var(--bg);
  padding: var(--section-pad);
}

.about h2 {
  margin-bottom: 18px;
  color: var(--text);
}

.about p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
  line-height: 1.65;
}

.about-bullets {
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-bullets li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.about-bullets li::before {
  content: '—';
  color: var(--a500);
  font-weight: 700;
  flex-shrink: 0;
}

.about-photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--border);
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1C1A14 0%, #2A2618 100%);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-placeholder span {
  font-size: 0.75rem;
  color: var(--a500);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials {
  background: var(--bg-dark);
  padding: 52px 0;
}

.testimonials-header {
  padding: 0 22px;
  margin-bottom: 28px;
}

.testimonials h2 {
  color: var(--white);
  text-align: center;
}

.testimonials-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 22px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex-shrink: 0;
  width: 280px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 22px 18px;
  scroll-snap-align: start;
}

.card-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.card-stars span {
  color: var(--a400);
  font-size: 1rem;
}

.card-quote {
  font-size: 0.88rem;
  color: #D6CFBF;
  line-height: 1.6;
  margin-bottom: 18px;
}

.card-author {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.card-author strong {
  display: block;
  color: var(--white);
  font-size: 0.88rem;
  margin-bottom: 2px;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq {
  background: var(--bg);
  padding: var(--section-pad);
}

.faq h2 {
  color: var(--text);
  margin-bottom: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  min-height: 48px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-indicator {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--a500);
  line-height: 1;
  margin-top: 1px;
  transition: transform 0.2s;
}

details[open] .faq-indicator {
  content: '−';
}

.faq-indicator::before {
  content: '+';
}

details[open] .faq-indicator::before {
  content: '−';
}

.faq-answer {
  padding: 0 0 18px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background: var(--a500);
  padding: var(--section-pad);
}

.cta-section h2 {
  color: var(--bg-dark);
  margin-bottom: 12px;
}

.cta-lead {
  color: rgba(17,16,8,0.75);
  font-size: 0.92rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.cta-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--bg-dark);
  font-weight: 500;
}

.cta-benefit::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(17,16,8,0.12);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  padding: 44px 22px calc(32px + env(safe-area-inset-bottom));
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--a500);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  display: block;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a500);
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: #A89F91;
  line-height: 1.4;
}

.footer-col ul li a:active {
  color: var(--white);
}

.footer-contact {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-bottom: 24px;
}

.footer-contact p {
  font-size: 0.82rem;
  color: #A89F91;
  line-height: 1.7;
}

.footer-contact a {
  color: var(--a500);
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-legal-links a {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-legal-links a:active {
  color: var(--white);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Cookie Banner ─────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  border-radius: 14px 14px 0 0;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.4);
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner h4 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1rem;
}

.cookie-banner p {
  font-size: 0.82rem;
  color: #A89F91;
  line-height: 1.6;
  margin-bottom: 18px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-accept {
  flex: 1;
  padding: 13px;
  background: var(--a500);
  color: var(--bg-dark);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  min-height: 48px;
}

.cookie-accept:active {
  background: var(--a600);
}

.cookie-reject {
  flex: 1;
  padding: 13px;
  background: transparent;
  color: #A89F91;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255,255,255,0.15);
  cursor: pointer;
  min-height: 48px;
}

.cookie-reject:active {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

/* ── Reveal animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Subpage header ────────────────────────────────────────── */
.page-hero {
  background: var(--bg-dark);
  padding: 72px 22px 40px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: #A89F91;
  font-size: 0.95rem;
}

/* ── Contact page ──────────────────────────────────────────── */
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.contact-card {
  border-left: 3px solid var(--a500);
  padding: 16px 16px 16px 18px;
  background: var(--white);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-card h4 {
  color: var(--a600);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-card a {
  color: var(--a500);
}

/* ── Contact form ──────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 14px;
  width: 100%;
  min-height: 48px;
  outline: none;
  transition: border-color 0.15s;
}

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

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

/* ── Team ──────────────────────────────────────────────────── */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

.team-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #1C1A14, #2A2618);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-avatar-placeholder span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--a500);
}

.team-info h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 2px;
}

.team-role {
  font-size: 0.78rem;
  color: var(--a600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Legal pages ───────────────────────────────────────────── */
.legal-content {
  padding: 40px 22px 60px;
  background: var(--bg);
}

.legal-content h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 28px 0 10px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 14px;
}

.legal-content ul li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

/* ── Services detail ───────────────────────────────────────── */
.service-detail {
  padding: var(--section-pad);
  background: var(--bg);
}

.service-detail-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.service-detail-head {
  background: var(--bg-dark);
  padding: 22px 20px;
}

.service-detail-head .service-badge {
  background: rgba(217,119,6,0.15);
  color: var(--a400);
  margin-bottom: 12px;
}

.service-detail-head h3 {
  color: var(--white);
  font-size: 1.15rem;
}

.service-detail-body {
  padding: 20px;
}

.service-detail-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.service-detail-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-detail-features li {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
}

.service-detail-features li::before {
  content: '→';
  color: var(--a500);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  padding: 12px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  align-items: center;
}

.breadcrumb a {
  color: var(--a500);
}

.breadcrumb span {
  color: var(--border);
}

/* ── Utility ───────────────────────────────────────────────── */
.text-amber { color: var(--a500); }
.text-white { color: var(--white); }
.text-muted { color: var(--muted); }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
