:root {
  --red: #d32f2f;
  --red-dk: #b71c1c;
  --gray: #555;
  --light: #f8f9fa;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background: var(--light);
  color: #333;
  line-height: 1.6;
}

/* ─── PRELOADER ──────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #fff 0%, #fffafafa 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  font-size: 3.8rem;
  color: var(--red);
  margin-bottom: 0.8rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 6px solid #f0f0f0;
  border-top: 6px solid var(--red);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
  margin: 1.5rem auto;
  position: relative;
}

.spinner::after {
  content: "Ds";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  color: var(--red);
}

.preloader-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.6rem;
}

.preloader-subtitle {
  font-size: 1.05rem;
  color: #666;
  max-width: 320px;
  margin: 0 auto 1.2rem;
}

.preloader-status {
  font-size: 0.95rem;
  color: #888;
  font-style: italic;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── HEADER ─────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
}
.fa-house:hover {
  color: var(--red);
}

nav.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--red);
}

.contact-btn {
  background: var(--red);
  text-decoration: none;
  color: white;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 6px;
  font-weight: 300;
  cursor: pointer;
}

.contact-btn:hover {
  background: var(--red-dk);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease;
  padding: 80px 30px 40px;
  z-index: 1050;
}

.mobile-menu.active {
  right: 0;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.4rem;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu ul {
  list-style: none;
  margin-top: 1rem;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1.15rem;
  color: #333;
  text-decoration: none;
}
.mobile-menu a:hover {
  color: var(--red);
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .contact-btn {
    display: none;
  }
}

/* ─── TOP SECTION ────────────────────────────────────────────── */
.top-section {
  padding-top: 90px;
  padding-bottom: 30px;
  text-align: center;
  background: white;
  position: relative;
  z-index: 10;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 700;
  color: #222;
  margin-bottom: 0.8rem;
}

.progress-wrapper {
  max-width: 650px;
  margin: 0 auto 2rem;
  height: 10px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0;
  background: var(--red);
  animation: loading 4.5s infinite ease-in-out;
}

@keyframes loading {
  0%,
  100% {
    width: 18%;
  }
  50% {
    width: 75%;
  }
}
/* Pin Code By Address Container */
.container {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 80px;
  margin-bottom: 80px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
select {
  width: 100%;
  padding: 8px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#searchBtn {
  width: 100%;
  padding: 10px;
  background-color: var(--red);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#searchBtn:hover {
  background-color: var(--red-dk);
}
#results {
  margin-top: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background-color: #f2f2f2;
}
/* Footer */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .top-section {
    padding-top: 80px;
  }
  .main-container {
    padding: 2rem 1rem;
    min-height: 60vh;
  }
  .cards-wrapper {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}
.footer-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 10px;
}
