/* ============================================================
   Keramika Granec — main stylesheet
   ============================================================ */

:root {
  --indigo: #3f51a5;
  --indigo-dark: #32418c;
  --indigo-deep: #26325f;
  --indigo-soft: #e8ebf7;
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #3a3f4c;
  --text-soft: #6b7080;
  --terracotta: #c96f4a;
  --gold: #d9a441;
  --folk-red: #c94a4a;
  --folk-green: #4a9a5b;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(38, 50, 95, 0.08);
  --shadow-md: 0 10px 34px rgba(38, 50, 95, 0.14);
  --shadow-lg: 0 24px 60px rgba(38, 50, 95, 0.2);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--indigo); text-decoration: none; }

/* ---------- folk ribbon (majolica stripe) ---------- */
.folk-ribbon {
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--indigo) 0 44px,
    var(--gold) 44px 66px,
    var(--folk-red) 66px 88px,
    var(--folk-green) 88px 110px
  );
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.site-header.scrolled { box-shadow: var(--shadow-md); background: rgba(255, 255, 255, 0.97); }

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  transition: height 0.35s ease;
}

.site-header.scrolled .header-inner { height: 62px; }

.brand img { height: 44px; width: auto; transition: height 0.35s ease; }
.site-header.scrolled .brand img { height: 38px; }

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--indigo-dark);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.main-nav a:hover { background: var(--indigo-soft); transform: translateY(-1px); }

.main-nav a.active { background: var(--indigo); color: #fff; box-shadow: 0 6px 16px rgba(63, 81, 165, 0.35); }

.fb-link {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--indigo);
  border: 2px solid var(--indigo);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.fb-link:hover { background: var(--indigo); color: #fff; transform: rotate(8deg) scale(1.06); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 95;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--indigo-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  max-height: 720px;
  overflow: hidden;
  clip-path: inset(0);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* fixed background — content scrolls over it (parallax) */
.hero-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 50, 95, 0.25) 0%, rgba(38, 50, 95, 0.05) 45%, rgba(38, 50, 95, 0.35) 100%);
}

.hero-panel {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 44px 56px 40px;
  border-radius: 28px;
  background: rgba(30, 34, 48, 0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 20px;
  transform: translateY(-4%);
  will-change: transform, opacity;
}

.hero-panel img {
  height: 96px;
  width: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.hero-tagline {
  color: #fff;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

/* ---------- sections ---------- */
main { padding-top: var(--header-h); }

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-soft);
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 16.5px;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 0;
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: 70px;
  background: linear-gradient(90deg, transparent, var(--indigo));
}

.ornament::after { background: linear-gradient(90deg, var(--indigo), transparent); }

.ornament svg { color: var(--terracotta); }

/* ---------- feature cards (home) ---------- */
.feature {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 48px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.feature.reverse { grid-template-columns: 1fr 380px; }

.feature-media { position: relative; min-height: 300px; overflow: hidden; }

.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature:hover .feature-media img { transform: scale(1.06); }

.feature-body { padding: 40px 44px; align-self: center; }

.feature-body h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 14px;
}

.feature-body p { color: var(--text-soft); font-size: 16px; }
.feature-body p strong { color: var(--text); }

.feature-body .btn { margin-top: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(63, 81, 165, 0.35);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover { transform: translateY(-2px); background: var(--indigo-dark); box-shadow: 0 12px 26px rgba(63, 81, 165, 0.45); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn.ghost {
  background: transparent;
  color: var(--indigo);
  border: 2px solid var(--indigo);
  box-shadow: none;
}

.btn.ghost:hover { background: var(--indigo); color: #fff; }

/* ---------- stats strip ---------- */
.stats {
  background: var(--indigo);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  color: #fff;
  padding: 56px 20px;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.1;
}

.stat-label { opacity: 0.85; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; font-weight: 700; }

/* ---------- minigallery slider ---------- */
.minigallery {
  position: relative;
  background:
    radial-gradient(circle at 12% 20%, rgba(63, 81, 165, 0.07) 0 60px, transparent 60px),
    radial-gradient(circle at 88% 75%, rgba(201, 111, 74, 0.08) 0 80px, transparent 80px),
    radial-gradient(circle at 75% 15%, rgba(74, 154, 91, 0.06) 0 50px, transparent 50px),
    #fbfaf7;
  padding: 72px 0 80px;
}

.slider {
  position: relative;
  max-width: 760px;
  margin: 44px auto 0;
  padding: 0 20px;
}

.slider-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #1e2230;
}

.slider-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide { flex: 0 0 100%; }

.slide img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--indigo);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 4;
}

.slider-arrow:hover { background: var(--indigo); color: #fff; transform: translateY(-50%) scale(1.08); }

.slider-arrow.prev { left: -2px; }
.slider-arrow.next { right: -2px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.slider-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: #c6cbe0;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.slider-dots button.active { background: var(--indigo); transform: scale(1.35); }

/* ---------- product gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
  margin-top: 50px;
}

.gallery-item {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  padding: 0;
  text-align: center;
  font-family: inherit;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  position: relative;
}

.gallery-item:hover { transform: translateY(-8px) rotate(-0.4deg); box-shadow: var(--shadow-md); }

.gallery-item::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--indigo), var(--gold), var(--folk-red), var(--folk-green));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-item {
  display: flex;
  flex-direction: column;
}

.gallery-thumb {
  display: grid;
  place-items: center;
  height: 230px;
  background: #fff;
  padding: 18px;
  overflow: hidden;
}

.gallery-thumb img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover .gallery-thumb img { transform: scale(1.09); }

.gallery-caption {
  display: block;
  margin-top: auto;
  padding: 14px 16px 18px;
  font-weight: 700;
  color: var(--indigo-dark);
  font-size: 15px;
  border-top: 1px solid #eef0f7;
  background: #fbfbfd;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 28, 44, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
  position: relative;
  z-index: 1;
  max-width: min(88vw, 900px);
  max-height: 74vh;
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.open img { transform: scale(1); z-index: 1; }

.lightbox-caption {
  color: #fff;
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lightbox button {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(38, 45, 80, 0.82);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lightbox button:hover { background: rgba(63, 81, 165, 0.95); transform: scale(1.08); border-color: rgba(255, 255, 255, 0.55); }

.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox .lb-next:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 760px) {
  .lightbox button { width: 54px; height: 54px; }
  .lightbox .lb-prev { left: 14px; }
  .lightbox .lb-next { right: 14px; }
  .lightbox .lb-close { top: 18px; right: 18px; }
  .lightbox img { max-width: 86vw; padding: 14px; }
}

/* ---------- info / empty card ---------- */
.panel-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 48px 44px;
  margin-top: 48px;
}

.empty-state { text-align: center; padding: 64px 32px; }

.empty-state .empty-icon {
  width: 84px; height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--indigo-soft);
  display: grid;
  place-items: center;
  color: var(--indigo);
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.empty-state h3 { font-family: var(--font-display); font-size: 26px; color: var(--indigo-dark); margin-bottom: 10px; }
.empty-state p { color: var(--text-soft); max-width: 480px; margin: 0 auto; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.chip {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: var(--indigo-dark);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip:hover { transform: translateY(-3px); background: var(--indigo); color: #fff; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.contact-icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(63, 81, 165, 0.35);
}

.contact-card h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.contact-card p { font-weight: 700; color: var(--indigo-dark); font-size: 16px; }
.contact-card a { font-weight: 700; }
.contact-card a:hover { text-decoration: underline; }

.hours-card {
  margin-top: 26px;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.hours-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.hours-card p { opacity: 0.92; font-size: 16.5px; }

/* form */
.contact-form { max-width: 560px; margin: 0 auto; }

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--indigo);
  text-align: center;
  margin-bottom: 26px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--indigo-dark);
  letter-spacing: 0.03em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid #e2e5f0;
  background: #fbfbfd;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(63, 81, 165, 0.14);
}

.form-field textarea { min-height: 150px; resize: vertical; }

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-soft);
  margin: 18px 0 24px;
}

.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--indigo); }

.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #e8f5ec;
  color: #2c7a44;
  font-weight: 700;
  text-align: center;
}

.form-success.show { display: block; animation: pop 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

.form-recaptcha {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 30px;
}

.form-error {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fbeaea;
  color: #b23636;
  font-weight: 700;
  text-align: center;
}

.form-error.show { display: block; animation: pop 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes pop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.map-wrap {
  margin-top: 52px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}

.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--indigo);
  color: #fff;
  text-align: center;
  padding: 52px 20px 44px;
  position: relative;
}

.site-footer img { height: 58px; width: auto; margin: 0 auto 18px; opacity: 0.95; }

.site-footer p { opacity: 0.88; font-size: 15px; }
.site-footer a { color: #fff; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }

.bg-white { background: #fbfaf7; }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

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

.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- cookie consent ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(63, 81, 165, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 44px rgba(24, 28, 44, 0.32);
  color: #fff;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.cookie-banner.show { transform: translateY(0); opacity: 1; }

.cookie-banner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  flex: 1 1 260px;
}

.cookie-banner button {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--indigo-dark);
  background: #fff;
  padding: 10px 30px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cookie-banner button:hover { transform: translateY(-2px); background: var(--gold); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity 0.3s ease; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature-media { min-height: 240px; }
  .feature.reverse .feature-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; gap: 26px; }
  .slide img { height: 320px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .fb-link { margin-left: auto; }
  .nav-toggle { margin-left: 0; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 110px 28px 40px;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    margin-left: 0;
    z-index: 90;
  }

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

  .main-nav a { width: 100%; font-size: 17px; padding: 13px 18px; }

  .hero { height: 62vh; min-height: 420px; }
  .hero-panel { padding: 32px 26px 28px; }
  .hero-panel img { height: 68px; }
  .feature-body { padding: 30px 26px; }
  .section { padding: 52px 18px; }
}
