/* Pączkarnia Różana — lekki, jednoplikowy motyw */

:root {
  --bg: #fbf4ea;
  --surface: #fffaf3;
  --surface-2: #f6e9da;
  --ink: #2b1a14;
  --muted: #7a6155;
  --accent: #b83b5e;
  --accent-dark: #9e2f4e;
  --accent-soft: #f7dfe4;
  --cocoa: #5a382a;
  --line: rgba(43, 26, 20, 0.12);
  --shadow: 0 20px 50px rgba(74, 46, 32, 0.14);
  --radius: 20px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(ellipse 55% 40% at 6% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 45% 35% at 96% 4%, #f3e2cc, transparent 62%),
    var(--bg);
  background-repeat: no-repeat;
  background-size: 100% 760px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* --- Topbar --- */
.topbar {
  background: var(--cocoa);
  color: #f8eade;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar a { font-weight: 600; color: #fff; }
.topbar a:hover { color: var(--accent-soft); }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 244, 234, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(74, 46, 32, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-name em { color: var(--accent); font-style: italic; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a { color: var(--muted); transition: color 0.15s; }
.main-nav a:hover { color: var(--ink); }
.nav-phone {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
}
.nav-phone:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* --- Shared section bits --- */
.section { padding: 88px 0; }
section[id] { scroll-margin-top: 92px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head {
  max-width: 620px;
  margin-bottom: 44px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.03rem; }

/* --- Hero --- */
.hero { padding: 72px 0 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  max-width: 13ch;
}
.lead {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-meta span { margin-right: 5px; }

.hero-visual { position: relative; min-width: 0; }
.hero-photo {
  margin: 0;
  border-radius: 240px 240px 26px 26px;
  overflow: hidden;
  border: 1px solid rgba(43, 26, 20, 0.14);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6;
  background: var(--surface-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-photo-small {
  position: absolute;
  right: -18px;
  bottom: 26px;
  width: 44%;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 5px solid var(--bg);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}
.hero-photo-small img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  left: -14px;
  top: 34px;
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-badge strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--accent); }
.hero-badge span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.7fr);
  gap: 56px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 18px; }
.about-copy p + p { margin-top: 14px; }
.about-copy p { color: var(--muted); font-size: 1.04rem; }
.about-photo {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- Offer --- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.offer-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(184, 59, 94, 0.35);
}
.offer-card h3 { font-size: 1.24rem; }
.offer-card p { color: var(--muted); font-size: 0.95rem; }
.price {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.offer-card-accent {
  background: linear-gradient(160deg, #fff6f8, var(--accent-soft));
  border-color: rgba(184, 59, 94, 0.3);
}

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery-item {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-lg { grid-column: span 2; grid-row: span 2; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr);
  gap: 56px;
  align-items: center;
}
.contact-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin: 30px 0 28px;
}
.contact-list dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-list dd { margin: 0; color: var(--ink); font-size: 1rem; }
.contact-list a:hover { color: var(--accent); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-photo {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- Footer --- */
.site-footer {
  background: var(--cocoa);
  color: #f4e6da;
  padding: 44px 0 28px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.footer-brand span { font-size: 0.85rem; color: #d8c2b3; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: #e5d0c1; text-align: right; }
.footer-meta a { font-weight: 600; color: #fff; }
.footer-meta a:hover { color: var(--accent-soft); }
.footer-copy {
  flex-basis: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  color: #c9b3a5;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; max-width: 520px; margin: 0 auto; width: 100%; }
  .hero h1 { max-width: none; }
  .section { padding: 64px 0; }
  .about-photo,
  .contact-photo { max-width: 440px; margin: 0 auto; width: 100%; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .footer-meta { text-align: left; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(74, 46, 32, 0.1);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-phone { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }
  .header-inner { min-height: 66px; }
  .topbar-inner { font-size: 0.76rem; }
  .topbar-inner span { display: none; }
  .topbar-inner { justify-content: center; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero-photo { border-radius: 180px 180px 22px 22px; }
  .hero-badge { left: 6px; top: 18px; padding: 10px 14px; }
  .hero-photo-small { right: 6px; width: 42%; }
  .offer-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery-item-lg { grid-column: span 2; grid-row: span 1; }
  .section-head { margin-bottom: 32px; }
  .footer-meta { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
