/* ===== MakerLab Branding (from brand guide) ===== */
:root{
  /* Primary */
  --ml-orange:  #D55225;  /* Maker Orange */
  --ml-blue:    #2A698C;  /* Maker Blue */

  /* Neutrals (from guide) */
  --ml-charcoal:#353535;  /* darkest neutral for headings */
  --ml-slate:   #303E47;  /* mid neutral for subheads/UI */
  --ml-cloud:   #F4F0EC;  /* light neutral section bg */
  --ml-paper:   #FFFFFF; /* content bg (usually white) */

  /* Secondary/Support colors */
  --ml-teal:    #97CED0;  
  --ml-red:     #8C312A;  
  --ml-tan:     #F3BB6D;
  --ml-navy:    #1E4e6F;
  --ml-fire:    #A92E2D;
  --ml-peach:   #CE5F5F;


  /* Radii/shadow/width */
  --radius:12px; --radius-lg:16px; --shadow:0 6px 16px rgba(0,0,0,.08);
  --mx:1200px;
}

/* Typography — per brand guide */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

body{
  font-family: Montserrat, Arial, sans-serif;           
  color: var(--ml-charcoal); background: var(--ml-paper);
}
h1,h2,h3,h4{ font-weight:800; letter-spacing:.2px; color:var(--ml-charcoal) }
code, .mono, .badge-code{ font-family: "Source Code Pro", monospace }

/* Links & buttons */
a{ color:var(--ml-blue) } a:hover{ opacity:.9 }
.btn{ border-radius:10px; padding:.8rem 1.2rem; font-weight:700 }
.btn-primary{ background:var(--ml-orange); color:#fff }
.btn-primary:hover{ filter:brightness(.95) }
.btn-secondary{ border:2px solid var(--ml-blue); color:var(--ml-blue); background:transparent }
.btn-secondary:hover{ background:var(--ml-blue); color:#fff }
/* Make buttonStyle002 use MakerLab Blue everywhere */
.stylizedButton.buttonStyle002{
  background: var(--ml-blue) !important;
  background-image: none !important;  /* kill any theme gradient */
  color: #fff !important;
  border: 2px solid var(--ml-blue) !important;
  border-radius: 12px;
  font-weight: 800;
  padding: .55rem .9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.stylizedButton.buttonStyle002:hover{
  background: linear-gradient(100deg, var(--ml-blue), var(--ml-navy)) !important;
  transform: translateY(-1px);
}
.stylizedButton.buttonStyle002:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--ml-blue) 30%, white);
  outline-offset: 2px;
}


/* Cards & section rhythm */
.card{ background:var(--ml-paper); border-radius:var(--radius); box-shadow:var(--shadow); padding:20px }
section, .WaSection, .boxOuter, .box{ margin:48px !important }
.container, .boxOuter, .box{ max-width:var(--mx); margin:auto; padding:24px }

/* Header & nav */
#idHeader, .WaGadgetMenuHorizontal{ background:var(--ml-paper) }
.WaGadgetMenuHorizontal ul li a{ padding:12px 14px; font-weight:700; border-radius:8px }
.WaGadgetMenuHorizontal ul li a:hover,
.WaGadgetMenuHorizontal ul li.sel a{ background:var(--ml-cloud) }

/* ===========================
   Hero Block (Front Page CTA)
   =========================== */
/* Hero band (Learn -> Build -> Make)*/
.hero-band{
  background: var(--ml-orange); color:#fff; padding:56px; border-radius:24px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12)
}
.hero-band h1{ color:#fff; margin-bottom:10px }
/* Eyebrow pill — high contrast on orange */
.hero-band .hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  padding:.35rem .70rem; border-radius:999px;
  background:#fff !important;  /* force white pill */
  color:var(--ml-blue) !important;  /* brand blue text */
  border:1.5px solid color-mix(in srgb, var(--ml-blue) 22%, #fff);
  font-weight:800; font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  box-shadow:0 2px 6px rgba(0,0,0,.10);
}
.hero-band .hero-eyebrow::before{
  content:"⚙"; line-height:1; font-size:14px; color:var(--ml-blue);
}
/* apply to either class name */
.hero-band .hero-subtitle,
.hero-band .hero-text{
  color: rgba(255,255,255,.95) !important;
  font-size:18px; line-height:1.55; max-width:60ch; margin:10px 0 0;
  text-shadow:0 1px 0 rgba(0,0,0,.08);
}
.hero-band .hero-subtitle strong,
.hero-band .hero-text strong{
  color:#fff !important; font-weight:800;
  margin-bottom: clamp(0,0,20px);
}

/* Center the buttons */
.hero-buttons{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }
.hero-band .btn{ display:inline-block; margin:6px 8px; }   /* fallback if no .hero-buttons */

/* Base buttons in the hero */
.hero-band .btn{ border:2px solid transparent; border-radius:12px; padding:.7rem 1.1rem; font-weight:800 }

/* View Events (blue) */
.hero-band .btn-primary{
  background:var(--ml-blue); color:#fff; border-color:transparent;
}
.hero-band .btn-primary:hover{
  background:var(--ml-blue);               /* stay blue */
  color:#fff;
  border-color:#fff;                        /* add white border */
  box-shadow:0 0 0 3px rgba(255,255,255,.25);
}

/* Become a Member (white) */
.hero-band .btn-secondary{
  background:#fff; color:var(--ml-blue); border-color:transparent;
}
.hero-band .btn-secondary:hover{
  background:#fff !important;    /*stay white */
  color:var(--ml-blue)!important;
  border-color:var(--ml-blue);              /* blue border on hover */
  box-shadow:0 0 0 3px rgba(42,105,140,.18);
}

/* Remove underline on hero buttons (all states) */
.hero-band .btn,
.hero-band .btn:link,
.hero-band .btn:visited,
.hero-band .btn:hover,
.hero-band .btn:active,
.hero-band .btn:focus{
  text-decoration: none !important;
}

/* ===== Labs UI ===== */
.labs-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px; margin:0; padding:0; list-style:none;
}
.lab-card{
  background:var(--ml-paper); border-radius:16px; box-shadow:var(--elev-1);
  border:1px solid rgba(0,0,0,.06); overflow:hidden; transition:transform .2s, box-shadow .2s;
}
.lab-card:hover{ transform:translateY(-2px); box-shadow:var(--elev-2) }
.lab-body{ padding:14px 16px }
.lab-title{ margin:0 0 6px; color:var(--ml-orange); font-weight:800; font-size:20px }
.lab-desc{ color:var(--ml-slate); font-size:14px; line-height:1.5; margin:0 0 10px }
.lab-meta{ display:flex; gap:8px; flex-wrap:wrap; align-items:center }

/* badges */
.badge{ display:inline-block; padding:.25rem .6rem; border-radius:999px; font-weight:700; font-size:12px }
.badge--blue{ background:var(--ml-cloud); color:var(--ml-blue) }
.badge--teal{ background:var(--ml-teal); color:#1b2a2c }
.badge--warn{ background:var(--ml-tan); color:#000 }
.badge--alert{ background:var(--ml-red); color:#fff }

/* ===== Lab detail ===== */
.lab-hero{ background:var(--ml-paper); border:1px solid rgba(0,0,0,.06); border-radius:16px; padding:20px; box-shadow:var(--elev-1) }
.lab-hero h1{ margin:0 0 8px; font-weight:900 }
.lab-hero .quick{ display:flex; gap:10px; flex-wrap:wrap; margin:8px 0 0 }
.lab-hero .quick .pill{ background:var(--ml-cloud); color:var(--ml-blue); border-radius:999px; padding:.35rem .7rem; font-weight:800; font-size:12px }

.equipment-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px;
  list-style:none; padding:0; margin:0;
}
.equip-card{ background:var(--ml-paper); border-radius:14px; box-shadow:var(--elev-1); border:1px solid rgba(0,0,0,.06); overflow:hidden }

.equip-body{ padding:12px 14px }
.equip-title{ margin:0 0 4px; font-weight:800; color:var(--ml-charcoal) }
.equip-meta{ font-size:13px; color:var(--ml-slate) }
.equip-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px }


/* Events list → brand card treatment */
.WaGadgetUpcomingEvents li{
  background:var(--ml-paper); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:16px 18px; margin:12px 0; display:grid; grid-template-columns:120px 1fr; gap:16px; align-items:center;
}
.WaGadgetUpcomingEvents time{
  display:block; font-weight:800; color:#fff; background:var(--ml-blue);
  padding:14px; text-align:center; border-radius:12px;
}
.WaGadgetUpcomingEvents a{ font-weight:800; color:var(--ml-charcoal) }

/* Equipment grid */
.equipment ul{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; list-style:none; padding:0; margin:0 }
.equipment li{ background:var(--ml-paper); border-radius:var(--radius); box-shadow:var(--shadow); padding:14px 16px }
.equipment li h4{ color:var(--ml-orange); margin:0 0 6px }

/* Footer (brand blue with orange hovers) */
#idFooter{ background:var(--ml-blue); color:#fff; padding:32px 0 }
#idFooter a{ color:#fff; text-decoration:underline }
#idFooter a:hover{ color:var(--ml-orange) }

/* ============================
   MakerLab Modern
   ============================ */

/* 0) Quality-of-life + accessibility */
html{scroll-behavior:smooth}
:focus-visible{outline:3px solid var(--ml-tan); outline-offset:2px}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important; transition:none!important}
}

/* 1) Motion & depth (subtle, modern) */
:root{
  --elev-1: 0 6px 16px rgba(0,0,0,.08);
  --elev-2: 0 12px 28px rgba(0,0,0,.14);
  --speed: 200ms cubic-bezier(.2,.6,.2,1);
  --grad-orange: linear-gradient(100deg, var(--ml-orange), var(--ml-peach));
  --grad-blue:   linear-gradient(100deg, var(--ml-blue), var(--ml-navy));
}

/* 2) Sticky/“glass” header with crisp active states */
#idHeader{
  position:sticky; top:0; z-index:999;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.WaGadgetMenuHorizontal ul li a{
  position:relative; transition:background var(--speed), color var(--speed);
}
.WaGadgetMenuHorizontal ul li a:hover,
.WaGadgetMenuHorizontal ul li.sel a{
  background:var(--ml-cloud);
}
.WaGadgetMenuHorizontal ul li a::after{
  content:""; position:absolute; left:10px; right:10px; bottom:6px; height:3px;
  background:var(--ml-blue); border-radius:3px; transform:scaleX(0); transition:transform var(--speed);
}
.WaGadgetMenuHorizontal ul li a:hover::after,
.WaGadgetMenuHorizontal ul li.sel a::after{ transform:scaleX(1) }

/* 3) Hero upgrade: gradient, larger type, gentle pattern */
.hero-band{
  background: var(--ml-orange);
  color: var(--ml-charcoal);
}
.hero-band h1{ font-size:clamp(40px,5vw,56px); line-height:1.1; margin:14px 0 12px }
.hero-band p{ font-size:18px; max-width:70ch; opacity:.95 }
.hero-band::after{
  /* subtle “gear aura” using radial gradient */
  content:""; position:absolute; inset:auto -15% -40% -15%;
  height:180%; background:radial-gradient(closest-side, rgba(255,255,255,.12), transparent 60%);
  pointer-events:none; transform:rotate(-8deg);
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:16px }

/* 4) Buttons: micro-interactions + sizes */
.btn{ transition:transform var(--speed), box-shadow var(--speed), background var(--speed), color var(--speed)}
.btn:hover{ transform:translateY(-1px); box-shadow:var(--elev-1) }
.btn:active{ transform:translateY(0) }
.btn-lg{ padding:1rem 1.4rem; border-radius:12px }
.hero-band .btn-primary{ background: var(--ml-blue); color:#fff }
.hero-band .btn-primary:hover{ background: linear-gradient(100deg, var(--ml-blue), var(--ml-navy)) }
.hero-band .btn-secondary{ background: var(--ml-paper); color:var(--ml-blue); border-color:#fff }
.hero-band .btn-secondary:hover{ background:var(--ml-blue); color:#fff }

/* 5) Section rhythm + headings with “spark” underline */

.section-title{
  font-weight:800; letter-spacing:.2px; margin:0 0 16px; position:relative; display:inline-block;
}
.section-title::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:6px;
  background:var(--ml-tan); border-radius:6px;
}

/* 6) Cards: modern elevation, gradient borders, hover */
.card{
  background:var(--ml-paper); border-radius:16px; box-shadow:var(--elev-1);
  padding:20px; border:1px solid rgba(0,0,0,.04); transition:box-shadow var(--speed), transform var(--speed), border-color var(--speed);
}
.card:hover{ box-shadow:var(--elev-2); transform:translateY(-2px); border-color:rgba(0,0,0,.08) }

/* 7) Badges & pills */
.badge{display:inline-block; padding:.25rem .6rem; border-radius:0}

/* CTA band */
.community-cta{
  display:grid; grid-template-columns:1fr auto; gap:14px; align-items:center;
  background:var(--ml-blue); color:#fff; border-radius:16px; padding:18px 20px; box-shadow:0 6px 16px rgba(0,0,0,.08);
}
.community-cta h2{ margin:0; color:#fff }
.community-cta p{ margin:4px 0 0; color:rgba(255,255,255,.92); max-width:65ch }
.community-cta .actions{ display:flex; gap:10px; flex-wrap:wrap }
.community-cta .btn{ display:inline-block; padding:.6rem 1rem; border-radius:12px; font-weight:800; text-decoration:none; transition:transform .2s, box-shadow .2s, background .2s, color .2s }
.community-cta .btn:hover{ transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,.15) }
.community-cta .btn-primary{ background:var(--ml-orange); color:#fff }
.community-cta .btn-secondary{ background:#fff; color:var(--ml-blue); border:2px solid #fff }
@media (max-width:800px){ .community-cta{ grid-template-columns:1fr } }
