/*
Theme Name: BATIX
Theme URI: https://batix.ma
Author: BATIX
Author URI: https://batix.ma
Description: Thème officiel BATIX — La menuiserie aluminium, gérée depuis votre téléphone.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: batix
*/

/* =============================================
   BATIX THEME — Navy/Gold Design System
   ============================================= */

:root {
  --navy:        #1A2F5A;
  --navy-dark:   #12213f;
  --navy-mid:    #243d73;
  --navy-pale:   #EEF2FA;
  --gold:        #C9922A;
  --gold-light:  #E8B84B;
  --gold-pale:   #FDF3E0;
  --surface:     #F7F9FC;
  --white:       #FFFFFF;
  --muted:       #6B7280;
  --border:      rgba(26,47,90,0.12);
  --success:     #0F6E56;
  --font-display: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* =============================================
   UTILITIES
   ============================================= */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-tag--light { color: var(--gold-light); }

/* =============================================
   NAVBAR
   ============================================= */

.batix-nav {
  background: var(--navy);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* NAV logo wrap */
.batix-nav__logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.batix-nav__logo-wrap .custom-logo-link,
.batix-nav__logo-wrap .site-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.batix-nav__logo-wrap .custom-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* WordPress wraps logo in .wp-block-site-logo or .custom-logo-link — neutralize margins */
.batix-nav__logo-wrap figure,
.batix-nav__logo-wrap p,
.batix-nav__logo-wrap div {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.batix-nav__logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
}

/* Footer logo */
.batix-footer__logo-wrap {
  display: flex;
  align-items: center;
}
.batix-footer__logo-wrap .custom-logo-link { display: flex; align-items: center; }
.batix-footer__logo-wrap figure,
.batix-footer__logo-wrap p,
.batix-footer__logo-wrap div { margin: 0; padding: 0; }
.batix-footer__logo-wrap .custom-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}




.batix-nav__badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  margin-left: 8px;
  letter-spacing: 0;
}

.batix-nav__cta {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.batix-nav__cta:hover {
  background: #b07d22;
  transform: translateY(-1px);
}

/* =============================================
   HERO
   ============================================= */

.batix-hero {
  background: var(--navy);
  padding: 96px 24px 104px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative geometric background */
.batix-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(201,146,42,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 500px at 10% 80%, rgba(201,146,42,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid lines overlay */
.batix-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.batix-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.batix-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,146,42,0.12);
  border: 1px solid rgba(201,146,42,0.35);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.batix-hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.batix-hero h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(32px, 5.5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.batix-hero h1 em {
  color: var(--gold-light);
  font-style: normal;
  position: relative;
}

.batix-hero__sub {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  max-width: 460px;
  margin: 0 auto 44px;
  font-weight: 300;
  line-height: 1.7;
}

/* Waitlist form */
.batix-waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.batix-waitlist-form__row {
  display: flex;
  gap: 10px;
}

.batix-waitlist-form input,
.batix-waitlist-form select {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.1);
  font-family: var(--font-body);
  font-size: 14px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.batix-waitlist-form input::placeholder { color: rgba(255,255,255,0.35); }

.batix-waitlist-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.batix-waitlist-form select option { background: var(--navy); color: var(--white); }

.batix-waitlist-form input:focus,
.batix-waitlist-form select:focus {
  border-color: rgba(201,146,42,0.5);
  background: rgba(255,255,255,0.12);
}

.batix-waitlist-form__btn {
  width: 100%;
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 15px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.batix-waitlist-form__btn:hover {
  background: #b07d22;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,146,42,0.35);
}

.batix-waitlist-form__btn:active { transform: translateY(0); }

.batix-hero__note {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  margin-top: 14px;
}

.batix-waitlist-success {
  display: none;
  background: rgba(15,110,86,0.15);
  border: 1px solid rgba(15,110,86,0.3);
  color: #6ee7b7;
  padding: 16px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

/* =============================================
   SOCIAL PROOF BAR
   ============================================= */

.batix-proof {
  background: var(--gold-pale);
  border-top: 1px solid rgba(201,146,42,0.2);
  border-bottom: 1px solid rgba(201,146,42,0.2);
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.batix-proof strong { color: var(--navy); }

/* =============================================
   FEATURES
   ============================================= */

.batix-features {
  padding: 88px 24px;
  text-align: center;
}

.batix-features h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 56px;
  letter-spacing: -0.3px;
}

.batix-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.batix-feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 26px;
  text-align: left;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}

.batix-feature-card:hover {
  box-shadow: 0 12px 40px rgba(26,47,90,0.1);
  transform: translateY(-3px);
}

.batix-feature-card__icon {
  width: 52px; height: 52px;
  background: var(--navy-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.batix-feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.batix-feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* =============================================
   HOW IT WORKS
   ============================================= */

.batix-how {
  background: var(--navy);
  padding: 88px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.batix-how::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

.batix-how h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
}

.batix-steps {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Connector line between steps on desktop */
.batix-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: rgba(201,146,42,0.25);
  pointer-events: none;
}

.batix-step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px 20px;
  width: 200px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.batix-step:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(201,146,42,0.3);
}

.batix-step__num {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 50%;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(201,146,42,0.4);
}

.batix-step h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.batix-step p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  line-height: 1.6;
}

/* =============================================
   TESTIMONIAL
   ============================================= */

.batix-testimonial {
  background: var(--gold-pale);
  padding: 72px 24px;
  text-align: center;
  border-top: 1px solid rgba(201,146,42,0.15);
  border-bottom: 1px solid rgba(201,146,42,0.15);
}

.batix-testimonial__quote-mark {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--gold);
  line-height: 0.5;
  margin-bottom: 24px;
  opacity: 0.4;
}

.batix-testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 22px);
  color: var(--navy);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.6;
  font-weight: 600;
}

.batix-testimonial cite {
  color: var(--gold);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* =============================================
   FINAL CTA
   ============================================= */

.batix-cta {
  padding: 96px 24px;
  text-align: center;
  background: var(--surface);
}

.batix-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.batix-cta p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 40px;
  font-weight: 300;
}

/* =============================================
   FOOTER
   ============================================= */

.batix-footer {
  background: var(--navy-dark);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.batix-footer__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
}

.batix-footer p {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 640px) {
  .batix-nav { padding: 0 20px; }

  .batix-hero { padding: 72px 20px 80px; }

  .batix-waitlist-form__row { flex-direction: column; }

  .batix-steps::before { display: none; }
  .batix-step { width: 160px; padding: 24px 16px; }

  .batix-footer { flex-direction: column; text-align: center; }

  .batix-features__grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .batix-step { width: 140px; }
}
