/**
 * global.css — Why Move to Dallas
 * Shared styles: CSS variables, site header, site footer, and common components.
 * Imported by every page via <link rel="stylesheet" href="/css/global.css">
 *
 * Suburb-specific layout and section styles live in suburb.css
 */

/* ─────────────────────────────────────────────────────────────
   CSS Custom Properties
   ───────────────────────────────────────────────────────────── */
:root {
  --navy:     #1F2D3D;
  --gold:     #B08D57;
  --ivory:    #F7F4EE;
  --stone:    #C8C1B6;
  --charcoal: #232323;
  --white:    #ffffff;
  --green:    #1a6b3a;
  --blue:     #2d7abf;
  --light:    #f0ede7;
  --shadow:   0 2px 16px rgba(31,45,61,0.09);

  --header-topbar-h: 32px;
  --header-nav-h:    62px;
  --header-total-h:  94px; /* topbar + nav */
}

/* ─────────────────────────────────────────────────────────────
   Base Reset
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.65;
}

/* Push page content below fixed header */
body > *:not(#kc-site-header) { scroll-margin-top: var(--header-total-h); }
.kc-page-body { padding-top: var(--header-total-h); }

/* ─────────────────────────────────────────────────────────────
   SITE HEADER
   ───────────────────────────────────────────────────────────── */
#kc-site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* ── Top bar (socials strip) ── */
.kc-topbar {
  height: var(--header-topbar-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 24px;
  background: rgba(10, 18, 28, 0.97);
  transition: background 0.25s ease;
}

.kc-topbar-label {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
}

.kc-topbar-socials {
  display: flex;
  align-items: center;
  gap: 5px;
}

.kc-topbar-socials a {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.kc-topbar-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.kc-topbar-socials svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ── Main nav bar ── */
.kc-nav {
  height: var(--header-nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  transition: background 0.25s ease;
}

/* Gold accent line under topbar, above nav */
.kc-nav-accent {
  display: block;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.25s ease;
  margin: 0 24px;
}

/* Logo — centered in middle grid column */
.kc-nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.kc-nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* Mobile: hide full wordmark, show icon monogram */
.kc-nav-logo .kc-logo-icon { display: none; }

/* Left nav group — right-aligned */
.kc-nav-left {
  justify-content: flex-end;
  padding-right: 8px;
}

/* Right nav group — left-aligned, contains links + CTA */
.kc-nav-right {
  display: flex;
  align-items: center;
  padding-left: 8px;
  gap: 4px;
}

/* Nav links */
.kc-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.kc-nav-links a {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.02em;
}

.kc-nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.09);
}

.kc-nav-links a.active {
  color: var(--gold);
}

/* CTA button */
.kc-nav-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s, border-color 0.15s;
}

.kc-nav-cta:hover {
  background: #c9a46a;
  border-color: #c9a46a;
}

/* Hamburger (mobile) */
.kc-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0.5px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}

.kc-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile menu */
.kc-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  border-top: 0.5px solid rgba(255,255,255,0.08);
  padding: 8px 0 12px;
}

.kc-mobile-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  transition: color 0.15s;
}

.kc-mobile-menu a:hover { color: #fff; }

.kc-mobile-menu .kc-mobile-cta {
  margin: 12px 20px 4px;
  background: var(--gold);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-bottom: none;
}

/* ── SCROLLED STATE ── */
#kc-site-header.kc-scrolled .kc-topbar {
  background: rgba(10, 18, 28, 0.97);
}

#kc-site-header.kc-scrolled .kc-nav {
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

#kc-site-header.kc-scrolled .kc-nav-accent {
  opacity: 0.5;
}

#kc-site-header.kc-scrolled .kc-nav-cta {
  background: var(--gold);
  border-color: var(--gold);
}

#kc-site-header.kc-scrolled .kc-nav-cta:hover {
  background: #c9a46a;
  border-color: #c9a46a;
}

/* ── MENU OPEN STATE ── */
#kc-site-header.kc-menu-open .kc-topbar,
#kc-site-header.kc-menu-open .kc-nav {
  background: var(--navy);
}

#kc-site-header.kc-menu-open .kc-mobile-menu {
  display: flex;
}

/* Hamburger → X animation when open */
#kc-site-header.kc-menu-open .kc-hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
#kc-site-header.kc-menu-open .kc-hamburger span:nth-child(2) {
  opacity: 0;
}
#kc-site-header.kc-menu-open .kc-hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────
   SITE FOOTER
   ───────────────────────────────────────────────────────────── */
#kc-site-footer {
  background: var(--navy);
  padding: 48px 24px 24px;
  color: rgba(255,255,255,0.6);
}

.kc-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.kc-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 36px;
}

/* Brand column */
.kc-footer-brand {}

.kc-footer-logo {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 10px;
}

.kc-footer-gold-line {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
  margin-bottom: 14px;
}

.kc-footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin: 0 0 16px;
}

.kc-footer-socials {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.kc-footer-socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.kc-footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.kc-footer-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Nav column */
.kc-footer-col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.kc-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.kc-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.kc-footer-links a:hover { color: rgba(255,255,255,0.9); }

/* Contact column */
.kc-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}

.kc-footer-contact-item svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.kc-footer-contact-item a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.kc-footer-contact-item a:hover { color: rgba(255,255,255,0.9); }

/* Divider + bottom row */
.kc-footer-divider {
  border: none;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  margin: 0 0 18px;
}

.kc-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.kc-footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  line-height: 1.7;
  margin: 0;
}

.kc-footer-copy a {
  color: rgba(255,255,255,0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kc-footer-copy a:hover { color: rgba(255,255,255,0.65); }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --header-topbar-h: 28px;
    --header-nav-h:    56px;
    --header-total-h:  84px;
  }

  /* Mobile nav: revert grid to flex, center logo, hamburger on right */
  .kc-nav {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 0 16px;
  }
  .kc-nav-left  { display: none; }
  .kc-nav-right { display: none; }
  .kc-hamburger {
    display: flex;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .kc-topbar-label { display: none; }

  .kc-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .kc-footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .kc-topbar { padding: 0 16px; }
  .kc-nav    { padding: 0 16px; }
  #kc-site-footer { padding: 36px 16px 20px; }

  /* Swap to monogram icon on small phones */
  .kc-nav-logo .kc-logo-full { display: none; }
  .kc-nav-logo .kc-logo-icon { display: block; height: 44px; width: auto; }
}
