/* style.css */

/* TABLE OF CONTENTS
1. CSS VARIABLES
2. RESET & BASE STYLES
   - Body
   - Typography (Headings, Paragraphs, Links, 'Read More')
   - Utility Classes
3. LAYOUT COMPONENTS
   - Header / Navbar
   - Footer (including text-based social links)
4. UI COMPONENTS
   - Buttons (Global)
   - Cards (Base, Service, Project, Portfolio, Team, etc.)
   - Accordions
   - Modals
   - Forms
   - Lists (External Resources)
5. SECTION-SPECIFIC STYLES
   - Hero & Page Hero
   - Content Sections (General)
   - Legal Pages (Privacy, Terms - Top Padding)
   - Success Page (Full height, Centered)
6. ANIMATIONS & EFFECTS
   - Scroll Animations (Setup for JS)
   - Parallax (Setup for JS)
   - Hover Effects & Transitions
   - Glassmorphism (Subtle)
7. MEDIA QUERIES (RESPONSIVENESS)
*/

/* 1. CSS VARIABLES */
:root {
    /* Font Families */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Archivo Black', sans-serif;

    /* Retro Analogous Color Palette */
    --color-base-bg: #FFF8DC; /* Cream - Main background */
    --color-primary-orange: #FF8C00; /* Warm Orange - Main accent, buttons */
    --color-secondary-red-orange: #FF4500; /* Reddish-Orange - Hover accent, titles */
    --color-tertiary-yellow-orange: #FFA500; /* Yellow-Orange - Subtle accents */
    
    --color-neutral-dark-brown: #5D4037; /* Dark Brown - Text, Footer BG */
    --color-neutral-medium-brown: #795548; /* Medium Brown - Borders, secondary text */
    --color-neutral-light-cream: #fffaf0; /* Lighter cream - Light section BGs */
    
    --color-text-light: #FFFFFF; /* White text for dark backgrounds */
    --color-text-dark: #333333;  /* Dark gray for body text on light BGs */
    --color-text-headings: #222222; /* Darker for headings on light BGs */

    /* Gradients & Overlays */
    --gradient-dark-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    --gradient-retro-subtle: linear-gradient(135deg, rgba(255,140,0,0.1) 0%, rgba(255,69,0,0.05) 100%);

    /* UI Elements */
    --border-radius-soft: 8px; /* For cards, inputs */
    --border-radius-rounded: 50px; /* For buttons */
    --box-shadow-soft: 0 4px 15px rgba(0,0,0,0.08);
    --box-shadow-strong: 0 6px 20px rgba(0,0,0,0.12);

    /* Transitions */
    --transition-speed-fast: 0.2s;
    --transition-speed-medium: 0.4s;
    --transition-easing: ease-in-out;
}

/* 2. RESET & BASE STYLES */
body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-base-bg);
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.navbar-brand, .hero-title, .page-hero-title, .section-title, .card-title, .resource-title, .footer-heading, .success-title {
    font-family: var(--font-secondary);
    color: var(--color-text-headings);
    margin-bottom: 0.8em;
    line-height: 1.3;
    text-rendering: optimizeLegibility;
}

h1, .h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2, .h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3, .h3 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h4, .h4 { font-size: clamp(1.2rem, 3vw, 1.8rem); }

p {
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

a {
    color: var(--color-primary-orange);
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--transition-easing);
}
a:hover {
    color: var(--color-secondary-red-orange);
    text-decoration: underline;
}

/* 'Read More' Link Style */
.read-more-link {
    display: inline-block;
    font-weight: bold;
    color: var(--color-primary-orange);
    padding: 0.3em 0;
    position: relative;
    text-decoration: none !important;
    transition: color var(--transition-speed-fast) var(--transition-easing);
}
.read-more-link::after {
    content: '→';
    margin-left: 0.5em;
    transition: transform var(--transition-speed-fast) var(--transition-easing);
    display: inline-block;
}
.read-more-link:hover {
    color: var(--color-secondary-red-orange);
}
.read-more-link:hover::after {
    transform: translateX(5px);
}


/* Utility Classes */
.section-bg-light {
    background-color: var(--color-neutral-light-cream);
}
.section-bg-accent { /* For sections with a colored background and light text */
    background-color: var(--color-tertiary-yellow-orange); /* Using tertiary for a softer accent BG */
}
.section-bg-accent, .section-bg-accent p, .section-bg-accent li, .section-bg-accent h1, .section-bg-accent h2, .section-bg-accent h3, .section-bg-accent h4, .section-bg-accent h5, .section-bg-accent h6 {
    color: var(--color-text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.section-bg-accent a {
    color: var(--color-base-bg); /* Light cream for links on accent bg */
}
.section-bg-accent a:hover {
    color: var(--color-text-light);
}
.section-bg-accent .section-title::after {
    background-color: var(--color-text-light);
}

.text-shadow-subtle {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.content-container ul { /* For lists in legal pages etc. */
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}
.content-container ul li {
    margin-bottom: 0.5rem;
}

/* Ensuring general sections have appropriate content-driven height */
section {
    padding-top: clamp(60px, 8vw, 100px);
    padding-bottom: clamp(60px, 8vw, 100px);
}

.section-title {
    color: var(--color-secondary-red-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-primary-orange);
    margin: 20px auto 0; /* For centered titles */
    border-radius: 2px;
}
.text-start .section-title::after { /* For left-aligned titles */
    margin: 20px 0 0;
}


/* 3. LAYOUT COMPONENTS */
/* Header / Navbar */
.site-header {
    background-color: rgba(255, 248, 220, 0.85); /* Semi-transparent Cream */
    box-shadow: var(--box-shadow-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.navbar-brand {
    font-size: 1.8rem;
    color: var(--color-neutral-dark-brown) !important;
}
.navbar-brand .brand-accent {
    color: var(--color-secondary-red-orange);
}
.navbar-light .navbar-nav .nav-link {
    color: var(--color-neutral-dark-brown);
    font-weight: bold;
    padding: 0.8rem 1rem;
    transition: color var(--transition-speed-fast) var(--transition-easing);
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--color-primary-orange);
}
.navbar-toggler {
    border-color: rgba(93, 64, 55, 0.4);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(93, 64, 55, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Footer */
.site-footer {
    background-color: var(--color-neutral-dark-brown);
    color: var(--color-base-bg); /* Cream text */
    padding-top: clamp(40px, 6vw, 60px);
    padding-bottom: clamp(30px, 5vw, 50px);
}
.site-footer .footer-heading {
    color: var(--color-tertiary-yellow-orange);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}
.site-footer p, .site-footer .text-muted {
    color: var(--color-base-bg) !important;
    opacity: 0.85;
    font-size: 0.95rem;
}
.site-footer .list-unstyled li {
    margin-bottom: 0.5rem;
}
.site-footer .footer-link {
    color: var(--color-base-bg);
    text-decoration: none;
    transition: color var(--transition-speed-fast) var(--transition-easing), padding-left var(--transition-speed-fast) var(--transition-easing);
    opacity: 0.9;
}
.site-footer .footer-link:hover {
    color: var(--color-primary-orange);
    padding-left: 5px; /* Subtle hover effect */
}
.site-footer .copyright-text {
    color: var(--color-base-bg);
    opacity: 0.7;
    font-size: 0.9em;
    margin-top: 1.5rem;
}
.site-footer hr {
    border-top: 1px solid rgba(255, 248, 220, 0.2);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}
/* Social media text links in footer */
.site-footer .social-links-list li a { /* Assuming social links are in a ul with this class */
    font-weight: normal;
    text-transform: capitalize;
}


/* 4. UI COMPONENTS */
/* Buttons (Global) */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-secondary); /* Archivo Black for buttons */
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.75rem 1.8rem; /* Slightly larger padding */
    border-radius: var(--border-radius-rounded);
    transition: all var(--transition-speed-medium) var(--transition-easing); /* Morphing feel on transition */
    border: 2px solid transparent;
    box-shadow: var(--box-shadow-soft);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    cursor: pointer;
}
.btn-primary, button.btn-primary, input[type="submit"].btn-primary { /* Default primary button */
    background-color: var(--color-primary-orange);
    border-color: var(--color-primary-orange);
    color: var(--color-text-light);
}
.btn-primary:hover, button.btn-primary:hover, input[type="submit"].btn-primary:hover {
    background-color: var(--color-secondary-red-orange);
    border-color: var(--color-secondary-red-orange);
    color: var(--color-text-light);
    transform: translateY(-3px) scale(1.03); /* Morphing effect */
    box-shadow: var(--box-shadow-strong);
}
.btn-outline-primary {
    color: var(--color-primary-orange);
    border-color: var(--color-primary-orange);
    background-color: transparent;
}
.btn-outline-primary:hover {
    background-color: var(--color-primary-orange);
    color: var(--color-text-light);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--box-shadow-strong);
}
.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
}
.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/* Cards (Base) */
.card {
    border: 1px solid rgba(121, 85, 72, 0.2); /* Muted brown border */
    box-shadow: var(--box-shadow-soft);
    transition: transform var(--transition-speed-medium) var(--transition-easing), 
                box-shadow var(--transition-speed-medium) var(--transition-easing);
    border-radius: var(--border-radius-soft);
    background-color: var(--color-text-light);
    overflow: hidden; /* Ensures child elements adhere to border-radius */
    display: flex; /* For STROGO rule */
    flex-direction: column; /* For STROGO rule */
    /* align-items: center; Removed this, content inside should be centered if needed */
    height: 100%; /* For d-flex align-items-stretch */
    text-align: center; /* For STROGO rule - center text content */
}
.card:hover {
    transform: translateY(-8px) scale(1.02); /* Enhanced morphing hover */
    box-shadow: var(--box-shadow-strong);
}

/* STROGO: Image container in cards */
.card .card-image {
    width: 100%;
    height: 250px; /* Fixed height for image container */
    overflow: hidden;
    display: flex; /* Center image within this container */
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem; /* Space between image and content */
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container, crops if necessary */
    transition: transform var(--transition-speed-medium) var(--transition-easing);
    /* STROGO: margin: 0 auto; is not needed if parent .card-image uses flex */
}
.card:hover .card-image img {
    transform: scale(1.08); /* Subtle zoom on card hover */
}

.card-content, .card-body { /* Bootstrap uses .card-body */
    padding: 1.5rem;
    flex-grow: 1; /* Allows card body to fill remaining space in flex column */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if present */
}
.card-title {
    color: var(--color-neutral-dark-brown);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}
.card-text {
    color: var(--color-text-dark);
    opacity: 0.9;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    flex-grow: 1; /* Allows text to take available space */
    margin-bottom: 1rem;
}
/* Specific card types will inherit and can override */
.team-card .card-image { /* Example for team member profile pics */
    width: 150px; /* Or as per HTML */
    height: 150px;
    border-radius: 50%;
    margin-left: auto; /* Center the image container */
    margin-right: auto;
    margin-top: 1.5rem;
    border: 4px solid var(--color-tertiary-yellow-orange);
}
.team-card .card-image img {
    border-radius: 50%;
}

/* Accordions (Bootstrap Customization) */
.accordion-item {
    background-color: transparent;
    border: 1px solid rgba(121, 85, 72, 0.2);
    border-radius: var(--border-radius-soft) !important; /* Override Bootstrap */
    margin-bottom: 10px;
}
.accordion-header {
    margin-bottom: 0;
}
.accordion-button {
    font-family: var(--font-primary); /* Roboto for button text */
    font-weight: bold;
    color: var(--color-neutral-dark-brown);
    background-color: var(--color-neutral-light-cream);
    border-radius: var(--border-radius-soft) !important; /* Ensure consistent rounding */
    transition: background-color var(--transition-speed-fast) var(--transition-easing), color var(--transition-speed-fast) var(--transition-easing);
}
.accordion-button:not(.collapsed) {
    color: var(--color-text-light);
    background-color: var(--color-primary-orange);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.25);
    border-color: var(--color-primary-orange);
}
.accordion-button::after { /* Custom accordion icon for retro feel if desired */
    /* Example: background-image: url("custom-retro-arrow.svg"); */
}
.accordion-body {
    background-color: var(--color-text-light);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    padding: 1.5rem;
    border-bottom-left-radius: var(--border-radius-soft);
    border-bottom-right-radius: var(--border-radius-soft);
}

/* Modals (Bootstrap Customization) */
.modal-content {
    border-radius: var(--border-radius-soft);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.modal-header {
    background-color: var(--color-neutral-light-cream);
    color: var(--color-neutral-dark-brown);
    border-bottom: 1px solid rgba(121, 85, 72, 0.2);
    padding: 1rem 1.5rem;
}
.modal-header .btn-close {
    filter: invert(40%) sepia(15%) saturate(500%) hue-rotate(330deg) brightness(90%) contrast(90%); /* Tint for retro */
}
.modal-title {
    font-family: var(--font-secondary);
}
.modal-body {
    padding: 1.5rem;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}
.modal-footer {
    background-color: var(--color-neutral-light-cream);
    border-top: 1px solid rgba(121, 85, 72, 0.2);
    padding: 1rem 1.5rem;
}
/* Glassmorphism for lightbox modal if used for gallery */
#imageLightboxModal .modal-content {
    background-color: rgba(40, 40, 40, 0.75); /* Dark semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}
#imageLightboxModal .modal-header .modal-title {
    color: var(--color-text-light);
}
#imageLightboxModal .modal-header .btn-close {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(200%) contrast(100%); /* White close button */
}

/* Forms */
.form-control {
    border: 1px solid rgba(121, 85, 72, 0.3);
    border-radius: var(--border-radius-soft);
    padding: 0.75rem 1.2rem;
    transition: border-color var(--transition-speed-fast) var(--transition-easing), box-shadow var(--transition-speed-fast) var(--transition-easing);
    background-color: var(--color-text-light);
    color: var(--color-text-dark);
}
.form-control:focus {
    border-color: var(--color-primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.25);
    background-color: var(--color-text-light); /* Ensure focus doesn't change bg to less contrast */
}
.form-control::placeholder {
    color: var(--color-neutral-medium-brown);
    opacity: 0.7;
}
.form-label {
    font-weight: bold;
    color: var(--color-neutral-dark-brown);
    margin-bottom: 0.6rem;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}
.form-check-input:checked {
    background-color: var(--color-primary-orange);
    border-color: var(--color-primary-orange);
}
.contact-form.bg-light-transparent { /* From HTML */
    background-color: rgba(255, 250, 240, 0.92) !important; /* Ensure it's readable on image */
    border-radius: var(--border-radius-soft);
}
/* Inputs in contact form on dark BG */
#contact .form-label {
    color: var(--color-neutral-light-cream); /* Light label for dark bg contact form */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* External Resources List */
.list-group-item {
    background-color: var(--color-text-light);
    border: 1px solid rgba(121, 85, 72, 0.2);
    margin-bottom: 10px;
    border-radius: var(--border-radius-soft);
    transition: transform var(--transition-speed-fast) var(--transition-easing), 
                box-shadow var(--transition-speed-fast) var(--transition-easing),
                border-left-color var(--transition-speed-fast) var(--transition-easing);
    padding: 1rem 1.25rem;
    border-left: 4px solid transparent; /* For hover effect */
}
.list-group-item:hover {
    transform: translateX(5px) scale(1.01);
    box-shadow: var(--box-shadow-soft);
    border-left-color: var(--color-primary-orange);
}
.resource-title {
    color: var(--color-secondary-red-orange);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.resource-description {
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    color: var(--color-neutral-medium-brown);
    opacity: 0.9;
}
.list-group-item small.text-muted {
    color: var(--color-neutral-medium-brown) !important;
    opacity: 0.7;
}


/* 5. SECTION-SPECIFIC STYLES */
/* Hero & Page Hero */
.hero-section, .page-hero-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    /* The linear-gradient for darkening is applied via inline style in HTML */
}
.hero-section {
    min-height: 90vh; /* Or natural height based on content */
    /* background-attachment: fixed; -- Handled by JS for smoother parallax */
}
.page-hero-section {
    min-height: 45vh; /* Natural height for subpage heroes */
    margin-top: 70px; /* Approx header height, adjust if needed */
}
.hero-title, .page-hero-title {
    color: var(--color-text-light) !important; /* ВАЖНО: White text in hero */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-subtitle, .page-hero-subtitle {
    color: var(--color-text-light) !important; /* ВАЖНО: White text in hero */
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Awards / Accolades Section */
.accolade-logo {
    max-height: 120px; /* As per HTML */
    margin-bottom: 15px;
    filter: grayscale(40%) sepia(30%) opacity(0.85); /* Retro tint */
    transition: filter var(--transition-speed-medium) var(--transition-easing), transform var(--transition-speed-medium) var(--transition-easing);
}
.accolade-logo:hover {
    filter: grayscale(0%) sepia(0%) opacity(1);
    transform: scale(1.05);
}
#awards h5 {
    color: var(--color-neutral-dark-brown);
}
#awards p {
    font-size: 0.9rem;
    color: var(--color-neutral-medium-brown);
}

/* Gallery Section */
#gallery .img-fluid {
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-soft);
    transition: transform var(--transition-speed-medium) var(--transition-easing), box-shadow var(--transition-speed-medium) var(--transition-easing);
}
#gallery .img-fluid:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-strong);
}

/* Contact Section (Form on dark BG) */
#contact.section-bg-accent { /* This class is applied in HTML */
    background-color: var(--color-neutral-dark-brown); /* Darker for contact section */
}
#contact.section-bg-accent .section-title {
    color: var(--color-text-light);
}
#contact.section-bg-accent .section-title::after {
    background-color: var(--color-primary-orange);
}
#contact .contact-form {
    background-color: rgba(255, 255, 255, 0.08); /* Glassmorphism attempt */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 2rem !important;
}
#contact .form-label {
    color: var(--color-base-bg); /* Light cream for labels */
    opacity: 0.9;
}
#contact .form-control {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--color-text-light);
}
#contact .form-control:focus {
    background-color: rgba(255,255,255,0.15);
    border-color: var(--color-primary-orange);
    color: var(--color-text-light);
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.3);
}
#contact .form-control::placeholder {
    color: var(--color-base-bg);
    opacity: 0.6;
}
#contact .contact-info-box h5, #contact .contact-info-box p, #contact .contact-info-box a {
    color: var(--color-text-light);
}
#contact .contact-info-box i.bi {
    color: var(--color-primary-orange);
}

/* Legal Pages (Privacy, Terms) */
main[data-barba-namespace="privacy"] section:first-of-type, /* Target first section after hero */
main[data-barba-namespace="terms"] section:first-of-type {
    padding-top: 100px !important; /* ВАЖНО: Offset for fixed header */
}
.content-container h3.content-subtitle { /* For subheadings in legal text */
    color: var(--color-neutral-dark-brown);
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-tertiary-yellow-orange);
    display: inline-block; /* To make border-bottom fit text */
}

/* Success Page */
main[data-barba-namespace="success"] {
    min-height: 100vh; /* ВАЖНО */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px; /* Account for header */
    padding-bottom: 50px; /* Account for footer */
    background: var(--gradient-retro-subtle); /* Subtle gradient for success page */
}
.success-message-box {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-text-light);
    padding: clamp(2rem, 5vw, 3rem) !important; /* Responsive padding */
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-strong);
}
.success-title {
    color: var(--color-primary-orange);
}
main[data-barba-namespace="success"] + footer.site-footer {
    position: relative !important; /* Override fixed if it was applied */
}

/* 6. ANIMATIONS & EFFECTS */
/* Scroll Animations (Class for GSAP to target) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    /* GSAP will handle the transition */
}

/* Parallax Background (Setup for JS) */
.parallax-bg {
    /* JS will typically manipulate background-position or a transformed inner element */
}

/* Hover Effects & Transitions are integrated into components (buttons, cards, links) */

/* Glassmorphism (Subtle example on a utility class) */
.glass-effect-subtle {
    background: rgba(255, 255, 255, 0.25); /* Light base for glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-soft);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Barba.js page transition styles */
.barba-leave-active,
.barba-enter-active {
  transition: opacity var(--transition-speed-medium) var(--transition-easing);
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
  position: absolute; /* Avoid content jump */
  width: 100%;
}
.barba-enter-to {
    position: relative; /* Reset position after enter */
}


/* 7. MEDIA QUERIES (RESPONSIVENESS) */
@media (max-width: 992px) {
    .hero-section {
        /* min-height: 75vh; Let content define height */
    }
    .page-hero-section {
        /* min-height: 35vh; */
        margin-top: 60px; /* Adjust for potentially smaller header */
    }
    .navbar-nav {
        background-color: var(--color-base-bg); /* Cream for mobile menu background */
        padding: 10px 0;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(121, 85, 72, 0.2);
        border-radius: 0 0 var(--border-radius-soft) var(--border-radius-soft);
        box-shadow: var(--box-shadow-soft);
    }
    .navbar-light .navbar-nav .nav-link {
        padding: 0.7rem 1.5rem; /* More touch-friendly padding */
    }
    .section-title {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
    }
    .card .card-image {
        height: 220px; /* Adjust image height on smaller screens */
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.6;
    }
    h1, .h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
    h2, .h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
    .btn, button, input[type="submit"] {
        padding: 0.65rem 1.5rem;
    }
    .btn-lg {
        padding: 0.8rem 2rem;
    }
    .card .card-image {
        height: 200px;
    }
    /* Ensure columns stack nicely - Bootstrap handles this by default */
    .row > [class*="col-"] {
        margin-bottom: 1.5rem; /* Add some space between stacked columns */
    }
    .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    /* Reduce padding on legal pages for smaller screens */
    main[data-barba-namespace="privacy"] section:first-of-type,
    main[data-barba-namespace="terms"] section:first-of-type {
        padding-top: 80px !important;
    }
}

@media (max-width: 576px) {
    section {
        padding-top: clamp(40px, 10vw, 60px);
        padding-bottom: clamp(40px, 10vw, 60px);
    }
    .hero-section {
        /* min-height: 60vh; */
    }
    .page-hero-section {
        margin-top: 56px; /* Further adjustment for header */
    }
    .card-content, .card-body {
        padding: 1.2rem;
    }
    .form-label {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }
    .form-control {
        padding: 0.6rem 1rem;
    }
}

/* Cookie Consent Popup styles (from HTML for simplicity, can be moved here) */
#cookieConsentPopup {
    /* display: none; -- handled by JS */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(40, 40, 40, 0.95); /* Dark semi-transparent */
    color: var(--color-text-light);
    text-align: center;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    font-size: clamp(0.85rem, 2vw, 1rem);
}
#cookieConsentPopup p {
    margin: 0 0 15px 0;
    color: var(--color-text-light); /* Ensure text is light */
    opacity: 0.95;
}
#cookieConsentPopup a {
    color: var(--color-tertiary-yellow-orange); /* Accent for link */
    text-decoration: underline;
}
#cookieConsentPopup a:hover {
    color: var(--color-primary-orange);
}
#cookieConsentPopup button#acceptCookieButton {
    background-color: var(--color-primary-orange);
    color: var(--color-text-light);
    border: none;
    padding: 10px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin: 4px 2px;
    cursor: pointer;
    border-radius: var(--border-radius-rounded);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#cookieConsentPopup button#acceptCookieButton:hover {
    background-color: var(--color-secondary-red-orange);
}

/* Ensure text color is readable on default button backgrounds provided by Bootstrap if not overridden */
.btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-light, .btn-dark {
    /* Example: Ensure light text on dark Bootstrap buttons */
}
.btn-light {
    color: var(--color-text-dark) !important; /* Ensure dark text on light button */
}