/* ===================================================
   NuForm Counter Top Company – Policy Pages
   Last Updated: February 2026
================================================== */

/* ---------- 1. Global Reset & Base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

/* ---------- 2. Header & Branding ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #f9f9f9;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ---------- 3. Navigation ---------- */
.menu-wrapper {
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 2rem;
  cursor: pointer;
  color: #000;
}

nav {
  flex: 1 1 100%;
  text-align: center;
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

nav a {
  text-decoration: none;
  color: #222;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

nav a:hover,
nav a.active {
  background: #a30000;
  color: #fff;
}

/* ---------- 4. Responsive Layouts ---------- */

/* Desktop Navigation */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  nav ul {
    flex-direction: row;
    position: static;
    max-height: none;
    opacity: 1;
    background: none;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    background: #f9f9f9;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-left: 1.2rem;
  }

  nav ul.open {
    max-height: 320px;
    opacity: 1;
    padding: 1rem 1.2rem;
    border-top: 1px solid #ddd;
  }
}

/* ---------- 5. Policy Page Content ---------- */
.policy.readable {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: manual;
}

.policy h1 {
  text-align: center;
  color: #a30000;
  margin-bottom: 1rem;
}

.policy h2 {
  color: #a30000;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid #a30000;
  padding-left: 0.5rem;
}

.policy h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #444;
  font-weight: 600;
}

.policy p,
.policy li {
  margin-bottom: 1rem;
}

.policy ul {
  padding-left: 1.5rem;
}

.policy a {
  color: #a30000;
  text-decoration: none;
  font-weight: 500;
}

.policy a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact {
  background: #f6f6f6;
  padding: 3rem 1.5rem;
  text-align: center;
}

.contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  width: 100%;
  padding: .9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  background: #b22222;
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #8b1a1a;
}


/* ---------- 5. Footer ---------- */
.footer-info {
  text-align: center;
  background: #fff;
  padding: 2.5rem 1rem;
  line-height: 1.8;
}

.footer-info p {
  margin: 4px 0;
}

footer {
  text-align: center;
  background: #444;
  padding: 2rem 1.5rem;
  font-size: 0.95rem;
  color: #fff;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.8rem;
}

footer a:hover {
  text-decoration: underline;
}

.back-top {
  display: inline-block;
  color: #fff;
  font-weight: bold;
  margin-bottom: 1rem;
  text-decoration: none;
}

/* ---------- 7. Print & Utilities ---------- */
@media print {
  header,
  footer,
  .menu-toggle,
  .footer-info {
    display: none;
  }

  .policy.readable {
    box-shadow: none;
    border: none;
  }
}