/* === NAVBAR === */
.navbar {
  position: fixed;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 1000;
  padding: 12px 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.7)
  );
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  top: 36px;
}

.logo img {
  height: 130px;
}

/* nav links container */
.navbar .nav-links {
  flex: 1;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: var(--roller);
  font-weight: 600;
  transition: var(--transition);
}

.navbar a:hover {
  color: var(--blinds);
}

a.btn.open-quote:hover {
  background: var(--blinds);
  border: 2px solid var(--blinds);
  color: var(--white);
}

/* Desktop CTA button */
.cta .btn {
  border: 2px solid var(--roller);
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--roller);
  font-weight: 600;
  background: transparent;
  transition: 0.3s;
}

.cta .btn:hover {
  background: var(--blinds);
  border: 2px solid var(--blinds);
  color: var(--white);
}

.btn {
  border: 2px solid var(--roller);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--roller);
  background: transparent;
  transition: var(--transition);
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--roller);
  transition: 0.3s;
}

/* HAMBURGER → CROSS */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Close button (X) */
.close-menu {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

/* CTA button in panel */
.mobile-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 2px solid var(--roller);
  text-decoration: none;
  color: var(--roller);
  font-weight: 600;
}
.cta {
  display: none;
}
/* === NAVBAR MOBILE BREAKPOINT === */
@media (max-width: 900px) {
  .cta {
    display: none;
  }
  .mobile-quote {
    width: 100%;
    display: flex;

  }

  .mobile-quote .btn {
    width: auto;
    min-width: 160px;
    text-align: center;
  }

  /* hamburger visible */
  .hamburger {
    display: flex;
  }

  /* dropdown menu */
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.8)
    );
    backdrop-filter: blur(6px);
    display: none;
    flex-direction: column;
    padding: 15px 20px;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .navbar ul {
    flex-direction: column;

    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }

.mobile-quote .btn:active,
  .mobile-quote .btn:focus {
    background: var(--blinds);
    border: 2px solid var(--blinds);
    color: var(--white);
}
}

/* ===========POPUP STYLING========== */

/* scroll lock helper*/
.no-scroll {
  overflow: hidden !important;
  height: 100% !important;
}

/* OVERLAY */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  z-index: 2000;
}

/* ---- ensure popup is hidden until explicitly opened ---- */
.popup-overlay[aria-hidden="true"] {
  display: none !important;
  pointer-events: none;
}

/* allow show when aria-hidden becomes false or .active is present */
.popup-overlay[aria-hidden="false"],
.popup-overlay.active {
  display: flex !important;
  pointer-events: auto;
}

.popup-overlay.active {
  display: flex;
}

/* POPUP BOX */
.popup-box {
  width: min(94%, 520px);
  max-width: 520px;
  padding: 32px;
  border-radius: 16px;
  box-sizing: border-box;
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  position: relative;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* popup open animation */
@keyframes popin {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-box {
  animation: popin 0.28s ease;
}

/* CLOSE BUTTON (inside popup) */
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--roller);
  color: #fff;
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--blinds);
}

/* FORM WRAPPER */
#quoteForm {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding-bottom: 6px;
}

/* ========= FORM FIELDS============ */
#quoteForm input,
#quoteForm textarea,
#quoteForm select {
  width: 100%;
  box-sizing: border-box;

  /* Bigger fields */
  padding: 12px 18px;
  margin: 14px 0;
  font-size: 17px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  outline: none;
  transition: var(--transition);
}

/* Focus */
#quoteForm input:focus,
#quoteForm textarea:focus,
#quoteForm select:focus {
  background: #ffffff;
  border-color: var(--roller);
  box-shadow: 0 0 14px rgba(11, 58, 102, 0.14);
}

/* TEXTAREA sizing */
#quoteForm textarea {
  min-height: 120px;
  max-height: 320px;
  resize: vertical;
  line-height: 1.45;
}

/* SELECT dropdown arrow & spacing */
#quoteForm select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='20' height='20' viewBox='0 0 20 20' fill='%230b3a66' xmlns='http://www.w3.org/2000/svg'><path d='M5 7L10 12L15 7'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 20px;
  padding-right: 56px;
}

#quoteForm input::placeholder,
#quoteForm textarea::placeholder {
  color: rgba(17, 24, 39, 0.45);
  font-weight: 500;
}

/* SUBMIT BUTTON */
.submit-btn {
  width: 100%;
  padding: 18px 20px;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: var(--roller);
  color: var(--white);
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--blinds);
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row .col {
  flex: 1;
}

/* Popup form Responsiveness */
@media (max-width: 720px) {
  .popup-box {
    width: min(96%, 520px);
    padding: 24px;
    max-height: calc(100vh - 120px);
    border-radius: 14px;
  }

  #quoteForm input,
  #quoteForm textarea,
  #quoteForm select {
    padding: 16px 18px;
    font-size: 16px;
  }

  #quoteTitle {
    font-size: 24px;
  }

  .submit-btn {
    padding: 16px 18px;
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .popup-overlay {
    padding: 40px 12px;
  }

  .popup-box {
    width: min(96%, 520px);
    padding: 18px;
    max-height: calc(100vh - 72px);
    border-radius: 12px;
  }

  .field-row input,
  .field-row select {
    padding: 12px 14px;
    font-size: 14px;
  }

  #quoteTitle {
    font-size: 20px;
  }

  #quoteForm input,
  #quoteForm textarea,
  #quoteForm select {
    padding: 14px 16px;
    font-size: 13px;
    margin: 12px 0;
  }

  .submit-btn {
    padding: 14px 16px;
    font-size: 16px;
  }
}

@media (max-width: 320px) {
  #quoteForm input,
  #quoteForm textarea,
  #quoteForm select {
    padding: 14px 16px;
    font-size: 10px;
    margin: 12px 0;
  }
}

/* scrollbars */
.popup-box::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.popup-box::-webkit-scrollbar-thumb {
  background: rgba(11, 58, 102, 0.18);
  border-radius: 8px;
}

/* ensure heavy content inside popup doesn't push edges horizontally */
.popup-box * {
  box-sizing: border-box;
}

.field-row .col {
  min-width: 0;
}

.field-row input,
.field-row select {
  min-width: 0;
}

/* remove mobile tap highlight / flash */
.logo a {
  -webkit-tap-highlight-color: transparent;
}

.logo a:focus,
.logo a:active {
  background: none;
  outline: none;
}

/* ================= TOP INFO BAR ================= */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 1100; /* navbar se upar */
  background: var(--roller);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 300px;
  font-size: 13px;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.top-bar a:hover {
  text-decoration: underline;
}
.top-link .email-highlight, .top-link .phone-highlight {
  color: #ffd400; /* yellow */
}

/* mobile adjustments */
@media (max-width: 900px) {
  .top-bar {
    font-size: 12px;
    padding: 0 16px;
  }
    .top-right .top-link {
    display: flex;
    flex-direction: column;  
    align-items: flex-start;
    line-height: 1.2;
  }

  .top-right .top-link .phone-highlight {
    margin-top: 2px;  
  }
}
body {
  padding-top: 36px; 
}
