﻿/* == BuildersCalc Pro - Shared Stylesheet == */

/* -- Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:   #12192c;
  --navy2:  #1c2840;
  --gold:   #f5a623;
  --gold2:  #e09410;
  --white:  #ffffff;
  --light:  #f4f6f9;
  --mid:    #dde2ea;
  --text:   #2c3347;
  --muted:  #6b7590;
  --green:  #2e7d32;
  --red:    #c62828;
  --radius: 6px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); }
p { font-family: 'Roboto Condensed', Arial, sans-serif; }
a { text-decoration: none; color: inherit; }

/* -- Info Bar -- */
.info-bar { background: var(--navy); color: #b0bcd4; font-size: .82rem; padding: 8px 0; font-family: 'Roboto Condensed', Arial, sans-serif; }
.info-bar .inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.info-bar .badges { display: flex; gap: 24px; flex-wrap: wrap; }
.info-bar .badge { display: flex; align-items: center; gap: 7px; }
.info-bar .badge svg { flex-shrink: 0; opacity: .75; }
.info-bar .badge strong { color: var(--white); }
.info-bar .right { display: flex; gap: 16px; align-items: center; }
.info-bar .right a { color: var(--gold); font-weight: 600; transition: opacity .2s; }
.info-bar .right a:hover { opacity: .8; }
.info-bar-currency { display: none; align-items: center; gap: 5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 3px 8px; }
.info-bar-currency svg { color: #8a9ab8; flex-shrink: 0; }
.info-bar-currency select { background: transparent; border: none; color: #c5cfe0; font-size: .78rem; font-family: 'Roboto Condensed', Arial, sans-serif; outline: none; cursor: pointer; }
.info-bar-currency select option { background: #12192c; color: #fff; }

/* -- Navigation -- */
header { background: var(--navy2); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
nav { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 38px; height: 38px; background: var(--gold); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { color: var(--navy); }
.logo-text { font-size: 1.45rem; font-weight: 800; color: var(--white); letter-spacing: -.5px; }
.logo-text span { color: var(--gold); }
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links a { color: #c5cfe0; font-size: 1.2rem; font-weight: 500; padding: 8px 14px; border-radius: var(--radius); transition: color .2s, background .2s; font-family: 'Roboto Condensed', Arial, sans-serif; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-links a.active { color: var(--gold); background: rgba(255,255,255,.08); }
.nav-currency { display:flex; align-items:center; gap:5px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:var(--radius); padding:5px 10px; }
.nav-currency svg { color:#8a9ab8; flex-shrink:0; }
.nav-currency select { background:transparent; border:none; color:#c5cfe0; font-size:.82rem; font-family:'Roboto Condensed',Arial,sans-serif; outline:none; cursor:pointer; max-width:160px; }
.nav-currency select option { background:#12192c; color:#fff; }
.nav-currency-mobile { display:none; }
.btn-quote { background: var(--gold); color: var(--navy); font-weight: 700; padding: 10px 22px; border-radius: var(--radius); font-size: .9rem; border: 2px solid var(--gold); transition: background .2s, color .2s; cursor: pointer; white-space: nowrap; }
.btn-quote:hover { background: var(--gold2); border-color: var(--gold2); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* -- Calculator mega-dropdown -- */
.nav-dropdown { position: relative; }
.nav-dd-toggle { background: none; border: none; color: #c5cfe0; font-size: 1.2rem; font-weight: 500; padding: 8px 14px; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; gap: 5px; transition: color .2s, background .2s; font-family: 'Roboto Condensed', Arial, sans-serif; white-space: nowrap; }
.nav-dd-toggle:hover, .nav-dropdown.open .nav-dd-toggle { color: var(--white); background: rgba(255,255,255,.08); }
.nav-dd-toggle svg { transition: transform .2s; flex-shrink: 0; }
.nav-dropdown.open .nav-dd-toggle svg { transform: rotate(180deg); }
.nav-dd-panel { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: 980px; background: #fff; border-radius: 10px; box-shadow: 0 16px 48px rgba(0,0,0,.18); z-index: 300; overflow: hidden; padding: 18px 20px 0; box-sizing: border-box; }
.nav-dropdown.open .nav-dd-panel { display: block; }
.nav-dd-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0 4px; }
.nav-dd-col { padding: 0 16px 14px; }
.nav-dd-col + .nav-dd-col { border-left: 1px solid #eee; }
.nav-dd-col-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.nav-dd-dot { width: 9px; height: 13px; border-radius: 3px; flex-shrink: 0; }
.nav-dd-col-hd span, .nav-dd-col-hd a { font-size: .72rem; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .6px; }
.nav-dd-col-hd a:hover { color: var(--gold2); text-decoration: underline; }
.nav-dd-col ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-dd-col ul li a { display: flex; align-items: center; gap: 7px; padding: 6px 8px; font-size: .84rem; color: var(--text); border-radius: 5px; transition: background .15s, color .15s; font-family: 'Roboto Condensed', Arial, sans-serif; }
.nav-dd-col ul li a:hover { background: var(--light); color: var(--navy); }
.nav-dd-col ul li a::before { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--mid); flex-shrink: 0; }
.nav-dd-soon { border-top: 1px solid #eee; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav-dd-soon-label { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-right: 2px; }
.nav-dd-soon-chip { font-size: .75rem; color: var(--muted); background: var(--light); border-radius: 12px; padding: 2px 10px; white-space: nowrap; }
.nav-dd-footer { border-top: 1px solid #eee; padding: 10px 20px; display: flex; justify-content: flex-end; }
.nav-dd-footer a { font-size: .82rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 4px; }
.nav-dd-footer a:hover { color: var(--gold2); }

/* -- Footer -- */
footer { background: var(--navy); color: #8a9ab8; font-size: .85rem; padding: 48px 24px 28px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 2.5fr 1fr; gap: 48px; }
.footer-brand .logo-text { font-size: 1.3rem; margin-bottom: 12px; display: block; }
.footer-brand p { line-height: 1.65; max-width: 260px; font-family: 'Roboto Condensed', Arial, sans-serif; }
footer h4 { color: var(--white); font-size: .9rem; margin-bottom: 14px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul li a { color: #8a9ab8; transition: color .2s; font-family: 'Roboto Condensed', Arial, sans-serif; }
footer ul li a:hover { color: var(--gold); }
.footer-bottom { max-width: 1240px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-family: 'Roboto Condensed', Arial, sans-serif; }
.footer-bottom a { color: var(--gold); }

/* -- Responsive -- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .btn-quote, .nav-currency { display: none; }
  .nav-currency-mobile { display:flex !important; align-items:center; gap:8px; padding:8px 14px; }
  .nav-currency-mobile svg { color:#8a9ab8; flex-shrink:0; }
  .nav-currency-mobile select { background:transparent; border:none; color:#c5cfe0; font-size:.9rem; font-family:'Roboto Condensed',Arial,sans-serif; outline:none; cursor:pointer; width:100%; }
  .nav-currency-mobile select option { background:#12192c; color:#fff; }
  .hamburger { display: flex; }
  nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy2); padding: 16px 24px; gap: 10px; z-index: 99; }
  nav.open .nav-links a { padding: 6px 14px; }
  .nav-dd-toggle { width: 100%; justify-content: space-between; padding: 8px 14px; }
  .nav-dd-panel { position: static; transform: none; width: 100%; box-shadow: none; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); margin-top: 4px; padding: 10px 10px 0; max-height: 60vh; overflow-y: auto; }
  .nav-dd-grid { grid-template-columns: 1fr 1fr; }
  .nav-dd-col { padding: 0 8px 10px; }
  .nav-dd-col + .nav-dd-col { border-left: none; border-top: none; }
  .nav-dd-col:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .nav-dd-col-hd span, .nav-dd-col-hd a { color: #c5cfe0; }
  .nav-dd-col-hd a:hover { color: #fff; }
  .nav-dd-col ul li a { color: #a0b0c8; }
  .nav-dd-col ul li a:hover { background: rgba(255,255,255,.07); color: var(--white); }
  .nav-dd-col ul li a::before { background: rgba(255,255,255,.2); }
  .nav-dd-soon { border-top: 1px solid rgba(255,255,255,.08); }
  .nav-dd-soon-chip { background: rgba(255,255,255,.06); color: #8a9ab8; }
  .nav-dd-footer { border-top: 1px solid rgba(255,255,255,.08); }
  .nav-dd-footer a { color: var(--gold); }
  .footer-inner { grid-template-columns: 1fr; }
  .info-bar .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
  .info-bar .badges { display: contents; }
  .info-bar .badge:nth-child(2),
  .info-bar .right { justify-self: end; text-align: right; }
  .info-bar .right { align-self: center; }
}

/* -- Mobile landscape -- */
@media (orientation: landscape) and (max-height: 500px) {
  .nav-currency { display: none; }
  .info-bar-currency { display: flex; }
  .info-bar-tagline { display: none; }
}

