/* style.css */

/* -------------------
   0. CSS Variables
   ------------------- */
:root {
    /* Fonts */
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Nunito', sans-serif;

    /* Base Colors (Neutral Scheme with Accents) */
    --color-primary: #007bff; /* Vibrant Blue - For primary actions, links */
    --color-primary-dark: #0056b3; /* Darker Blue - For hover states */
    --color-accent: #28a745; /* Green - For secondary actions or highlights */
    --color-accent-dark: #1e7e34; /* Darker Green */
    
    --text-dark: #222222; /* Very dark gray for high contrast text on light backgrounds */
    --text-light: #ffffff; /* White for text on dark backgrounds */
    --text-muted: #6c757d; /* Muted gray for less important text */
    --text-heading-section: #1a1a1a; /* Even darker for section titles */

    --bg-light: #ffffff;
    --bg-neutral: #f8f9fa; /* Very light gray for alternate sections or cards */
    --bg-dark: #212529;   /* Dark gray for footer or dark-themed sections */
    
    --border-color: #dee2e6; /* Light gray for borders */
    --border-color-darker: #ced4da; /* Slightly darker border */

    /* Gradients */
    --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
    --gradient-overlay-light: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)); /* For lighter backgrounds needing subtle text protection */

    /* Sizing & Spacing */
    --header-height: 70px;
    --spacing-unit: 1rem; /* 16px base */
    --container-width: 1200px; /* Max width for content container */
    --container-padding: 1.5rem; /* Padding for .container */

    /* Borders & Shadows */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --box-shadow-light: 0 2px 5px rgba(0, 0, 0, 0.08);
    --box-shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

/* -------------------
   1. Reset & Base Styles
   ------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%; /* Corresponds to 16px by default */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--bg-light);
    margin: 0;
    padding-top: var(--header-height); /* Account for fixed header */
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* -------------------
   2. Typography
   ------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    color: var(--text-heading-section); /* Ensure high contrast for titles */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

h1 { font-size: 2.8rem; } /* Adaptive: clamps or media queries can refine this */
h2 { font-size: 2.2rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.3rem; }
p { margin-bottom: var(--spacing-unit); }

.page-title {
    font-size: 3rem;
    color: var(--text-light); /* For page headers with background images */
    text-align: center;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    position: relative;
    padding-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--text-heading-section);
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--color-primary);
    margin: calc(var(--spacing-unit) * 0.5) auto 0;
    border-radius: 2px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* -------------------
   3. Layout & Container
   ------------------- */
.main-wrapper {
    overflow-x: hidden; /* Prevents horizontal scroll from animations */
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section-padding {
    padding-top: calc(var(--spacing-unit) * 3.5);
    padding-bottom: calc(var(--spacing-unit) * 3.5);
}

.section-padding-alt {
    padding-top: calc(var(--spacing-unit) * 3.5);
    padding-bottom: calc(var(--spacing-unit) * 3.5);
    background-color: var(--bg-neutral);
    position: relative; /* For overlays */
}

/* For sections with background images that need an overlay */
.section-overlay, .hero-overlay, .section-overlay-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-overlay, .section-overlay {
    background: var(--gradient-overlay);
}
.section-overlay-light {
    background: var(--gradient-overlay-light);
}

/* Content within sections with overlays must be above the overlay */
.container {
    position: relative;
    z-index: 2;
}

/* -------------------
   4. Header & Navigation
   ------------------- */
.site-header {
    background-color: var(--bg-light);
    box-shadow: var(--box-shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}
.site-logo:hover {
    color: var(--color-primary);
}

.main-navigation .nav-list {
    display: flex;
    align-items: center;
}

.main-navigation .nav-list li {
    margin-left: calc(var(--spacing-unit) * 1.5);
}

.main-navigation .nav-list a {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    color: var(--text-dark);
}

.main-navigation .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) var(--transition-timing);
}

.main-navigation .nav-list a:hover::after,
.main-navigation .nav-list a.active::after {
    width: 100%;
}
.main-navigation .nav-list a:hover,
.main-navigation .nav-list a.active {
    color: var(--color-primary);
}


.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    position: relative;
    transition: background-color var(--transition-speed) var(--transition-timing);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    transition: transform var(--transition-speed) var(--transition-timing), top var(--transition-speed) var(--transition-timing), bottom var(--transition-speed) var(--transition-timing);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Active state for hamburger */
.nav-open .hamburger { background-color: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-open .hamburger::after { transform: rotate(-45deg); bottom: 0; }


/* -------------------
   5. Global UI Components (Buttons, Forms)
   ------------------- */
.button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: calc(var(--spacing-unit)*0.7) calc(var(--spacing-unit)*1.8);
    border-radius: var(--border-radius-sm);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-speed) var(--transition-timing),
                color var(--transition-speed) var(--transition-timing),
                border-color var(--transition-speed) var(--transition-timing),
                transform var(--transition-speed) var(--transition-timing);
    box-shadow: var(--box-shadow-light);
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

.button.hero-button { /* Example of a specific button variant */
    padding: calc(var(--spacing-unit)*0.9) calc(var(--spacing-unit)*2.2);
    font-size: 1.1rem;
}

.button.add-to-cart-button {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}
.button.add-to-cart-button:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}


.form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.25);
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 0.4);
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 0.7);
    border: 1px solid var(--border-color-darker);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary), 0.25); /* Focus ring, needs var(--color-primary) to be in RGB for rgba */
}
/* Assuming --color-primary is #007bff which is rgb(0, 123, 255) */
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}


.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* -------------------
   6. Hero Section
   ------------------- */
.hero-section {
    position: relative;
    color: var(--text-light); /* IMPORTANT: Hero text is white */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Height will be driven by content or specific min-height for visual impact, avoid fixed large min-height */
    padding: calc(var(--spacing-unit) * 5) 0; /* Example padding */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2; /* Above the overlay */
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem; /* Adaptive typography */
    font-weight: 700;
    margin-bottom: var(--spacing-unit);
    color: var(--text-light); /* Explicitly white */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: calc(var(--spacing-unit) * 1.8);
    line-height: 1.7;
    color: var(--text-light) !important; /* Ensure it is white if not inheriting properly */
    opacity: 0.9;
}

/* -------------------
   7. Card Styles (Generic and Specific)
   ------------------- */
.card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center image and content block */
    text-align: center; /* Center text within content block */
    height: 100%; /* For equal height cards in a grid */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-image { /* Container for the image */
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    overflow: hidden;
    /* margin-bottom: var(--spacing-unit); */ /* Removed to allow content to directly follow */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    display: block; /* Remove any extra space below image */
    transition: transform var(--transition-speed) var(--transition-timing);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: calc(var(--spacing-unit) * 1.25);
    flex-grow: 1; /* Allows content to fill space if cards are different heights */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if present */
}
.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: calc(var(--spacing-unit) * 0.6);
    color: var(--text-dark);
}
.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-unit);
    flex-grow: 1; /* Allows text to take available space before button */
}
.card-content .button {
    margin-top: auto; /* Pushes button to the bottom of the card content */
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 1.8);
}
.product-name { color: var(--text-dark); }
.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--spacing-unit);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 1.8);
}
.projects-section .section-title { color: var(--text-light); text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.projects-section .section-title::after { background-color: var(--text-light); }


/* Testimonials (Press) Section */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 1.8);
}
.testimonial-card {
    background-color: var(--bg-neutral);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
    text-align: left; /* Testimonials often look better left-aligned */
}
.testimonial-card blockquote {
    margin: 0;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.7;
}
.testimonial-card blockquote p {
    margin-bottom: var(--spacing-unit);
}
.testimonial-card footer {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: var(--spacing-unit);
    text-align: right;
}
.testimonial-card footer::before {
    content: "— ";
}

/* Methodology Section */
.methodology-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light); /* Assuming dark background image */
}
.methodology-section .section-title { color: var(--text-light); text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.methodology-section .section-title::after { background-color: var(--text-light); }
.methodology-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-unit);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* About Us (Behind the Scenes) Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.gallery-item {
    text-align: center;
}
.gallery-item img {
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-light);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.gallery-item p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.about-us-section .text-content p,
.return-policy-section .text-content p, /* Generic text page styling */
.content-section .text-content p,
.privacy-section .text-content p,
.terms-section .text-content p {
    text-align: justify;
    line-height: 1.7;
}
.return-policy-section .return-policy-content ul,
.return-policy-section .return-policy-content ol {
    margin-left: calc(var(--spacing-unit) * 1.5);
    margin-bottom: var(--spacing-unit);
    list-style: disc; /* Or decimal for ol */
}
.return-policy-section .return-policy-content ol { list-style: decimal; }
.return-policy-section .return-policy-content li { margin-bottom: calc(var(--spacing-unit) * 0.5); }
.return-policy-section .return-policy-content strong { color: var(--text-dark); }
.return-policy-section .section-title { color: var(--text-heading-section); } /* On light background */
.return-policy-section .section-title::after { background-color: var(--color-primary); }


/* External Links Section */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 1.5);
}
.link-card {
    background-color: var(--bg-neutral);
    padding: var(--spacing-unit);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-speed) var(--transition-timing);
}
.link-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--box-shadow-light);
}
.link-card h4 a {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-size: 1.2rem;
}
.link-card h4 a:hover {
    color: var(--color-primary-dark);
}
.link-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Contact Section */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 2.5);
    background-color: var(--bg-light);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
}
.contact-details {
    text-align: center;
    color: var(--text-muted);
}
.contact-details p {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.contact-details strong {
    color: var(--text-dark);
}

/* Columns for Contact Page */
.contact-columns {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.contact-form-column, .contact-info-column {
    flex: 1;
    min-width: 320px; /* Ensure columns don't get too squished */
}
.contact-form-column {
    /* Form is already styled globally */
}
.contact-info-column .column-title,
.contact-form-column .column-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-unit);
    text-align: left;
}
.contact-info-column .column-title::after,
.contact-form-column .column-title::after {
    display: none; /* Remove global styling for these specific titles */
}
.info-block {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}
.info-block h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: calc(var(--spacing-unit) * 0.3);
    display: flex;
    align-items: center;
}
.info-block h3 img { /* For icons */
    margin-right: calc(var(--spacing-unit) * 0.5);
    width: 24px;
    height: 24px;
}
.info-block p, .info-block ul {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: calc(var(--spacing-unit) * 0.25);
}
.social-links-list li {
    margin-bottom: calc(var(--spacing-unit) * 0.2);
}
.social-links-list a {
    color: var(--color-primary);
}
.social-links-list a:hover {
    color: var(--color-primary-dark);
}
.map-container img {
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-light);
}

/* Values Grid on About Page */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}
.value-card {
    background-color: var(--bg-neutral);
    padding: var(--spacing-unit);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.value-card .card-image { /* Icon container */
    width: 80px; /* Adjust as needed */
    height: 80px; /* Adjust as needed */
    margin-bottom: var(--spacing-unit);
    background-color: var(--color-primary-dark); /* Example background for icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.value-card .card-image img {
    width: 40px; /* Adjust icon size */
    height: 40px;
}
.value-card .card-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}
.value-card .card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}


/* -------------------
   8. Footer
   ------------------- */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: calc(var(--spacing-unit) * 3) 0 calc(var(--spacing-unit) * 1.5);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.site-footer h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-unit);
    position: relative;
    padding-bottom: calc(var(--spacing-unit) * 0.3);
}
.site-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-nav ul li, .footer-social ul li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.footer-nav a, .footer-social a {
    color: var(--text-muted); /* Lighter than body text for footer */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-speed) var(--transition-timing);
}

.footer-nav a:hover, .footer-social a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer-contact p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: calc(var(--spacing-unit) * 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 1.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-bottom p { margin-bottom: 0; }

/* -------------------
   9. Page Specific Styles
   ------------------- */
/* Success Page */
.success-page-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 100px); /* Approx footer height */
    text-align: center;
}
.success-page-section .page-title { color: var(--text-heading-section); } /* Dark text on light bg */
.success-page-section .page-title::after { background-color: var(--color-primary); }
.success-page-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* Privacy & Terms Pages */
.privacy-section, .terms-section, .content-section.section-padding { /* Generic content pages */
    /* padding-top: calc(var(--header-height) + var(--spacing-unit) * 2); */ /* Redundant, body has padding-top */
}
.privacy-section .container h2, .terms-section .container h2,
.page-header-section + .content-section .container h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-top: calc(var(--spacing-unit) * 1.5);
    margin-bottom: var(--spacing-unit);
}
.privacy-section .container h2::after, .terms-section .container h2::after,
.page-header-section + .content-section .container h2::after {
    margin-left: 0; /* Align with left-aligned title */
}
.privacy-section .container h3, .terms-section .container h3,
.page-header-section + .content-section .container h3 {
    text-align: left;
    font-size: 1.4rem;
    margin-top: var(--spacing-unit);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.page-header-section {
    padding: calc(var(--spacing-unit) * 3) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-light);
}

.content-section .text-content,
.privacy-section .text-content,
.terms-section .text-content {
    max-width: 800px; /* Readable line length for text-heavy pages */
    margin-left: auto;
    margin-right: auto;
}
.text-content ul, .text-content ol {
    margin-left: calc(var(--spacing-unit) * 1.5);
    margin-bottom: var(--spacing-unit);
    list-style: disc;
}
.text-content ol { list-style: decimal; }
.text-content li { margin-bottom: calc(var(--spacing-unit) * 0.5); }
.text-content strong { color: var(--text-dark); font-weight: 700; }
.text-content .content-image {
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    margin: var(--spacing-unit) auto; /* Center image */
}

/* Cookie Consent Popup */
/* (Basic styling is in HTML, this can enhance it if needed) */
#cookieConsentPopup {
    font-family: var(--font-secondary); /* Ensure it uses site fonts */
}
#cookieConsentPopup p a {
    font-weight: bold; /* Make link more prominent */
}

/* -------------------
   10. Utility Classes
   ------------------- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: var(--spacing-unit); }
.mt-1 { margin-top: var(--spacing-unit); }
.p-1 { padding: var(--spacing-unit); }
.sr-only { /* Screen reader only */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* -------------------
   11. Animations (Transitions are already included)
   ------------------- */
/* ScrollReveal animations will be JS-driven but rely on elements being initially 'invisible' or offset */
.animate-on-scroll {
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-timing), transform 0.6s var(--transition-timing);
}
.animate-on-scroll.is-visible { /* Class added by ScrollReveal */
    opacity: 1;
    transform: translateY(0);
}


/* -------------------
   12. Media Queries (Responsive Design)
   ------------------- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-title { font-size: 2.1rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.15rem; }

    .products-grid, .projects-grid, .testimonials-slider, .gallery-grid, .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust minmax for tablets */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: calc(var(--header-height) - 10px); /* Slightly smaller header on mobile */
    }
    .site-header {
        height: calc(var(--header-height) - 10px);
    }
    
    .main-navigation .nav-list {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        position: absolute;
        top: calc(var(--header-height) - 10px); /* Align with bottom of header */
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        box-shadow: var(--box-shadow-md);
        padding: var(--spacing-unit) 0;
        border-top: 1px solid var(--border-color);
    }
    .main-navigation.nav-open .nav-list {
        display: flex; /* Show on toggle */
    }
    .main-navigation .nav-list li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-navigation .nav-list a {
        display: block;
        padding: var(--spacing-unit);
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    .main-navigation .nav-list li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-list a::after {
        display: none; /* Remove underline effect for mobile stacked nav */
    }

    .nav-toggle {
        display: block; /* Show burger icon */
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .section-title { font-size: 1.9rem; margin-bottom: var(--spacing-unit) * 1.5; }
    .hero-title { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .section-padding, .section-padding-alt {
        padding-top: calc(var(--spacing-unit) * 2.5);
        padding-bottom: calc(var(--spacing-unit) * 2.5);
    }

    .contact-columns {
        flex-direction: column;
    }
    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .site-footer h4::after {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: calc(var(--container-padding) * 0.75);
        padding-right: calc(var(--container-padding) * 0.75);
    }
    h1 { font-size: 2rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .button, button, input[type="submit"] {
        font-size: 0.9rem;
        padding: calc(var(--spacing-unit)*0.6) calc(var(--spacing-unit)*1.5);
    }
    .products-grid, .projects-grid, .testimonials-slider, .gallery-grid, .links-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .card-image { height: 180px; }
}