html, body {
  margin-top: 0;
  margin: 0;
  padding: 0;
  
}

:root {
  --ink:     #1a1a2e;
  --cream:   #f5f0e8;
  --gold:    #c9a84c;
  --gold-lt: #e8c96d;
  --white:   #ffffff;
  --gray:    #6b6b80;
  --border:  #ddd8cc;
  --error:   #c0392b;
}

body {
    font-family: 'Manrope', sans-serif;
    color: #000000;
    margin-left: 40px;
    margin-top: 0px;
    padding: 0;
    background-color:#ffffff;
}

h1, h2, h3 {
    font-family: 'Syne', sans-serif;
    color: #081a30;
    margin-top: 0;
}

#home {
    scroll-margin-top: 0;
}

.link-button {
  background: none;
  border: none;
  padding: 0;

  color: inherit;
  font: inherit;

  cursor: pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 85px;
  background: linear-gradient(to top,#081a30 100%, #183059 100%, #9cbae1 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

#navbar {
  display: flex;
  align-items: center;
  flex: 1;
  margin: 0;
  min-width: 0;
  justify-content: space-between;
}

#navbar nav {
  font-family:'Syne', sans-serif;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: absolute;
  right: 280px; 
}

#navbar .logo {
  background-image: url(/images/BELA\ Construction\ Banner\ Small.png);
  background-size: contain;
  background-position: center left;
  background-repeat: no-repeat;
  width: 200px;
  height: 85px;
  display: block;
  flex-shrink: 0;
}

#navbar nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem;
  transition: color 0.2s ease;
  margin: 2.5px;
}

#navbar nav a:hover {
  color: #464369;
}

main {
  padding-top: 80px;
}


h2 {
    margin-top: 40px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-quote {
  display: none;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }



@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .quote-btn {
    display: none;
  }

  #navbar {
    justify-content: space-between;
    width: 100%;
  }

  #navbar #nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    width: 100%;
    background: #081a30;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    z-index: 999;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    align-items: flex-start;
    margin-left: 0;
  }

  #navbar #nav-links.open {
    display: flex !important;
  }

  #navbar #nav-links a {
    color: #ffffff !important;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    margin: 0;
  }
  #navbar #nav-links .mobile-quote {
    display: block !important;
    margin-top: 0.5rem;
    width: 100%;
    color: #ffffff;
    border: 2px solid #ffffff;
    background: transparent;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px;
    cursor: pointer;
  }

  }



.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
}



.title-line {
    height: 2px;
    background-color: #999;
    margin-top: 20px;
    width: 800px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s ease;
}

.section-title.loaded .title-line {
    transform: scaleX(1);
}

.topbar .quote-btn {
  color: #ffffff;
  border: 2px solid #ffffff;
  background: transparent;
  z-index: 1001;
  position: relative;
}

.topbar .quote-btn::before {
  background: #ffffff;
}

.topbar .quote-btn:hover {
  color: #081a30;
}
*, *::before, *::after { box-sizing: border-box;}
 
 
/* ── Trigger Button ── */
.quote-btn {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
  border: 2px solid var(--ink);
  padding: 14px 36px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease;
  margin-left: 200px;
}
 
.quote-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 0;
}
 
.quote-btn:hover::before { transform: scaleX(1); }
.quote-btn:hover { color: #081a30; }
.quote-btn span { position: relative; z-index: 1; }
 
/* ── Overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
 
.overlay.active {
  opacity: 1;
  pointer-events: all;
}
 
/* ── Modal ── */
.modal {
  background: var(--white);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  scrollbar-width: thin;
}
 
.overlay.active .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
 
/* Gold accent bar */
.modal-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold));
}
 
.modal-body {
  padding: 40px 44px 44px;
}
 
.modal-header {
  margin-bottom: 28px;
}
 
.modal-header h2 {
  font-family: 'Syne', serif;
  font-size: 1.75rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}
 
.modal-header p {
  font-size: 0.875rem;
  color: var(--gray);
  font-weight: 300;
}
 
.close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: color 0.2s, transform 0.2s;
  font-size: 1.5rem;
  line-height: 1;
}
 
.close-btn:hover { color: var(--ink); transform: rotate(90deg); }
 
/* ── Form ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
 
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
 
.field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7px;
}
 
.field input,
.field select,
.field textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--border);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  width: 100%;
}
 
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: #fffdf7;
}
 
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: var(--error);
}
 
.field textarea { resize: vertical; min-height: 90px; }
 
.field-error {
  font-size: 0.72rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}
 
.field-error.visible { display: block; }
 
/* custom select arrow */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gold);
}
 
/* ── Submit ── */
.submit-btn {
  width: 100%;
  margin-top: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border: none;
  padding: 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
 
.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}
 
.submit-btn:hover::after { transform: scaleX(1); }
.submit-btn span { position: relative; z-index: 1; }
 
/* ── Success State ── */
.success-msg {
  display: none;
  text-align: center;
  padding: 20px 0 8px;
}
 
.success-msg .check {
  font-size: 2.8rem;
  margin-bottom: 14px;
}
 
.success-msg h3 {
  font-family: 'Syne', serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 8px;
}
 
.success-msg p {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 300;
}
 
@media (max-width: 520px) {
  .modal-body { padding: 28px 24px 32px; }
  .form-row { grid-template-columns: 1fr; }
}
