/* ═══════════════════════════════════════════
   TEXAS HOMEOWNER ADVANTAGE — Global Styles
   texashomeowneradvantage.com
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lora:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #B22234;
  --red-dark:  #8C1A28;
  --red-dim:   rgba(178,34,52,0.1);
  --gold:      #C9960C;
  --gold-lt:   #F7EDD0;
  --ink:       #111111;
  --ink-mid:   #444444;
  --ink-soft:  #777777;
  --cream:     #F9F6EE;
  --cream-dk:  #EDE8DC;
  --white:     #FFFFFF;
  --border:    #DDD5BF;
  --green:     #1E6642;
  --green-lt:  #E4F2EB;
  --nav-h:     64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── SHARED NAV ── */
.site-nav {
  height: var(--nav-h);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-star { color: var(--gold); font-size: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  background: var(--red) !important;
  color: white !important;
  padding: 7px 16px;
  border-radius: 2px;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
}

.nav-cta:hover { background: var(--red-dark) !important; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
  transition: 0.2s;
}

/* ── SHARED FOOTER ── */
.site-footer {
  background: var(--ink);
  padding: 56px 32px 32px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.footer-brand-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-logo span { color: var(--gold); }

.footer-brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
}

.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ── SHARED UTILITIES ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.section-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 2px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #b07f0a; }

/* ── FORM SHARED ── */
.form-field { margin-bottom: 12px; }

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 5px;
}

.form-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.15s;
}

.form-field input:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.form-field input::placeholder { color: #bbb; }

.form-privacy {
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── GUIDE CARD (used on homepage + resources) ── */
.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.guide-card-top {
  padding: 24px 22px 18px;
  border-bottom: 1px solid var(--border);
  flex: 1;
}

.guide-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.guide-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.tag-available { background: var(--green-lt); color: var(--green); }
.tag-coming { background: var(--cream-dk); color: var(--ink-soft); }
.tag-free { background: var(--red-dim); color: var(--red); }

.guide-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.guide-card-footer {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
}

.guide-card-footer span {
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
}

.guide-card-footer .arrow {
  font-size: 18px;
  color: var(--red);
  transition: transform 0.15s;
}

.guide-card:hover .arrow { transform: translateX(4px); }

/* ── URGENCY BAR ── */
.urgency-bar {
  background: var(--red);
  color: white;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
}

.urgency-bar strong { font-weight: 700; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-1 { animation: fadeUp 0.5s 0.05s ease both; }
.anim-2 { animation: fadeUp 0.5s 0.15s ease both; }
.anim-3 { animation: fadeUp 0.5s 0.25s ease both; }
.anim-4 { animation: fadeUp 0.5s 0.35s ease both; }

/* ── RESPONSIVE NAV ── */
@media (max-width: 700px) {
  .site-nav { padding: 0 16px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--ink); padding: 20px 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
