/* ==========================================================================
   ALU PORTAIL DESIGN - Design System
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --color-bg: #1c2b30;
    --color-bg-light: #243840;
    --color-bg-lighter: #2d4650;
    --color-text: #e8e0d0;
    --color-text-muted: #a09888;
    --color-accent: #c8a96e;
    --color-accent-light: #d4bb88;
    --color-accent-dark: #b0944f;
    --color-white: #ffffff;
    --color-black: #0d1518;
    --color-success: #4caf50;
    --color-error: #e74c3c;

    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: Georgia, 'Times New Roman', Times, serif;

    --container-max: 1200px;
    --container-narrow: 800px;
    --gap: 2rem;
    --gap-sm: 1rem;
    --gap-lg: 4rem;

    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);

    --transition: 0.3s ease;
    --header-height: 80px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
    -webkit-image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-light);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--gap-lg) 0;
}

.section--dark {
    background-color: var(--color-black);
}

.section--accent {
    background-color: var(--color-bg-light);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    font-family: var(--font-main);
}

.btn--accent,
a.btn--accent,
a.btn--accent:visited {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.btn--accent:hover,
a.btn--accent:hover {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 169, 110, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn--outline:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.btn--lg {
    padding: 16px 44px;
    font-size: 1.05rem;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header--scrolled {
    background-color: rgba(28, 43, 48, 0.97);
    box-shadow: var(--shadow);
}

.top-bar {
    background-color: var(--color-black);
    padding: 6px 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__left a,
.top-bar__right a {
    color: var(--color-text-muted);
    margin-right: 1.5rem;
}

.top-bar__left a:hover,
.top-bar__right a:hover {
    color: var(--color-accent);
}

.header-main {
    background-color: rgba(28, 43, 48, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.site-logo img {
    height: 55px;
    width: auto;
}

/* ---------- Navigation ---------- */
.main-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    pointer-events: none;
}

.main-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.nav__item {
    position: relative;
    pointer-events: auto;
}

.nav__link {
    display: block;
    padding: 10px 16px;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav__link:hover,
.nav__item--active .nav__link {
    color: var(--color-accent);
}

.nav__item--active .nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--color-accent);
}

.nav__item--cta .nav__link {
    padding: 8px 24px;
    font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition);
}

.hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 21, 24, 0.7) 0%,
        rgba(28, 43, 48, 0.6) 50%,
        rgba(13, 21, 24, 0.8) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
}

.hero__logo {
    width: 200px;
    margin: 0 auto 2rem;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.hero__tagline {
    font-size: 1.3rem;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 2.5rem;
}

/* ---------- Section Heading ---------- */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading__title {
    margin-bottom: 0.5rem;
}

.section-heading__subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.section-heading__line {
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 1rem auto 0;
}

/* ---------- Product Cards Grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.product-card {
    display: block;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--color-text);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.product-card__image {
    height: 220px;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    image-rendering: auto;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__content {
    padding: 1.5rem;
}

.product-card__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.product-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.product-card__link {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card:hover .product-card__link {
    color: var(--color-accent-light);
}

.product-card__link span {
    transition: transform var(--transition);
    display: inline-block;
}

.product-card:hover .product-card__link span {
    transform: translateX(4px);
}

/* ---------- Warranty Badges ---------- */
.badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.badge {
    text-align: center;
    padding: 2rem;
}

.badge__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.badge__years {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-heading);
}

.badge__label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

/* ---------- Sur Mesure Section ---------- */
.sur-mesure {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
}

.sur-mesure__text h2 {
    margin-bottom: 1rem;
}

.sur-mesure__text p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.sur-mesure__text .accent {
    color: var(--color-accent);
    font-weight: 600;
}

.sur-mesure__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sur-mesure__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    image-rendering: auto;
}

/* ---------- Realisations Preview ---------- */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-sm);
}

.realisations-grid__item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.realisations-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    image-rendering: auto;
}

.realisations-grid__item:hover img {
    transform: scale(1.08);
}

.realisations-more {
    text-align: center;
    margin-top: 2rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
    padding: var(--gap-lg) 0;
    text-align: center;
    border-top: 1px solid var(--color-bg-lighter);
    border-bottom: 1px solid var(--color-bg-lighter);
}

.cta-banner__title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.cta-banner__text {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-black);
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--gap-lg);
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-bg-lighter);
}

.footer-col__title {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-main);
    font-weight: 600;
}

.footer-col p,
.footer-col a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 2;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-col a.btn--accent {
    color: var(--color-bg);
}

.footer-col a.btn--accent:hover {
    color: var(--color-bg);
}

.footer-logo {
    width: 150px;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.3rem;
}

.footer-col ul li a {
    display: block;
    padding: 2px 0;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* ---------- Page Header (Product Pages) ---------- */
.page-header {
    position: relative;
    padding: 10rem 0 4rem;
    text-align: center;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        var(--color-black) 0%,
        transparent 40%,
        transparent 70%,
        var(--color-bg) 100%
    );
    z-index: 1;
}

.page-header__content {
    position: relative;
    z-index: 2;
}

.page-header__title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.page-header__subtitle {
    font-size: 1.2rem;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-style: italic;
}

/* ---------- Product Page Content ---------- */
.product-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.product-features,
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
    font-family: var(--font-main);
    font-weight: 600;
}

.feature-card__text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Model showcase */
.model-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
    margin-bottom: 3rem;
}

.model-showcase--reverse {
    direction: rtl;
}

.model-showcase--reverse > * {
    direction: ltr;
}

.model-showcase__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.model-showcase__image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    image-rendering: auto;
}

.model-showcase__content h3 {
    color: var(--color-accent);
    margin-bottom: 0.8rem;
}

.model-showcase__content p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.model-showcase__content ul {
    margin-top: 1rem;
}

.model-showcase__content ul li {
    color: var(--color-text-muted);
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.model-showcase__content ul li::before {
    content: '\2713';
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

/* ---------- 404 Page ---------- */
.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--header-height) + 40px);
}

.error-404__code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-heading);
    line-height: 1;
}

.error-404__title {
    font-size: 1.8rem;
    margin: 1rem 0;
}

.error-404__text {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ---------- Generic Page ---------- */
.page-content {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: var(--gap-lg);
    min-height: 60vh;
}

.page-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content .entry-content p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ---------- Scroll animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
