/* Custom CSS for fonts and color palette */
body {
    font-family: 'Inter', sans-serif;
    color: #333; /* Dark grey for readability */
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif; /* Default for headings */
}
/* Specific font for larger, more impactful titles */
.title-merriweather {
    font-family: 'Merriweather', serif;
}
/* Color Palette: Tosca/Sea Green, Soft Gold, White/Light Grey */
.bg-primary-green { 
    background-color: #2f855a; /* Updated to a proper green color */
}
.text-primary-green { 
    color: #2f855a; 
}
.hover\:bg-green-600:hover { 
    background-color: #276749; 
}
.hover\:bg-green-700:hover { 
    background-color: #22543d; 
}
.bg-secondary-gold { 
    background-color: #FFD700; 
}
.text-secondary-gold { 
    color: #FFD700; 
}
.bg-light-grey { 
    background-color: #F8F8F8; 
}
.text-dark-grey { 
    color: #333; 
}
.text-medium-grey { 
    color: #666; 
}
.border-light-grey { 
    border-color: #E0E0E0; 
}

/* Placeholder image styling */
.placeholder-image {
    background-color: #E0E0E0; /* Light grey */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9E9E; /* Medium grey icon */
    font-size: 3rem;
    border-radius: 0.5rem; /* Rounded corners */
}

/* Smooth scroll for navigation */
html {
    scroll-behavior: smooth;
}

/* Basic animation for fade-in on scroll (conceptual, requires JS for full implementation) */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Counter animation (conceptual, requires JS) */
.counter-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Chat widget animations */
.chat-message {
    animation: fadeInMessage 0.3s ease-in;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
button, .btn {
    transition: all 0.3s ease;
}

/* Navigation link active states */
.nav-link.active, .mobile-nav-link.active {
    color: #2f855a;
    font-weight: 600;
}

/* Accordion icon rotation */
.accordion-icon {
    transition: transform 0.3s ease;
}
.accordion-icon.rotate-180 {
    transform: rotate(180deg);
}

/* Accordion enhancements */
.accordion-header {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.accordion-header:hover {
    border-left-color: #2f855a;
    transform: translateX(2px);
}

.accordion-header:focus {
    outline: none;
}

.accordion-content {
    line-height: 1.6;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.accordion-content.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
}

.accordion-content:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Image loading optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Image placeholder while loading */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Gallery hover effects */
.gallery-item img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Prevent text cursor on non-input elements */
body * {
    cursor: default;
}

/* Restore proper cursors for specific elements */
a, button, .cursor-pointer, [onclick] {
    cursor: pointer !important;
}

input, textarea, [contenteditable="true"] {
    cursor: text !important;
}

/* Ensure chat input specifically has normal cursor and caret */
#chatInput, #chatInput:focus, .chat-input {
    cursor: text !important;
    caret-color: #000 !important;
}

/* Prevent text selection on UI elements */
.accordion-header, button, .nav-link, .mobile-nav-link, .gallery-item {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow text selection in content areas */
p, .accordion-content, article, .text-content {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Remove any possibility of caret/text cursor appearing */
*:not(input):not(textarea):not([contenteditable="true"]) {
    caret-color: transparent;
}

/* Ensure chat input always has visible caret */
#chatInput {
    caret-color: #333 !important;
    cursor: text !important;
}

/* Ensure all form inputs have visible caret and proper cursor */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
textarea,
#chatInput,
.chat-input,
form input {
    caret-color: #333 !important;
    cursor: text !important;
}

/* Override any global caret-color settings for inputs */
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]) {
    caret-color: #333 !important;
}

/* Ensure divs and other elements don't become focusable */
div:not([tabindex]):not([contenteditable="true"]) {
    outline: none;
}

div:not([tabindex]):not([contenteditable="true"]):focus {
    outline: none;
    box-shadow: none;
}
.counter-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Accordion icon rotation */
.accordion-icon.rotate-180 {
    transform: rotate(180deg);
}

.nav-link,
.mobile-nav-link {
  position: relative;
  color: #666666;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: #4CAF50;
}

.nav-link::after,
.mobile-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #4CAF50;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.mobile-nav-link:hover::after {
  width: 100%;
}

.nav-link.active,
.mobile-nav-link.active {
  color: #4CAF50;
  font-weight: 600;
}

@keyframes fadeUp {
0% {
  opacity: 0;
  transform: translateY(20px);
}
100% {
  opacity: 1;
  transform: translateY(0);
}
}
.animate-fade-up {
animation: fadeUp 1s ease-out forwards;
}

/* Mobile Menu Hamburger Animation */
#menu-toggle-btn {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hamburger-icon, #close-icon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
}

/* Hamburger icon states */
#hamburger-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

#hamburger-icon.hidden {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

/* Close icon states */
#close-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
}

#close-icon:not(.hidden) {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Mobile menu slide animation */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: top center;
}

#mobile-menu:not(.hidden) {
    animation: slideDown 0.3s ease-out forwards;
}

#mobile-menu.hidden {
    animation: slideUp 0.3s ease-in forwards;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes slideUp {
    0% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.95);
    }
}

/* Hover effect for menu button */
#menu-toggle-btn:hover #hamburger-icon:not(.hidden),
#menu-toggle-btn:hover #close-icon:not(.hidden) {
    transform: scale(1.1);
    color: #2f855a;
}

/* Active state */
#menu-toggle-btn:active #hamburger-icon:not(.hidden),
#menu-toggle-btn:active #close-icon:not(.hidden) {
    transform: scale(0.95);
}

/* Desktop - Hide mobile menu button */
@media (min-width: 768px) {
    #menu-toggle-btn {
        display: none !important;
    }
}
