﻿/* ==========================================================================
   Alfatentes Unified Stylesheet β€” v1.0
   Clean modern theme for outdoor shading & awning company.
   Font: Ubuntu  |  Accent: Red / Steel-Black

   Structure:
   1) Variables & Base
   2) Top Bar / Navigation
   3) Hero Section
   4) Page Sections & Content
   5) Footer
   6) Animations
   7) Blog Listing & Post
   8) Masonry Gallery & Lightbox
   9) Responsive Breakpoints
   ========================================================================== */


/* ==========================================================================
   1) VARIABLES & BASE
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-alt: #f6f6f7;
    --bg-card: #ffffff;
    --bg-card-hover: #fdf4f4;
    --bg-surface: #f1f1f2;
    --text-primary: #241E1C;
    --text-secondary: #3d3735;
    --text-muted: #706a68;
    --border: #dddcdb;
    --border-hover: #c5c2c1;
    --accent: #E11B22;
    --accent-light: #f0353b;
    --accent-dark: #b2161c;
    --accent-glow: rgba(225, 27, 34, 0.12);
    --accent-soft: rgba(225, 27, 34, 0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --nav-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Ubuntu', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

.main-wrapper {
    /*display: flex;
    flex-direction: column;*/
    min-height: 100vh;
}


/* ==========================================================================
   2) TOP BAR / NAVIGATION
   ========================================================================== */

.top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-height);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.top-bar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.top-bar-logo {
    height: 36px;
    width: auto;
    display: block;
}

.top-bar-links {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-left: auto;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-bar-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.top-bar-links a:hover { color: var(--accent); }
.top-bar-links a.active { color: var(--accent); font-weight: 600; }


/* ===== Dropdown ===== */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}

.nav-dropdown-toggle:hover { color: var(--accent); }

.nav-dropdown-toggle svg {
    transition: transform 0.3s;
}

.nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.nav-dropdown-item:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
}

.nav-dropdown-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--accent);
}

.nav-dropdown-item-text {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-item-name {
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.3;
}

.nav-dropdown-item-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 8px;
}

.nav-dropdown-item .nav-ext {
    margin-left: auto;
    color: var(--text-muted);
    flex-shrink: 0;
}


/* ===== Language Dropdown ===== */

.nav-lang {
    position: relative;
}

.nav-lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    font-family: inherit;
    transition: all 0.2s;
}

.nav-lang-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.nav-lang-toggle svg {
    transition: transform 0.3s;
}

.nav-lang.open .nav-lang-toggle svg {
    transform: rotate(180deg);
}

.nav-lang-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
}

.nav-lang-code {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
}

.nav-lang.open .nav-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    transition: all 0.2s;
}

.nav-lang-option:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
}

.nav-lang-option.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-lang-option .nav-lang-code {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.68rem;
}


/* Hamburger button (hidden on desktop) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}


/* ==========================================================================
   3) HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
    animation: heroReveal 0.8s ease-out both;
}

.hero-content h1 span {
    color: var(--accent-light);
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: heroReveal 0.8s ease-out 0.15s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    animation: heroReveal 0.8s ease-out 0.3s both;
}

.hero-cta:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    animation: bounceDown 2s infinite;
}


/* β”€β”€ Hero Swiper slider β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ */

.hero-swiper {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.hero-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-swiper .swiper-slide .hero-bg {
    transition: transform 6s ease-out;
    transform: scale(1.08);
}

.hero-swiper .swiper-slide-active .hero-bg {
    transform: scale(1);
}

/* Text entrance animation per slide */
.hero-swiper .swiper-slide .hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.hero-swiper .swiper-slide-active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Override the single-slide heroReveal animations in slider context */
.hero-swiper .hero-content h1,
.hero-swiper .hero-content p,
.hero-swiper .hero-cta {
    animation: none;
}

/* Pagination bullets */
.hero-pagination.swiper-pagination {
    bottom: 72px;
    z-index: 3;
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: background 0.3s, transform 0.3s;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--accent);
    transform: scale(1.3);
}


/* ==========================================================================
   4) PAGE SECTIONS & CONTENT
   ========================================================================== */

/* Spacer for fixed navbar */
.page-top-spacer {
    height: var(--nav-height);
}

/* Inner page hero (smaller) */
.page-hero {
    padding: 140px 24px 64px;
    text-align: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* Page hero with background image β€” add class "has-bg" + inline style */
.page-hero.has-bg {
    position: relative;
    overflow: hidden;
    background: center center / cover no-repeat;
    border-bottom: none;
    padding: 160px 24px 80px;
}

.page-hero.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.50) 0%,
        rgba(0, 0, 0, 0.40) 40%,
        rgba(0, 0, 0, 0.60) 100%
    );
    z-index: 0;
}

.page-hero.has-bg .page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero.has-bg h1 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-hero.has-bg p {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.page-hero.has-bg .badge {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
}

/* Modifier: remove the dark overlay from has-bg hero */
.page-hero.has-bg.no-overlay::before {
    display: none;
}

/* Generic sections */
.page-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.page-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-section.alt-bg {
    background: var(--bg-alt);
    max-width: 100%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.page-section.alt-bg > .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.section-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-intro h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-intro h2 span {
    color: var(--accent);
}

.section-intro p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Prose / rich content from CMS */
.prose {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.prose h2, .prose h3, .prose h4 {
    color: var(--text-primary);
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }

.prose p { margin-bottom: 1em; }

.prose img {
    border-radius: var(--radius-sm);
    margin: 1.5em 0;
}

.prose ul, .prose ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--accent-dark);
}


/* ===== Cards Grid ===== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    opacity: 0;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card.visible {
    animation: fadeUp 0.7s ease-out forwards;
}

.card.visible:nth-child(1) { animation-delay: 0.05s; }
.card.visible:nth-child(2) { animation-delay: 0.10s; }
.card.visible:nth-child(3) { animation-delay: 0.15s; }
.card.visible:nth-child(4) { animation-delay: 0.20s; }
.card.visible:nth-child(5) { animation-delay: 0.25s; }
.card.visible:nth-child(6) { animation-delay: 0.30s; }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 1.3rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}


/* ===== Feature Grid ===== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
}

.feature-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--accent);
    font-size: 1.4rem;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ===== Stats Row ===== */

.stats-row, .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 32px 16px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* ===== Process Steps ===== */

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: process;
}

.process-step {
    counter-increment: process;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
}

.process-step::before {
    content: counter(process, decimal-leading-zero);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-soft);
    line-height: 1;
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    opacity: 0.25;
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ===== CTA Banner ===== */

.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius);
    padding: 56px 40px;
    text-align: center;
    color: #fff;
}

.cta-banner h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.cta-banner p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 28px;
}

.cta-banner .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    background: #fff;
    color: var(--accent-dark);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-banner .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: var(--accent-dark);
}


/* ===== Contact Section ===== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-detail p,
.contact-detail a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

.contact-form h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-family: 'Ubuntu', sans-serif;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Ubuntu', sans-serif;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* ===== Map ===== */

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 32px;
}

.map-container iframe,
.map-container #map-canvas {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}


/* ===== Gallery / Works Grid ===== */

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.work-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.work-item:hover img {
    transform: scale(1.06);
}

.work-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.work-item:hover .work-item-overlay {
    opacity: 1;
}

.work-item-overlay h3 {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}


/* ===== About Page Extras ===== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-content img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
}

.about-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}


/* ===== Breadcrumbs ===== */

.breadcrumb-bar {
    padding: 14px 24px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.breadcrumb-bar ol {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.breadcrumb-bar li {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.breadcrumb-bar li a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-bar li a:hover {
    color: var(--accent);
}

.breadcrumb-bar li + li::before {
    content: 'β€Ί';
    margin-right: 8px;
    color: var(--text-muted);
}


/* ===== Products Grid ===== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-card-img img {
    transform: scale(1.04);
}

.product-card-body {
    padding: 24px;
}

.product-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 12px;
    transition: gap 0.2s;
}

.product-card-link:hover {
    gap: 10px;
    color: var(--accent-dark);
}


/* ==========================================================================
   5) FOOTER
   ========================================================================== */

.site-footer {
    position: relative;
    margin-top: 80px;
    border-top: 1px solid var(--border);
    background: #241E1C;
    color: #ccc;
}

.site-footer-glow {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, 60%);
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-light) 30%,
        var(--accent) 50%,
        var(--accent-dark) 70%,
        transparent
    );
    opacity: 0.7;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 40px 0;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

.site-footer-brand {
    padding-right: 24px;
}

.site-footer-logo {
    height: 32px;
    margin-bottom: 18px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.site-footer-logo:hover {
    opacity: 1;
}

.site-footer-tagline {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.site-footer-address {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.6;
}

.site-footer-heading {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
}

.site-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer-links li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer-links a {
    font-size: 0.82rem;
    color: #aaa;
    text-decoration: none;
    transition: color 0.25s;
}

.site-footer-links a:hover {
    color: var(--accent-light);
}

.site-footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.site-footer-social {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.site-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #333;
    background: transparent;
    color: #888;
    transition: all 0.3s;
}

.site-footer-social a:hover {
    border-color: var(--accent);
    background: rgba(225, 27, 34, 0.1);
    color: var(--accent-light);
}

.site-footer-social svg {
    width: 16px;
    height: 16px;
}

.site-footer-bottom {
    margin-top: 56px;
    border-top: 1px solid #333;
}

.site-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 28px;
}

.site-footer-bottom p {
    font-size: 0.75rem;
    color: #666;
}

.site-footer-bottom-links {
    display: flex;
    gap: 24px;
}

.site-footer-bottom-links a {
    font-size: 0.75rem;
    color: #666;
    text-decoration: none;
    transition: color 0.25s;
}

.site-footer-bottom-links a:hover {
    color: #aaa;
}

.site-footer-powered {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
}

.site-footer-powered a {
    color: #888;
    text-decoration: none;
    transition: color 0.25s;
}

.site-footer-powered a:hover {
    color: #aaa;
}


/* ==========================================================================
   6) ANIMATIONS
   ========================================================================== */

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ==========================================================================
   7) BLOG β€” Listing & Post Detail
   ========================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.blog-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.blog-card-body h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-body h3 a:hover {
    color: var(--accent);
}

.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.blog-card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.blog-card-link:hover {
    gap: 10px;
    color: var(--accent-dark);
}

/* Blog post detail */
.blog-post-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.blog-post-img img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-meta {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-post-meta i {
    font-size: 0.85rem;
}

.blog-post-meta .meta-sep {
    margin: 0 8px;
    color: var(--border);
}

/* Blog empty state */
.blog-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.blog-empty i {
    font-size: 3rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 16px;
}


/* ==========================================================================
   8) MASONRY GALLERY & LIGHTBOX  (Work-detail page)
   ========================================================================== */

/* ===== Masonry Grid ===== */

.masonry-gallery {
    columns: 3;
    column-gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: block;
    opacity: 0;
}

.masonry-item.visible {
    animation: fadeUp 0.6s ease-out forwards;
}

.masonry-item:nth-child(1)  { animation-delay: 0.02s; }
.masonry-item:nth-child(2)  { animation-delay: 0.06s; }
.masonry-item:nth-child(3)  { animation-delay: 0.10s; }
.masonry-item:nth-child(4)  { animation-delay: 0.14s; }
.masonry-item:nth-child(5)  { animation-delay: 0.18s; }
.masonry-item:nth-child(6)  { animation-delay: 0.22s; }
.masonry-item:nth-child(7)  { animation-delay: 0.26s; }
.masonry-item:nth-child(8)  { animation-delay: 0.30s; }
.masonry-item:nth-child(9)  { animation-delay: 0.34s; }
.masonry-item:nth-child(10) { animation-delay: 0.38s; }
.masonry-item:nth-child(11) { animation-delay: 0.42s; }
.masonry-item:nth-child(12) { animation-delay: 0.46s; }

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, filter 0.3s;
}

.masonry-item:hover img {
    transform: scale(1.04);
    filter: brightness(0.92);
}

.masonry-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
}

.masonry-item:hover .masonry-item-overlay {
    opacity: 1;
}

.masonry-item-overlay i {
    color: #fff;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.35);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}


/* ===== Lightbox ===== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.6rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.lightbox-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.lightbox-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 64px rgba(0,0,0,0.4);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.lightbox.active .lightbox-img-wrap img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    background: rgba(0,0,0,0.4);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}


/* ===== Work-detail page content ===== */

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

.page-hero .badge {
    display: inline-block;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s, gap 0.2s;
}

.back-link:hover {
    color: var(--accent);
    gap: 8px;
}

.work-detail-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 40px;
}

.work-detail-description {
    margin-bottom: 16px;
}

.work-detail-description p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1.1em;
}

.work-detail-description ul,
.work-detail-description ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
    color: var(--text-secondary);
}

.work-detail-description ul li,
.work-detail-description ol li {
    margin-bottom: 0.4em;
}

.gallery-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gallery-section-divider {
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    margin-bottom: 24px;
}

.gallery-count {
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}


/* ==========================================================================
   9) RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .blog-grid { grid-template-columns: repeat(2, 1fr); }

    .masonry-gallery { columns: 2; }
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .feature-grid { grid-template-columns: 1fr; }

    .stats-row,
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .process-steps { grid-template-columns: repeat(2, 1fr); }

    .products-grid { grid-template-columns: 1fr; }

    .works-grid { grid-template-columns: repeat(2, 1fr); }

    .page-hero { padding: 120px 20px 48px; }

    .contact-details { flex-direction: column; gap: 12px; }

    /* Footer responsive */
    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }

    .site-footer-brand { padding-right: 0; }
    .site-footer-inner { padding: 48px 24px 0; }

    .site-footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .top-bar { padding: 0 20px; }
    .top-bar-logo { height: 30px; }

    /* Show hamburger, hide links by default */
    .nav-hamburger { display: flex; }

    .top-bar-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        z-index: 99;
        backdrop-filter: blur(16px);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        box-shadow: var(--shadow-md);
    }

    .top-bar.menu-open .top-bar-links { display: flex; }

    .top-bar-links > a {
        padding: 12px 8px;
        font-size: 0.92rem;
        width: 100%;
        color: var(--text-primary);
    }

    /* Hamburger to X animation */
    .top-bar.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .top-bar.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .top-bar.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Inline dropdowns inside mobile panel */
    .top-bar-links .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 4px 0 4px 16px;
        display: none;
        transition: none;
    }

    .top-bar-links .nav-dropdown.open .nav-dropdown-menu { display: flex; flex-direction: column; }

    .top-bar-links .nav-dropdown-toggle {
        padding: 12px 8px;
        width: 100%;
        justify-content: space-between;
        text-align: left;
        font-size: 0.92rem;
        color: var(--text-primary);
    }

    .nav-lang-code { display: inline; }
    .nav-dropdown-item-desc { display: none; }
}

@media (max-width: 640px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .site-footer-social { justify-content: flex-start; }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 28px 24px;
        min-height: 220px;
    }

    .hero-content h1 { letter-spacing: -1px; }

    .process-steps { grid-template-columns: 1fr; }

    .works-grid { grid-template-columns: 1fr; }

    .blog-grid { grid-template-columns: 1fr; }
    .blog-card-body { padding: 20px; }

    .masonry-gallery { columns: 1; column-gap: 0; }
    .masonry-item { margin-bottom: 12px; }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
    .lightbox-close { top: 12px; right: 12px; }
}

@media (max-width: 500px) {
    .contact-form { padding: 24px 20px; }
}
