/* ==========================================================================
   EverClear base layout + About page styles (single file for /about.html)
   ========================================================================== */

/* 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}
.lead{font-size:1.1rem}
.narrow{max-width:900px;margin:0 auto}

/* 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, nav a.active{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}

/* Sections */
section{padding:4rem 1.5rem}
.container{max-width:1200px;margin:0 auto}
h1,h2,h3{color:var(--blue);margin:0 0 .6rem}
h2{text-align:center;font-size:2.5rem}
h3{font-size:1.6rem}

/* 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}

/* Intro */
.intro{background:#f8f9fa}
.intro p{line-height:1.8;text-align:center}

/* Two-column grids */
.grid-2{
  display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center;margin-top:1.5rem
}
.copy p{margin:.5rem 0}
.image-box{
  height:380px;border-radius:10px;
  background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:600;text-align:center;padding:1rem
}

/* Highlight box */
.highlight{
  background:#e3f2fd;border-left:4px solid var(--blue);
  border-radius:10px;padding:1.25rem;margin-top:1.25rem
}

/* Values (3 × 3 desktop) */
.values{background:#f8f9fa}
.values-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:1.25rem;margin-top:1.25rem
}
.card{
  background:#fff;border-radius:10px;box-shadow:0 2px 6px rgba(0,0,0,.08);
  padding:1.25rem;text-align:center;border-top:4px solid var(--blue)
}
.icon{font-size:2rem;margin-bottom:.5rem}

/* Stats band */
.stats{
  background:linear-gradient(135deg,#2c5aa0 0%,#1e3a8a 100%);
  text-align:center
}
.stats *{color:#fff}
.stats-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:1.25rem;margin-top:1.25rem
}
.stat h3{font-size:2rem;margin:.25rem 0}

/* CTA */
.cta{background:#f8f9fa;text-align:center}
.cta-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-top:1rem}
.btn{display:inline-block;padding:1rem 1.5rem;border-radius:6px;font-weight:600;text-decoration:none}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:#1e3a8a}
.btn-outline{border:2px solid var(--blue);color:var(--blue)}
.btn-outline:hover{background:#eef3ff}

/* 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 */
@media (max-width:1024px){
  .values-grid{grid-template-columns:repeat(2,1fr)}
}
@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){
  .hero h1{font-size:2rem}
  h2{font-size:2rem}
  .grid-2{grid-template-columns:1fr}
  .image-box{height:260px}
  footer{font-size:.9rem;padding:1.5rem .75rem}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* === 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;
  }
}
