/* =============================================
   Salon Sukien Ślubnych Monika — Main Styles
   ============================================= */

/* Google Fonts imported in HTML */

/* ── Variables ─────────────────────────────── */
:root {
  --ivory:          #FAF8F3;
  --white:          #FFFFFF;
  --champagne:      #F2E3C8;
  --champagne-dark: #E8D0A8;
  --gold:           #C9A96E;
  --gold-dark:      #A07840;
  --gold-light:     #E8D5B0;
  --text-dark:      #2C2016;
  --text-medium:    #6B5B4E;
  --text-light:     #9E8E80;
  --rose-pale:      #FBF3F5;
  --border-light:   rgba(201, 169, 110, 0.25);
  --shadow-soft:    0 8px 40px rgba(44, 32, 22, 0.08);
  --shadow-medium:  0 16px 60px rgba(44, 32, 22, 0.14);
  --nav-height:     80px;
  --section-pad:    100px;
}

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

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

body {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--ivory);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-dark);
}

.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 560px;
  line-height: 1.8;
}

/* ── Ornamental Divider ─────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light));
}

.ornament::after {
  background: linear-gradient(to left, transparent, var(--gold-light));
}

.ornament-icon {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
}

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

.btn-outline:hover {
  background-color: var(--white);
  color: var(--text-dark);
}

.btn-outline-dark {
  background-color: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-dark:hover {
  background-color: var(--gold);
  color: var(--white);
}

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 3rem;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.nav--transparent {
  background: transparent;
}

.nav.nav--solid {
  background: rgba(250, 248, 243, 0.97);
  box-shadow: 0 2px 20px rgba(44, 32, 22, 0.08);
  backdrop-filter: blur(8px);
}

.nav__logo {
  flex-shrink: 0;
  transition: opacity 0.3s;
}

.nav__logo img {
  height: 52px;
  width: auto;
}

.nav__logo--dark { display: none; }
.nav__logo--light { display: block; filter: brightness(0) invert(1); }

.nav.nav--solid .nav__logo--dark { display: block; }
.nav.nav--solid .nav__logo--light { display: none; }

.nav__spacer {
  flex: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color 0.3s;
}

.nav.nav--solid .nav__link {
  color: var(--text-medium);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--gold);
}

.nav.nav--solid .nav__link.active {
  color: var(--gold);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.nav.nav--solid .nav__hamburger span {
  background: var(--text-dark);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(250, 248, 243, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(44, 32, 22, 0.12);
  flex-direction: column;
  padding: 2rem 3rem;
  gap: 1.5rem;
  z-index: 999;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile .nav__link {
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* ── Hero Section ───────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/galeria2/IMG_9193.JPG');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero__bg.loaded {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20, 14, 8, 0.72) 0%,
    rgba(20, 14, 8, 0.55) 55%,
    rgba(44, 32, 22, 0.40) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 860px;
  animation: heroFadeIn 1.4s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  display: block;
}

.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.hero__title-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 2rem;
}

.hero__divider {
  width: 60px;
  height: 1px;
  background: var(--gold-light);
  margin: 0 auto 2rem;
}

.hero__tagline {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  animation: scrollBounce 2s ease infinite;
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
}

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

/* ── Section Base ───────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section--ivory { background-color: var(--ivory); }
.section--white { background-color: var(--white); }
.section--champagne { background-color: var(--champagne); }
.section--rose { background-color: var(--rose-pale); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── About Section ──────────────────────────── */
#about .about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-medium);
}

.about__image-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 55%;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--white);
}

.about__badge {
  position: absolute;
  top: 2rem;
  left: -2rem;
  background: var(--gold);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.about__badge-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  line-height: 1;
  display: block;
}

.about__badge-text {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  display: block;
}

.about__content p {
  color: var(--text-medium);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.85;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 2rem 0;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-medium);
  font-size: 0.95rem;
}

.about__feature::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Offer Section ──────────────────────────── */
#offer .offer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.offer__card {
  background: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid transparent;
}

.offer__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-bottom-color: var(--gold);
}

.offer__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer__icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--gold);
  fill: none;
}

.offer__card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.offer__card p {
  color: var(--text-medium);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Collection Section ─────────────────────── */
#collection .collection__intro {
  max-width: 680px;
  margin: 0 auto 4rem;
  text-align: center;
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1.5rem;
}

.collection__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--champagne);
}

.collection__item--featured {
  grid-row: span 2;
  min-height: 585px;
}

.collection__item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
  display: block;
}

.collection__item--featured img {
  height: 100%;
  min-height: 585px;
  object-position: center;
}

.collection__item:hover img {
  transform: scale(1.06);
}

.collection__item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 32, 22, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.collection__item:hover .collection__item__overlay {
  opacity: 1;
}

.collection__item__label {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}

/* ── Gallery Section ────────────────────────── */
#gallery .gallery__intro {
  max-width: 580px;
  text-align: center;
  margin: 0 auto 3rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--champagne);
  aspect-ratio: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(201, 169, 110, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__item:hover .gallery__item__overlay {
  opacity: 1;
}

.gallery__item__overlay svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
  fill: none;
}

.gallery__more {
  text-align: center;
  margin-top: 3rem;
}

/* ── Visit Section ──────────────────────────── */
#visit {
  background: linear-gradient(135deg, var(--champagne) 0%, var(--ivory) 100%);
  position: relative;
  overflow: hidden;
}

#visit::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.visit__steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.visit__step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.visit__step-number {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.visit__step-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.visit__step-content p {
  color: var(--text-medium);
  font-size: 0.92rem;
  line-height: 1.7;
}

.visit__image {
  position: relative;
}

.visit__image img {
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-medium);
}

/* ── Contact Section ────────────────────────── */
#contact .contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact__item-icon {
  width: 44px;
  height: 44px;
  background: var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
}

.contact__item-content h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.contact__item-content p,
.contact__item-content a {
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.6;
  transition: color 0.2s;
}

.contact__item-content a:hover {
  color: var(--gold);
}

.contact__hours {
  margin-top: 1rem;
}

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

.contact__hours td {
  padding: 0.4rem 0;
  color: var(--text-medium);
  font-size: 0.92rem;
}

.contact__hours td:last-child {
  text-align: right;
  color: var(--text-dark);
  font-weight: 400;
}

.contact__map {
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: none;
  filter: sepia(20%) contrast(1.05);
}

/* ── Footer ─────────────────────────────────── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 2rem;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer__logo img {
  height: 48px;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__divider {
  width: 40px;
  height: 1px;
  background: rgba(201, 169, 110, 0.4);
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── Lightbox ────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 14, 8, 0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  z-index: 10000;
  line-height: 1;
}

.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(201, 169, 110, 0.3);
}

.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }

.lightbox__prev svg,
.lightbox__next svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
}

.lightbox__counter {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  z-index: 10000;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  #about .about__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about__image-accent {
    display: none;
  }

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

  .collection__item--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .collection__item--featured img {
    min-height: 400px;
    height: 400px;
  }

  .visit__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
    --section-pad: 60px;
  }

  .nav {
    padding: 0 1.5rem;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

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

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

  .collection__item--featured {
    grid-column: span 1;
  }

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

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

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

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

  .about__badge {
    display: none;
  }

  .nav__mobile {
    padding: 1.5rem;
  }
}
