/* Bethlehem Epoxy Flooring — site stylesheet
   Mobile-first, no framework, no build step. */

:root {
  --color-navy: #16232f;
  --color-navy-dark: #0d151d;
  --color-accent: #e2621b;
  --color-accent-dark: #b94e12;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-border: #e0e4e8;
  --color-text: #1c2731;
  --color-text-light: #4d5b67;
  --color-text-on-dark: #eef1f4;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(13, 21, 29, 0.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--color-accent-dark); text-decoration: underline; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  line-height: 1.2;
  color: var(--color-navy);
  margin: 0 0 0.6em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; margin-top: 2em; }
h3 { font-size: 1.15rem; margin-top: 1.5em; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  border-bottom: 3px solid var(--color-accent);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  line-height: 1.15;
}
.logo:hover { color: var(--color-text-on-dark); }
.logo span { display: block; font-size: 0.7rem; font-weight: 400; color: #b7c2cc; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--color-accent); }

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--color-accent-dark); color: #fff; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-secondary:hover { background: #fff; color: var(--color-navy); }

.nav-toggle {
  order: 3;
  background: none;
  border: 2px solid #fff;
  border-radius: var(--radius);
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
}
.hamburger::before,
.hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.main-nav {
  order: 4;
  width: 100%;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
}
.nav-menu.is-open { display: flex; }

.nav-menu a,
.dropdown-toggle {
  display: block;
  color: var(--color-text-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"],
.dropdown-toggle:hover { background: rgba(255,255,255,0.08); color: #fff; }

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
  display: none;
}
.has-dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu a { font-size: 0.88rem; font-weight: 500; }

.dropdown-toggle::after { content: " \25BE"; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-navy-dark);
  color: #c3ccd4;
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 0.7em; }
.footer-grid a { color: #c3ccd4; text-decoration: none; }
.footer-grid a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.45em; }
.footer-phone { font-weight: 700; color: #fff; font-size: 1.05rem; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #263544;
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: #8798a5;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, #24384a 100%);
  color: #fff;
  padding: 2.75rem 0;
}
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero .lede { color: #d7dee4; font-size: 1.05rem; max-width: 60ch; }
.hero .hero-cta { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

.page-hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
}
.page-hero h1 { margin-bottom: 0.4rem; }

/* ---------- Sections & cards ---------- */

.section { padding: 2.5rem 0; }
.section-alt { background: var(--color-bg-alt); }

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card a.card-link { text-decoration: none; font-weight: 600; }

.callout {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.town-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.town-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  padding: 0.2rem 1rem;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 0;
  color: var(--color-navy);
}
.faq-item p { padding-bottom: 0.85rem; }

/* ---------- Forms ---------- */

.quote-form-wrap {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  scroll-margin-top: 5rem;
}
.quote-form-wrap h2 { margin-top: 0; }

form.quote-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #c3ccd4;
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-actions { margin-top: 0.25rem; }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Tablet / desktop ---------- */

@media (min-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
  }
  .nav-toggle { display: none; }
  .main-nav { order: 2; width: auto; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0.1rem;
    position: relative;
  }
  .nav-menu a, .dropdown-toggle { font-size: 0.85rem; padding: 0.5rem 0.6rem; }
  .has-dropdown { position: relative; }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-navy);
    min-width: 220px;
    padding: 0.4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .has-dropdown.is-open .dropdown-menu,
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu { display: block; }
  .header-cta { order: 3; }

  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.7rem; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .town-list { grid-template-columns: repeat(3, 1fr); }

  form.quote-form { grid-template-columns: 1fr 1fr; }
  .form-field.full { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 4rem 0; }
}
