/*
 * Main CSS File for mediniainamukai.lt
 * Author: Mediniai Nameliai
 * Version: 1.1.0 (Consolidated)
 * Copyright 2025
 */

/* ==================== GLOBAL VARIABLES ==================== */
:root {
    /* Colors */
    --primary-color: #7aae3a;
    --primary-dark: #5c882c;
    --primary-light: #9cd168;
    --secondary-color: #3d7a10; /* Was defined in gallery.html */
    --tertiary-color: #9cd168; /* Was defined in gallery.html, same as light */
    --dark-color: #2d2d2d;
    --gray-dark: #555555;
    --gray-medium: #888888;
    --gray-light: #f5f5f5;
    --light-color: #ffffff;
    --overlay-dark: rgba(45, 45, 45, 0.8);
    --overlay-light: rgba(255, 255, 255, 0.9);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --gray-border: #ddd;
    --gray-background: #f8f8f8; /* From gallery.html body */

    /* Typography */
    --font-primary: 'Cabin', 'Roboto', sans-serif; /* Added Cabin as primary */
    --font-secondary: 'Montserrat', 'Poppins', sans-serif; /* Added Poppins */
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem;  /* 8px */
    --spacing-md: 1rem;    /* 16px */
    --spacing-lg: 1.5rem;  /* 24px */
    --spacing-xl: 2rem;    /* 32px */
    --spacing-xxl: 3rem;   /* 48px */
    --section-padding: 6rem; /* 96px */

    /* Containers */
    --container-max-width: 1320px;
    --container-padding: 15px;

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-pill: 50px;
    --border-radius-rounded: 50%;

    /* Box Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index levels */
    --z-back: -1;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    --z-preloader: 9999;
}

/* ==================== BASE STYLES ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on fixed header height */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 1.75rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

ul {
    list-style: none;
    padding-left: 0;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button, select {
    text-transform: none;
}

button, [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
     appearance: button;
     background-color: transparent;
     border: none;
     cursor: pointer;
}

button:focus:not(:focus-visible) {
    outline: none;
}

/* ==================== UTILITY CLASSES ==================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
}

.section-padding {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.bg-primary { background-color: var(--primary-color); color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); color: var(--light-color); }
.bg-light { background-color: var(--gray-light); }
.bg-gray { background-color: var(--gray-background); } /* Added */

.text-primary { color: var(--primary-color); }
.text-dark { color: var(--dark-color); }
.text-light { color: var(--light-color); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.highlight { color: var(--primary-color); font-weight: var(--font-weight-bold); }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.flex-wrap { flex-wrap: wrap !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
/* ... other margin/padding utilities ... */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mb-5 { margin-bottom: var(--spacing-xl) !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--spacing-xs) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.mt-5 { margin-top: var(--spacing-xl) !important; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-medium);
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: var(--line-height-base);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:focus { outline: none; }
.btn:active { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Ripple effect (optional) */
.btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; background: rgba(255, 255, 255, 0.3); opacity: 0; border-radius: 100%; transform: scale(1, 1) translate(-50%, -50%); transform-origin: 50% 50%; z-index: -1; }
.btn:active::after { animation: ripple 0.6s linear; }
@keyframes ripple { 0% { transform: scale(0, 0) translate(-50%, -50%); opacity: 1; } 100% { transform: scale(40, 40) translate(-50%, -50%); opacity: 0; } }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.25rem; }
.btn-block { display: block; width: 100%; }

.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--light-color); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); color: var(--light-color); }

.btn-secondary { background-color: var(--secondary-color); border-color: var(--secondary-color); color: var(--light-color); }
.btn-secondary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); color: var(--light-color); }

.btn-light { background-color: var(--light-color); border-color: var(--gray-border); color: var(--dark-color); }
.btn-light:hover { background-color: var(--gray-light); border-color: var(--gray-border); color: var(--dark-color); }

.btn-outline-primary { background-color: transparent; border-color: var(--primary-color); color: var(--primary-color); }
.btn-outline-primary:hover { background-color: var(--primary-color); color: var(--light-color); }

.btn-outline-light { background-color: transparent; border-color: var(--light-color); color: var(--light-color); }
.btn-outline-light:hover { background-color: var(--light-color); color: var(--primary-color); border-color: var(--light-color); }

.btn-outline-secondary { background-color: transparent; border-color: var(--gray-medium); color: var(--gray-medium); }
.btn-outline-secondary:hover { background-color: var(--gray-medium); color: var(--light-color); border-color: var(--gray-medium); }


/* ==================== FORMS ==================== */
.form-group { margin-bottom: var(--spacing-lg); position: relative; }
.form-group label { display: block; margin-bottom: var(--spacing-sm); font-weight: var(--font-weight-medium); color: var(--dark-color); }

.form-control { display: block; width: 100%; padding: 0.75rem 1rem; font-size: 1rem; line-height: 1.5; color: var(--dark-color); background-color: var(--light-color); background-clip: padding-box; border: 1px solid var(--gray-border); border-radius: var(--border-radius-md); transition: border-color var(--transition-normal), box-shadow var(--transition-normal); }
.form-control:focus { color: var(--dark-color); background-color: var(--light-color); border-color: var(--primary-color); outline: 0; box-shadow: 0 0 0 0.2rem rgba(122, 174, 58, 0.25); }
.form-control::placeholder { color: var(--gray-medium); opacity: 1; }
.form-control:disabled, .form-control[readonly] { background-color: var(--gray-light); opacity: 1; }
textarea.form-control { height: auto; min-height: 120px; resize: vertical; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235c882c' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px 12px; padding-right: 2.5rem; }

.form-checkbox { display: flex; align-items: flex-start; }
.form-checkbox input[type="checkbox"] { margin-top: 0.3rem; margin-right: var(--spacing-sm); flex-shrink: 0; width: 1em; height: 1em; }
.form-checkbox label { margin-bottom: 0; font-weight: var(--font-weight-regular); font-size: 0.9rem; cursor: pointer; }
.form-checkbox label a { text-decoration: underline; }
.form-checkbox label a:hover { color: var(--primary-dark); }

.form-error { display: block; /* Changed from none to block */ min-height: 1.2em; /* Reserve space */ color: var(--danger-color); font-size: 0.85rem; margin-top: var(--spacing-xs); visibility: hidden; /* Hide text visually */ }
.form-control.error { border-color: var(--danger-color); }
.form-control.error + .form-error,
.form-checkbox input[type="checkbox"].error + label + .form-error { visibility: visible; /* Show text */ } /* Checkbox error handling */

/* Form Status Message */
.form-status { margin-top: var(--spacing-md); font-weight: var(--font-weight-medium); min-height: 1.5em; }
.form-status.error { color: var(--danger-color); }
.form-status.success { color: var(--success-color); }
.form-status.loading::before { content: ''; display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; margin-right: var(--spacing-sm); vertical-align: middle; }

.form-success { display: none; text-align: center; padding: var(--spacing-xl) 0; }
.form-success.active { display: block; }
.success-icon { font-size: 3rem; color: var(--success-color); margin-bottom: var(--spacing-md); }
.form-success h3 { margin-bottom: var(--spacing-sm); font-weight: var(--font-weight-bold); }
.form-success p { color: var(--gray-dark); }

/* Highlight form on focus or error */
.contact-form.highlight-form { animation: highlightForm 1.5s ease-out; }
@keyframes highlightForm { 0% { box-shadow: 0 0 0 0 rgba(122, 174, 58, 0.4); } 50% { box-shadow: 0 0 0 15px rgba(122, 174, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(122, 174, 58, 0); } }


/* ==================== PRELOADER ==================== */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--light-color); display: flex; justify-content: center; align-items: center; z-index: var(--z-preloader); opacity: 1; visibility: visible; transition: opacity var(--transition-slow), visibility var(--transition-slow); }
.preloader.fade-out { opacity: 0; visibility: hidden; }
.loader { text-align: center; }
.loader svg { width: 100px; height: 100px; margin-bottom: var(--spacing-md); }
.house-outline { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 2s forwards ease-in-out infinite; }
.house-door, .house-window { opacity: 0; animation: appear 2s forwards ease-in-out infinite; }
.house-door { animation-delay: 1s; }
.house-window-1 { animation-delay: 1.2s; }
.house-window-2 { animation-delay: 1.4s; }
.loader p { color: var(--primary-color); font-weight: var(--font-weight-medium); letter-spacing: 2px; animation: pulse 1.5s infinite; }

@keyframes draw { 0% { stroke-dashoffset: 300; } 100% { stroke-dashoffset: 0; } }
@keyframes appear { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* ==================== SCROLL PROGRESS ==================== */
.scroll-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: transparent; z-index: var(--z-fixed); pointer-events: none; }
.scroll-progress-bar { height: 100%; background: var(--primary-color); width: 0%; transition: width 0.1s linear; }

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top { position: fixed; right: 30px; bottom: 30px; width: 50px; height: 50px; background-color: var(--primary-color); color: var(--light-color); border-radius: var(--border-radius-rounded); display: flex; justify-content: center; align-items: center; border: none; cursor: pointer; z-index: var(--z-tooltip); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--transition-normal); }
.back-to-top.active { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--primary-dark); transform: translateY(-5px) scale(1.1); box-shadow: var(--shadow-lg); }
.back-to-top i { font-size: 1.2rem; }


/* ==================== HEADER ==================== */
.header { position: fixed; top: 0; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: var(--shadow-sm); z-index: var(--z-fixed); transition: all var(--transition-normal); padding: 15px 0; }
.header.scrolled { padding: 8px 0; box-shadow: var(--shadow-md); background-color: rgba(255, 255, 255, 0.98); }
.header-content { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; }
.logo a { display: flex; align-items: center; color: var(--dark-color); }
.logo img { height: 50px; margin-right: var(--spacing-md); transition: height var(--transition-normal); }
.header.scrolled .logo img { height: 40px; }
.logo-text h1 { font-size: 1.5rem; margin-bottom: 0; color: var(--primary-color); font-weight: var(--font-weight-bold); transition: font-size var(--transition-normal); }
.header.scrolled .logo-text h1 { font-size: 1.3rem; }
.logo-text span { display: block; font-size: 0.85rem; color: var(--gray-dark); }

.main-nav { display: none; /* Hidden on mobile, shown via media query */ }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0 var(--spacing-md); }
.main-nav a { color: var(--dark-color); font-weight: var(--font-weight-medium); padding: 10px 0; position: relative; display: block; transition: color var(--transition-normal); }
.main-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width var(--transition-normal); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }

.header-actions { display: flex; align-items: center; }

.mobile-menu-toggle { display: block; /* Shown by default, hidden via media query */ background: transparent; border: none; cursor: pointer; width: 30px; height: 24px; position: relative; margin-left: var(--spacing-md); z-index: 1002; transition: all var(--transition-normal); }
.mobile-menu-toggle span { display: block; position: absolute; height: 3px; width: 100%; background: var(--dark-color); border-radius: 3px; opacity: 1; left: 0; transform: rotate(0deg); transition: all 0.25s ease-in-out; }
.mobile-menu-toggle span:nth-child(1) { top: 0; transform-origin: left center; }
.mobile-menu-toggle span:nth-child(2) { top: 10px; transform-origin: left center; }
.mobile-menu-toggle span:nth-child(3) { top: 20px; transform-origin: left center; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: -2px; left: 4px; background-color: var(--primary-color); }
.mobile-menu-toggle.active span:nth-child(2) { width: 0%; opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 22px; left: 4px; background-color: var(--primary-color); }

/* Mobile Menu Overlay */
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--overlay-dark); z-index: var(--z-modal); opacity: 0; visibility: hidden; transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; overflow: hidden; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-container { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100%; background-color: var(--light-color); overflow-y: auto; box-shadow: var(--shadow-lg); transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); padding: var(--spacing-xl); display: flex; flex-direction: column; z-index: calc(var(--z-modal) + 1); }
.mobile-menu-overlay.active .mobile-menu-container { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-xl); padding-bottom: var(--spacing-md); border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.mobile-logo { height: 40px; }
.mobile-menu-close { background: transparent; border: none; font-size: 1.5rem; color: var(--dark-color); cursor: pointer; transition: all var(--transition-normal); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
.mobile-menu-close:hover { color: var(--primary-color); background-color: rgba(122, 174, 58, 0.1); transform: rotate(90deg); }
.mobile-nav { margin-bottom: var(--spacing-xl); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.mobile-nav a { display: block; color: var(--dark-color); font-weight: var(--font-weight-medium); font-size: 1.2rem; padding: var(--spacing-md) 0; transition: all var(--transition-normal); position: relative; }
.mobile-nav a::after { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gray-medium); transition: all var(--transition-normal); opacity: 0; }
.mobile-nav a:hover::after, .mobile-nav a.active::after { opacity: 1; right: 10px; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary-color); padding-left: 10px; }
.mobile-contact-info { margin-top: auto; padding-top: var(--spacing-xl); border-top: 1px solid rgba(0, 0, 0, 0.1); }
.mobile-contact-link { display: flex; align-items: center; color: var(--dark-color); font-weight: var(--font-weight-medium); margin-bottom: var(--spacing-md); padding: var(--spacing-sm) 0; transition: all var(--transition-normal); }
.mobile-contact-link:hover { color: var(--primary-color); transform: translateX(5px); }
.mobile-contact-link i { color: var(--primary-color); margin-right: var(--spacing-sm); font-size: 1.1rem; width: 20px; text-align: center; }
.mobile-social-links { display: flex; margin-top: var(--spacing-lg); }
.mobile-social-links a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background-color: rgba(122, 174, 58, 0.1); color: var(--primary-color); border-radius: var(--border-radius-rounded); margin-right: var(--spacing-sm); transition: all var(--transition-normal); }
.mobile-social-links a:hover { background-color: var(--primary-color); color: var(--light-color); transform: translateY(-3px); }

/* Add no-scroll class to body when mobile menu is open */
body.no-scroll { overflow: hidden; }


/* ==================== HERO SECTION ==================== */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden; margin-top: 74px; /* Approximate header height */ }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: var(--z-back); }
.hero-video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)); }
.hero-content { position: relative; z-index: 1; color: var(--light-color); text-align: center; max-width: 800px; margin: 0 auto; padding: 0 var(--spacing-md); }
.hero-title { font-size: clamp(2.5rem, 6vw, 3.5rem); margin-bottom: var(--spacing-lg); font-weight: var(--font-weight-bold); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); color: inherit; /* Ensure it inherits the white color from .hero-content */ }
.hero-subtitle { font-size: clamp(1.1rem, 3vw, 1.25rem); margin-bottom: var(--spacing-xl); opacity: 0.9; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }
.hero-buttons { margin-bottom: var(--spacing-xl); }
.hero-buttons .btn { margin: 0 var(--spacing-sm); margin-bottom: var(--spacing-md); }
.hero-features { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--spacing-lg); }
.hero-feature { display: flex; align-items: center; font-weight: var(--font-weight-medium); }
.hero-feature i { color: var(--primary-light); margin-right: var(--spacing-sm); font-size: 1.2rem; }
.hero-scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 1; animation: bounce 2s infinite; }
.hero-scroll-down a { display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; background-color: rgba(255, 255, 255, 0.1); border-radius: var(--border-radius-rounded); color: var(--light-color); font-size: 1.2rem; transition: all var(--transition-normal); }
.hero-scroll-down a:hover { background-color: var(--primary-color); transform: translateY(-5px); }

@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }


/* ==================== SECTION HEADER ==================== */
.section-header { text-align: center; max-width: 800px; margin: 0 auto var(--spacing-xxl); }
.section-subtitle { display: inline-block; color: var(--primary-color); font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: var(--spacing-sm); position: relative; padding: 0 10px; }
.section-subtitle::before, .section-subtitle::after { content: ''; position: absolute; top: 50%; width: 30px; height: 1px; background-color: var(--primary-color); opacity: 0.5; }
.section-subtitle::before { left: -30px; }
.section-subtitle::after { right: -30px; }
.section-title { font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: var(--spacing-md); position: relative; padding-bottom: var(--spacing-md); }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background-color: var(--primary-color); border-radius: 2px; }
.section-description { color: var(--gray-dark); font-size: 1.1rem; }


/* ==================== ABOUT SECTION ==================== */
.about-content { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xl); }
.about-image { flex: 1 1 45%; min-width: 300px; }
.about-image-box { position: relative; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img { width: 100%; border-radius: var(--border-radius-lg); transition: transform var(--transition-slow); }
.about-image-box:hover .about-img { transform: scale(1.05); }
.experience-badge { position: absolute; bottom: 30px; right: 30px; width: 120px; height: 120px; background-color: var(--primary-color); color: var(--light-color); border-radius: var(--border-radius-rounded); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: var(--spacing-md); box-shadow: var(--shadow-md); border: 3px solid var(--light-color); }
.experience-badge .years { font-size: 2.5rem; font-weight: var(--font-weight-bold); line-height: 1; margin-bottom: 5px; }
.experience-badge .text { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.about-text { flex: 1 1 50%; min-width: 300px; }
.about-text h3 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: var(--spacing-lg); position: relative; padding-bottom: var(--spacing-md); }
.about-text h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background-color: var(--primary-color); }
.about-features { list-style: none; padding: 0; margin: var(--spacing-lg) 0; }
.about-features li { display: flex; margin-bottom: var(--spacing-lg); }
.about-features i { flex-shrink: 0; width: 40px; height: 40px; background-color: rgba(122, 174, 58, 0.1); color: var(--primary-color); border-radius: var(--border-radius-rounded); display: flex; justify-content: center; align-items: center; margin-right: var(--spacing-md); margin-top: 5px; font-size: 1.1rem; }
.about-features h4 { margin-bottom: var(--spacing-xs); font-size: 1.2rem; font-weight: var(--font-weight-semibold); }
.about-features p { color: var(--gray-dark); margin-bottom: 0; }
.about-counters { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-xl); margin-top: var(--spacing-xxl); }
.counter-item { flex: 1; min-width: 180px; max-width: 250px; text-align: center; padding: var(--spacing-xl); background-color: var(--light-color); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md); transition: all var(--transition-normal); }
.counter-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.counter-icon { width: 70px; height: 70px; background-color: rgba(122, 174, 58, 0.1); color: var(--primary-color); border-radius: var(--border-radius-rounded); display: flex; justify-content: center; align-items: center; margin: 0 auto var(--spacing-md); font-size: 1.8rem; transition: all var(--transition-normal); }
.counter-item:hover .counter-icon { background-color: var(--primary-color); color: var(--light-color); transform: rotateY(180deg); }
.counter-number { font-size: 2.5rem; font-weight: var(--font-weight-bold); color: var(--dark-color); margin-bottom: var(--spacing-sm); min-height: 1.2em; /* Prevent jump */ }
.counter-text { color: var(--gray-dark); font-weight: var(--font-weight-medium); }


/* ==================== PRODUCTS SECTION ==================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--spacing-xl); }
.product-card { background-color: var(--light-color); border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: all var(--transition-normal); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.product-image { position: relative; height: 250px; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .product-image img { transform: scale(1.1); }
.product-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity var(--transition-normal); }
.product-card:hover .product-overlay { opacity: 1; }
.product-content { padding: var(--spacing-xl); display: flex; flex-direction: column; flex-grow: 1; }
.product-content h3 { font-size: 1.5rem; margin-bottom: var(--spacing-sm); }
.product-content p { color: var(--gray-dark); margin-bottom: var(--spacing-lg); flex-grow: 1; /* Push features/link down */ }
.product-features { display: flex; flex-wrap: wrap; gap: var(--spacing-md); margin-bottom: var(--spacing-md); }
.product-features span { display: flex; align-items: center; font-size: 0.9rem; color: var(--gray-dark); }
.product-features i { color: var(--primary-color); margin-right: var(--spacing-xs); }
.product-link { display: inline-flex; align-items: center; color: var(--primary-color); font-weight: var(--font-weight-semibold); transition: all var(--transition-normal); margin-top: auto; /* Aligns link to bottom */ }
.product-link i { margin-left: var(--spacing-xs); transition: transform var(--transition-normal); }
.product-link:hover { color: var(--secondary-color); }
.product-link:hover i { transform: translateX(5px); }


/* ==================== GALLERY SECTION ==================== */
/* Gallery Controls */
.gallery-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--spacing-md); margin-bottom: var(--spacing-lg); }
.gallery-search { position: relative; display: flex; align-items: center; }
.gallery-search-input { padding: 0.5rem 2.5rem 0.5rem 1rem; border: 1px solid var(--gray-border); border-radius: var(--border-radius-pill); font-size: 0.9rem; width: 250px; }
.search-clear { position: absolute; right: 0.5rem; background: none; border: none; color: var(--gray-medium); cursor: pointer; font-size: 1.1rem; }
.search-clear:hover { color: var(--dark-color); }
.gallery-counter { font-size: 0.9rem; color: var(--gray-dark); }

/* Gallery Filters */
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--spacing-sm); margin-bottom: var(--spacing-xl); }
.gallery-filter { background-color: var(--light-color); color: var(--dark-color); border: 1px solid var(--gray-border); border-radius: var(--border-radius-pill); padding: 0.6rem 1.2rem; font-weight: var(--font-weight-medium); cursor: pointer; transition: all var(--transition-normal); }
.gallery-filter:hover { background-color: rgba(122, 174, 58, 0.1); color: var(--primary-color); transform: translateY(-3px); border-color: rgba(122, 174, 58, 0.3); }
.gallery-filter.active { background-color: var(--primary-color); color: var(--light-color); box-shadow: var(--shadow-sm); border-color: var(--primary-color); }

/* Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--spacing-xl); position: relative; }
.gallery-item { background-color: var(--light-color); border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform var(--transition-normal), box-shadow var(--transition-normal), opacity 0.3s ease; cursor: pointer; }
.gallery-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

/* Animation classes for filtering */
.gallery-item.item-hiding { opacity: 0; transform: scale(0.95); }
.gallery-item.item-showing { opacity: 1; transform: scale(1); }

.gallery-image { height: 220px; overflow: hidden; position: relative; }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gallery-item:hover .gallery-image img { transform: scale(1.1); }
/* Image loading/error state */
.image-missing { display: flex; align-items: center; justify-content: center; background-color: var(--gray-light); color: var(--gray-medium); height: 100%; font-size: 0.8rem; text-align: center; padding: 20px; }

.gallery-info { padding: var(--spacing-lg); text-align: center; }
.gallery-info h3 { font-size: 1.3rem; margin-bottom: var(--spacing-xs); }
.gallery-info p { color: var(--gray-dark); margin-bottom: var(--spacing-md); }
.gallery-view-btn { margin-top: auto; } /* Push button down */

/* No Results Message */
.no-results-message { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--spacing-xxl); text-align: center; color: var(--gray-dark); grid-column: 1 / -1; /* Span full grid width */ }
.no-results-message i { font-size: 3rem; color: var(--gray-medium); margin-bottom: var(--spacing-md); }

.gallery-load-more { text-align: center; margin-top: var(--spacing-xl); }
.hidden-item { display: none; } /* Used by JS */

/* ==================== FEATURES SECTION ==================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--spacing-xl); }
.feature-card { background-color: var(--light-color); border-radius: var(--border-radius-lg); padding: var(--spacing-xl); text-align: center; box-shadow: var(--shadow-md); transition: all var(--transition-normal); position: relative; overflow: hidden; z-index: 1; border-top: 4px solid var(--primary-color); }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 70px; height: 70px; background-color: rgba(122, 174, 58, 0.1); color: var(--primary-color); border-radius: var(--border-radius-rounded); display: flex; justify-content: center; align-items: center; margin: 0 auto var(--spacing-md); font-size: 1.8rem; transition: all var(--transition-normal); }
.feature-card:hover .feature-icon { background-color: var(--primary-color); color: var(--light-color); transform: rotateY(180deg) scale(1.1); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: var(--spacing-md); }
.feature-card p { color: var(--gray-dark); margin-bottom: 0; }

.features-cta { margin-top: var(--spacing-xxl); background-color: var(--light-color); border-radius: var(--border-radius-lg); padding: var(--spacing-xl); box-shadow: var(--shadow-md); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--spacing-xl); }
.features-cta-content { flex: 1; min-width: 300px; }
.features-cta-content h3 { font-size: 1.5rem; margin-bottom: var(--spacing-sm); }
.features-cta-content p { color: var(--gray-dark); margin-bottom: 0; }
.features-cta-buttons { display: flex; flex-wrap: wrap; gap: var(--spacing-md); }


/* ==================== TESTIMONIALS SECTION ==================== */
/* Testimonials Section Styling */
.testimonials-section { padding: var(--section-padding) 0; position: relative; background-color: var(--gray-background); /* Fallback */ background-image: url('../img/testimonials-bg-subtle.png'); /* Subtle pattern */ background-repeat: repeat; }

/* Testimonials Slider */
.testimonials-slider { max-width: 800px; margin: 0 auto 2rem; position: relative; overflow: hidden; }
.testimonial-slide { display: none; animation: fadeEffect 0.6s ease; }
.testimonial-slide.active { display: block; }
@keyframes fadeEffect { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

.testimonial-content { background-color: var(--light-color); border-radius: var(--border-radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.testimonial-author { display: flex; align-items: center; margin-bottom: 1.5rem; }
.author-image { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-right: 1rem; border: 3px solid var(--primary-light); }
.author-info h4 { margin-bottom: 0.25rem; font-size: 1.2rem; color: var(--dark-color); }
.testimonial-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--gray-dark); font-size: 0.85rem; margin-bottom: 0.25rem; }
.testimonial-meta i { color: var(--primary-color); margin-right: 0.25rem; }
.rating { color: var(--warning-color); font-size: 0.9rem; }
.testimonial-text { position: relative; padding: 0 0 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--gray-light); }
.testimonial-text p { font-style: italic; line-height: 1.6; color: var(--gray-dark); }
.testimonial-text p::before { content: '“'; font-size: 1.5em; color: var(--primary-color); opacity: 0.5; position: relative; top: 0.2em; margin-right: 0.1em; }
.testimonial-text p::after { content: '”'; font-size: 1.5em; color: var(--primary-color); opacity: 0.5; position: relative; top: 0.2em; margin-left: 0.1em; }

.purchased-model h5 { font-size: 1rem; margin-bottom: 1rem; color: var(--dark-color); }
.purchased-model h5 span { font-weight: bold; color: var(--primary-color); }
.model-image.square-image { width: 100%; max-width: 250px; /* Smaller size */ margin: 0 auto; border-radius: var(--border-radius-md); overflow: hidden; cursor: pointer; position: relative; border: 1px solid var(--gray-border); }
.model-image.square-image::before { content: ""; display: block; padding-top: 100%; /* 1:1 aspect ratio */ }
.model-image.square-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.model-image.square-image:hover img { transform: scale(1.05); }
.model-image.square-image::after { content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; bottom: 10px; right: 10px; background-color: rgba(255,255,255,0.8); color: var(--primary-color); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; opacity: 0; transition: opacity 0.3s ease; z-index: 2; }
.model-image.square-image:hover::after { opacity: 1; }

/* Navigation */
.testimonials-navigation { display: flex; justify-content: center; align-items: center; margin-bottom: 2rem; }
.nav-prev, .nav-next { background: none; border: none; font-size: 1.5rem; color: var(--gray-dark); cursor: pointer; padding: 0.5rem; transition: color 0.3s; }
.nav-prev:hover, .nav-next:hover { color: var(--primary-color); }
.nav-dots { display: flex; align-items: center; margin: 0 1rem; }
.nav-dot { width: 10px; height: 10px; border-radius: 50%; background-color: var(--gray-medium); margin: 0 5px; cursor: pointer; transition: all 0.3s; }
.nav-dot.active { background-color: var(--primary-color); transform: scale(1.3); }

.palikti-atsiliepima { margin-top: 1rem; background-color: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); padding: 0.75rem 1.5rem; border-radius: var(--border-radius-pill); cursor: pointer; font-weight: 500; transition: all 0.3s ease; }
.palikti-atsiliepima:hover { background-color: var(--primary-color); color: white; }

/* Lightbox styles (from testimonial section) */
.cabin-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); display: none; /* Hidden by default */ align-items: center; justify-content: center; z-index: var(--z-modal); animation: fadeIn 0.3s ease; }
.cabin-lightbox.active { display: flex; }
.cabin-lightbox img.lightbox-image { max-width: 90%; max-height: 85%; object-fit: contain; border-radius: 5px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: white; font-size: 40px; cursor: pointer; line-height: 1; }
.lightbox-caption { position: absolute; bottom: 20px; width: 100%; text-align: center; color: white; font-size: 18px; background-color: rgba(0,0,0,0.5); padding: 5px 0; }


/* ==================== FAQ SECTION ==================== */
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--spacing-sm); margin-bottom: var(--spacing-xl); }
.faq-tab { background-color: var(--light-color); color: var(--dark-color); border: 1px solid var(--gray-border); border-radius: var(--border-radius-pill); padding: 0.6rem 1.2rem; font-weight: var(--font-weight-medium); cursor: pointer; transition: all var(--transition-normal); }
.faq-tab:hover { background-color: rgba(122, 174, 58, 0.1); color: var(--primary-color); transform: translateY(-3px); border-color: rgba(122, 174, 58, 0.3); }
.faq-tab.active { background-color: var(--primary-color); color: var(--light-color); box-shadow: var(--shadow-sm); border-color: var(--primary-color); }

.faq-tab-content { display: none; }
.faq-tab-content.active { display: block; animation: fadeIn 0.5s ease; }

.accordion-item { background-color: var(--light-color); border-radius: var(--border-radius-md); margin-bottom: var(--spacing-md); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--gray-light); }
.accordion-header { padding: var(--spacing-lg); cursor: pointer; position: relative; display: flex; align-items: center; justify-content: space-between; transition: background-color var(--transition-normal); width: 100%; text-align: left; background: none; border: none; }
.accordion-item.active .accordion-header { background-color: rgba(122, 174, 58, 0.05); }
.accordion-header h3 { font-size: 1.1rem; margin-bottom: 0; flex-grow: 1; padding-right: var(--spacing-xl); font-weight: var(--font-weight-semibold); }
.accordion-icon { flex-shrink: 0; position: relative; width: 16px; height: 16px; transition: transform var(--transition-normal); }
.accordion-icon::before, .accordion-icon::after { content: ''; position: absolute; background-color: var(--primary-color); transition: transform var(--transition-normal), opacity var(--transition-normal); border-radius: 1px; }
.accordion-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion-icon::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }
.accordion-item.active .accordion-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; padding: 0 var(--spacing-lg); }
.accordion-item.active .accordion-content { max-height: 500px; /* Adjust if needed */ padding: 0 var(--spacing-lg) var(--spacing-lg); }
.accordion-content p { color: var(--gray-dark); margin-bottom: 0; }


/* ==================== CTA SECTION ==================== */
.cta { background-color: var(--primary-color); background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/cta-bg.jpg'); background-size: cover; background-position: center; position: relative; color: var(--light-color); }
.cta .container { position: relative; z-index: 1; }
.cta-content { text-align: center; max-width: 800px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--light-color); margin-bottom: var(--spacing-md); }
.cta-content p { font-size: clamp(1rem, 3vw, 1.2rem); margin-bottom: var(--spacing-xl); opacity: 0.9; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--spacing-md); }


/* ==================== CONTACT SECTION ==================== */
.contact-container { display: flex; flex-wrap: wrap; gap: var(--spacing-xl); margin-bottom: var(--spacing-xxl); }
.contact-info { flex: 1 1 40%; min-width: 300px; }
.contact-card { display: flex; align-items: flex-start; background-color: var(--light-color); border-radius: var(--border-radius-md); padding: var(--spacing-lg); margin-bottom: var(--spacing-md); box-shadow: var(--shadow-sm); transition: all var(--transition-normal); border-left: 4px solid transparent; }
.contact-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-md); border-left-color: var(--primary-color); }
.contact-icon { width: 50px; height: 50px; background-color: rgba(122, 174, 58, 0.1); color: var(--primary-color); border-radius: var(--border-radius-rounded); display: flex; justify-content: center; align-items: center; font-size: 1.2rem; margin-right: var(--spacing-md); flex-shrink: 0; transition: all var(--transition-normal); }
.contact-card:hover .contact-icon { background-color: var(--primary-color); color: var(--light-color); transform: rotate(15deg); }
.contact-details { flex-grow: 1; }
.contact-details h3 { font-size: 1.1rem; margin-bottom: var(--spacing-xs); font-weight: var(--font-weight-semibold); }
.contact-details p { color: var(--gray-dark); margin-bottom: 0; }
.contact-details a { color: var(--gray-dark); transition: color var(--transition-normal); }
.contact-details a:hover { color: var(--primary-color); }
.contact-social { background-color: var(--light-color); border-radius: var(--border-radius-md); padding: var(--spacing-lg); box-shadow: var(--shadow-sm); margin-top: var(--spacing-md); }
.contact-social h3 { font-size: 1.1rem; margin-bottom: var(--spacing-md); font-weight: var(--font-weight-semibold); }
.social-links { display: flex; gap: var(--spacing-sm); }
.social-links a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background-color: rgba(122, 174, 58, 0.1); color: var(--primary-color); border-radius: var(--border-radius-rounded); transition: all var(--transition-normal); font-size: 1.1rem; }
.social-links a:hover { background-color: var(--primary-color); color: var(--light-color); transform: translateY(-3px) scale(1.1); }
.contact-form-container { flex: 1 1 55%; min-width: 300px; background-color: var(--light-color); border-radius: var(--border-radius-lg); padding: var(--spacing-xl); box-shadow: var(--shadow-md); }
.contact-form-container h3 { text-align: center; margin-bottom: var(--spacing-lg); }
.contact-map { border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16 / 9; /* Maintain aspect ratio */ }
.contact-map iframe { border: 0; width: 100%; height: 100%; }


/* ==================== FOOTER ==================== */
.footer { background-color: var(--dark-color); color: var(--light-color); padding-top: var(--spacing-xxl); }
.footer-top { display: flex; flex-wrap: wrap; gap: var(--spacing-xl); margin-bottom: var(--spacing-xxl); }
.footer-col { flex: 1; min-width: 220px; }
.footer-logo { display: flex; align-items: center; margin-bottom: var(--spacing-md); }
.footer-logo img { height: 40px; margin-right: var(--spacing-md); }
.footer-logo .logo-text h2 { font-size: 1.3rem; margin-bottom: 0; color: var(--light-color); }
.footer-logo .logo-text span { display: block; font-size: 0.85rem; color: var(--gray-medium); }
.footer-col > p { color: var(--gray-medium); margin-bottom: var(--spacing-md); }
.footer-social { display: flex; gap: var(--spacing-sm); margin-bottom: var(--spacing-lg); }
.footer-social a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background-color: rgba(255, 255, 255, 0.1); color: var(--light-color); border-radius: var(--border-radius-rounded); transition: all var(--transition-normal); }
.footer-social a:hover { background-color: var(--primary-color); transform: translateY(-3px) scale(1.1); }
.footer-col h3 { font-size: 1.2rem; color: var(--light-color); margin-bottom: var(--spacing-lg); position: relative; padding-bottom: var(--spacing-sm); font-weight: var(--font-weight-semibold); }
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: var(--primary-color); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: var(--spacing-sm); }
.footer-links a { color: var(--gray-medium); transition: all var(--transition-normal); display: inline-block; position: relative; padding-left: 15px; }
.footer-links a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; transition: all var(--transition-normal); }
.footer-links a:hover { color: var(--light-color); transform: translateX(5px); }
.footer-links a:hover::before { opacity: 1; }
.footer-contact li { display: flex; align-items: flex-start; }
.footer-contact i { color: var(--primary-color); margin-right: var(--spacing-md); margin-top: 5px; width: 1em; text-align: center; }
.footer-contact span { color: var(--gray-medium); }
.footer-contact a { color: var(--gray-medium); }
.footer-contact a:hover { color: var(--light-color); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: var(--spacing-lg) 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--spacing-md); }
.footer-bottom p { margin-bottom: 0; color: var(--gray-medium); font-size: 0.9rem; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: var(--spacing-md); list-style: none; padding: 0; margin: 0; }
.footer-bottom-links a { color: var(--gray-medium); font-size: 0.9rem; }
.footer-bottom-links a:hover { color: var(--light-color); text-decoration: underline; }


/* ==================== MODAL (Product Details & Quick Quote) ==================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center; z-index: var(--z-modal); opacity: 0; visibility: hidden; transition: opacity var(--transition-normal), visibility var(--transition-normal); padding: var(--spacing-md); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container { background-color: var(--light-color); border-radius: var(--border-radius-lg); max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); position: relative; transform: translateY(-20px) scale(0.98); transition: transform 0.3s ease-out, opacity 0.3s ease-out; opacity: 0; }
.modal-overlay.active .modal-container { transform: translateY(0) scale(1); opacity: 1; }
.modal-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.8); border: none; color: var(--dark-color); font-size: 1.5rem; cursor: pointer; z-index: 1; transition: all var(--transition-normal); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }
.modal-close:hover { color: var(--primary-color); transform: rotate(90deg) scale(1.1); background-color: var(--light-color); box-shadow: var(--shadow-sm); }
.modal-content { padding: var(--spacing-xl); }
.modal-header { margin-bottom: var(--spacing-lg); padding-bottom: var(--spacing-md); border-bottom: 1px solid var(--gray-light); }
.modal-header h2 { font-size: 1.8rem; margin-bottom: var(--spacing-xs); color: var(--primary-color); }
.modal-header p { color: var(--gray-dark); margin-bottom: 0; }
.modal-body { display: flex; flex-wrap: wrap; gap: var(--spacing-xl); }
.modal-image { flex: 1 1 40%; min-width: 280px; position: relative; border-radius: var(--border-radius-md); overflow: hidden; }
.modal-image img { width: 100%; border-radius: var(--border-radius-md); transition: transform var(--transition-normal); display: block; }
.modal-image-zoom { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; background-color: rgba(255, 255, 255, 0.9); border-radius: var(--border-radius-rounded); display: flex; justify-content: center; align-items: center; color: var(--primary-color); cursor: pointer; opacity: 0; transition: all var(--transition-normal); font-size: 1.2rem; border: 1px solid var(--primary-color); }
.modal-image:hover .modal-image-zoom { opacity: 1; }
.modal-image:hover img { transform: scale(1.02); }
.modal-details { flex: 1 1 55%; min-width: 280px; }
.detail-group { margin-bottom: var(--spacing-lg); }
.detail-group h3 { font-size: 1.2rem; margin-bottom: var(--spacing-md); padding-bottom: var(--spacing-sm); border-bottom: 1px solid var(--gray-light); font-weight: var(--font-weight-semibold); }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { margin-bottom: var(--spacing-sm); padding-left: var(--spacing-lg); position: relative; color: var(--gray-dark); line-height: 1.5; }
.detail-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary-color); position: absolute; left: 0; top: 4px; font-size: 0.9em; }
.modal-footer { margin-top: var(--spacing-lg); padding-top: var(--spacing-lg); border-top: 1px solid var(--gray-light); text-align: center; }


/* Quick Quote Modal Specifics */
#quoteModal .modal-header h2 { color: var(--dark-color); }


/* ==================== ANIMATION HELPERS ==================== */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* ==================== SEO / WHY CHOOSE US SECTION ==================== */
.seo-section h3 {
    font-size: clamp(1.4rem, 3.8vw, 1.8rem);
    margin-bottom: var(--spacing-lg);
    color: var(--primary-dark);
}
.seo-section p {
    color: var(--gray-dark);
    line-height: 1.7;
}
.seo-section strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}
.seo-section .img-fluid {
    max-width: 100%;
    height: auto;
}
.seo-section .rounded {
    border-radius: var(--border-radius-lg) !important;
}
.seo-section .shadow-md {
    box-shadow: var(--shadow-md) !important;
}

/* Basic Row/Col for layout (if not using a framework) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px; /* Gutter compensation */
    margin-left: -15px;  /* Gutter compensation */
}
.col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
@media (min-width: 768px) { /* Assuming 'md' breakpoint is 768px */
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .flex-row-reverse {
        flex-direction: row-reverse !important;
    }
}
.align-items-center {
    align-items: center !important;
}
.mb-5 {
    margin-bottom: var(--spacing-xxl) !important; /* Match spacing variable */
}
.mt-5 {
    margin-top: var(--spacing-xxl) !important; /* Match spacing variable */
}
