/*
  style-wine.css - Unique, modern, responsive CSS for wine website
  Uses wine color palette, variables, Flexbox/Grid, and smooth transitions
*/
:root {
  --wine-dark: #7b112c;
  --wine-light: #b03a49;
  --wine-bg: #f8f6f4;
  --wine-accent: #fff0f3;
  --text-main: #2d1a1a;
  --font-main: 'Merriweather', serif;
  --font-accent: 'Montserrat', sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--wine-bg);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.7;
}
header {
  background: linear-gradient(90deg, var(--wine-dark) 70%, var(--wine-light) 100%);
  color: white;
  padding: 2rem 0 1rem 0;
  text-align: center;
  font-family: var(--font-accent);
  letter-spacing: 2px;
  box-shadow: 0 2px 10px rgba(123,17,44,0.1);
}
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: var(--wine-light);
  padding: 1rem 0;
  font-family: var(--font-accent);
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--wine-accent);
}
.hero-static {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0;
  padding: 0;
  max-width: none;
  display: flex;
  justify-content: center;
  background: var(--wine-dark);
  position: relative;
}

.hero-static::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    var(--wine-dark) 0%,
    transparent 20%,
    transparent 80%,
    var(--wine-dark) 100%
  );
  z-index: 1;
}

.hero-img {
  width: 100%;
  max-width: 1400px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0.85) blur(0.5px);
  transition: filter 0.3s ease;
  position: relative;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 0 2px 16px rgba(123,17,44,0.25);
  text-align: center;
  background: rgba(123,17,44,0.18);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  z-index: 2;
  backdrop-filter: blur(5px);
}

.hero-overlay h2 {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
}

.hero-overlay p {
  font-size: 1.2rem;
}

@media (max-width: 700px) {
  .hero-static {
    height: auto;
  }
  .hero-img {
    max-width: 100%;
  }
  .hero-overlay {
    padding: 1rem 0.5rem;
  }
  .hero-overlay h2 {
    font-size: 1.3rem;
  }
}

section {
  margin: 3rem auto;
  max-width: 900px;
  padding: 0 1rem;
}
#onama {
  background: var(--wine-accent);
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(176,58,73,0.07);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

#onama::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    var(--wine-dark) 0%,
    transparent 20%,
    transparent 80%,
    var(--wine-dark) 100%
  );
  opacity: 0.1;
  z-index: 0;
}

#onama h2 {
  text-align: center;
  color: var(--wine-dark);
  font-family: var(--font-accent);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  z-index: 1;
}

#onama h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--wine-light);
  border-radius: 2px;
}

#galerija {
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
  position: relative;
}

#galerija h2 {
  font-family: var(--font-accent);
  margin-bottom: 1.2rem;
  color: var(--wine-dark);
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

#galerija h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--wine-light);
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(176,58,73,0.13);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 3px solid var(--wine-light);
  padding: 3px;
  background: var(--wine-accent);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(176,58,73,0.18);
  border-color: var(--wine-dark);
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  .gallery-grid img {
    height: 150px;
  }
}

#proizvodi {
  padding: 4rem 0;
}

#proizvodi h2 {
  text-align: center;
  color: var(--wine-dark);
  font-family: var(--font-accent);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

#proizvodi h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--wine-light);
  border-radius: 2px;
}

.products-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--wine-accent);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
}

.product-img:hover {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  color: var(--wine-dark);
  font-family: var(--font-accent);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.price {
  color: var(--wine-light);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.description {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

footer {
  background: linear-gradient(90deg, var(--wine-dark) 70%, var(--wine-light) 100%);
  color: var(--wine-accent);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(212, 183, 143, 0.3);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: var(--wine-accent);
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .social-links {
    margin-top: 1rem;
  }
}

#contact {
  background: var(--wine-dark);
  color: white;
  padding: 3rem 0 0 0;
  margin-top: 3rem;
  border-radius: 1rem 1rem 0 0;
}
#contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem auto 0 auto;
}
#contact input, #contact textarea {
  padding: 0.7rem;
  border-radius: 0.5rem;
  border: none;
  font-family: var(--font-accent);
  font-size: 1rem;
}
#contact button {
  background: var(--wine-light);
  color: #fff;
  font-family: var(--font-accent);
  border: none;
  padding: 0.8rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
#contact button:hover {
  background: var(--wine-dark);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--wine-accent);
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(176,58,73,0.07);
}

.about-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: justify;
  font-size: 1.1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1200px) {
  .about-content {
    max-width: 1400px;
  }
}

@media (max-width: 700px) {
  #onama h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .about-content {
    padding: 1.5rem;
  }
  
  .about-content p {
    font-size: 1rem;
  }
}

.podrum-gallery {
  margin-top: 4rem;
  padding: 2rem;
}

.podrum-gallery h3 {
  text-align: center;
  color: var(--wine-dark);
  margin-bottom: 2rem;
  font-family: var(--font-accent);
  font-size: 1.8rem;
}

.podrum-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.podrum-gallery .gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.8rem;
  box-shadow: 0 2px 12px rgba(176,58,73,0.13);
  transition: transform 0.3s, box-shadow 0.3s;
}

.podrum-gallery .gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(176,58,73,0.18);
}

@media (max-width: 700px) {
  .podrum-gallery {
    margin-top: 2rem;
    padding: 1rem;
  }
  
  .podrum-gallery .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .podrum-gallery .gallery-grid img {
    height: 150px;
  }
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
}

.lightbox-nav button {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: opacity 0.3s;
}

.lightbox-nav button:hover {
  opacity: 0.7;
}

/* Contact section styles */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-box {
  background: var(--wine-accent);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 400px;
}

.contact-box h2 {
  color: var(--wine-dark);
  font-family: var(--font-accent);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.contact-box h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--wine-light);
  border-radius: 2px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--text-main);
  padding: 0.4rem;
  background: white;
  border-radius: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-details i {
  font-size: 1.2rem;
  color: var(--wine-dark);
  width: 25px;
  text-align: center;
}

.contact-locations {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.contact-locations h3 {
  color: var(--wine-dark);
  font-family: var(--font-accent);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  padding: 0.4rem;
  background: white;
  border-radius: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-locations p {
  color: var(--text-main);
  margin-bottom: 0.3rem;
  font-size: 1rem;
  padding: 0.4rem;
  background: white;
  border-radius: 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-map {
  width: 100%;
  height: 200px;
  border-radius: 0.3rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .contact-box {
    padding: 1.2rem;
    gap: 1rem;
    min-height: 350px;
  }
  
  .contact-map {
    height: 180px;
  }
}

@media (max-width: 700px) {
  .contact-box {
    min-height: 300px;
  }
  
  .contact-box h2 {
    font-size: 1.6rem;
  }
  
  .contact-details p,
  .contact-locations p {
    font-size: 0.9rem;
  }
  
  .contact-map {
    height: 150px;
  }
}

/* Order form styles */
#order-form {
  padding: 4rem 0;
  background: var(--wine-accent);
}

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

.form-container h2 {
  text-align: center;
  color: var(--wine-dark);
  font-family: var(--font-accent);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.form-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--wine-light);
  border-radius: 2px;
}

.form-info {
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--wine-dark);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--wine-light);
}

.payment-options {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.form-note {
  background: rgba(176,58,73,0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.form-buttons {
  text-align: center;
}

.form-buttons button {
  background: var(--wine-dark);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.form-buttons button:hover {
  background: var(--wine-light);
}

@media (max-width: 700px) {
  .form-container {
    padding: 0 1rem;
  }
  
  .form-container h2 {
    font-size: 2rem;
  }
  
  .payment-options {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-buttons button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .products-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .product-image {
    height: 250px;
  }
}

@media (max-width: 700px) {
  #proizvodi h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .product-image {
    height: 200px;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-info h3 {
    font-size: 1.2rem;
  }
  
  .price {
    font-size: 1.1rem;
  }
  
  .description {
    font-size: 0.9rem;
  }
}

/* Contact Section - Index Page Only */
.contact {
    padding: 6rem 0;
    background: linear-gradient(
        to bottom,
        var(--wine-bg) 0%,
        var(--wine-accent) 100%
    );
    position: relative;
}

.contact h2 {
    text-align: center;
    color: var(--wine-dark);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-accent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(123, 17, 44, 0.05);
    border-left: 4px solid var(--wine-light);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.contact-info p {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--wine-dark);
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(123, 17, 44, 0.1);
    border: 4px solid var(--wine-light);
    padding: 3px;
    background: rgba(123, 17, 44, 0.05);
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .map-container {
        height: 300px;
    }
}
