/* =========================
   THEME (Orange Primary / White Secondary)
   ========================= */
:root {
  --primary: #f36b21;        /* orange */
  --primary-dark: #d95518;
  --primary-soft: rgba(243, 107, 33, 0.16);

  --bg: #ffffff;
  --bg-soft: #fafafa;

  --text: #222222;
  --muted: #666666;
  --muted-2: #777777;

  --border: #e9e9e9;
  --shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* ========== GLOBAL ========== */
* { box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  margin: 0;
  padding: 0;
  color: var(--text);
}

main { display: block; }

/* General typography */
p { line-height: 1.55; }

/* ========== HEADER / HERO TEXT ========== */
.main-title {
  text-align: center;
  padding: 25px 12px 12px 12px;
  color: #333;
  font-size: 28px;
  margin: 0;
}

header p {
  padding: 0 14px;
}

/* ========== SECTOR BOX ========== */
.sector-box {
  margin: 40px auto;
  width: 90%;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ========== BANNER IMAGES ========== */
.banner {
  height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner h2 {
  color: white;
  font-size: 40px;
  text-shadow: 0px 4px 12px rgba(0,0,0,0.7);
  font-weight: 700;
  margin: 0;
  padding: 0 12px;
  text-align: center;
}

/* Segment backgrounds */
.banner.res { background-image: url("/static/images/residential_pic.png"); }
.banner.com { background-image: url("/static/images/commercial_pic.png"); }
.banner.ind { background-image: url("/static/images/industrial_pic.png"); }

/* ========== FORM AREA ========== */
.form-box {
  padding: 20px 30px 25px 30px;
}

/* LABEL + SELECT */
label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: #333;
}

select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #bbb;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fff;
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  margin-top: 15px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  transition: 0.15s ease;
}

.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  padding: 12px 16px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  margin-top: 15px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: 0.15s ease;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #ffffff;
}
.btn-secondary:disabled { opacity: 0.7; cursor: not-allowed; }

/* ========== RESULT BOX ========== */
.result {
  margin-top: 20px;
  padding: 15px;
  background: #f8f8f8;
  border-left: 5px solid var(--primary);
  border-radius: 10px;
  font-size: 15px;
}

/* =========================
   GLOBAL LOCATION SEARCH HERO
   ========================= */
.search-label {
  display: block;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 10px;
  color: #333;
}

.search-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

#search_query {
  flex: 1 1 320px;
  max-width: 560px;
  padding: 14px 18px;
  font-size: 18px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  outline: none;
}

#search_query:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-btn {
  width: auto;     /* override .btn-primary full width */
  padding: 12px 26px;
  margin-top: 0;
  border-radius: 999px;
  white-space: nowrap;
}

/* =========================
   SEARCH SUGGESTIONS / RESULTS LIST
   ========================= */
.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result-item,
.search-suggest {
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  border: 1px solid #eee;
  background: #fff;
}

.search-result-item:hover,
.search-suggest:hover {
  background-color: #1f2937; /* dark slate */
  color: #ffffff;
}

.search-result-item:hover span,
.search-suggest:hover span {
  color: #e5e7eb !important;
}

/* =========================
   REPORT CTA (Buttons + link inside results)
   ========================= */
.report-cta {
  margin-top: 10px;
  margin-bottom: 12px;
  text-align: center;
}

.report-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.report-cta-row button {
  width: auto;      /* side-by-side */
  min-width: 260px; /* readable width */
}

.report-cta-secondary { margin-top: 8px; }

.report-diff-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  color: #333;
}

.report-diff-link:hover { color: var(--primary); }

/* =========================
   INFO SECTIONS (SEO content blocks)
   ========================= */
.info-section {
  width: 90%;
  max-width: 900px;
  margin: 30px auto;
  padding: 18px 14px;
}

.info-section h2 {
  margin: 0 0 14px 0;
  font-size: 22px;
  color: #222;
  text-align: center;
  letter-spacing: 0.2px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 14px 14px 12px 14px;
}

.info-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #222;
}

.info-card p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.info-card ul {
  margin: 8px 0 0 18px;
  padding: 0;
  color: #555;
  font-size: 14px;
}

.info-card li { margin: 6px 0; }

/* =========================
   STICKY TOP NAVIGATION
   ========================= */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.top-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  padding: 6px 10px;
  border-radius: 999px;
  transition: 0.15s ease;
}

.nav-links a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Mobile handling */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ===== BRAND LOGO IN NAV ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 200px;        /* safe size for navbar */
  width: auto;
  display: block;
}

.brand-text {
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  line-height: 1;
}


/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px) {
  .sector-box {
    width: 95%;
    margin: 25px auto;
  }

  .banner { height: 220px; }

  .banner h2 { font-size: 32px; }

  .form-box { padding: 16px 18px 22px 18px; }

  .main-title {
    font-size: 24px;
    padding: 20px 10px 10px 10px;
  }

  .info-grid { grid-template-columns: 1fr; }

  .report-cta-row button { min-width: 240px; }
}

@media (max-width: 600px) {
  body { background: var(--bg-soft); }

  .sector-box {
    width: 96%;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.10);
  }

  .banner { height: 180px; }

  .banner h2 {
    font-size: 24px;
    text-align: center;
    padding: 0 10px;
  }

  .form-box { padding: 14px 14px 18px 14px; }

  label { font-size: 14px; margin-top: 8px; }

  select { font-size: 14px; padding: 10px; }

  .btn-primary, .btn-secondary {
    font-size: 15px;
    padding: 11px 14px;
  }

  .result { font-size: 14px; padding: 12px; }

  .main-title {
    font-size: 22px;
    padding: 16px 8px 8px 8px;
  }

  #search_query {
    font-size: 16px;
    padding: 12px 16px;
  }

  .search-btn {
    width: 100%;
    border-radius: 12px;
  }

  .report-cta-row button {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 400px) {
  .banner { height: 150px; }

  .banner h2 { font-size: 20px; }

  select { font-size: 13px; }

  .btn-primary, .btn-secondary { font-size: 14px; }
}

@media (max-width: 600px) {
  .brand-logo {
    height: 26px;
  }

  .brand-text {
    font-size: 16px;
  }
}
