* { margin:0; padding:0; box-sizing:border-box; }
body, html { font-family:'Segoe UI', sans-serif; overflow-x:hidden; }

/* ✅ Push content below fixed navbar */
body { padding-top: 100px; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(0,0,0,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.logo-section { display:flex; flex-direction:column; line-height:1.2; }
.logo-section h1 { font-size:22px; color:#ff4c4c; font-weight:bold; }
.logo-section p { font-size:12px; color:#ccc; margin-top:4px; }
.phone-link { font-size:13px; color:white; text-decoration:none; margin-top:6px; }

.nav-menu { list-style:none; display:flex; gap:30px; position:relative; }
.nav-menu li { position:relative; }
.nav-menu a { text-decoration:none; color:#fff; font-size:14px; font-weight:500; transition:0.3s; }
.nav-menu a:hover { color:#ff4c4c; }

/* ---------- HAMBURGER ---------- */
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; z-index:10001; }
.hamburger span { width:25px; height:3px; background:#fff; border-radius:2px; transition:all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* ---------- RESPONSIVE MENU ---------- */
@media(max-width:768px){
  .hamburger { display:flex; }
  .nav-menu {
    flex-direction:column;
    position:fixed;
    top:0;
    right:-100%;
    width:50vw;
    max-width:300px;
    height:100%;
    background-color:#111;
    padding:100px 20px 20px;
    transition: right 0.4s ease;
  }
  .nav-menu.active { right:0; }
  .nav-menu li { margin-bottom:20px; }
  .nav-menu a { font-size:16px; color:white; }
}

/* ---------- LETTER ANIMATION ---------- */
.letter { opacity:0; display:inline-block; animation:fadeInLetter 0.3s ease forwards; }
@keyframes fadeInLetter { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }
.letter:nth-child(1){animation-delay:1s;} .letter:nth-child(2){animation-delay:1.1s;}
.letter:nth-child(3){animation-delay:1.2s;} .letter:nth-child(4){animation-delay:1.3s;}
.letter:nth-child(5){animation-delay:1.4s;} .letter:nth-child(6){animation-delay:1.5s;}
.letter:nth-child(7){animation-delay:1.6s;} .letter:nth-child(8){animation-delay:1.7s;}
.letter:nth-child(9){animation-delay:1.8s;} .letter:nth-child(10){animation-delay:1.9s;}
.letter:nth-child(11){animation-delay:2s;} .letter:nth-child(12){animation-delay:2.1s;}
.letter:nth-child(13){animation-delay:2.2s;} .letter:nth-child(14){animation-delay:2.3s;}
.letter:nth-child(15){animation-delay:2.4s;} .letter:nth-child(16){animation-delay:2.5s;}
.letter:nth-child(17){animation-delay:2.6s;} .letter:nth-child(18){animation-delay:2.7s;}
.letter:nth-child(19){animation-delay:2.8s;} .letter:nth-child(20){animation-delay:2.9s;}

@media(max-width:600px){ .realtor{ display:block; width:100%; margin-top:10px; text-align:left; } }
.br-mobile{ display:inline; } @media(max-width:768px){ .br-mobile{ display:block; } }
.lett{ display:none; } @media(min-width:768px){ .lett{ display:inline; } }

/* ----------------- DROPDOWNS ----------------- */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  background-color: rgba(0, 0, 0, 0.95);
  list-style: none;
  padding: 10px 0;
  min-width: 150px;
  z-index: 999;
  border-radius: 4px;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu li {
  padding: 8px 20px;
}

.dropdown-menu li a {
  color: white;
  display: block;
}
/* 📱 Mobile dropdown fix: push content down + keep box style */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;              /* inline so it pushes items down */
    background-color: rgba(0,0,0,0.9);  /* dark box background */
    padding: 10px 15px;
    margin-top: 8px;
    border-radius: 6px;
    display: none;                 /* hidden by default */
  }

  .dropdown-menu.show {
    display: block;                /* shown when toggled via JS */
  }

  .dropdown-menu li {
    padding: 8px 0;
  }

  .dropdown-menu li a {
    color: #fff;
    font-size: 15px;
    display: block;
  }
}

/* ----------------- nav end  ----------------- */
/* ----------------- calculator start  ----------------- */

.cost-calculator {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  width: 100%; /* Full width on large screens */
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.cost-calculator:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.cost-calculator h2 {
  position: relative;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #d32f2f;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding-bottom: 10px;
  text-shadow: 0 1px 2px rgba(211, 47, 47, 0.5);
}

.cost-calculator h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #d32f2f, #9a1c1c);
  border-radius: 2px;
}

.cost-calculator label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
  font-size: 1em;
}

.cost-calculator input,
.cost-calculator select {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cost-calculator input:focus,
.cost-calculator select:focus {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0,123,255,0.5);
  outline: none;
}

/* Two-column layout on larger screens */
@media (min-width: 768px) {
  .cost-calculator form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
  }
  .cost-calculator .result {
    grid-column: span 2;
  }
}

.result {
  margin-top: 15px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #ddd;
}

.result h3 {
  margin-bottom: 5px;
}

.result p {
  font-size: 1.5em;
  color: #007BFF;
  margin: 0;
}

.cost-calculator small {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  color: #555;
}

.cost-calculator button {
  grid-column: span 2;
  padding: 12px 20px;
  background-color: #007BFF;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cost-calculator button:hover {
  background-color: #0056b3;
}

@media (max-width: 767px) {
  .cost-calculator {
    padding: 15px;
  }
}
@media (max-width: 600px) {
  #cal {
    margin-top: 50px; /* smaller margin for phones */
  }
}
/* ----------------- calculator start  ----------------- */
