/* ============================================
   AR Trading — Modern Website Styles
   ============================================ */

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

:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    --green-950: #052e16;

    --sand-50: #faf8f5;
    --sand-100: #f3efe8;
    --sand-200: #e8e0d4;
    --sand-300: #d4c8b5;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #030712;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 56px;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h2 em, h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--green-700);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--green-700);
    color: white;
    border-color: var(--green-700);
}

.btn-primary:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

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

.navbar.scrolled .logo-img {
    filter: none;
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-500);
    transition: var(--transition);
}

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

.navbar.scrolled .nav-links a {
    color: var(--gray-600);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--green-700);
}

.nav-cta {
    padding: 10px 22px !important;
    background: var(--green-700);
    color: white !important;
    border-radius: var(--radius-sm);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--green-800);
}

.navbar.scrolled .nav-cta {
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin-right: -10px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .nav-toggle span {
    background: var(--gray-800);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(5,46,22,0.85) 0%, rgba(20,83,45,0.75) 40%, rgba(26,58,42,0.8) 100%),
        url('../img/header-bg.webp') center/cover no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(34, 197, 94, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322c55e' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
    max-width: 960px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    color: var(--green-300);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.3rem, 5.5vw, 4.2rem);
    color: white;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 em {
    color: var(--green-400);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    display: inline;
}

.stat-suffix {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green-400);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.hero-scroll a:hover {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* --- Section Common --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* --- Services Grid --- */
.services {
    min-height: 100vh;
    padding: 120px 0;
    background: var(--sand-50);
    display: flex;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    display: block;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--green-200);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--green-700);
}

.service-card:hover .service-icon {
    background: var(--green-700);
}

.service-card:hover .service-icon svg {
    stroke: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green-700);
    transition: var(--transition);
}

.service-card:hover .service-link {
    color: var(--green-800);
}

/* --- Detail Sections --- */
.detail-section {
    min-height: 100vh;
    padding: 100px 0;
    display: flex;
    align-items: center;
}

.detail-section:nth-child(even) {
    background: var(--sand-50);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.detail-grid.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.detail-grid.reverse .detail-visual {
    order: 2;
}

.detail-grid.reverse .detail-content {
    order: 1;
}

.detail-content .section-tag {
    display: block;
    margin-bottom: 12px;
}

.detail-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 20px;
    color: var(--gray-900);
}

.detail-content > p {
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Visual Cards */
.visual-card {
    position: relative;
    border-radius: var(--radius-xl);
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
}

.visual-card[style*="background-image"] {
    background-size: cover;
    background-position: center;
}

.sapins-visual {
    background-color: #1a4731;
}

.deco-visual {
    background-color: #065f46;
}

.plantes-visual {
    background-color: #3f6212;
}

.visual-pattern {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.1) 100%);
}

.visual-content {
    position: relative;
    text-align: left;
    z-index: 1;
}

.visual-content svg {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.visual-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(10, 40, 24, 0.72);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Feature lists */
.feature-list {
    margin-bottom: 32px;
}

.feature-group {
    margin-bottom: 20px;
}

.feature-group h4 {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: var(--green-50);
    color: var(--green-800);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--green-100);
}

/* Check list */
.advantages h4 {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 14px;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    font-size: 0.92rem;
    color: var(--gray-600);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--green-100);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%2315803d' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 11.5l-3-3 1-1 2 2 5-5 1 1-6 6z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Stats row */
.stats-row {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.mini-stat {
    text-align: center;
    flex: 1;
}

.mini-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-700);
}

.mini-stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Concepts grid */
.concepts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.concept {
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.concept:hover {
    border-color: var(--green-200);
    box-shadow: var(--shadow-md);
}

.concept h4 {
    font-size: 0.95rem;
    color: var(--green-800);
    margin-bottom: 6px;
}

.concept p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Plant types */
.plant-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.plant-type {
    text-align: center;
    padding: 24px 16px;
    background: var(--green-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--green-100);
    transition: var(--transition);
}

.plant-type:hover {
    background: var(--green-100);
    transform: translateY(-2px);
}

.plant-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
}

.plant-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--green-700);
}

.plant-type span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-800);
}

/* CTA box */
.cta-box {
    padding: 28px;
    background: var(--sand-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--sand-200);
}

.cta-box p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* --- Projects --- */
.projects {
    min-height: 100vh;
    padding: 120px 0;
    background: var(--gray-950);
    display: flex;
    align-items: center;
}

.projects .section-tag {
    color: var(--green-400);
}

.projects .section-header h2 {
    color: white;
}

.projects .section-header p {
    color: var(--gray-400);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 200px;
    cursor: pointer;
    background-color: var(--green-900);
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.project-large {
    grid-column: 1 / 3;
    grid-row: 1 / 4;
    min-height: 500px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.1) 100%);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 1;
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(10, 40, 24, 0.75);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    color: var(--green-300);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.project-info h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.project-info p {
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
}

/* --- Gallery Modal --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: var(--radius-xl);
    max-width: 1000px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px 40px;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.modal.open .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.modal-title {
    font-size: 1.6rem;
    margin-bottom: 28px;
    color: var(--gray-900);
    padding-right: 40px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

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

.modal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Lightbox (single image zoom) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

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

.lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .modal-content {
        padding: 32px 20px;
        border-radius: var(--radius-lg);
    }

    .modal-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .lightbox-nav {
        width: 36px;
        height: 36px;
    }

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

/* --- Contact --- */
.contact {
    min-height: 100vh;
    padding: 120px 0;
    display: flex;
    align-items: center;
    background: var(--sand-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-tag {
    display: block;
    margin-bottom: 12px;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 20px;
    color: var(--gray-900);
}

.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--green-700);
}

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.contact-item a {
    color: var(--green-700);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--green-800);
}

/* Contact form */
.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--gray-800);
    transition: var(--transition);
    background: var(--gray-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='%236b7280' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* --- Footer --- */
.footer {
    background: var(--gray-950);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-img {
    filter: brightness(0) invert(1);
    height: 40px;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li,
.footer-links a {
    font-size: 0.88rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--green-400);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--gray-500);
}

.footer-bottom a {
    color: var(--gray-500);
    text-decoration: underline;
}

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

/* --- Legal page --- */
.legal {
    max-width: 800px;
    padding: 140px 24px 80px;
}

.legal h1 {
    font-size: 2.4rem;
    margin: 12px 0 40px;
}

.legal h2 {
    font-size: 1.2rem;
    margin: 32px 0 10px;
}

.legal p {
    color: var(--gray-600);
    line-height: 1.8;
}

.legal a {
    color: var(--green-700);
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        gap: 16px;
    }

    .service-card {
        padding: 32px 22px;
    }

    .detail-grid,
    .detail-grid.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-grid.reverse .detail-visual,
    .detail-grid.reverse .detail-content {
        order: unset;
    }

    .visual-card {
        height: 300px;
    }

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

    .project-large {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 360px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 32px 40px;
        gap: 24px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: var(--transition);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: var(--gray-700) !important;
        font-size: 1rem;
    }

    .nav-links a.nav-cta {
        color: white !important;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number, .stat-suffix {
        font-size: 1.6rem;
    }

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

    .hero-actions .btn {
        text-align: center;
        justify-content: center;
    }

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

    .plant-types {
        grid-template-columns: 1fr 1fr;
    }

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

    .stats-row {
        flex-wrap: wrap;
        gap: 20px;
    }

    .mini-stat {
        flex: none;
        width: calc(50% - 10px);
    }

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

    .project-large {
        min-height: 280px;
    }

    .project-card {
        min-height: 200px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Bigger tap targets for footer links on touch screens */
    .footer-links a,
    .footer-bottom a,
    .contact-item a {
        display: inline-block;
        padding: 8px 0;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .stat-label {
        display: inline;
        margin-top: 0;
    }
}

/* --- Contact form feedback --- */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-status.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Project video --- */
.project-video-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(10, 40, 24, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
}

.modal-video:empty {
    display: none;
}

.modal-video {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 20px;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.modal-video video {
    display: block;
    max-width: 100%;
    max-height: 70vh;
}

/* Featured project: vertical video shown whole over a blurred copy of its poster */
.project-video-backdrop {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.6);
}

.project-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-has-video .project-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 40%, transparent 70%);
}

@media (max-width: 768px) {
    .project-large.project-has-video {
        min-height: 70vh;
    }
}
