/* ============================================================
   Great Lakes Epoxy LLC — Main Stylesheet
   Colors: Deep Navy, Brand Blue, White
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0B1F3A;
  --blue:      #4A8EC4;
  --blue-lt:   #7AB8D9;
  --white:     #FFFFFF;
  --off-white: #F4F7FA;
  --text:      #111827;
  --muted:     #6B7280;
  --border:    #D1D9E6;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(11,31,58,0.10);
  --transition: 0.2s ease;
  --max-w:     1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-lt); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.text-white  { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-lt);
  border-color: var(--blue-lt);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover {
  background: #122a50;
  border-color: #122a50;
  color: var(--white);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.nav-logo-tag {
  font-size: 0.72rem;
  color: var(--blue-lt);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-cta {
  margin-left: 12px;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #122a50 60%, #0d3a6e 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(26,111,196,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(46,158,234,0.10) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: rgba(46,158,234,0.18);
  border: 1px solid rgba(46,158,234,0.4);
  color: var(--blue-lt);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--blue-lt); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.trust-item .icon {
  width: 36px;
  height: 36px;
  background: rgba(26,111,196,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- Section Utility ---------- */
.section {
  padding: 88px 0;
}
.section-sm {
  padding: 56px 0;
}
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .text-muted { color: rgba(255,255,255,0.65); }

.section-alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 12px auto 0;
}
.section-header.left { text-align: left; }
.section-header.left p { margin-left: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-dark .eyebrow { color: var(--blue-lt); }

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-lt) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 20px;
  transition: gap var(--transition);
}
.service-card .card-link:hover { gap: 10px; }

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--off-white);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(11,31,58,0.85));
  color: var(--white);
  padding: 32px 16px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-label { transform: translateY(0); }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--off-white);
  border: 2px dashed var(--border);
  border-radius: 10px;
}
.gallery-placeholder span { font-size: 2rem; }

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--off-white); }
.faq-q .faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--navy); }

.faq-a {
  display: none;
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.faq-item.open .faq-a { display: block; }

/* ---------- Quote Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,196,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  background: #EBF8EE;
  border: 1px solid #86EFAC;
  border-radius: 12px;
  color: #166534;
}

/* ---------- Stats / Trust Bar ---------- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  padding: 32px 48px;
  border-right: 1px solid rgba(255,255,255,0.12);
  flex: 1;
  min-width: 160px;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-lt);
  line-height: 1;
}
.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial-stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-text { color: var(--muted); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial-author { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.testimonial-loc { font-size: 0.82rem; color: var(--muted); }

/* ---------- Contact Info ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.contact-info-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.contact-info-card .ci-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.contact-info-card h4 { margin-bottom: 6px; }
.contact-info-card a {
  color: var(--blue);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ---------- Process Steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.process-step {
  text-align: center;
  padding: 28px 20px;
  position: relative;
}
.step-num {
  width: 52px;
  height: 52px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: var(--muted); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, #0d3a6e 100%);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.1rem; }
.cta-band .btn-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: #060F1D;
  color: rgba(255,255,255,0.65);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo-name { font-size: 1.2rem; color: var(--white); }
.footer-brand .nav-logo-tag { color: var(--blue-lt); }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; line-height: 1.7; }
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-lt);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 16px;
  text-decoration: none;
}
.footer-phone:hover { color: var(--white); }
.footer-col h5 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #122a50 100%);
  padding: 72px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ---------- Home Collage ---------- */
.collage {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 320px 320px;
  gap: 10px;
  border-radius: 16px;
  overflow: hidden;
}
.collage-main {
  grid-row: 1 / 3;
}
.collage .gallery-item {
  border-radius: 0;
}
.collage .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 680px) {
  .collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 180px;
  }
  .collage-main {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* ---------- Before/After ---------- */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 12px;
  overflow: hidden;
}
.ba-side { position: relative; }
.ba-side img { width: 100%; height: 260px; object-fit: cover; }
.ba-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11,31,58,0.85);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-height: 88vh;
  max-width: 90vw;
  border-radius: 6px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .before-after { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-mobile {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a {
    color: rgba(255,255,255,0.85);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    display: block;
  }
  .nav-mobile a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
  .nav-mobile .btn { width: 100%; justify-content: center; margin-top: 8px; }

  .hero { min-height: auto; padding: 72px 0 60px; }
  .hero-trust { gap: 20px; }
  .section { padding: 60px 0; }
  .stat-item { padding: 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .cta-band .btn-actions { flex-direction: column; align-items: center; }
}
