/* Reset styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force scrollbar to always be present on desktop to prevent layout shifts */
@media (min-width: 769px) {
    html {
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
}

/* CSS Variables */
:root {
    --bg-light: #FDF9F3;
    --brown-lite: #FAF3E0;
    --orange-dark: #C74A0C;
    --orange-med: #E67E22;
    --brown-dark: #4B2E2A;
    --text-main: #333;
}

/* Global Styles */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-light);
    font-size: 16px;
}

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

/* Header */
header {
    background: linear-gradient(to right, var(--orange-dark), var(--orange-med));
    padding: 6px 20px;
    border-bottom: 4px solid var(--brown-dark);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header .logo {
    max-width: 100px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}
nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
nav ul li a:hover,
nav ul li a.active {
    color: #000;
    background: rgba(255, 255, 255, 0.2);
}

/* Burger Menu */
.burger {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Ensure it's above the mobile menu */
    margin-left: auto; /* Move to the right side */
}
.burger span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}
/* Active state for burger icon */
.burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Close button styling for mobile nav */
#nav-close {
    display: none; /* Hidden by default */
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px; /* Keep on right side */
    transition: transform 0.3s ease;
    padding: 0 10px;
    border-radius: 4px;
    z-index: 1002; /* Above everything else */
}

#nav-close:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* Navigation for small screens */
@media (max-width: 768px) {
    .header-container {
        justify-content: flex-start; /* Align logo to left */
    }
    
    .burger {
        display: flex; /* Only show on mobile */
        margin-left: auto; /* Ensure it's on the right side */
        order: 3; /* Put burger menu last */
    }
    
    header .logo {
        order: 1; /* Logo first */
    }
    
    nav {
        order: 2; /* Nav in the middle */
    }
    .burger.active {
        display: none; /* Hide burger when menu is open */
    }
    /* Only show close button when nav is active */
    #nav-close {
        display: none; /* Hidden by default, even on mobile */
    }
    nav.active #nav-close {
        display: block; /* Only show when nav is active */
    }
    nav ul {
        flex-direction: column;
        display: none;
        width: 100%;
        background: linear-gradient(to right, var(--orange-dark), var(--orange-med));
        position: absolute;
        top: 0;
        left: 0;
        padding: 5px 0 20px 0;
        z-index: 1000;
    }
    nav ul.active {
        display: flex;
        padding-top: 40px;
    }
    nav ul li {
        text-align: center;
        padding: 0;
    }
    nav ul li a {
        font-size: 1.3rem;
        padding: 2px 8px;
        display: block;
    }
    body {
        font-size: 18px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p, li, a {
        font-size: 1.1rem;
    }
    
    .button {
        font-size: 1.1rem;
        padding: 12px 22px;
    }
    
    .slider-prev,
    .slider-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0.9;
    }
    
    .slider-dot {
        width: 14px;
        height: 14px;
        margin: 0 8px;
    }
    
    .slider-dots {
        bottom: 20px;
    }
}

/* Button Styles - for all links with class "button" */
.button {
  background: var(--orange-dark);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid var(--orange-dark);
  text-align: center;
  min-width: 120px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button:hover {
  background: #fff;
  color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Main Content */
main {
    padding: 30px 0;
}
.intro,
.service-info,
.beliefs {
    background: var(--brown-lite);
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
h1,
h2,
h3 {
    font-weight: 700;
    color: var(--brown-dark);
    line-height: 1.3;
}
h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}
h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--orange-med);
    border-radius: 3px;
}
h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Services Overview */
.services-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.service {
    background: #fff;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.service h3 {
    color: var(--orange-dark);
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--brown-lite);
    padding-bottom: 10px;
}
.service p {
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.7;
}
.service .button {
    align-self: flex-start;
    margin-top: auto;
}

/* Other Services */
.other-services-box {
    text-align: center;
    margin: 30px 0 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.other-services-box h2 {
    margin-bottom: 20px;
    color: var(--orange-dark);
}
.other-services-box ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.other-services-box ul li {
    padding: 12px;
    background-color: var(--brown-lite);
    border-radius: 6px;
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--brown-dark);
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    font-size: 0.9rem;
}
footer a {
    color: #fff;
    text-decoration: underline;
}
footer a:hover {
    color: var(--orange-med);
}

/* Service Page Styles */
.service-page {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 30px 0 50px;
  width: 100%;
}

@media (min-width: 900px) {
  .service-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
  }
}

.service-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

@media (min-width: 1200px) {
  .service-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
  }
}

.service-content h1 {
  color: var(--orange-dark);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--brown-lite);
  text-align: center;
}

.service-description {
  margin-bottom: 30px;
}

.service-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 20px;
  background-color: var(--brown-lite);
  border-radius: 8px;
}

.detail-item h3 {
  font-size: 1.2rem;
  color: var(--orange-dark);
  margin-bottom: 10px;
}

.detail-item p {
  margin-bottom: 0;
}

.service-cta {
  margin-top: 30px;
  padding: 20px;
  background-color: var(--brown-lite);
  border-radius: 8px;
  text-align: center;
}

.service-cta h3 {
  margin-bottom: 15px;
}

/* Latest Video Section */
.latest-video-section {
    margin-top: 30px;
    text-align: center;
}

.latest-video-section h3 {
    margin-bottom: 15px;
    color: var(--orange-dark);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.media-section {
  margin: 20px 0 30px;
  text-align: center;
  padding: 0 15px;
}

@media (min-width: 1200px) {
  .media-section {
    padding: 15px 30px 25px;
    background-color: rgba(250, 243, 224, 0.3);
    border-radius: 8px;
  }
}

.image-caption {
  margin-top: 15px;
  font-style: italic;
  color: #666;
  text-align: center;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

/* Slider Styles */
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .slider {
    aspect-ratio: 4 / 3;
    width: 90%;
    min-height: 250px;
    margin: 0 auto;
  }
  
  .slider-image {
    height: 90%;
    max-width: 95%;
    max-height: 95%;
  }
  
  .media-section {
    padding: 0;
    margin-bottom: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .slider {
    aspect-ratio: 16 / 8;
    max-height: 350px;
  }
}

@media (min-width: 1200px) {
  .slider {
    width: 75%;
    margin: 0 auto;
    max-height: 400px;
  }
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.slider-image-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(15px) brightness(0.9);
  transform: scale(1.1);
  z-index: 1;
  transition: opacity 0.8s cubic-bezier(0.33, 0.66, 0.66, 1);
  will-change: opacity;
}

.slider-image-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.8s cubic-bezier(0.33, 0.66, 0.66, 1);
  will-change: opacity;
}

.slider-image {
  height: 90%;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
  background-color: transparent;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slider-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.slider-prev:hover,
.slider-next:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 5px 0;
  z-index: 10;
}

.slider-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.slider-dot.active {
  background: var(--orange-dark);
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.intro {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background-color: var(--brown-lite);
    border-radius: 8px;
}

.intro-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.address {
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--brown-dark);
}

/* Ensure all service pages have consistent width */
.service-page .service-content {
  width: 100%;
}

/* Service page mobile improvements */
@media (max-width: 768px) {
  .service-content {
    padding: 20px 15px;
  }
  
  .service-details {
    padding: 15px;
  }
  
  .detail-item h3 {
    font-size: 1.3rem;
  }
  
  .detail-item p {
    font-size: 1.1rem;
  }
  
  .service-cta {
    padding: 15px;
  }
}
