/* CSS Variables from JSON config */
:root {
  --primary-color: #000000;
  --secondary-color: #DC143C;
  --accent-color: #8B0000;
  --background-color: #FFFFFF;
  --text-color: #333333;
  --text-light: #666666;
  --text-white: #FFFFFF;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-menu li a:hover {
  color: var(--secondary-color);
}

.nav-menu li a.nav-button {
  background: var(--secondary-color);
  color: var(--text-white);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-menu li a.nav-button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-white);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  max-height: 800px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-container {
  display: flex;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  border: 3px solid var(--secondary-color);
}

/* Portrait Layout: Image right, text left */
.hero-slide[data-orientation="portrait"] .hero-container {
  flex-direction: row;
}

.hero-slide[data-orientation="portrait"] .hero-image-box {
  flex: 0 0 55%;
  order: 2;
}

.hero-slide[data-orientation="portrait"] .hero-content {
  flex: 1;
  order: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

/* Landscape Layout: Image top, text bottom */
.hero-slide[data-orientation="landscape"] .hero-container {
  flex-direction: column;
}

.hero-slide[data-orientation="landscape"] .hero-image-box {
  flex: 0 0 65%;
  order: 1;
}

.hero-slide[data-orientation="landscape"] .hero-content {
  flex: 1;
  order: 2;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero-image-box {
  position: relative;
  overflow: hidden;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--primary-color);
  position: relative;
  border-radius: 8px;
  border: 2px solid var(--accent-color);
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

/* Portrait orientation gradient */
.hero-slide[data-orientation="portrait"] .hero-image::after {
  background: linear-gradient(to left, rgba(255,255,255,0) 60%, rgba(220,20,60,0.1) 80%, rgba(220,20,60,0.3) 100%);
}

/* Landscape orientation gradient */
.hero-slide[data-orientation="landscape"] .hero-image::after {
  background: linear-gradient(to top, rgba(255,255,255,0) 50%, rgba(220,20,60,0.1) 75%, rgba(220,20,60,0.3) 100%);
}

.hero-content {
  color: var(--text-color);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.6;
}

.cta-button {
  background: var(--secondary-color);
  color: var(--text-white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: flex-start;
}

.cta-button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(220, 20, 60, 0.3);
}

/* Landscape layout button centering */
.hero-slide[data-orientation="landscape"] .cta-button {
  align-self: center;
}

/* Hero Navigation */
.hero-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.hero-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-white);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-nav-dot.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Special Offer */
.special-offer {
  background: var(--secondary-color);
  color: var(--text-white);
  padding: 3rem 0;
  text-align: center;
}

.offer-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.offer-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.offer-button {
  background: var(--text-white);
  color: var(--secondary-color);
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.offer-button:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* About Section */
.about {
  padding: 5rem 0;
  background: var(--background-color);
}

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

.about h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-features {
  list-style: none;
}

.about-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 2rem;
}

.about-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 100%;
  min-height: 300px;
  height: auto;
  max-height: 500px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.2rem;
  border: 2px dashed #ddd;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 4/3;
}

.service-item-image {
  width: 100%;
  min-height: 120px;
  height: 150px;
  max-height: 200px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
  border-radius: 10px 10px 0 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: -2rem -2rem 1rem -2rem;
  aspect-ratio: 16/9;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: #f9f9f9;
}

.services h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.services p {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

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

.service-item {
  background: var(--background-color);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-item p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
  padding: 5rem 0;
  background: var(--background-color);
}

.portfolio h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.portfolio p {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.portfolio-slideshow {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.portfolio-main-image {
  position: relative;
  width: 100%;
  min-height: 300px;
  height: 500px;
  max-height: 600px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  aspect-ratio: 4/3;
}

.portfolio-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.portfolio-slide.active {
  opacity: 1;
}

.portfolio-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--text-white);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-slide:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  font-size: 1rem;
  margin: 0;
  text-align: left;
  color: var(--text-white);
}

.portfolio-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.portfolio-prev,
.portfolio-next {
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-prev:hover,
.portfolio-next:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.portfolio-thumbnails {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.portfolio-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.portfolio-thumbnail.active {
  border-color: var(--secondary-color);
  opacity: 1;
  transform: scale(1.05);
}

.portfolio-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portfolio-counter {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 1rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--primary-color);
  color: var(--text-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-white);
}

.contact h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item strong {
  color: var(--secondary-color);
  min-width: 100px;
}

.hours-list {
  display: grid;
  gap: 0.75rem;
}

.hour-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--text-white);
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Adjust image containers for mobile */
  .image-placeholder {
    min-height: 250px;
    max-height: 400px;
  }
  
  .service-item-image {
    min-height: 100px;
    height: 120px;
    max-height: 150px;
  }
  
  .portfolio-main-image {
    min-height: 250px;
    height: 350px;
    max-height: 450px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .hero {
    padding: 1rem;
  }

  .hero-slide[data-orientation="portrait"] .hero-container {
    flex-direction: column;
  }
  
  .hero-slide[data-orientation="portrait"] .hero-image-box {
    flex: 0 0 50%;
    order: 1;
  }
  
  .hero-slide[data-orientation="portrait"] .hero-content {
    order: 2;
    text-align: center;
    padding: 2rem;
  }
  
  .hero-slide[data-orientation="landscape"] .hero-image-box {
    flex: 0 0 50%;
  }
  
  .hero-slide[data-orientation="landscape"] .hero-content {
    padding: 1.5rem 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
  
  .cta-button {
    align-self: center;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .offer-content h2 {
    font-size: 2rem;
  }

  .about h2,
  .services h2,
  .contact h2 {
    font-size: 2rem;
  }
}