/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 130px;
}

body {
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─────────────────────────────────────── */
/* Glowing Underline Animation            */
/* ─────────────────────────────────────── */
@keyframes glowingUnderline {
  0%, 100% {
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6),
                0 0 15px rgba(6, 182, 212, 0.4),
                0 0 25px rgba(6, 182, 212, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.8),
                0 0 20px rgba(6, 182, 212, 0.6),
                0 0 35px rgba(6, 182, 212, 0.3);
  }
}

/* ─────────────────────────────────────── */
/* Header & Navigation Styles             */
/* ─────────────────────────────────────── */

.site-header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding 0.3s ease, height 0.3s ease;
}

.site-header.scrolled {
  padding: 0.3rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  transition: padding 0.3s ease;
}

.site-header.scrolled .container {
  padding: 0.3rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  width: auto;
  height: 80px;
  transition: height 0.3s ease;
}

.site-header.scrolled .logo {
  height: 50px;
}

.logo-img {
  width: auto;
  height: 95px;
  max-width: 100%;
  object-fit: contain;
  margin-left: 15px;
  transition: transform 0.3s ease, height 0.3s ease;
  transform-origin: left center;
  display: flex;
}

.site-header.scrolled .logo-img {
  height: 60px;
}

.logo-img:hover {
  transform: scale(2);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 20px;
  margin-right: 70px;
  transition: gap 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled .main-nav ul {
  gap: 8px;
  padding: 6px 15px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 750;
  display: inline-block;
  text-align: center;
  padding: 12px 18px;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: #06B6D4;
  border-radius: 2px;
  transition: opacity 0.3s ease;
  opacity: 0;
  animation: glowingUnderline 2s ease-in-out infinite;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
  opacity: 1;
}

.site-header.scrolled .main-nav ul li a {
  padding: 8px 12px;
}

.site-header.scrolled .main-nav ul li a::after {
  bottom: -6px;
}

.main-nav ul li a:hover {
  color: #06B6D4;
}

.search-container {
  display: flex;
  align-items: center;
  position: relative;
  transition: padding 0.3s ease;
}

.site-header.scrolled .search-container {
  padding: 0 5px;
}

.search-icon-btn {
  background: radial-gradient(circle, #A5F3FC 0%, #06B6D4 100%);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.3s ease, height 0.3s ease;
  z-index: 2;
}

.site-header.scrolled .search-icon-btn {
  width: 35px;
  height: 35px;
}

.search-icon-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.5);
}

.search-bar {
  width: 0;
  padding: 0;
  border: none;
  outline: none;
  opacity: 0;
  border-radius: 50px;
  background: #f0fdff;
  font-size: 14px;
  transition: width 0.4s ease, 
              opacity 0.4s ease, 
              padding 0.4s ease;
  position: absolute;
  right: 35px;
  height: 36px;
  border: 2px solid transparent;
}

.search-container:hover .search-bar,
.search-bar.active {
  width: 200px;
  opacity: 1;
  padding: 0 15px 0 15px;
  border-color: #06B6D4;
}

/* ─────────────────────────────────────── */
/* Door Hero Section                       */
/* ─────────────────────────────────────── */

.door-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  width: 100%;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.door-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(245, 108, 63, 0.8) 0%, rgba(249, 212, 35, 0.8) 100%);
  z-index: 1;
}

.door-hero .hero-content {
  position: relative;
  z-index: 2;
}

.door-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.door-hero p {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────── */
/* Door Details Section                    */
/* ─────────────────────────────────────── */

.door-details {
  padding: 3rem 0;
  background: #fff;
  margin-bottom: 2rem;
}

.door-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.door-intro h2 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.door-intro p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}

/* ─────────────────────────────────────── */
/* Buttons                                 */
/* ─────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, border-color 0.3s;
}

.btn.primary {
  background: #f56c3f;
  color: #fff;
}

.btn.primary:hover {
  background: #e2552d;
}

.btn.outline {
  border: 1px solid #fff;
  color: #fff;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ─────────────────────────────────────── */
/* CTA Section                             */
/* ─────────────────────────────────────── */

.km-cta {
  background: #1a1a1a;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.km-cta::before {
  content: 'KALIPS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.km-cta-inner {
  position: relative;
  z-index: 1;
}

.km-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f56c3f;
  margin-bottom: 1rem;
}

.km-section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.km-cta-title {
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
}

.km-cta-title strong {
  color: #f56c3f !important;
}

.km-cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.km-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.km-outline-dark {
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
}

.km-outline-dark:hover {
  border-color: #fff !important;
}

/* ─────────────────────────────────────── */
/* Newsletter Section                      */
/* ─────────────────────────────────────── */

.newsletter {
  background: #f56c3f;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.newsletter h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.newsletter p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.newsletter form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter input[type="email"] {
  padding: 0.6rem;
  width: 250px;
  max-width: 100%;
  border: none;
  border-radius: 4px;
  margin-right: 0.5rem;
}

/* ─────────────────────────────────────── */
/* Footer                                  */
/* ─────────────────────────────────────── */

.site-footer {
  background: #222;
  color: #ccc;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-about {
  display: flex;
  flex-direction: column;
}

.footer-about h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-about p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links > div {
  flex: 1;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 1rem;
  margin-top: 2rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ─────────────────────────────────────── */
/* Responsive Design                       */
/* ─────────────────────────────────────── */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .main-nav ul {
    gap: 12px;
    padding: 10px;
    margin-right: 20px;
  }

  .main-nav ul li a {
    width: 75px;
    height: 75px;
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .door-hero h1 {
    font-size: 2.2rem;
  }

  .door-intro h2 {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 16px;
    gap: 10px;
    transition: padding 0.3s ease;
  }

  .site-header.scrolled .container {
    padding: 0.5rem 16px;
  }

  .logo {
    height: 60px;
    transition: height 0.3s ease;
  }

  .site-header.scrolled .logo {
    height: 45px;
  }

  .logo-img {
    height: 60px;
    transition: height 0.3s ease;
  }

  .site-header.scrolled .logo-img {
    height: 45px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav ul {
    gap: 8px;
    padding: 6px 12px;
    flex-wrap: nowrap;
    width: max-content;
    margin-right: 0;
    transition: gap 0.3s ease, padding 0.3s ease;
  }

  .site-header.scrolled .main-nav ul {
    gap: 5px;
    padding: 4px 10px;
  }

  .main-nav ul li a {
    width: 65px;
    height: 65px;
    font-size: 0.72rem;
    padding: 4px 6px;
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease, padding 0.3s ease, font-size 0.3s ease;
  }

  .main-nav ul li a::after {
    bottom: -5px;
    height: 2px;
  }

  .site-header.scrolled .main-nav ul li a {
    width: 50px;
    height: 45px;
    font-size: 0.65rem;
    padding: 3px 5px;
    border-radius: 20px;
  }

  .site-header.scrolled .main-nav ul li a::after {
    bottom: -3px;
    height: 1.5px;
  }

  .search-container {
    width: 100%;
    justify-content: flex-end;
    padding-bottom: 8px;
  }

  .search-bar.active,
  .search-container:hover .search-bar {
    width: 160px;
  }

  .door-hero {
    height: 40vh;
    min-height: 300px;
  }

  .door-hero h1 {
    font-size: 1.8rem;
  }

  .door-hero p {
    font-size: 1rem;
  }

  .km-cta {
    padding: 4rem 0;
  }

  .km-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .km-cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .newsletter form {
    flex-direction: column;
  }

  .newsletter input[type="email"] {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
  .site-header .container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease;
  }

  .site-header.scrolled .container {
    padding: 0.3rem 10px;
  }

  .logo-img {
    height: 50px;
    transition: height 0.3s ease;
  }

  .site-header.scrolled .logo-img {
    height: 40px;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .main-nav ul {
    transition: gap 0.3s ease, padding 0.3s ease;
  }

  .site-header.scrolled .main-nav ul {
    gap: 4px;
    padding: 3px 8px;
  }

  .main-nav ul li a {
    width: 58px;
    height: 58px;
    font-size: 0.65rem;
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease, padding 0.3s ease, font-size 0.3s ease;
  }

  .main-nav ul li a::after {
    bottom: -4px;
    height: 2px;
  }

  .site-header.scrolled .main-nav ul li a {
    width: 45px;
    height: 40px;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 18px;
  }

  .site-header.scrolled .main-nav ul li a::after {
    bottom: -3px;
    height: 1px;
  }

  .search-container {
    padding: 0 6px;
  }

  .site-header.scrolled .search-container {
    padding: 0 4px;
  }

  .door-hero h1 {
    font-size: 1.4rem;
  }

  .door-intro h2 {
    font-size: 1.3rem;
  }

  .km-cta::before {
    font-size: 12vw;
  }

  .km-cta-title {
    font-size: 1.5rem !important;
  }

  .km-cta-sub {
    font-size: 0.9rem;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
  }
}

/* ─────────────────────────────────────── */
/* Doors Slideshow Styles                  */
/* ─────────────────────────────────────── */

.doors-slideshow {
  padding: 2rem 0;
  background: #fff;
  margin-bottom: 2rem;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-logo {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 75%;
  height: 75%;
  max-width: 450px;
  z-index: 5;
}

.slideshow-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.7;
}

.slideshow-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #f56c3f;
}

.dot:hover {
  background: rgba(245, 108, 63, 0.8);
}

/* ─────────────────────────────────────── */
/* Slideshow Responsive Design             */
/* ─────────────────────────────────────── */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  .slideshow-wrapper {
    height: 500px;
  }

  .slideshow-logo {
    max-width: 375px;
    bottom: 15px;
    left: 15px;
  }

  .slideshow-dots {
    bottom: 15px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
  .doors-slideshow {
    padding: 1.5rem 0;
  }

  .slideshow-container {
    max-width: 100%;
    margin: 0 10px;
  }

  .slideshow-wrapper {
    height: 400px;
  }

  .slideshow-logo {
    max-width: 300px;
    bottom: 12px;
    left: 12px;
  }

  .slideshow-dots {
    bottom: 12px;
    gap: 6px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
  .slideshow-wrapper {
    height: 320px;
  }

  .slideshow-logo {
    max-width: 240px;
    bottom: 10px;
    left: 10px;
  }

  .slideshow-dots {
    bottom: 10px;
    gap: 4px;
  }

  .dot {
    width: 6px;
    height: 6px;
  }
}
