/* ==========================================================================
   EverClear base layout + Lens Process page rules (single file)
   ========================================================================== */

/* ----- Theme ----- */
:root{
  --blue:#1e3a8a;
  --text:#111;
  --muted:#666;
  --bg:#f5f6f7;
  --white:#fff;
  --shadow:0 2px 8px rgba(0,0,0,.1);
}

/* ----- Base ----- */
*{box-sizing:border-box}
html,body{min-height:100vh}
body{
  margin:0;
  font-family:'Segoe UI',system-ui,-apple-system,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  display:flex;flex-direction:column
}
img{max-width:100%;display:block}
a{color:var(--blue);text-decoration:none;transition:color .2s}
a:focus{outline:2px solid var(--blue);outline-offset:2px}

/* ----- Header / Nav ----- */
header{
  background:var(--white);
  border-bottom:1px solid #ddd;
  position:sticky;top:0;z-index:999
}
.nav-container{
  max-width:1200px;margin:0 auto;padding:0 2rem;
  display:flex;justify-content:space-between;align-items:center
}
.logo img{height:90px}

nav ul{list-style:none;margin:0;padding:0;display:flex}
nav li{position:relative}
nav a{display:block;padding:1rem 1.25rem;white-space:nowrap;color:var(--blue);font-weight:500}
nav a:hover{background:var(--blue);color:#fff}

/* Dropdowns */
.dropdown,.sub-dropdown{display:none;position:absolute;background:#fff;box-shadow:var(--shadow)}
nav li:hover>.dropdown{display:block;top:100%;left:0}
.dropdown{min-width:240px}
.dropdown li{border-bottom:1px solid #eee}
.dropdown li:last-child{border-bottom:none}
.dropdown .has-sub-dropdown>a::after{content:"▶";float:right;font-size:.8rem}
.sub-dropdown{top:0;left:100%;padding:.5rem;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.has-sub-dropdown:hover>.sub-dropdown{display:flex;flex-wrap:nowrap}
.sub-dropdown li{display:inline-block;margin:0 .25rem}
.sub-dropdown a{padding:.5rem .75rem;border-radius:5px}
.sub-dropdown a:hover{background:var(--blue);color:#fff}
nav li:hover>.dropdown.coatings,
nav li:hover>.dropdown.tech{display:block}

/* ----- Footer ----- */
footer{
  margin-top:auto;flex-shrink:0;background:var(--blue);
  color:#fff;text-align:center;padding:2rem 1rem;font-size:.95rem;line-height:1.6
}
footer p{margin:.5rem 0}
footer a{color:#fff;margin:0 .5rem}
footer a:hover{text-decoration:underline}

/* ----- Responsive Nav/Footer ----- */
@media (max-width:968px){
  nav ul{flex-direction:column}
  nav li{width:100%}
  nav a{padding:1rem}
  .dropdown,.sub-dropdown{position:static;box-shadow:none;width:100%;display:none}
  nav li:hover>.dropdown,.has-sub-dropdown:hover>.sub-dropdown{display:block}
  .sub-dropdown{padding:.25rem 0}
  .sub-dropdown li{display:block;margin:0}
  .sub-dropdown a{display:block}
  .logo img{height:70px}
}
@media (max-width:768px){
  footer{font-size:.9rem;padding:1.5rem .75rem}
  .logo img{height:70px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ==========================================================================
   Lens Process page
   ========================================================================== */

/* Hero */
.hero{background:linear-gradient(135deg,#2c5aa0 0%,#1e3a8a 100%);text-align:center;padding:4rem 2rem}
.hero *{color:#fff}
.hero h1{font-size:3rem;line-height:1.2;margin:0 0 1rem}
.hero p{font-size:1.1rem;max-width:800px;margin:.25rem auto 0;opacity:.95}

/* Sections and containers */
section{padding:4rem 2rem}
.container{max-width:1200px;margin:0 auto}
h2{font-size:2.5rem;margin-bottom:1.5rem;text-align:center;color:var(--blue)}
h3{font-size:1.8rem;margin-bottom:1rem;color:var(--blue)}
.intro-section{background:#f8f9fa;text-align:center}
.intro-text{font-size:1.2rem;line-height:1.8;max-width:900px;margin:0 auto}

/* Steps layout */
.process-steps{max-width:1200px;margin:0 auto;padding:0 2rem}
.step{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:2.5rem;
  align-items:start;
  margin-bottom:4rem
}
.step .media{order:1}
.step .copy{order:2}
.step.even .media{order:2}
.step.even .copy{order:1}

/* Image box + badge */
.step-image{
  position:relative;min-height:360px;
  display:flex;align-items:center;justify-content:center;
  background:#f8f9fa;border-radius:10px;overflow:hidden
}
.step-image img{width:100%;height:100%;object-fit:cover}
.step-number-badge{
  position:absolute;top:14px;left:14px;width:70px;height:70px;border-radius:50%;
  background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:1.8rem
}

/* Copy */
.step-content p.timeline{color:#666;font-style:italic;margin-bottom:.5rem}
.step-content ul{list-style:none;margin-top:.5rem}
.step-content li{padding:.4rem 0 .4rem 1.5rem;position:relative}
.step-content li::before{content:"→";position:absolute;left:0;color:var(--blue);font-weight:700}

/* Production time box */
.production-time{
  background:#e3f2fd;border:3px solid var(--blue);border-radius:10px;
  padding:2.5rem;text-align:center;margin:4rem auto;max-width:800px
}
.production-time h3{color:var(--blue);font-size:2rem;margin-bottom:1rem}
.production-time .time{font-size:2.8rem;font-weight:700;color:var(--blue);margin:1rem 0}

/* Responsive */
@media (max-width:768px){
  .hero h1{font-size:2rem}
  h2{font-size:2rem}
  .process-steps{padding:0 1rem}
  .step{grid-template-columns:1fr}
  .step .media,.step .copy,.step.even .media,.step.even .copy{order:unset}
  .step-image{min-height:240px}
  .step-number-badge{width:60px;height:60px;font-size:1.4rem;top:10px;left:10px}
}

/* === Unified Blue Hero Rectangle === */
:root{ --hero-height-desktop:480px; --hero-height-mobile:340px; }
.hero,.hero-small,.product-hero{
  min-height:var(--hero-height-desktop);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.hero>*,.hero-small>*,.product-hero>*{margin:0 auto;}
@media(max-width:768px){
  .hero,.hero-small,.product-hero{
    min-height:var(--hero-height-mobile);
    padding:3rem 1.5rem;
  }
}
