:root {
    --primary-bg: #111111;
    --secondary-bg: #1a1a1a;
    --card-bg: rgba(0, 0, 0, 0.55);
    --card-bg-darker: rgba(0, 0, 0, 0.7);
    --card-bg-lighter: rgba(0, 0, 0, 0.3); /* For subtle elements like pagination bg */
    --text-light: #e0e0e0;
    --text-medium: #cccccc;
    --text-dark: #333333; /* Primarily for light bg elements if any */
    --accent-gold: #BA9965;
    --accent-gold-darker: #9A7B45;
    --border-color-subtle: rgba(255, 255, 255, 0.1);
    --border-color-medium: rgba(186, 153, 101, 0.3); /* Gold tint border */
    --border-color-strong: var(--accent-gold);
    --focus-outline-color: #6bbaff; /* Bright blue for focus */
    --error-color: #f8aaaa; /* Light red for dark bg */
    --error-border-color: #dc3545;
    --error-bg-color: rgba(220, 53, 69, 0.15);
    --success-color: #b8f5b8; /* Light green for dark bg */
    --success-border-color: #28a745;
    --success-bg-color: rgba(40, 167, 69, 0.15);

    --header-height: 90px; /* Define header height as variable */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 15px); /* Reference header height variable + buffer*/
    font-size: 100%; /* Base font size */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-bg);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Global Elements --- */

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #ffffff; /* Brighter white on hover/focus */
    text-decoration: underline;
}
a:focus-visible { /* Ensure links also get focus outline */
     outline: 2px solid var(--focus-outline-color);
     outline-offset: 2px;
     text-decoration: none; /* Remove underline if outline present */
}


/* Visually hidden class for accessibility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--accent-gold);
  color: var(--primary-bg); /* Black text on gold */
  padding: 10px 15px;
  z-index: 10000;
  transition: top 0.3s ease-in-out;
  border-radius: 0 0 5px 5px;
  font-weight: bold;
  text-decoration: none;
}
.skip-link:hover {
    text-decoration: none;
    color: #ffffff;
    background-color: var(--accent-gold-darker);
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--focus-outline-color); /* Make focus stronger */
  outline-offset: 1px;
  text-decoration: none;
}


/* --- Buttons --- */

.cta-button {
    background-color: var(--accent-gold);
    color: #ffffff; /* Keep white text */
    padding: 12px 28px;
    border: 2px solid var(--accent-gold);
    border-radius: 30px;
    font-size: 18px; /* Adjust as needed */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    line-height: 1.4; /* Ensure consistent line height */
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--accent-gold-darker);
    border-color: var(--accent-gold-darker);
    color: #ffffff;
    transform: translateY(-2px); /* Subtle lift */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none; /* Remove underline from buttons */
}
.cta-button:active {
    transform: translateY(0); /* Press down effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* General focus styling for interactive elements */
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible,
a[role="button"]:focus-visible {
    outline: 2px solid var(--focus-outline-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(107, 186, 255, 0.3); /* Subtle glow */
}
/* Remove default outline from links as they have their own style */
a:focus-visible {
    outline: none;
    box-shadow: none;
}
/* Special handling for elements managing focus internally */
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible,
.thumbnail:focus-visible {
    outline: none;
    box-shadow: none; /* Remove the general focus shadow, handled specifically */
}
/* Style focus specifically for thumbnails */
.thumbnail:focus-visible {
     border-color: var(--focus-outline-color); /* Use focus color for border */
     box-shadow: 0 0 0 2px var(--focus-outline-color); /* Add glow */
}
.thumbnail.active:focus-visible {
     border-color: var(--accent-gold); /* Keep gold border */
     outline: 2px solid var(--focus-outline-color); /* Add blue outline */
     outline-offset: 1px;
     box-shadow: none; /* Remove inner glow if outer outline is present */
}


/* --- Section Styling --- */

.services,
.products,
.faq,
.contact {
    padding: 80px 0;
    background-image: linear-gradient(160deg, var(--secondary-bg), var(--primary-bg));
    background-color: var(--primary-bg);
    color: var(--text-light);
    border-top: 1px solid var(--border-color-subtle);
    position: relative; /* For potential pseudo-elements */
}
/* Add subtle bottom border too */
.services,
.products,
.faq {
    border-bottom: 1px solid var(--border-color-subtle);
}


/* Section Titles */
.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 36px); /* Responsive font size */
    margin-top: 0;
    margin-bottom: 0; /* Removed margin, parent container handles spacing */
    padding-bottom: 15px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

/* Underline effect */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

/* Helper for centering the title block and adding space below */
.center-container {
     display: flex;
     justify-content: center;
     width: 100%;
     margin-bottom: 50px; /* Consistent spacing below title container */
 }

 /* Loading Placeholder Styles */
.loading-placeholder {
    grid-column: 1 / -1; /* Span full grid width */
    text-align: center;
    color: var(--text-medium);
    padding: 40px 20px;
    font-style: italic;
}

/* --- Lightbox Styles --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Even darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px; /* Adjusted size */
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    padding: 0; /* Remove padding, use width/height */
    z-index: 1002;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 44px; /* Set fixed size */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--accent-gold);
    color: #ffffff;
    transform: scale(1.1);
}
/* Specific focus styling for lightbox controls */
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
     background-color: var(--accent-gold);
     color: #ffffff;
     transform: scale(1.1);
     outline: 2px solid var(--focus-outline-color); /* Add outline */
     outline-offset: 2px;
     box-shadow: none; /* Remove default focus glow */
}

.lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 30px; /* Keep close icon slightly larger */
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}
/* Keep transform behavior consistent for hover/focus */
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    transform: translateY(-50%) scale(1.1); /* Keep vertical centering */
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

/* Hide arrows initially, show via JS */
.lightbox-prev,
.lightbox-next {
    display: none;
}

/* --- Form Styles (Common) --- */
.form-group {
    margin-bottom: 25px; /* Consistent spacing */
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-medium);
    font-size: 15px;
}
.required-indicator {
    color: var(--accent-gold);
    margin-left: 4px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select { /* Added select styling */
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Slightly less contrast */
}

textarea {
    min-height: 120px;
    resize: vertical;
}
select {
     appearance: none;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23BA9965' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); /* Embed chevron */
     background-repeat: no-repeat;
     background-position: right 15px center;
     background-size: 16px 16px;
     padding-right: 40px; /* Space for chevron */
 }
/* Focus state for form elements */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-gold);
    /* outline and box-shadow handled by global focus style */
}

/* Error state styling */
input.invalid, textarea.invalid, select.invalid {
    border-color: var(--error-border-color);
    background-color: rgba(220, 53, 69, 0.1); /* Subtle red background */
}
.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 6px;
    display: block; /* Ensure it takes space */
    min-height: 1.2em; /* Prevent layout shift */
}

/* Form Feedback Area */
.form-feedback {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    display: none; /* Hidden by default */
    border: 1px solid transparent;
}
.form-feedback.success {
    background-color: var(--success-bg-color);
    border-color: var(--success-border-color);
    color: var(--success-color);
    display: block;
}
.form-feedback.error {
    background-color: var(--error-bg-color);
    border-color: var(--error-border-color);
    color: var(--error-color);
    display: block;
}

/* Spinner */
.spinner {
    display: inline-flex; /* Use flex for alignment */
    align-items: center;
    margin-left: 15px;
    color: var(--accent-gold);
    font-size: 16px; /* Match button text size */
    vertical-align: middle;
}
.spinner i {
    margin-right: 8px; /* Space between icon and text */
    animation: fa-spin 1.5s infinite linear;
}
@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Active Nav Link Style --- */
.desktop-nav a.active,
.mobile-menu a.active {
    color: #ffffff !important;
    font-weight: bold;
    /* border-bottom: 2px solid var(--accent-gold); */
    /* padding-bottom: 2px; */
    /* Use pseudo-element for a cleaner underline effect */
    position: relative;
}
.desktop-nav a.active::after,
.mobile-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Position below text */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
}

/* Remove default hover/focus effects if active */
.desktop-nav a.active:hover,
.mobile-menu a.active:hover,
.desktop-nav a.active:focus,
.mobile-menu a.active:focus {
    text-decoration: none; /* No underline needed */
}
/* Ensure active link focus is visible */
.desktop-nav a.active:focus-visible,
.mobile-menu a.active:focus-visible {
    outline: 2px solid var(--focus-outline-color);
     outline-offset: 4px; /* Offset more due to underline */
}