/* MAROI — Menuiserie Aluminium La Réunion
   Premium charcoal / aluminium / teal accent */

:root {
  --charcoal: #1a1a1a;
  --charcoal-soft: #2a2a2a;
  --aluminium: #c0c5ce;
  --aluminium-light: #e8eaee;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --teal: #0d7377;
  --teal-dark: #095456;
  --teal-light: #e6f3f3;
  --copper: #b87333;
  --text: #333333;
  --text-muted: #666666;
  --border: #dde1e6;
  --shadow: 0 4px 24px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 26, 26, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --max-w: 1120px;
  --header-h: 72px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }
ul, ol { list-style: none; }
address { font-style: normal; }

.container { width: min(100% - 2rem, var(--max-w)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* —— Header —— */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(192, 197, 206, 0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.65rem; color: var(--white); line-height: 1.2;
  flex-shrink: 0;
}
.logo:hover { opacity: 0.92; }
.logo-img {
  height: 44px; width: auto; max-width: 200px; object-fit: contain;
  display: block; border-radius: 4px;
}
.logo-mark {
  font-weight: 700; font-size: 1.35rem; letter-spacing: 0.08em;
  color: var(--white);
}
.logo-tag {
  font-size: 0.7rem; color: var(--aluminium); letter-spacing: 0.02em;
  font-weight: 400;
}
.nav-desktop { display: none; gap: 0.25rem; align-items: center; }
.nav-desktop a {
  color: var(--aluminium-light); padding: 0.5rem 0.75rem;
  font-size: 0.9rem; font-weight: 500; border-radius: var(--radius);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.08); }
.header-cta { display: none; gap: 0.5rem; align-items: center; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
  aria-label: menu;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(192,197,206,0.15);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  color: var(--aluminium-light); padding: 0.85rem 0;
  font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile a:hover { color: var(--white); }
.nav-mobile .btn { margin-top: 1rem; text-align: center; }

@media (min-width: 900px) {
  .nav-desktop, .header-cta { display: flex; }
  .nav-toggle, .nav-mobile { display: none !important; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; font-family: inherit; font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); text-decoration: none; line-height: 1.2;
}
.btn-primary {
  background: var(--teal); color: var(--white); border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn-secondary {
  background: transparent; color: var(--white); border-color: var(--aluminium);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--charcoal); border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-teal-outline {
  background: transparent; color: var(--teal); border-color: var(--teal);
}
.btn-teal-outline:hover { background: var(--teal); color: var(--white); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* —— Hero —— */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  background: var(--charcoal); color: var(--white); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.55) 55%, rgba(26,26,26,0.3) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 4rem 0 5rem; max-width: 640px; }
.hero-badge {
  display: inline-block; background: rgba(13,115,119,0.25); color: var(--aluminium);
  border: 1px solid rgba(13,115,119,0.5); padding: 0.35rem 0.85rem;
  border-radius: 100px; font-size: 0.8rem; font-weight: 500; margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}
.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 1.25rem; color: var(--white);
}
.hero p {
  font-size: 1.1rem; color: var(--aluminium-light); margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* —— Sections —— */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.section-dark .section-header h2 { color: var(--white); }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section-dark .section-header p { color: var(--aluminium); }
.eyebrow {
  display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem;
}

/* —— Pillars —— */
.pillars { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 1.75rem; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
  color: var(--teal);
}
.pillar h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--charcoal); }
.pillar p { color: var(--text-muted); font-size: 0.95rem; }

/* —— Service cards —— */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--aluminium-light); }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-icon {
  width: 40px; height: 40px; margin-bottom: 0.75rem; color: var(--teal);
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--charcoal); }
.card p { color: var(--text-muted); font-size: 0.92rem; flex: 1; margin-bottom: 1rem; }
.card-link { font-weight: 600; font-size: 0.9rem; color: var(--teal); }

/* —— Process steps —— */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; padding: 1.5rem; background: var(--white);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--teal);
  color: white; font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--charcoal); }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white); padding: 3.5rem 0; text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.75rem; max-width: 500px; margin-inline: auto; }
.cta-band .btn-secondary { border-color: rgba(255,255,255,0.6); }
.cta-band .btn-primary {
  background: var(--white); color: var(--teal); border-color: var(--white);
}
.cta-band .btn-primary:hover { background: var(--aluminium-light); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* —— Location —— */
.location-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .location-grid { grid-template-columns: 1fr 1fr; } }
.location-info h2 { font-size: 1.75rem; margin-bottom: 1rem; color: var(--charcoal); }
.location-info p { margin-bottom: 0.75rem; color: var(--text-muted); }
.location-info .contact-list { margin: 1.5rem 0; }
.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.85rem; }
.contact-list svg { flex-shrink: 0; margin-top: 2px; color: var(--teal); }
.map-wrap {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); aspect-ratio: 4/3; min-height: 280px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; min-height: 280px; }

/* —— Page hero (inner) —— */
.page-hero {
  background: var(--charcoal); color: var(--white); padding: 3rem 0 3.5rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -10%; top: -50%; width: 40%; height: 200%;
  background: radial-gradient(circle, rgba(13,115,119,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); margin-bottom: 0.5rem; position: relative; }
.page-hero p { color: var(--aluminium); max-width: 560px; position: relative; }

/* —— About —— */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-text h2 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--charcoal); }
.about-text p { margin-bottom: 1rem; color: var(--text-muted); }
.feature-list { margin-top: 1.25rem; }
.feature-list li {
  padding: 0.5rem 0 0.5rem 1.75rem; position: relative; color: var(--text);
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.85rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--teal);
}

/* —— Services detail —— */
.service-block {
  display: grid; gap: 2rem; align-items: center; padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
@media (min-width: 768px) {
  .service-block { grid-template-columns: 1fr 1fr; }
  .service-block:nth-child(even) .service-media { order: 2; }
}
.service-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.service-media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.service-content h2 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--charcoal); }
.service-content p { color: var(--text-muted); margin-bottom: 1rem; }
.service-content ul { margin: 1rem 0; }
.service-content li {
  padding: 0.35rem 0 0.35rem 1.5rem; position: relative; color: var(--text); font-size: 0.95rem;
}
.service-content li::before {
  content: "→"; position: absolute; left: 0; color: var(--teal); font-weight: 600;
}

/* —— Contact form —— */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--charcoal); }
.form-card > p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--charcoal);
}
.form-group label .req { color: var(--teal); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 1rem;
  background: var(--off-white); transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,115,119,0.15);
  background: var(--white);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 500px) { .form-row { grid-template-columns: 1fr 1fr; } }
.checkbox-group {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.25rem;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--teal);
  cursor: pointer;
}
.checkbox-group label { font-size: 0.88rem; color: var(--text-muted); font-weight: 400; cursor: pointer; }
.form-success {
  display: none; background: var(--teal-light); border: 1px solid var(--teal);
  border-radius: var(--radius); padding: 1.25rem; color: var(--teal-dark); margin-top: 1rem;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none; background: #fef2f2; border: 1px solid #f87171;
  border-radius: var(--radius); padding: 0.85rem; color: #b91c1c; margin-bottom: 1rem; font-size: 0.9rem;
}
.form-error.is-visible { display: block; }

/* —— Legal pages —— */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 {
  font-size: 1.35rem; margin: 2.25rem 0 0.85rem; color: var(--charcoal);
  padding-top: 0.5rem; border-top: 1px solid var(--border);
}
.legal-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.6rem; color: var(--charcoal-soft); }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: 0.75rem; }
.legal-content ul { margin: 0.75rem 0 1rem 1.25rem; list-style: disc; }
.legal-content ol { margin: 0.75rem 0 1rem 1.25rem; list-style: decimal; }
.legal-content a { text-decoration: underline; }
.legal-content strong { color: var(--text); }

/* —— Footer —— */
.site-footer {
  background: var(--charcoal); color: var(--aluminium); padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid; gap: 2rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(192,197,206,0.15);
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .logo-mark { color: var(--white); margin-bottom: 0.25rem; display: block; }
.footer-brand .logo-tag { color: var(--aluminium); font-size: 0.75rem; display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.55; margin-bottom: 1rem; }
.footer-col h4 {
  color: var(--white); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--aluminium); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: center; padding: 1.5rem 0; font-size: 0.8rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.footer-legal a { color: var(--aluminium); }
.footer-legal a:hover { color: var(--white); }

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--charcoal); color: var(--aluminium-light);
  padding: 1.25rem; box-shadow: 0 -8px 32px rgba(0,0,0,0.25);
  transform: translateY(100%); transition: transform 0.35s ease;
  border-top: 1px solid rgba(192,197,206,0.2);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-inner {
  width: min(100%, var(--max-w)); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-text { flex: 1 1 280px; font-size: 0.9rem; line-height: 1.5; }
.cookie-text a { color: var(--aluminium); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { min-width: 130px; }

/* —— Utilities —— */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--teal); color: white; padding: 0.75rem 1.25rem;
  border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Focus visible */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }


/* —— Logo —— */
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.logo-img {
  height: 40px; width: auto; display: block;
}
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.logo .logo-mark { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.08em; color: var(--white); }
.logo .logo-tag { font-size: 0.65rem; color: var(--aluminium); letter-spacing: 0.02em; }
.footer-brand .logo-img { height: 44px; margin-bottom: 0.75rem; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }

/* SEO helper page */
.sitemap-list { columns: 1; gap: 2rem; }
@media (min-width: 700px) { .sitemap-list { columns: 2; } }
.sitemap-list h2 { font-size: 1.1rem; color: var(--charcoal); margin: 0 0 0.75rem; break-after: avoid; }
.sitemap-list ul { margin: 0 0 1.75rem; list-style: none; }
.sitemap-list li { margin-bottom: 0.45rem; }
.sitemap-list a { color: var(--text); font-weight: 500; }
.sitemap-list a:hover { color: var(--teal); }
