/*
 * Main CSS file for eco-stretch ceiling website
 * Fully responsive, accessible, and optimized design
 * Mobile-first approach with comprehensive breakpoints
 */

/* ========== CSS VARIABLES ========== */
:root {
    /* Color Palette */
    --color-primary: #A9C6AA;       /* Sage Green - eco-friendly and calm */
    --color-primary-dark: #8FB48F;    /* Darker shade for hover states */
    --color-primary-light: #C4D7C5;   /* Lighter shade for backgrounds */
    --color-secondary: #F8F9F8;     /* Pure White - cleanliness and purity */
    --color-accent: #B9E3F0;        /* Sky Blue - lightness and air quality */
    --color-accent-dark: #8FCDDE;     /* Darker sky blue for hover states */
    --color-highlight: #DCD2C2;     /* Soft Sand Beige - warmth and natural */
    --color-text: #333333;          /* Dark gray for text */
    --color-text-light: #666666;    /* Lighter gray for secondary text */
    --color-text-lighter: #999999;    /* Even lighter gray for tertiary text */
    --color-background: #FFFFFF;      /* White background */
    --color-success: #4CAF50;         /* Green for success messages */
    --color-error: #F44336;           /* Red for error messages */
    --color-warning: #FF9800;         /* Orange for warning messages */
    --color-info: #2196F3;            /* Blue for info messages */

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-md: 1.125rem;     /* 18px */
    --font-size-lg: 1.25rem;      /* 20px */
    --font-size-xl: 1.5rem;       /* 24px */
    --font-size-2xl: 1.875rem;    /* 30px */
    --font-size-3xl: 2.25rem;     /* 36px */
    --font-size-4xl: 3rem;        /* 48px */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.8;

    /* Spacing */
    --space-xxs: 0.125rem;  /* 2px */
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 1rem;       /* 16px */
    --space-lg: 1.5rem;     /* 24px */
    --space-xl: 2rem;       /* 32px */
    --space-2xl: 2.5rem;    /* 40px */
    --space-3xl: 3rem;      /* 48px */
    --space-4xl: 4rem;      /* 64px */
    --space-5xl: 6rem;      /* 96px */

    /* Borders & Radius */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --border-thin: 1px solid rgba(0, 0, 0, 0.1);
    --border-medium: 2px solid rgba(0, 0, 0, 0.1);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index layers */
    --z-below: -1;
    --z-normal: 1;
    --z-above: 10;
    --z-dropdown: 1000;
    --z-sticky: 1100;
    --z-fixed: 1200;
    --z-modal: 1300;
}

/* ========== RESET & BASE STYLES ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: var(--font-size-2xl);
    position: relative;
    padding-bottom: var(--space-sm);
}

h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    transition: width var(--transition-medium);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

h5 {
    font-size: var(--font-size-md);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: pointer;
}

a:hover {
    color: var(--color-primary);
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

ul, ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
}

blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-md);
    color: var(--color-text-light);
    margin: var(--space-md) 0;
    font-style: italic;
}

hr {
    border: none;
    border-top: var(--border-thin);
    margin: var(--space-lg) 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
}

th, td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: var(--border-thin);
}

th {
    font-weight: var(--font-weight-semibold);
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    line-height: 1;
    padding: var(--space-sm) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    text-align: center;
    text-decoration: none;
}

button:hover,
.button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

button:active,
.button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

button:focus,
.button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:disabled,
.button:disabled {
    background-color: var(--color-text-lighter);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button.secondary,
.button.secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

button.secondary:hover,
.button.secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

button i,
.button i {
    margin-right: var(--space-sm);
}

button i:only-child,
.button i:only-child {
    margin-right: 0;
}

/* ========== LAYOUT & CONTAINERS ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.section-title h2 {
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.section-title p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-light);
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* ========== HEADER STYLES ========== */
.header {
    position: relative;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-sticky);
    transition: transform var(--transition-medium);
    padding: var(--space-sm) 0;
}

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

.logo {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
}

.logo a {
    color: var(--color-text);
    text-decoration: none;
}

.logo a:hover {
    color: var(--color-primary);
}

.header.hidden {
    transform: translateY(-100%);
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    margin: 0;
    gap: var(--space-lg);
}

.nav-desktop li {
    margin: 0;
}

.nav-desktop a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    position: relative;
}

.nav-desktop a:hover {
    color: var(--color-primary);
}

.nav-desktop a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-desktop a:hover:after,
.nav-desktop a.active:after {
    width: 100%;
}

.nav-desktop a.active {
    color: var(--color-primary);
}

/* Mobile Navigation Toggle */
.hamburger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: var(--z-above);
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--color-text);
    border-radius: var(--radius-sm);
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-medium);
    padding: var(--space-xl) var(--space-lg);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: var(--space-md);
}

.mobile-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    display: block;
    padding: var(--space-sm) 0;
}

.mobile-nav a:hover {
    color: var(--color-primary);
}

.mobile-nav a.active {
    color: var(--color-primary);
}

.no-scroll {
    overflow: hidden;
}

/* Overlay for mobile menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: var(--z-dropdown);
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 500px;
    height: 80vh;
    max-height: 800px;
    display: flex;
    align-items: center;
    background-color: var(--color-accent);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg);
    background-color: rgba(248, 249, 248, 0.8);
    border-radius: var(--radius-md);
}

.hero h1 {
    margin-bottom: var(--space-md);
    font-size: 2.5rem;
    color: var(--color-text);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

/* ========== FEATURES SECTION ========== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.feature-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    text-align: center;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--color-text-light);
}

/* ========== MATERIALS SECTION ========== */
.materials-section {
    background-color: var(--color-secondary);
    position: relative;
}

.cert-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.cert-icon {
    text-align: center;
    width: 100px;
}

.cert-icon i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.cert-icon p {
    margin-bottom: 0;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-md);
    text-align: left;
}

.comparison-table th {
    background-color: var(--color-primary);
    color: white;
    font-weight: var(--font-weight-semibold);
}

.comparison-table tr:nth-child(even) {
    background-color: rgba(169, 198, 170, 0.1);
}

.comparison-table tr:hover {
    background-color: rgba(169, 198, 170, 0.2);
}

.comparison-table td {
    border-bottom: var(--border-thin);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ========== INSTALLATION SECTION ========== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-md) 0 var(--space-xl);
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: var(--space-md) var(--space-md) var(--space-xl);
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    top: var(--space-md);
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd)::after {
    right: -14px;
}

.timeline-item:nth-child(even)::after {
    left: -14px;
}

.timeline-content {
    background-color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
}

/* ========== SUSTAINABILITY SECTION ========== */
.sustainability-section {
    position: relative;
}

.sustainability-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/sustainability-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.eco-commitment {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
}

/* Calculator */
.calculator {
    background-color: var(--color-highlight);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    position: relative;
}

.calculator h3 {
    margin-bottom: var(--space-md);
}

.calculator-form {
    margin-bottom: var(--space-md);
}

.calculator-form .form-group {
    margin-bottom: var(--space-md);
}

.calculator-result {
    background-color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    display: none;
}

/* ========== PRODUCTS SECTION ========== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.product-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-details {
    padding: var(--space-lg);
}

.product-title {
    margin-bottom: var(--space-sm);
}

.product-price {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    background-color: var(--color-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.contact-info {
    padding: var(--space-lg);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-right: var(--space-md);
}

.contact-map {
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: var(--space-lg);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Form Styles */
.form {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--space-md);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-medium);
}

.form-control {
    width: 100%;
    padding: var(--space-sm);
    border: var(--border-thin);
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-control.error {
    border-color: var(--color-error);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.error-message {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
}

/* Checkbox & Radio Styles */
.checkbox-group,
.radio-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input,
.radio-group input {
    margin-right: var(--space-sm);
    margin-top: 5px;
}

/* ========== FOOTER STYLES ========== */
.footer {
    background-color: var(--color-text);
    color: white;
    padding: var(--space-lg) 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    color: white;
}

.footer-about p {
    margin-bottom: var(--space-md);
}

.footer-menu {
    margin-bottom: var(--space-md);
}

.footer-menu h4 {
    color: white;
    margin-bottom: var(--space-md);
    font-size: var(--font-size-md);
    position: relative;
    padding-bottom: var(--space-xs);
}

.footer-menu ul {
    list-style: none;
    margin: 0;
}

.footer-menu li {
    margin-bottom: var(--space-sm);
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-menu a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--color-primary);
}

.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* ========== PRIVACY POLICY POPUP ========== */
.privacy-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-text);
    color: white;
    padding: var(--space-md);
    z-index: var(--z-modal);
    transform: translateY(100%);
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.privacy-popup.active {
    transform: translateY(0);
}

.privacy-popup-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.privacy-popup-text {
    flex: 1;
}

.privacy-popup-text p {
    margin-bottom: 0;
}

/* ========== 404 PAGE ========== */
.not-found {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.not-found h1 {
    font-size: 5rem;
    margin-bottom: var(--space-md);
}

.not-found p {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
}

/* ========== THANK YOU PAGE ========== */
.thank-you {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--color-success);
    margin-bottom: var(--space-lg);
}

/* ========== PLAIN PAGES ========== */
.plain-page {
    padding: var(--space-xl) 0;
}

.plain-page h1 {
    margin-bottom: var(--space-lg);
}

.plain-page h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

.plain-page ul,
.plain-page ol {
    margin-bottom: var(--space-lg);
}

/* ========== UTILITY CLASSES ========== */
/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Font weights */
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Text colors */
.text-primary { color: var(--color-primary) !important; }
.text-light { color: var(--color-text-light) !important; }
.text-white { color: white !important; }

/* Background colors */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-accent { background-color: var(--color-accent) !important; }
.bg-white { background-color: white !important; }

/* Margins */
.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-xs) !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom: var(--space-xl) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-xs { margin-top: var(--space-xs) !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }

.m-auto { margin: auto !important; }

/* Padding */
.p-0 { padding: 0 !important; }
.p-xs { padding: var(--space-xs) !important; }
.p-sm { padding: var(--space-sm) !important; }
.p-md { padding: var(--space-md) !important; }
.p-lg { padding: var(--space-lg) !important; }
.p-xl { padding: var(--space-xl) !important; }

/* Width & height */
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

/* Flex utils */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-sm { gap: var(--space-sm) !important; }
.gap-md { gap: var(--space-md) !important; }
.gap-lg { gap: var(--space-lg) !important; }

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .products-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 var(--space-lg);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .products-grid,
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .section {
        padding: var(--space-4xl) 0;
    }

    .hero-content {
        padding: var(--space-xl);
    }

    /* Make timeline items appear on respective sides */
    .timeline-item {
        position: relative;
        width: 50%;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
    }

    .timeline-item:nth-child(odd)::after {
        right: -14px;
    }

    .timeline-item:nth-child(even)::after {
        left: -14px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .nav-desktop {
        display: block;
    }

    .hamburger {
        display: none;
    }

    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 var(--space-lg);
    }

    .hero-content {
        max-width: 800px;
        padding: var(--space-xl);
    }
}

/* For smaller mobile devices (320px - 380px) */
@media (max-width: 380px) {
    :root {
        --font-size-base: 0.875rem;
        --font-size-md: 1rem;
        --font-size-lg: 1.125rem;
        --font-size-xl: 1.25rem;
        --font-size-2xl: 1.5rem;
        --font-size-3xl: 1.75rem;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .hero-content {
        padding: var(--space-md);
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .button {
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .feature-card {
        padding: var(--space-md);
    }

    .footer {
        padding: var(--space-md) 0;
    }
}

/* Ensure proper timeline on mobile */
@media (max-width: 767px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: var(--space-sm);
    }

    .timeline-item::after {
        left: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 20px;
    }
}

/* Fix responsive table */
@media (max-width: 767px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Handle small height displays */
@media (max-height: 600px) {
    .hero {
        min-height: 400px;
        height: auto;
    }

    .hero h1 {
        margin-bottom: var(--space-sm);
    }

    .hero p {
        margin-bottom: var(--space-md);
    }
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .header,
    .footer,
    .mobile-nav,
    .hamburger,
    .privacy-popup {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    a {
        text-decoration: underline;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    .product-card,
    .feature-card,
    .timeline-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    button,
    .button {
        border: 1px solid #000;
        color: #000 !important;
        background: none !important;
        box-shadow: none !important;
    }

    table {
        page-break-inside: avoid;
    }

    .hero {
        height: auto;
        min-height: 0;
    }
}