/* ==========================================================================
   EverClear Layout CSS (UPDATED - 90px Logo)
   ========================================================================== */

:root {
  --blue: #1e3a8a;
  --blue-600: #243c9f;
  --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 ease; }
a:focus { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ===== Header / Navigation ===== */
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: var(--white);
}

/* ===== Dropdowns ===== */
.dropdown, .sub-dropdown {
  display: none;
  position: absolute;
  background: var(--white);
  box-shadow: var(--shadow);
}
nav li:hover > .dropdown { display: block; top: 100%; left: 0; }

/* Vertical list for Progressive / Single / Specialist */
.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;
}

/* Horizontal sub-options */
.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: var(--white);
}

/* Coatings + Tech dropdowns */
nav li:hover > .dropdown.coatings,
nav li:hover > .dropdown.tech { display: block; }

/* ===== Main ===== */
main {
  flex: 1 0 auto;
  max-width: 1000px;
  margin: 3rem auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
h1, h2, h3 { color: var(--blue); margin: 0 0 .5rem; }
p { margin: .5rem 0; color: var(--text); }
.section-intro { color: var(--muted); }

/* ===== Footer ===== */
footer {
  margin-top: auto;
  flex-shrink: 0;
  background: var(--blue);
  text-align: center;
  padding: 2rem 1rem;
  font-size: .95rem;
  line-height: 1.6;
  color: #fff;
}
footer p { margin: .5rem 0; }
footer a, footer a:link, footer a:visited {
  color: #fff;
  margin: 0 .5rem;
  text-decoration: none;
  transition: color .2s ease;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== Responsive ===== */
@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: 0.9rem;
    padding: 1.5rem 0.75rem;
  }
  .logo img { height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Enforced Footer + Layout Rules ===== */
footer, footer p, footer a, footer a:link, footer a:visited { 
  color: #fff !important; 
}
html, body { min-height: 100vh; }
body { display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { margin-top: auto; flex-shrink: 0; }
/* === 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;
  }
}
