/* ============================================
   Koppel Fabrication - Main Stylesheet
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
  color: #3e4349;
  line-height: 1.7;
  font-size: 14px;
  background: #fff;
}

a {
  color: #890011;
  text-decoration: none;
}

a:hover {
  color: rgba(137, 0, 17, 0.75);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
  line-height: 1.4;
  color: #3e4349;
  font-weight: normal;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 26px; }

p {
  margin-bottom: 1em;
}

ul {
  list-style: none;
}

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

.container-fullwidth {
  max-width: 100%;
  padding: 0 30px;
}

/* --- Header --- */
#main-header {
  background: #fff;
  position: relative;
  z-index: 1000;
  border-top: 3px solid #890011;
}

#main-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 76px;
}

.logo-container {
  flex-shrink: 0;
}

.logo-container img {
  max-height: 45px;
  width: auto;
}

/* --- Desktop Navigation --- */
#top-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

#top-menu li {
  position: relative;
}

#top-menu li a {
  display: block;
  padding: 28px 18px;
  color: #3e4349;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s;
}

#top-menu li a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 22px;
  background: #890011;
  height: 2px;
  transition: right 0.3s ease-out;
}

#top-menu li a:hover::before {
  right: 0;
}

#top-menu li.current a {
  color: #890011;
}

#top-menu li.current a::before {
  right: 0;
}

#top-menu li a:hover {
  color: #890011;
  opacity: 1;
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #890011;
  transition: transform 0.3s, opacity 0.3s;
}

#mobile-menu {
  display: none;
  background: #fff;
  border-top: 3px solid #890011;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#mobile-menu.open {
  display: block;
}

#mobile-menu li a {
  display: block;
  padding: 14px 20px;
  color: #3e4349;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

#mobile-menu li a:hover,
#mobile-menu li.current a {
  color: #890011;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: #890011;
  color: #fff !important;
  font-size: 20px;
  padding: 12px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
  letter-spacing: 0px;
}

.btn:hover {
  background: rgba(137, 0, 17, 0.85);
  color: #fff !important;
}

.btn-small {
  font-size: 16px;
  padding: 10px 20px;
}

.btn i {
  margin-right: 6px;
}

/* --- Sections --- */
.section {
  padding: 54px 0;
  background: #fff;
}

.section-no-top {
  padding-top: 0;
}

.section-no-bottom {
  padding-bottom: 0;
}

/* --- Hero / Parallax Banner --- */
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 320px 20px 300px;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-banner h1 {
  position: relative;
  z-index: 1;
  font-size: 46px;
  color: #fff;
  font-weight: bold;
  letter-spacing: 1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 2px solid #890011;
  margin: 10px 0 20px;
  width: 100%;
}

/* --- Grid / Rows --- */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.row-gutter {
  gap: 30px;
}

.col-1-2 {
  flex: 0 0 calc(50% - 15px);
  max-width: calc(50% - 15px);
}

.col-1-3 {
  flex: 1;
  max-width: 33.333%;
}

.col-2-3 {
  flex: 2;
  max-width: 66.666%;
}

.col-1-4 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-full {
  flex: 0 0 100%;
  max-width: 100%;
}

.equal-columns {
  align-items: stretch;
}

/* --- Info Column (gray background) --- */
.info-column {
  background: #f6f6f6;
  padding: 20px 40px;
}

.info-column p {
  font-size: 14px;
  line-height: 1.7em;
}

/* --- Home Page: Top Slider --- */
.top-slider {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.top-slider .slide {
  position: relative;
  display: none;
}

.top-slider .slide.active {
  display: block;
}

.top-slider .slide img {
  width: 100%;
  height: auto;
  display: block;
}

.top-slider .slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.top-slider .slide-content h1 {
  font-size: 46px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Home Page: Secondary Slider --- */
.secondary-slider {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.secondary-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.secondary-slider .slide.active {
  opacity: 1;
  position: relative;
  z-index: 2;
}

.secondary-slider {
  height: 100%;
}

.secondary-slider .slide-image {
  width: 100%;
  height: 100%;
  min-height: 550px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.secondary-slider .slide-overlay {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  transform: translateY(-50%);
  background: rgba(137, 0, 17, 0.8);
  color: #fff;
  padding: 25px 30px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}

.secondary-slider .slide.active .slide-overlay {
  opacity: 1;
}

.secondary-slider .slide-overlay h3 {
  font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
  font-size: 28px;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.5em;
  text-align: center;
}

.secondary-slider .slide-overlay p {
  font-size: 14px;
  line-height: 1.7;
  color: #fff;
  text-align: center;
  margin-bottom: 0;
}

/* Slider Controls */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.secondary-slider .slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: transparent;
  padding: 0;
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.slider-dots button.active {
  background: rgba(255,255,255,0.85);
}

.slider-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 5;
  pointer-events: none;
}

.slider-arrows button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrows button:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(137, 0, 17, 0);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .overlay {
  background: rgba(137, 0, 17, 0.3);
}

/* --- Gallery Pagination --- */
.gallery-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 10px 0 20px;
}

.gallery-pagination a,
.gallery-pagination span {
  font-size: 16px;
  color: #890011;
  cursor: pointer;
  text-decoration: none;
}

.gallery-pagination span.current-page {
  color: #890011;
  font-weight: normal;
}

.gallery-pagination span.inactive-page {
  color: #3e4349;
  cursor: pointer;
}

.gallery-pagination span.inactive-page:hover {
  color: #890011;
}

/* --- Gallery Slider (service pages) --- */
.gallery-slider {
  position: relative;
  overflow: hidden;
  height: 550px;
}

.gallery-slider .slide {
  display: none;
  height: 100%;
}

.gallery-slider .slide.active {
  display: block;
  height: 100%;
}

.gallery-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Parallax Quote Section --- */
.parallax-quote {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 400px 40px;
}

.parallax-quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.parallax-quote h2 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- Home Two-Column Info Section --- */
.home-info {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.home-info-text {
  padding: 30px 40px;
}

.home-info-text h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 26px;
}

.home-info-text p {
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
}

.contact-details {
  margin-top: 20px;
}

.contact-details p {
  margin-bottom: 8px;
  color: #890011;
  font-size: 14px;
}

.contact-details a {
  color: #890011;
}

.contact-details i {
  color: #890011;
  width: 20px;
  margin-right: 8px;
}

/* --- About Section (home page bottom) --- */
.about-preview {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.about-preview .about-left {
  flex: 1;
}

.about-preview .about-left img {
  width: 100%;
  height: auto;
}

.about-preview .about-left p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #3e4349;
}

.about-preview .about-left .read-more {
  color: #890011;
  font-weight: 600;
  font-size: 14px;
}

.about-preview .about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-preview .about-right img {
  width: 100%;
  height: auto;
}

/* --- Scroll Reveal Animation --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 100%;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #f6f6f6;
  border: none;
  font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
  font-size: 14px;
  color: #3e4349;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid #890011;
  outline-offset: -2px;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit-btn {
  background: #890011;
  color: #fff;
  border: none;
  font-size: 18px;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.3s;
  font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
}

.form-submit-btn:hover {
  background: rgba(137, 0, 17, 0.75);
}

/* --- Contact Sidebar --- */
.contact-sidebar {
  padding-top: 20px;
}

.contact-sidebar p {
  font-size: 16px;
  color: #890011;
  margin-bottom: 10px;
}

.contact-sidebar i {
  width: 20px;
  margin-right: 8px;
}

.contact-sidebar a {
  color: #890011;
}

/* --- Footer --- */
#main-footer {
  background: #3e4349;
  color: #fff;
  padding: 50px 0 0;
}

.footer-widgets {
  display: flex;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-widget {
  flex: 1;
}

.footer-widget img {
  max-width: 300px;
}

.footer-widget h4 {
  color: #890011;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-widget li {
  margin-bottom: 8px;
}

.footer-widget li a {
  color: #fff;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-widget li a:hover {
  color: #890011;
}

.footer-widget p {
  font-size: 14px;
  color: #fff;
  line-height: 1.8;
}

.footer-widget p a {
  color: #fff;
}

.footer-bottom {
  background: #f6f6f6;
  padding: 15px 0;
  text-align: left;
}

.footer-bottom p {
  color: #3e4349;
  font-size: 14px;
  margin: 0;
}

/* --- Lightbox/Modal --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow-y: auto;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 85vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  min-width: 60vw;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10001;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background 0.3s;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  z-index: 10001;
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #890011;
  color: #fff;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background 0.3s;
}

.scroll-top.visible {
  display: flex;
}

.scroll-top:hover {
  background: rgba(137, 0, 17, 0.85);
}

/* --- Privacy Policy --- */
.privacy-content h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 24px;
}

.privacy-content h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 20px;
}

.privacy-content p {
  margin-bottom: 15px;
}

.privacy-content ul {
  list-style: disc;
  margin-left: 30px;
  margin-bottom: 15px;
}

.privacy-content li {
  margin-bottom: 5px;
}

/* --- Animation --- */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Form Success Message --- */
.form-success {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

.form-success.show {
  display: block;
}

/* ============================================
   Responsive
   ============================================ */

@media screen and (max-width: 980px) {
  #top-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .col-1-2, .col-1-3, .col-2-3, .col-1-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .row-gutter {
    gap: 20px;
  }

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

  .home-info {
    flex-direction: column;
  }

  .about-preview {
    flex-direction: column;
  }

  .footer-widgets {
    flex-direction: column;
    gap: 30px;
  }

  .hero-banner {
    padding: 150px 20px 130px;
    background-attachment: scroll;
  }

  .hero-banner h1 {
    font-size: 32px;
  }

  .parallax-quote {
    padding: 200px 20px;
    background-attachment: scroll;
  }

  .parallax-quote h2 {
    font-size: 26px;
  }

  .top-slider .slide-content h1 {
    font-size: 28px;
    padding: 15px 25px;
  }

  .secondary-slider .slide-image {
    height: 350px;
    background-attachment: scroll;
  }

  .info-column {
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }
}

@media screen and (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .secondary-slider .slide-image {
    height: 250px;
  }

  .secondary-slider .slide-overlay h3 {
    font-size: 20px;
  }

  .hero-banner {
    padding: 100px 15px 80px;
  }

  .hero-banner h1 {
    font-size: 26px;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

  .top-slider .slide-content h1 {
    font-size: 22px;
    padding: 12px 20px;
  }
}
