/* =======================================================
   CROISSANCE+  —  STYLE.CSS
   Brutalist + Hyperrealistic Monochrome
   ======================================================= */

/* ---------- CSS VARIABLES ---------- */
:root {
    /* Palette Monochrome */
    --clr-bg-light: #f5f5f5;
    --clr-bg-dark: #0d0d0d;
    --clr-bg-grey: #dcdcdc;

    --clr-text-dark: #222222;
    --clr-text-light: #ffffff;
    --clr-text-mid: #555555;

    --clr-primary: #000000;
    --clr-secondary: #333333;
    --clr-accent: #767676;

    /* Typography */
    --ff-heading: 'Montserrat', sans-serif;
    --ff-body: 'Merriweather', serif;

    /* Spacing & Radius */
    --space-xs: .5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Transition */
    --tr-fast: all .2s ease-in-out;
    --tr-slow: all .4s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    background: var(--clr-bg-light);
    color: var(--clr-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    color: var(--clr-text-dark);
    line-height: 1.2;
    letter-spacing: .5px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: var(--space-md); }
h3 { font-size: 1.6rem; margin-bottom: var(--space-sm); }

/* ---------- GLOBAL LAYOUT UTILS ---------- */
.wrapper { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--space-sm); }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--space-sm); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-around { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
.flex-center { display: flex; justify-content: center; align-items: center; text-align: center; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }

/* ---------- NAVIGATION ---------- */
.site-header {
    position: sticky; top: 0; z-index: 9000;
    background: var(--clr-primary);
    padding: var(--space-sm) 0;
}
.logo a {
    color: var(--clr-text-light); font-weight: 800; font-size: 1.5rem; text-decoration: none;
}
.main-nav ul { list-style: none; display: flex; gap: var(--space-md); }
.main-nav a {
    color: var(--clr-text-light);
    font-family: var(--ff-heading);
    text-transform: uppercase;
    font-size: .9rem;
    text-decoration: none;
    position: relative;
}
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px; background: var(--clr-text-light);
    transition: var(--tr-fast);
}
.main-nav a:hover::after { width: 100%; }

/* ---------- BURGER MENU ---------- */
.burger { width: 2rem; background: transparent; border: none; cursor: pointer; display: none; }
.burger span { display:block; height:3px; width:100%; background:var(--clr-text-light); margin:4px 0; transition:var(--tr-fast); }

/* Mobile Nav toggle handled in JS (script.js) */
@media (max-width: 900px) {
    .main-nav { position: absolute; top:100%; right:0; width:100%; background:var(--clr-primary); display:none; flex-direction:column; }
    .main-nav ul { flex-direction:column; padding:var(--space-md) 0; }
    .burger { display:block; }
}

/* ---------- SECTION BASE ---------- */
section { padding: var(--space-lg) 0; }
.section-title { margin-bottom: var(--space-lg); }

/* ---------- HERO ---------- */
.hero-section {
    min-height: 75vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: var(--clr-text-light);
    background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero-title { color: var(--clr-text-light); font-weight: 800; }
.hero-subtitle { max-width: 650px; margin: var(--space-md) auto; font-size: 1.1rem; }

/* ---------- BUTTONS ---------- */
.btn,
button,
input[type='submit'] {
    font-family: var(--ff-heading);
    cursor: pointer;
    text-transform: uppercase;
    border: 2px solid var(--clr-primary);
    background: var(--clr-primary);
    color: var(--clr-text-light);
    padding: var(--space-sm) var(--space-md);
    letter-spacing: 1px;
    transition: var(--tr-fast);
    border-radius: var(--radius-sm);
}
.btn:hover,
button:hover,
input[type='submit']:hover {
    background: var(--clr-text-light);
    color: var(--clr-primary);
}
.btn-secondary {
    background: transparent;
    color: var(--clr-primary);
}
.btn-secondary:hover {
    background: var(--clr-primary);
    color: var(--clr-text-light);
}

/* ---------- CARDS ---------- */
.card {
    background: var(--clr-bg-grey);
    border: 2px solid var(--clr-primary);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); }
.card-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    display:flex; justify-content:center; align-items:center;
    margin-bottom: var(--space-sm);
}
.card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    margin: 0 auto;
}
.card-content p { font-size: .95rem; }

/* ---------- ACCORDION ---------- */
.accordion-item { border-bottom: 1px solid var(--clr-secondary); }
.accordion-header {
    background: var(--clr-bg-dark);
    color: var(--clr-text-light);
    width: 100%; text-align: left; padding: var(--space-sm);
    font-family: var(--ff-heading); font-size: 1rem; cursor: pointer;
}
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; padding: 0 var(--space-sm); background: var(--clr-bg-grey); }
.accordion-item.active .accordion-body { max-height: 400px; padding: var(--space-md) var(--space-sm); }

/* ---------- SLIDER ---------- */
.custom-slider { position: relative; overflow: hidden; }
.custom-slider .slide { width: 100%; }
.custom-slider img { width: 100%; height: 450px; object-fit: cover; }

/* ---------- STATS ---------- */
.stats-section { background: var(--clr-bg-dark); color: var(--clr-text-light); }
.stat-widget { text-align:center; }
.stat-number { font-family: var(--ff-heading); font-size: 2.8rem; display:block; }
.stat-label { font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- PARTNERS ---------- */
.partners-logos .partner img { filter: grayscale(100%); opacity:.8; transition: var(--tr-fast); }
.partners-logos .partner img:hover { opacity:1; }

/* ---------- PRICING ---------- */
.pricing-section { background: var(--clr-bg-dark); color: var(--clr-text-light); }
.pricing-section .card { background: var(--clr-bg-light); color: var(--clr-text-dark); }
.price { font-size: 2rem; font-weight: bold; margin: var(--space-sm) 0; }

/* ---------- CONTACT FORM ---------- */
.contact-form { display:grid; gap: var(--space-md); }
.form-group { display:flex; flex-direction:column; }
.form-group label { font-family: var(--ff-heading); text-transform: uppercase; font-size: .8rem; margin-bottom: var(--space-xs); }
.form-group input,
.form-group textarea {
    padding: var(--space-sm);
    border: 2px solid var(--clr-secondary);
    background: var(--clr-bg-light);
    font-family: var(--ff-body);
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { outline:none; border-color: var(--clr-primary); }

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--clr-primary);
    color: var(--clr-text-light);
    padding: var(--space-md) 0;
    font-size: .9rem;
}
.footer-links,
.social-links { display:flex; gap: var(--space-sm); flex-wrap:wrap; }
.site-footer a { color: var(--clr-text-light); text-decoration: none; position:relative; }
.site-footer a::after {
    content:''; position:absolute; left:0; bottom:-2px; width:0; height:1px; background:var(--clr-text-light); transition:var(--tr-fast);
}
.site-footer a:hover::after { width:100%; }
.social-links a {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--clr-text-light);
    font-family: var(--ff-heading);
    text-transform: uppercase;
}
.social-links a:hover { background: var(--clr-text-light); color: var(--clr-primary); }

/* ---------- EXTERNAL LINKS SECTION ---------- */
.external-links a {
    display:block;
    color: var(--clr-primary);
    margin-bottom: var(--space-xs);
    font-weight: 600;
    position: relative;
    padding-left: 1.2rem;
}
.external-links a::before {
    content: "↗";
    position:absolute; left:0; top:0;
}
.external-links a:hover { color: var(--clr-accent); }

/* ---------- COOKIE POPUP BUTTON ---------- */
#cookie-accept:hover {
    background: var(--clr-primary);
    color: var(--clr-text-light);
}

/* ---------- PAGE SPECIFIC ---------- */
.success-page {
    display:flex; justify-content:center; align-items:center;
    min-height:100vh;
    background: var(--clr-bg-light);
    padding: var(--space-lg);
}
.legal-page { padding-top: 100px; }

/* ---------- READ MORE LINK ---------- */
a.read-more {
    display:inline-block; margin-top: var(--space-sm);
    color: var(--clr-primary); font-weight:700; position:relative;
}
a.read-more::after {
    content:''; position:absolute; bottom:-2px; left:0;
    width:0; height:2px; background:var(--clr-primary); transition:var(--tr-fast);
}
a.read-more:hover::after { width:100%; }

/* ---------- RESPONSIVE TWEAKS ---------- */
@media (max-width: 600px) {
    section { padding: var(--space-md) 0; }
    .hero-section { min-height: 60vh; }
    .card-image { height: 260px; }
    .custom-slider img { height: 300px; }
}

/* ---------- PARALLAX & GLASSMORPHISM PLACEHOLDERS ---------- */
.parallax {
    background-attachment: fixed;
}
.glass {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.gallery-grid img {
    width: 100%;
}