/* Expo Ogrody — dodatki do wspólnego style.css dla expoogrody.pl
   (usługi, realizacje, formularz kontaktowy, okna, zgoda na cookie). */

.btn-sm {
  min-height: 48px;
  padding: 10px 20px;
  font-size: 1rem;
}

.btn-sm svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero: pół na pół — usługi i aplikacja ---------- */

/* Na komputerze hero mieści się w oknie, a spod niego wystaje początek sekcji „Usługi”,
   żeby zachęcić do przewijania. 80px to wysokość nagłówka. */
.hero.hero-split-section {
  padding: 20px 0 20px;
}

.hero.hero-split-section + .section {
  padding-top: 32px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  min-height: clamp(500px, calc(100vh - 340px), 600px);
  min-height: clamp(500px, calc(100svh - 340px), 600px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.hero-panel-copy {
  position: relative;
  z-index: 2;
  padding: 32px 40px 0;
}

.hero-panel h1,
.hero-panel .hero-title {
  font-size: clamp(2.1rem, min(3.1vw, 5.4vh), 3.2rem);
  max-width: 15ch;
  margin-bottom: 0.35em;
}

.hero-panel .hero-title {
  max-width: none;
}

.hero-panel .hero-title em {
  font-style: italic;
  color: var(--green);
}

.hero-panel .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  max-width: 40ch;
  margin-bottom: 16px;
}

.hero-panel .hero-actions {
  margin-bottom: 16px;
}

.hero-panel .eyebrow {
  font-size: 0.92rem;
  margin-bottom: 14px;
}

/* Usługi: zdjęcie ogrodu z zielonym przyciemnieniem */
.hero-panel.services {
  background: var(--green-deep);
  color: #e6f3ea;
  justify-content: flex-end;
}

.hero-panel.services .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel.services::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 58, 35, 0.15) 0%, rgba(15, 58, 35, 0.8) 38%, rgba(12, 46, 28, 0.96) 100%);
}

.hero-panel.services .hero-panel-copy {
  padding-bottom: 32px;
}

.hero-panel.services h1 {
  color: #fff;
}

.hero-panel.services h1 em {
  font-style: italic;
  color: var(--accent-soft);
}

.hero-panel.services .lead {
  color: #d5eadb;
}

.hero-panel.services .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Krótki formularz „oddzwonimy”: telefon albo e-mail */
.callback-form {
  display: grid;
  gap: 10px;
  max-width: 540px;
}

.callback-label {
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
}

.callback-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.callback-row input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 56px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}

.callback-row input:focus {
  outline: none;
  border-color: var(--accent-soft);
}

.callback-row input[aria-invalid="true"] {
  border-color: #e0786c;
}

.callback-row .btn {
  flex: none;
  min-height: 56px;
  padding: 12px 24px;
}

.callback-row .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.callback-form .check {
  font-size: 0.84rem;
  line-height: 1.4;
  color: #c4ddcb;
  gap: 10px;
}

.callback-form .check input {
  width: 20px;
  height: 20px;
  margin-top: 0;
}

.callback-form .check input[aria-invalid="true"] {
  outline: 2px solid #e0786c;
  outline-offset: 2px;
}

.callback-form a {
  color: #fff;
}

.callback-form .form-status {
  padding: 10px 14px;
  font-size: 0.95rem;
}

.callback-phone {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: #c4ddcb;
}

.callback-phone a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  text-decoration: none;
}

.callback-phone svg {
  width: 18px;
  height: 18px;
  color: var(--accent-soft);
}

/* Aplikacja: jasny panel z telefonami */
.hero-panel.app {
  background:
    radial-gradient(600px 400px at 100% 100%, rgba(76, 175, 125, 0.22), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}

.hero-panel.app .lead {
  color: var(--muted);
}

/* Przyciski po lewej, telefony wychodzą zza dolnej krawędzi po prawej */
.app-bottom {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.app-cta {
  position: relative;
  z-index: 2;
  padding: 0 0 24px 40px;
}

.app-cta .hero-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.app-cta .store-badge img {
  height: 52px;
}

.app-cta .btn {
  min-height: 48px;
  padding: 8px 22px;
  font-size: 1.02rem;
}

.app-cta .video-replay {
  margin: -6px 0 8px;
  font-size: 0.92rem;
  text-align: left;
}

.app-cta .hero-points {
  gap: 4px 12px;
  font-size: 0.9rem;
}

.app-cta .hero-points li {
  gap: 5px;
}

.app-cta .hero-points svg {
  width: 16px;
  height: 16px;
}

.app-visual {
  position: relative;
  min-height: 220px;
}

.app-visual .blob {
  position: absolute;
  width: 340px;
  aspect-ratio: 1;
  right: -80px;
  bottom: -170px;
  border-radius: 46% 54% 52% 48% / 48% 44% 56% 52%;
  background: linear-gradient(145deg, var(--green-light), var(--green-deep));
}

.app-visual .phone {
  position: absolute;
  border-radius: 34px;
  padding: 8px;
}

.app-visual .phone img {
  border-radius: 27px;
}

.app-visual .phone.front {
  width: 180px;
  left: 0;
  top: 0;
  transform: rotate(-5deg);
  z-index: 2;
}

.app-visual .phone.back {
  width: 155px;
  left: 140px;
  top: 34px;
  transform: rotate(7deg);
  z-index: 1;
}

/* W wąskiej kolumnie dymek zasłaniałby telefony */
.app-visual .float-chip.rain {
  display: none;
}

@media (max-width: 1100px) {
  .app-bottom {
    display: block;
  }

  .app-cta {
    padding: 0 40px;
  }

  .app-cta .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .app-visual {
    min-height: 330px;
    margin-top: 8px;
  }

  .app-visual .phone.front {
    width: 200px;
    left: calc(50% - 170px);
    top: 10px;
  }

  .app-visual .phone.back {
    width: 170px;
    left: calc(50% + 10px);
    top: 40px;
  }

  .app-visual .float-chip.rain {
    display: flex;
    bottom: 24px;
    left: 16px;
  }
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 0;
  }

  .hero-panel.services {
    min-height: 560px;
  }

  .hero-panel h1,
  .hero-panel .hero-title {
    font-size: clamp(2.1rem, 6vw, 3rem);
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero-panel-copy {
    padding: 32px 22px 0;
  }

  .app-cta {
    padding: 0 22px;
  }

  .hero-panel.services .hero-panel-copy {
    padding-bottom: 28px;
  }

  .hero-panel .hero-actions .btn,
  .callback-row .btn {
    width: 100%;
  }

  .app-visual .phone.front {
    width: 170px;
    left: calc(50% - 150px);
  }

  .app-visual .phone.back {
    width: 145px;
  }
}

.app-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

/* ---------- Usługi ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px -10px rgba(20, 61, 39, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.svc-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--green-100);
}

.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-media .ficon {
  position: absolute;
  left: 20px;
  bottom: -26px;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  margin: 0;
  box-shadow: 0 8px 18px -8px rgba(20, 61, 39, 0.6);
  border: 3px solid var(--surface);
}

.svc-media .ficon svg {
  width: 26px;
  height: 26px;
}

.svc-body {
  padding: 40px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.svc-body > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 12px;
}

.svc-more {
  margin-bottom: 14px;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
}

.svc-more summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--green);
  list-style: none;
}

.svc-more summary::-webkit-details-marker {
  display: none;
}

.svc-more summary::after {
  content: " +";
}

.svc-more[open] summary::after {
  content: " −";
}

.svc-more div {
  margin-top: 10px;
}

.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
}

.svc-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

.svc-cta:hover {
  color: var(--accent-ink);
}

.svc-cta:hover svg {
  transform: translateX(4px);
}

.svc-card.svc-own {
  background:
    radial-gradient(400px 260px at 100% 0%, rgba(76, 175, 125, 0.4), transparent 70%),
    linear-gradient(160deg, var(--green-deep), #0f3a23);
  color: #e6f3ea;
  border: 0;
  padding: 30px 24px;
  align-self: stretch;
}

.svc-own h3 {
  color: #fff;
  font-size: 1.3rem;
}

.svc-own p {
  color: #c6e3cf;
  font-size: 1rem;
  line-height: 1.55;
  flex: 1;
}

.svc-own .btn {
  align-self: flex-start;
}

@media (max-width: 1100px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Jak pracujemy ---------- */

.process-grid {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.process-grid li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.process-grid li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
}

.process-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Realizacje ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px -10px rgba(20, 61, 39, 0.3);
}

.project-open {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  width: 100%;
}

.project-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, var(--green-100), var(--green-50));
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-open:hover .project-media img {
  transform: scale(1.04);
}

.project-media.empty {
  display: grid;
  place-items: center;
}

.project-media img.project-plant {
  width: 40%;
  height: auto;
  object-fit: contain;
  opacity: 0.8;
}

.project-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 61, 39, 0.78);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.project-count svg {
  width: 18px;
  height: 18px;
}

.project-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-body .kicker {
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.project-body h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.project-body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Okna (realizacja, galeria) ---------- */

.project-modal,
.lightbox {
  padding: 0;
  border: 0;
  box-shadow: var(--shadow-l);
}

.project-modal::backdrop,
.lightbox::backdrop {
  background: rgba(10, 25, 16, 0.75);
}

.project-modal {
  width: min(calc(100vw - 32px), 960px);
  max-height: calc(100dvh - 48px);
  border-radius: var(--radius-l);
  background: var(--bg);
  color: var(--text);
}

.project-modal-body {
  padding: 48px 48px 40px;
}

.project-modal h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  padding-right: 40px;
}

.project-modal p {
  color: var(--muted);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.project-gallery a {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--green-100);
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-gallery a:hover img {
  transform: scale(1.06);
}

.project-modal-cta {
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--green-light);
  color: #fff;
}

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: rgba(8, 20, 13, 0.94);
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox img {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 110px);
  width: auto;
  height: auto;
  border-radius: 12px;
}

.lightbox .modal-close {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lb-nav:hover,
.lightbox .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lb-nav svg {
  width: 28px;
  height: 28px;
}

.lb-nav.prev {
  left: 16px;
}

.lb-nav.next {
  right: 16px;
}

.lb-count {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #c9dfd0;
  font-weight: 700;
}

@media (max-width: 640px) {
  .project-modal-body {
    padding: 56px 20px 28px;
  }

  .lb-nav {
    top: auto;
    bottom: 8px;
    transform: none;
    width: 46px;
    height: 46px;
  }
}

/* ---------- Kontakt ---------- */

.section.contact {
  background: linear-gradient(180deg, var(--bg), var(--green-50));
  overflow: hidden;
}

.section.contact .deco.daisy {
  width: 80px;
  right: 3%;
  bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: 40px;
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  font-weight: 800;
  color: var(--green-ink);
  font-size: 1.02rem;
}

.field em,
.check em {
  color: var(--accent-ink);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-light);
  background: #fff;
}

.field [aria-invalid="true"] {
  border-color: #c0392b;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.5;
}

.check input {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--green);
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  justify-self: start;
}

.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.form-status {
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
}

.form-status.ok {
  background: var(--green-100);
  color: var(--green-deep);
}

.form-status.err {
  background: #fdeaea;
  color: #8e2a1f;
}

.recaptcha-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.grecaptcha-badge {
  visibility: hidden;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.contact-info {
  padding: 28px 30px 32px;
}

.contact-info .contact-list {
  margin-top: 0;
}

.contact-info .contact-list li {
  align-items: flex-start;
}

.contact-app {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--green-50);
}

.contact-app strong {
  color: var(--green-ink);
}

.contact-app p {
  margin: 4px 0 14px;
  font-size: 1rem;
  color: var(--muted);
}

.social {
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
}

.social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-50);
  color: var(--green-deep);
}

.social a:hover {
  background: var(--green);
  color: #fff;
}

.social svg {
  width: 22px;
  height: 22px;
}

.site-footer .social a {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.site-footer .social a:hover {
  background: var(--green-light);
  text-decoration: none;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-form {
    padding: 26px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    width: 100%;
  }
}

/* ---------- Zgoda na cookie i pasek kontaktu na telefonie ---------- */

.cookie-bar {
  position: fixed;
  z-index: 60;
  left: 16px;
  bottom: 16px;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  padding: 20px 22px;
  font-size: 0.98rem;
}

.cookie-bar p {
  margin: 0 0 14px;
}

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

.mobile-cta {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 76px;
  }

  .mobile-cta {
    position: fixed;
    z-index: 55;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 250, 245, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }

  .mobile-cta .btn {
    width: 100%;
    padding: 10px 12px;
  }

  .mobile-cta .btn-light {
    border-color: var(--line);
  }

  .cookie-bar {
    left: 12px;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    max-width: none;
  }
}
