/* ============================================================
   ECHO MARKETING STUDIO — Main Stylesheet
   Styl: minimalistyczny, czysty, Apple-inspired
   ============================================================ */

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

/* ─── TOKENY ─── */
:root {
  --ink: #111111;
  --ink-mid: #444444;
  --ink-soft: #888888;
  --cream: #f7f2ea;
  --cream-card: #f2ead8;
  --beige-btn: #e5d8b4;
  --yellow-hi: #f5c842;
  --note-green: #3d5c3a;
  --clip: #9a9a9a;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 20px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.09), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.16);
  --ease: 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAV — statyczny, na górze każdej sekcji
   ============================================================ */
.section-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 28px 0 0;
}

.section-nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 34px;
  white-space: nowrap;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.80rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: width var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}

.section-nav a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.section-nav a.active {
  width: 140px;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ============================================================
   SEKCJA — wspólna baza
   ============================================================ */
.section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Tło: niebo z chmurami — tylko HOME */
#home {
  background: url('img/backgroung.webp') center top / cover no-repeat;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

#contact {
  background: url('img/backgroung.webp') center top / cover no-repeat;
}

#offer {
  background: white;
}

/* Tło sekcji offer i contact: gradient nieba */
/*#offer,
#contact {
  background:
    radial-gradient(ellipse 130% 70% at 15% 25%, rgba(255,255,255,0.60) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 80% 15%, rgba(255,255,255,0.50) 0%, transparent 50%),
    radial-gradient(ellipse 110% 80% at 50% 75%, rgba(255,255,255,0.40) 0%, transparent 60%),
    linear-gradient(175deg, #c2d9ee 0%, #d8eaf7 45%, #c5dcee 75%, #b5cfe6 100%);
}
*/
/* ============================================================
   SECTION 1 — HOME / HERO
   ============================================================ */

/* Centrum hero: logo + zdjęcia */
.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
}

/* ── Logo ── */
.hero-logo {
  position: relative;
  z-index: 4;
  text-align: center;
}

.hero-logo img {
  width: clamp(320px, 60vw, 850px);
  max-height: 75vh;
  object-fit: contain;
  height: auto;
  /* Logo ma tło białe — usuwamy białe */
  mix-blend-mode: multiply;

  /* Animacja wjazdu loga */
  animation: logoFloatIn 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes logoFloatIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ══════════════════════════════════════════════
   KOMPONENTY ZDJĘĆ — MAC WINDOW & POLAROID
   ══════════════════════════════════════════════ */

/* Styl "Mac Window" (jasnoszare tło z górnym paskiem) */
.mac-window {
  position: absolute;
  background: #e5e5e5;
  /* Jasny szary jak na screenie */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
  cursor: default;
}

.mac-window:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-hover);
  z-index: 10 !important;
}

.mac-header {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #111;
  background: #e5e5e5;
  letter-spacing: 0.02em;
  gap: 8px;
}

.mac-image-container {
  padding: 0;
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.mac-window img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom; /* Przesunięcie kadru do dołu, by obciąć górę */
  border-radius: 0;
}

/* Styl "Grey Polaroid" */
.grey-polaroid {
  position: absolute;
  background: #e2e2e2;
  padding: 6px 6px 26px 6px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
  cursor: default;
}

.grey-polaroid:hover {
  transform: scale(1.08) !important;
  box-shadow: var(--shadow-hover);
  z-index: 20 !important;
}

.grey-polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.spol-label {
  position: absolute;
  bottom: 7px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.04em;
}

/* Białe okno Mac (dla sekcji Contact) */
.white-mac {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.white-mac .mac-header {
  background: #ffffff;
  color: #111;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mac-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-dots .close {
  background: #ff5f56;
}

.mac-dots .min {
  background: #ffbd2e;
}

.mac-dots .max {
  background: #27c93f;
}

.mac-title {
  margin: 0 auto;
  transform: translateX(-16px);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   LEWA STRONA — 1 duża karta + 3 małe polaroidy
   ══════════════════════════════════════════════ */
.photos-left {
  position: absolute;
  left: clamp(8px, 4vw, 60px);
  top: 40px;
  z-index: 3;
  width: 250px;
  height: 400px;
}

.left-mac {
  width: 190px;
  height: 240px;
  top: 0;
  left: 20px;
  z-index: 4;
}

.left-p1 {
  width: 90px;
  height: 110px;
  top: 250px;
  left: 0;
  transform: rotate(-4deg);
  z-index: 3;
}

.left-p2 {
  width: 95px;
  height: 75px;
  top: 280px;
  left: 70px;
  transform: rotate(3deg);
  z-index: 2;
}

.left-p3 {
  width: 85px;
  height: 100px;
  top: 210px;
  left: 160px;
  transform: rotate(-1deg);
  z-index: 1;
}

/* ══════════════════════════════════════════════
   PRAWA STRONA — 2 duże karty Mac Window
   ══════════════════════════════════════════════ */
.photos-right {
  position: absolute;
  right: clamp(8px, 4vw, 60px);
  top: 40px;
  z-index: 3;
  width: 280px;
  height: 420px;
}

.right-mac-1 {
  width: 200px;
  height: 250px;
  top: 0;
  left: 0;
  z-index: 1;
}

.right-mac-2 {
  width: 210px;
  height: 240px;
  top: 160px;
  left: 60px;
  z-index: 2;
}

/* ============================================================
   SECTION 2 — OFFER
   ============================================================ */

.offer-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 60px;
}

.offer-layout {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 60px;
  max-width: 1220px;
  width: 100%;
  align-items: center;
}

/* ── Siatka usług z spinaczami ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform var(--ease);
  cursor: default;
  padding-top: 25px;
  /* Przestrzeń na przypinkę */
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-pin {
  width: 75px;
  position: absolute;
  top: -25px;
  /* Regulacja pionowa przypinki */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.service-bg-wrap {
  position: relative;
  z-index: 1;
  width: 165px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-bg {
  width: 100%;
  height: auto;
  display: block;
}

.service-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-align: center;
}

.service-num {
  position: absolute;
  top: 35px;
  /* Odstęp od góry, by nie najeżdżało na przypinkę */
  left: 0;
  width: 100%;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0;
}

.service-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.btn-more {
  position: absolute;
  bottom: 26px;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* Zmieniamy przejścia kolorów na bardzo szybkie (0.15s), a ruch zostaje płynny (0.45s) */
  transition: transform 0.45s var(--ease), background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-more:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-3px) scale(1.02);
}

/* ── Notes card ── */
.notes-card {
  background: #fdfaf5;
  /* Jasny beż z obrazka */
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  max-width: 480px;
  margin-left: auto;
  width: 100%;
}

.notes-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
}

.notes-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.notes-icons {
  display: flex;
  gap: 12px;
  color: var(--ink-soft);
}

.notes-icons svg {
  width: 26px;
  height: 26px;
  cursor: default;
}

.notes-body {
  padding: 28px 36px 54px;
}

.notes-title {
  font-size: 2.4rem;
  font-weight: 500;
  color: #111;
  line-height: 1.3;
  margin-bottom: 22px;
}

.notes-highlight {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  background-color: #fee04f;
  /* Żółty marker */
  padding: 0 6px;
}

.notes-desc {
  font-size: 1.1rem;
  color: #222;
  line-height: 1.4;
  font-weight: 400;
}

/* ============================================================
   SECTION 3 — CONTACT
   ============================================================ */

.contact-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 60px;
  /* Zwiększony padding-top dla odstępu od navbaru */
}

.contact-layout {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 100px;
  /* Mniejszy odstęp między formularzem a oknem */
  max-width: 1350px;
  width: 100%;
  align-items: center;
  margin-left: 8vw;
  /* Przesuwa CAŁĄ sekcję w prawo */
}

/* ── Formularz ── */
.contact-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-wrap {
  padding: 22px 22px 26px;
}

.form-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.015em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}



.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--ease);
  -webkit-appearance: none;
}

.form-group textarea {
  resize: none;
  height: 60px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--yellow-hi);
  background: transparent;
}

.form-required-note {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-top: -4px;
  margin-bottom: 12px;
  text-align: right;
  padding-right: 4px;
}

.btn-send {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: var(--ink);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  cursor: pointer;
  transition: var(--ease);
}

.btn-send:hover {
  background: var(--yellow-hi);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 200, 66, 0.35);
}

/* ── Zdjęcie po prawej ── */
.contact-photo-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.contact-mac {
  position: relative !important;
  width: 100%;
  max-width: 700px;
  height: 380px;
  z-index: 5;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.contact-mac img {
  transform: scale(1.35);
  transform-origin: bottom center;
}

.coming-soon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8fa;
}

.coming-soon-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: transparent;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: auto;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--ink);
  transition: transform var(--ease), color var(--ease);
}

.social-circle svg {
  width: 26px;
  /* slightly larger icon since there's no border to frame it */
  height: 26px;
}

.social-circle:hover {
  transform: translateY(-3px);
  color: #db9822;
  /* hover color (orange/yellow) */
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--ink);
  color: #fff;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   SERVICE MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  width: 90%;
  max-width: 550px;
  min-height: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 50px 45px;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.modal-close:hover {
  transform: scale(1.15) rotate(90deg);
  color: #555;
}

.modal-content-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.modal-divider {
  width: 40px;
  height: 2px;
  background: #111;
  margin-bottom: 25px;
  border-radius: 0;
}

.modal-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-mid);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {

  .offer-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photos-left,
  .photos-right {
    display: none;
  }

  .hero-body {
    padding: 30px 20px 50px;
  }

  .hero-body {
    padding-top: 40px;
  }
}

@media (max-width: 520px) {
  .section-nav a {
    padding: 6px 14px;
    font-size: 0.74rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #d8eaf5;
}

::-webkit-scrollbar-thumb {
  background: #8fb5d4;
  border-radius: 100px;
}