/* ================================================================
   GABINET WETERYNARYJNY IBW — style.css
   Color palette:
     --green-dark   #2d6a4f
     --green-mid    #52b788
     --green-light  #d8f3dc
     --green-pale   #f0faf2
     --white        #ffffff
     --gray-light   #f4f4f5
     --gray-mid     #6b7280
     --gray-dark    #1f2937
================================================================ */

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

:root {
  --green-dark:   #2d6a4f;
  --green-mid:    #52b788;
  --green-light:  #d8f3dc;
  --green-pale:   #f0faf2;
  --white:        #ffffff;
  --gray-light:   #f4f4f5;
  --gray-mid:     #6b7280;
  --gray-dark:    #1f2937;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.14);
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   .25s ease;
  --font-stack:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, "Noto Sans", sans-serif,
                  "Apple Color Emoji", "Segoe UI Emoji";
}

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

body {
  font-family: var(--font-stack);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--gray-mid);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ---- Fade-in animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* delay helpers */
.delay-1 { transition-delay: .10s; }
.delay-2 { transition-delay: .20s; }
.delay-3 { transition-delay: .30s; }
.delay-4 { transition-delay: .40s; }

/* ================================================================
   NAVBAR
================================================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#navbar.navbar--scrolled {
  border-color: var(--green-light);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand-title {
  font-size: .82rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-brand-sub {
  font-size: .7rem;
  color: var(--gray-mid);
  font-weight: 500;
}

#nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.nav-link {
  padding: .45rem .8rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-dark);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link--active {
  background: var(--green-light);
  color: var(--green-dark);
}

.nav-phone {
  margin-left: .75rem;
  padding: .45rem 1rem;
  background: var(--green-dark);
  color: var(--white) !important;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
  transition: background var(--transition);
  white-space: nowrap;
}

.nav-phone:hover {
  background: var(--green-mid);
  color: var(--white) !important;
}

/* Hamburger button */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition);
}

#hamburger:hover {
  background: var(--green-light);
}

#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

#hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
   HERO
================================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('f3a9c2d1.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 50, 35, .75) 0%,
    rgba(45, 106, 79, .55) 30%,
    rgba(20, 50, 35, .35) 50%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--green-mid);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.8); }
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: .75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-title span {
  color: var(--green-light);
}

.hero-address {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2.25rem;
  font-weight: 500;
}

.hero-address svg {
  flex-shrink: 0;
  color: var(--green-mid);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  text-decoration: none;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 4px 18px rgba(45,106,79,.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  animation: bounce 2.5s infinite;
}

.hero-scroll svg {
  color: rgba(255,255,255,.5);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ================================================================
   ABOUT (O NAS / GABINET)
================================================================ */
#about {
  padding: 6rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.about-img-main {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.about-img-main:hover img {
  transform: scale(1.04);
}

.about-img-small {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}

.about-img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.about-img-small:hover img {
  transform: scale(1.04);
}

.about-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--green-dark);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  z-index: 1;
}

.about-badge-num {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--green-light);
}

.about-badge-text {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: .2rem;
  opacity: .9;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-desc {
  font-size: 1.05rem;
  color: var(--gray-dark);
  line-height: 1.75;
}

.hours-card {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.hours-card-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}

.hours-card-title svg {
  color: var(--green-mid);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: .5rem 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--green-light);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table td:first-child {
  color: var(--gray-mid);
  font-weight: 500;
  padding-right: 1rem;
}

.hours-table td:last-child {
  font-weight: 700;
  color: var(--green-dark);
  text-align: right;
}

.hours-closed {
  color: #dc2626 !important;
}

/* ================================================================
   GALLERY
================================================================ */
#gallery {
  padding: 6rem 0;
  background: var(--gray-light);
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-header .section-subtitle {
  margin-inline: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--green-dark);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, opacity .45s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  opacity: .85;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  background: rgba(45,106,79,.35);
  pointer-events: none;
}

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

.gallery-item-overlay svg {
  color: var(--white);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

/* ---- Lightbox ---- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

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

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

#lightbox-caption {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  text-align: center;
}

#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: background var(--transition);
}

#lightbox-close:hover {
  background: rgba(255,255,255,.2);
}

/* ================================================================
   OFERTA (SERVICES)
================================================================ */
#services {
  padding: 6rem 0;
  background: var(--white);
}

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-header .section-subtitle {
  margin-inline: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--green-light);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--green-mid);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  color: var(--green-dark);
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .93rem;
  color: var(--gray-dark);
  line-height: 1.45;
}

.service-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-mid);
  margin-top: .5em;
}

/* ================================================================
   KONTAKT
================================================================ */
#contact {
  padding: 6rem 0;
  background: var(--green-pale);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--green-light);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-mid);
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-detail-icon {
  width: 38px;
  height: 38px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  color: var(--green-dark);
}

.contact-detail-body {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.contact-detail-label {
  font-size: .72rem;
  color: var(--gray-mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.contact-detail-value {
  font-size: .97rem;
  font-weight: 700;
  color: var(--gray-dark);
}

.contact-detail-value a {
  color: var(--green-dark);
  transition: color var(--transition);
}

.contact-detail-value a:hover {
  color: var(--green-mid);
}

.hours-mini {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.hours-mini-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
}

.hours-mini-row span:first-child {
  color: var(--gray-mid);
}

.hours-mini-row span:last-child {
  font-weight: 700;
  color: var(--green-dark);
}

.hours-mini-row .closed {
  color: #dc2626;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--green-light);
  min-height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  display: block;
}

/* ================================================================
   FOOTER
================================================================ */
#footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 5px;
  filter: brightness(.9);
}

.footer-brand-name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

.footer-address {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}

/* ================================================================
   BACK-TO-TOP
================================================================ */
#back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition),
              background var(--transition);
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#back-to-top:hover {
  background: var(--green-mid);
}

/* ================================================================
   RESPONSIVE — Tablet
================================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-stack {
    max-width: 600px;
    margin-inline: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-wrapper {
    min-height: 320px;
  }

  .map-wrapper iframe {
    min-height: 320px;
  }
}

/* ================================================================
   RESPONSIVE — Mobile
================================================================ */
@media (max-width: 680px) {
  #hamburger {
    display: flex;
  }

  #nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--green-light);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem .75rem;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease, padding .25s ease;
  }

  #nav-menu.nav-open {
    max-height: 600px;
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: .75rem 1rem;
    border-radius: 6px;
    font-size: .95rem;
  }

  .nav-phone {
    margin-left: 0;
    margin-top: .5rem;
    text-align: center;
    padding: .75rem 1rem;
  }

  #hero {
    min-height: 95svh;
    min-height: 95vh;
  }

  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.6rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .about-image-stack {
    grid-template-columns: 1fr;
  }

  .about-img-main {
    grid-column: auto;
  }

  .about-img-small:last-of-type {
    display: none;
  }

  .about-badge {
    position: static;
    margin-top: 1rem;
    align-self: flex-start;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
  }

  .gallery-item img {
    height: 160px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

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

  .gallery-item img {
    height: 200px;
  }
}

/* ================================================================
   PRINT
================================================================ */
@media print {
  #navbar, #hamburger, #back-to-top, #lightbox { display: none !important; }
  #hero { min-height: auto; padding: 2rem 0; }
  .hero-bg, .hero-overlay { display: none; }
  .hero-content { color: var(--gray-dark); }
  .fade-in { opacity: 1; transform: none; }
}
