/* ─────────────────────────────────────────────
   GeoCal  –  Utility Mapping Services
   Brand palette
   ───────────────────────────────────────────── */
:root {
  --gc-orange : #e58e1a;
  --gc-purple : #6d56cc;
  --gc-white  : #ffffff;
  --gc-offwhite: #f5f5f5;
  --gc-dark   : #1c1c2e;
}

/* ─────────────────────────────────────────────
   Reset / base
   ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
}

/* Full-viewport layout: header 20 / body 60 / footer 20 */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─────────────────────────────────────────────
   HEADER  –  10 vh
   ───────────────────────────────────────────── */
.site-header {
  background-color: #000000;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 6px 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  width: auto;
  height: auto;
  max-height: 90px;
  max-width: 400px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.03);
  opacity: 0.90;
}

/* ─────────────────────────────────────────────
   MAIN BODY  –  two-column layout
   ───────────────────────────────────────────── */
.site-body {
  flex: 1 0 auto;
  background-color: var(--gc-offwhite);
  overflow: hidden;
}

.body-grid {
  display: flex;
  min-height: 100%;
  padding-left: 5%;
  padding-right: 5%;
}

/* ── First column – 70% ── */
.body-main {
  width: 70%;
  padding: 2.5rem 3rem;
  overflow-y: auto;
}

.section-home-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--gc-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: #6d56cc;
  border-left: 4px solid #e58e1a;
  padding-left: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  color: #444;
  line-height: 1.75;
  margin-bottom: 0;
}

.section-text {
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  color: #444;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.content-section {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.content-section:last-child {
  border-bottom: none;
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-list li {
  font-size: clamp(0.85rem, 1.1vw, 0.97rem);
  color: #444;
  padding: 0.30rem 0 0.30rem 1.4rem;
  position: relative;
  line-height: 1.6;
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #e58e1a;
  border-radius: 50%;
}

/* ── Second column – 30% ── */
.body-sidebar {
  width: 30%;
  background-color: #1c1c2e;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 3px solid #e58e1a;
}

.tool-figure {
  margin: 0;
  background-color: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.tool-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background-color: #fff;
}

.tool-caption {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e58e1a;
  background-color: #1c1c2e;
  padding: 0.45rem 0.5rem;
}

/* ─────────────────────────────────────────────
   Responsive – stack columns on mobile
   ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .body-grid {
    flex-direction: column;
  }

  .body-main,
  .body-sidebar {
    width: 100%;
  }

  .body-sidebar {
    border-left: none;
    border-top: 3px solid #e58e1a;
  }
}

/* ─────────────────────────────────────────────
   FOOTER  –  auto height, padded
   ───────────────────────────────────────────── */
.site-footer {
  background-color: var(--gc-purple);
  flex-shrink: 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.20);
}

.footer-inner {
  padding: 1.25rem 0 1.5rem;
}

/* ── About block (left) ── */
.about-block {
  max-width: 45%;
  padding-right: 2rem;
}

.footer-about-label {
  font-size: clamp(0.70rem, 1.1vw, 0.90rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gc-orange);
  margin-bottom: 0.30rem;
}

.footer-about-text {
  font-size: clamp(0.65rem, 0.95vw, 0.80rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Contact block ── */
.contact-block {
  line-height: 1.45;
}

.contact-label {
  font-size: clamp(0.70rem, 1.1vw, 0.90rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gc-orange);
  margin-bottom: 0.20rem;
}

.contact-name {
  font-size: clamp(0.80rem, 1.2vw, 1.05rem);
  font-weight: 700;
  color: var(--gc-white);
  margin-bottom: 0.05rem;
}

.contact-title {
  font-size: clamp(0.68rem, 1.0vw, 0.85rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.20rem;
}

.contact-address {
  font-size: clamp(0.65rem, 0.95vw, 0.80rem);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.20rem;
}

.contact-phone {
  font-size: clamp(0.65rem, 0.95vw, 0.80rem);
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 0.20rem;
}

.contact-phone-type {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75em;
}

.contact-icon {
  color: var(--gc-orange);
  margin-right: 2px;
}

.contact-links {
  font-size: clamp(0.65rem, 0.95vw, 0.80rem);
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.75rem;
}

.footer-link {
  color: var(--gc-orange);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-link:hover {
  color: var(--gc-white);
  text-decoration: underline;
}

/* ─────────────────────────────────────────────
   Responsive tweaks
   ───────────────────────────────────────────── */

/* On small screens collapse header/footer to fixed px so logo/text stays legible */
@media (max-width: 767px) {
  .header-logo {
    max-height: 70px;
    max-width: 300px;
  }

  .site-body {
    flex: 1 0 auto;
    min-height: 300px;
  }

  .site-footer {
    height: auto;
    min-height: 130px;
    padding: 16px 0;
  }

  .footer-inner {
    height: auto;
  }

  .contact-block {
    text-align: right;
  }

  .contact-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
  }
}
