/*==============================
  Base Styles
==============================*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Prevent horizontal scrolling globally */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Ensure all elements don't cause horizontal overflow */
* {
    box-sizing: border-box !important;
}

/* Prevent any element from extending beyond viewport */
body > * {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/*==============================
   HEADER - SIMPLIFIED
==============================*/
header {
  background-color: #fffdf5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #002c1b;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Segoe UI', sans-serif;
}

.logo img {
  height: 50px;
  width: auto;
  margin-right: 10px;
}

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a:not(.nav-cta) {
  text-decoration: none;
  color: #002c1b;
  font-weight: 500;
  font-size: 1rem;
  font-family: 'Segoe UI', sans-serif;
  transition: color 0.3s;
}

.main-nav a:not(.nav-cta):hover {
  color: #007f5f;
}

.nav-cta {
  background: #116B21;
  border: 2px solid #116B21;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.nav-cta:hover {
  background: #0C4D17;
  color: white;
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-toggle:hover {
    background-color: rgba(0, 44, 27, 0.1);
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #002c1b;
    margin-bottom: 3px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
    border-radius: 2px;
}

.hamburger span:last-child {
    margin-bottom: 0;
}

.mobile-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

body.mobile-nav-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/*==============================
   HERO
==============================*/
.hero {
  position: relative;
  background: url('https://static.wixstatic.com/media/c837a6_8bdf6d31716e47f28f553df74033ed63~mv2.jpg/v1/fill/w_1873,h_1178,al_c,q_90,usm_0.66_1.00_0.01,enc_avif,quality_auto/c837a6_8bdf6d31716e47f28f553df74033ed63~mv2.jpg') center/cover no-repeat;
  color: white;
  padding: 140px 60px 160px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: 'Segoe UI', sans-serif;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-family: 'Segoe UI', sans-serif;
}

.hero .cta-button {
  background-color: #fffdf5;
  color: #002c1b;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hero .cta-button:hover {
  background-color: #f0eae0;
}

/*==============================
  General Section Styling
==============================*/
section {
    padding: 3rem 2rem;
}

/*==============================
  Cards (Services & Blog)
==============================*/
.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}
.card h3 {
    margin: 1rem 0 0.5rem;
    color: #116B21;
}
.card p {
    font-size: 0.95rem;
    color: #555;
}
.card a {
    display: inline-block;
    margin-top: 1rem;
    color: #116B21;
    text-decoration: underline;
}

/*==============================
  Our Work (Seamless Scrolling)
==============================*/
.work {
  background: #fff;
  text-align: center;
  padding: 50px 20px;
}

.work h2 {
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: #002c1b;
}
        
.picture-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 0 auto;
}
        
.image:hover {
  animation-play-state: paused;
}

.image img {
  height: 300px;
  margin: 0 5px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  object-fit: cover;
}

.image {
  display: flex;
  animation: scroll linear infinite;
}

.picture-slider:hover .image {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--scroll-distance)); }
}

/*==============================
  Buttons
==============================*/
.btn-primary {
    background: #116B21;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}
.btn-primary:hover {
    background: #0C4D17;
}

.btn-outline {
    background: white;
    border: 2px solid #116B21;
    color: #116B21;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}
.btn-outline:hover {
    background: #f0f0f0;
}

/*==============================
  Contact Form
==============================*/
.contact form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact input,
.contact select,
.contact textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

/*==============================
  BACK TO TOP BUTTON
==============================*/
#back-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  cursor: pointer;
  background-color: #16a34a;
  color: white;
  padding: 12px;
  border: none;
  outline: none;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
  transition: all 0.3s ease;
  font-size: 18px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

#back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#back-top:hover {
  background-color: #15803d;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

#back-top:active {
  transform: translateY(0) scale(0.95);
  transition: transform 0.1s ease;
}

/* Hide back to top when mobile nav is open */
body.mobile-nav-open #back-top {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/*==============================
  FOOTER STYLES (IMPROVED)
==============================*/
.footer-redesigned {
    background: linear-gradient(135deg, #f8f6e8 0%, #f0f0e8 100%);
    color: #333;
    padding: 60px 0 20px;
    border-top: 1px solid #e5e5e5;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.footer-section {
    width: 100%;
}

.footer-section h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
    margin-top: 0;
}

.company-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.company-logo img {
    height: 35px;
    width: auto;
    margin-right: 10px;
}

.company-logo h3 {
    margin: 0;
    color: #116B21;
    font-size: 1.2rem;
}

.company-info p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.btn-book-now {
    background: #2c5530;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-book-now:hover {
    background: #1e3a22;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
}

.hours-list {
    margin-bottom: 20px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.9rem;
}

.hour-item:last-child {
    border-bottom: none;
}

.hour-item span:first-child {
    font-weight: 500;
    color: #2c3e50;
}

.hour-item span:last-child {
    color: #666;
}

.contact-header {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.contact-details {
    margin-bottom: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: #2c3e50;
}

.contact-item a {
    color: #116B21;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #0C4D17;
    text-decoration: underline;
}

.contact-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    opacity: 0.8;
}

.follow-us p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #116B21;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-links a:hover {
    background: #0C4D17;
    transform: translateY(-2px);
}

.reviews-section {
    background: rgba(17, 107, 33, 0.05);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(17, 107, 33, 0.1);
    width: 100%;
}

.reviews-section p {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 0.9rem;
}

.review-btn {
    background: #116B21;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.review-btn:hover {
    background: #0C4D17;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(17, 107, 33, 0.3);
}

.review-btn i {
    color: #ffd700;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom a {
    color: #116B21;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/*==============================
  MOBILE RESPONSIVE STYLES
==============================*/
@media (max-width: 950px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .company-info {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Keep the review box full width on mobile */
    .reviews-section {
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 430px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-redesigned {
        padding: 40px 0 20px;
    }
    
    /* Ensure review box takes full width on small screens */
    .reviews-section {
        width: 100%;
        max-width: none;
        padding: 15px 10px;
    }
    
    .review-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom a {
    color: #116B21;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Contact icons styling */
.contact-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    opacity: 0.8;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Header Styles */
header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 253, 245, 0.95);
    backdrop-filter: blur(10px);
}

header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

/* Form Validation Styles */
.contact input.error,
.contact select.error,
.contact textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.contact input.success,
.contact select.success,
.contact textarea.success {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.contact textarea[name="notes"] {
    min-height: 120px;
    width: 100% !important;
    max-width: 100% !important;
    resize: vertical;
    font-family: inherit;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
}

.notification-success {
    background: #22c55e;
    color: white;
}

.notification-error {
    background: #ef4444;
    color: white;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    line-height: 1;
}

.notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Animations */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #116B21;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

body.keyboard-navigation *:focus {
    outline: 2px solid #116B21;
    outline-offset: 2px;
}

/* Mobile Responsive - FIXED VERSION */
@media (max-width: 950px) { /* Changed from 768px to 950px to catch that problematic range */
    .header-container {
        padding: 10px 20px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo img {
        height: 40px;
    }

    .mobile-toggle {
        display: flex !important;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 253, 245, 0.98);
        backdrop-filter: blur(15px);
        z-index: 400;
        
        transform: translateX(100%);
        transition: transform 0.3s ease;
        
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        padding: 2rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .main-nav.nav-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(0) !important;
    }

    .main-nav a {
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        padding: 1rem 2rem !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        text-align: center !important;
        min-width: 200px !important;
        display: block !important;
        color: #002c1b !important;
        text-decoration: none !important;
    }

    .main-nav a:not(.nav-cta):hover {
        background-color: rgba(17, 107, 33, 0.1) !important;
        transform: translateY(-2px) !important;
        color: #007f5f !important;
    }

    .main-nav .nav-cta {
        background: #116B21 !important;
        color: white !important;
        border: 2px solid #116B21 !important;
        font-size: 1.25rem !important;
        padding: 1rem 2rem !important;
        margin-top: 1rem !important;
        border-radius: 20px !important;
    }

    .main-nav .nav-cta:hover {
        background: #0C4D17 !important;
        transform: translateY(-2px) scale(1.05) !important;
        color: white !important;
    }

    .hero {
        padding: 100px 20px 120px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    #back-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        z-index: 600 !important;
    }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .company-info {
        text-align: center;
    }

    .operating-hours,
    .contact-info {
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }

    .reviews-section {
        margin-top: 20px;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Tablet-specific adjustments for the 770-950px range */
@media (min-width: 770px) and (max-width: 950px) {
    .header-container {
        padding: 12px 30px; /* Slightly more padding than mobile */
    }
    
    .logo {
        font-size: 1.6rem; /* Slightly larger than mobile */
    }
    
    .logo img {
        height: 42px; /* Slightly larger than mobile */
    }
    
    .hero {
        padding: 120px 40px 140px; /* More padding than mobile */
    }
    
    .hero h1 {
        font-size: 2.8rem; /* Slightly larger than mobile */
    }
    
    .hero p {
        font-size: 1.1rem; /* Slightly larger than mobile */
    }
}

/* Keep the existing mobile styles for smaller screens */
@media (max-width: 430px) {
    .header-container {
        padding: 8px 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo img {
        height: 35px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    #back-top {
        bottom: 15px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
    }

    .footer-container {
        padding: 0 15px;
    }

    .company-logo h3 {
        font-size: 1.1rem;
    }

    .btn-book-now {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}