/* ========================================
   Vertisa Kompost - Corporate Website
   Aesthetic: Organic Industrial
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --forest: #1a4d2e;
    --forest-dark: #0f3320;
    --forest-light: #2d6a4f;
    --sage: #169b26;
    --sage-light: #74a69a;
    --mint: #95d5b2;
    --cream: #f8f6f2;
    --cream-dark: #f0ebe3;
    --gold: #c9a227;
    --gold-light: #dbb93a;
    --charcoal: #2d3436;
    --gray-dark: #4a5568;
    --gray: #718096;
    --gray-light: #a0aec0;
    --white: #ffffff;

    /* Typography */
    --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(26, 77, 46, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 77, 46, 0.12);
    --shadow-lg: 0 8px 40px rgba(26, 77, 46, 0.16);
    --shadow-xl: 0 16px 60px rgba(26, 77, 46, 0.2);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

/* ========================================
   Preloader
   ======================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm) 0;
}

.header.scrolled .nav-link {
    color: var(--charcoal);
    text-shadow: none;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--forest);
}

.header.scrolled .header-phone {
    color: var(--forest);
    border-color: var(--forest);
}

.header.scrolled .header-phone:hover {
    background: var(--forest);
    color: var(--white);
}

.header.scrolled .mobile-toggle span {
    background: var(--forest);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: filter var(--transition-base), transform var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

.header.scrolled .logo-img {
    filter: none;
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-base), text-shadow var(--transition-base);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.header-phone:hover {
    background: var(--white);
    color: var(--forest);
    border-color: var(--white);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section - Full Screen with Background Image
   ======================================== */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Hero Background Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image,
.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(15, 51, 32, 0.4) 50%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px var(--space-lg) var(--space-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 85vh;
}

.hero-content {
    max-width: 700px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
    border-left: 3px solid var(--sage);
}

.hero-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
}

.title-line.accent,
.hero-title .accent {
    color: var(--sage);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(22, 155, 38, 0.2);
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-xl);
    max-width: 550px;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Primary Button */
.btn-hero-primary {
    background: var(--white);
    color: var(--forest);
    border: 2px solid var(--white);
    font-weight: 700;
}

.btn-hero-primary:hover {
    background: var(--sage);
    color: var(--white);
    border-color: var(--sage);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 106, 79, 0.3);
}

.btn-hero-primary svg {
    transition: transform var(--transition-base);
}

.btn-hero-primary:hover svg {
    transform: translateX(4px);
}

/* Hero Outline Light Button */
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--forest);
    border-color: var(--white);
}

/* Scroll Indicator - Mouse Style */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
    z-index: 2;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        opacity: 1;
        top: 8px;
    }
    50% {
        opacity: 0.3;
        top: 20px;
    }
}

.scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--forest);
    color: var(--white);
    border: 2px solid var(--forest);
}

.btn-primary:hover {
    background: var(--forest-dark);
    border-color: var(--forest-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary svg {
    transition: transform var(--transition-base);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--forest);
    border: 2px solid var(--forest);
}

.btn-outline:hover {
    background: var(--forest);
    color: var(--white);
}

.btn-outline.light {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline.light:hover {
    background: var(--white);
    color: var(--forest);
}

.btn-outline-primary {
    background: transparent;
    color: var(--sage);
    border: 2px solid var(--sage);
}

.btn-outline-primary:hover {
    background: var(--sage);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(22, 155, 38, 0.3);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header.center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.section-label.light {
    color: var(--mint);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
}

.section-title.light {
    color: var(--white);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-top: var(--space-md);
    max-width: 600px;
}

.section-header.center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-intro {
    margin-bottom: var(--space-xl);
}

.about-intro .lead {
    font-size: 1.25rem;
    color: var(--charcoal);
    font-weight: 500;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.about-intro p {
    color: var(--gray-dark);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: var(--cream);
    transform: translateX(10px);
}

.feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--forest) 0%, var(--sage) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* About Visual */
.about-visual {
    position: relative;
}

.visual-card {
    position: relative;
}

.card-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* About Image */
.about-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.image-placeholder {
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--white) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    min-height: 400px;
    border: 1px solid rgba(26, 77, 46, 0.1);
}

.image-placeholder svg {
    width: 80%;
    max-width: 250px;
    margin-bottom: var(--space-md);
}

.image-placeholder span {
    font-size: 0.875rem;
    color: var(--gray);
}

.card-accent {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--forest);
    color: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.accent-year {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.accent-text {
    font-size: 0.875rem;
    margin-top: var(--space-xs);
    line-height: 1.4;
}

/* ========================================
   Products Section
   ======================================== */
.products {
    background: var(--forest);
    position: relative;
    overflow: hidden;
}

.products-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(201, 162, 39, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.products .section-title {
    color: var(--white);
}

.products .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

.products-showcase {
    position: relative;
    z-index: 1;
}

.product-main {
    margin-bottom: var(--space-xl);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

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

.product-card.featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--gold);
    color: var(--charcoal);
    font-size: 0.75rem;
    font-weight: 700;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.product-image {
    position: relative;
    background: var(--cream);
    overflow: hidden;
}

/* Product Images */
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-card.featured .product-image {
    min-height: 400px;
}

.product-card.featured .product-img {
    min-height: 400px;
}

.product-card.featured .image-placeholder.large {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.product-info {
    padding: var(--space-xl);
}

.product-card.featured .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.product-info p {
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.product-features {
    margin-bottom: var(--space-lg);
}

.product-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    color: var(--charcoal);
}

.product-features svg {
    color: var(--forest);
    flex-shrink: 0;
}

.product-capacity {
    display: inline-block;
    background: var(--cream);
    color: var(--forest);
    font-size: 0.8rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.product-grid .product-card {
    display: flex;
    flex-direction: column;
}

.product-grid .product-image {
    height: 220px;
}

.product-grid .product-img {
    height: 220px;
}

.product-grid .image-placeholder {
    min-height: 220px;
    padding: var(--space-md);
}

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

.product-grid .product-info h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.product-grid .product-info p {
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

/* Products CTA */
.products-cta {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.products-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

/* ========================================
   References Section
   ======================================== */
.references {
    background: var(--cream);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.reference-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--forest), var(--sage));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 77, 46, 0.1);
}

.reference-card:hover::before {
    transform: scaleX(1);
}

.reference-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-md);
    color: var(--forest);
}

.reference-icon svg {
    width: 100%;
    height: 100%;
}

.reference-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   Certificates Section
   ======================================== */
.certificates {
    background: var(--white);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.certificate-card {
    text-align: center;
    padding: var(--space-md);
    transition: all var(--transition-base);
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.certificate-image {
    margin-bottom: var(--space-md);
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid rgba(26, 77, 46, 0.1);
    transition: all var(--transition-base);
    overflow: hidden;
}

.certificate-card:hover .certificate-image {
    box-shadow: var(--shadow-md);
}

.cert-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
}

.certificate-card:hover .cert-img {
    transform: scale(1.03);
}

.certificate-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.certificate-card p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--forest);
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 0% 100%, rgba(201, 162, 39, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    position: relative;
    z-index: 1;
}

.contact-intro {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.contact-details {
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.contact-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.contact-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-text a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.contact-text a:hover {
    color: var(--gold);
}

/* Contact Social */
.contact-social h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-base);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--gold);
    color: var(--charcoal);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
}

.contact-form-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.contact-form-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.contact-form-card > p {
    color: var(--gray);
    margin-bottom: var(--space-xl);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    background: var(--cream);
    color: var(--charcoal);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--forest);
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 16px;
}

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

/* Checkbox */
.checkbox-group {
    margin-top: var(--space-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    background: var(--cream);
    position: relative;
    transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--forest);
    border-color: var(--forest);
}

.checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.checkbox-text a {
    color: var(--forest);
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: var(--forest-light);
}

/* Contact Form Button */
.contact-form .btn {
    margin-top: var(--space-md);
}

/* Contact Map */
.contact-map {
    margin-top: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.map-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-placeholder svg {
    width: 100%;
    max-width: 600px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--forest-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-3xl) 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.footer-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition-base);
}

.footer-logo:hover .footer-logo-img {
    opacity: 0.8;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
}

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

.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--gold);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--gold);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    background: var(--forest);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--forest-dark);
    transform: translateY(-3px);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Large Tablets */
@media (max-width: 1200px) {
    .product-card.featured {
        grid-template-columns: 1fr;
    }

    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* Tablets */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 100px var(--space-xl) var(--space-xl);
        transition: right var(--transition-base);
        box-shadow: var(--shadow-xl);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .nav-link {
        font-size: 1.1rem;
        color: var(--charcoal);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--forest);
    }

    .mobile-toggle {
        display: flex;
    }

    .header-phone span {
        display: none;
    }

    .header-phone {
        padding: var(--space-sm);
    }

    /* Hero responsive */
    .hero-content-wrapper {
        padding: 120px var(--space-md) var(--space-2xl);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-visual {
        order: -1;
    }

    .card-accent {
        bottom: -20px;
        left: 20px;
    }

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

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

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-3xl: 4rem;
    }

    .hero-content-wrapper {
        padding: 100px var(--space-sm) var(--space-xl);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --space-2xl: 3rem;
        --space-3xl: 3rem;
    }

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

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

    .logo-img {
        height: 30px;
    }

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

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

    .hero-badge {
        padding-left: var(--space-sm);
        border-left-width: 2px;
    }

    .hero-badge span {
        font-size: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .references-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: var(--space-lg);
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
    z-index: 2;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 20px;
        transform: none;
    }
    .lightbox-prev { left: calc(50% - 60px); }
    .lightbox-next { right: calc(50% - 60px); }
}

/* Print Styles */
@media print {
    .header,
    .preloader,
    .scroll-indicator,
    .back-to-top,
    .contact-form,
    .contact-map {
        display: none !important;
    }

    .section {
        padding: var(--space-lg) 0;
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
    }
}
