/* All Texas Apartments — site styles (matches existing brand: white, blue) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #2a9fd8;        /* logo blue */
  --blue-dark: #1b7fb3;
  --blue-deep: #0e3a5c;   /* headings / footer */
  --blue-tint: #eaf5fb;
  --ink: #1c2430;
  --ink-soft: #5a6472;
  --line: #dde4ea;
  --white: #ffffff;
  --radius: 8px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --measure: 64ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }

/* Header: dark bar, logo badge, inline nav, phone + CTA on the right (Deal Smith-inspired) */
.site-header { background: linear-gradient(180deg, var(--blue-deep) 0%, #0a2c47 100%); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-row { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; flex-wrap: wrap; }
.brand-badge { display: flex; align-items: center; flex: none; }
.brand-badge img { height: 50px; width: auto; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)) brightness(1.15) contrast(1.08); }
.nav { display: flex; align-items: center; gap: clamp(.85rem, 2vw, 1.75rem); flex: 1 1 auto; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 700; font-size: .84rem; letter-spacing: .05em; color: rgba(255,255,255,.82); text-transform: uppercase; padding: .3rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sun); }
.header-right { display: flex; align-items: center; gap: 1rem; flex: none; margin-left: auto; }
.phone-link { color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.phone-link:hover { color: var(--sun); }
.btn-header { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .6rem 1.05rem; font-size: .78rem; letter-spacing: .03em; box-shadow: 0 4px 0 var(--sun-deep); }
.btn-header .arrow { transition: transform .15s ease; }
.btn-header:hover .arrow { transform: translateX(3px); }
@media (max-width: 560px) { .header-right .phone-link { display: none; } .site-header-minimal .header-right .phone-link { display: inline; font-size: .85rem; } }
@media (max-width: 640px) {
  .header-row { justify-content: space-between; }
  .nav { order: 3; flex-basis: 100%; justify-content: center; gap: .85rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.08); }
  .nav a { font-size: .76rem; }
  .brand-badge img { height: 38px; }
  .btn-header { padding: .55rem .9rem; font-size: .74rem; }
}

/* Buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: 700 1rem var(--font); letter-spacing: .02em;
  padding: .95rem 1.7rem; border-radius: var(--radius); background: var(--blue); color: var(--white); text-decoration: none; transition: background .15s ease; }
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-wide { width: 100%; text-align: center; }
.btn-lg { font-size: 1.05rem; padding: 1.05rem 2rem; }

/* Hero: photo with overlay, headline left, form right */
.hero { position: relative; color: var(--white); background: var(--blue-deep); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,50,.82) 0%, rgba(10,30,50,.55) 55%, rgba(10,30,50,.35) 100%); }
.hero .wrap { display: grid; gap: 2.5rem; padding: clamp(3rem, 7vw, 5.5rem) 0; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1rem; text-transform: uppercase; }
.hero h1 small { display: block; font-weight: 400; font-size: .62em; letter-spacing: 0; text-transform: none; margin-bottom: .2em; }
.hero .lede { font-size: 1.2rem; line-height: 1.45; margin: 0 0 1.5rem; max-width: 46ch; }
.hero .lede strong { font-weight: 800; }
.hero .facts { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .55rem; }
.hero .facts li { padding-left: 1.5rem; position: relative; }
.hero .facts li::before { content: ''; position: absolute; left: 0; top: .5em; width: .75rem; height: .75rem; border-radius: 2px; background: var(--blue); }

/* Form panel */
.panel { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 18px 44px rgba(0,0,0,.28); }
.panel h2 { font-size: 1.45rem; font-weight: 800; line-height: 1.15; margin: 0 0 .3rem; letter-spacing: -.01em; }
.panel .sub { color: var(--ink-soft); margin: 0 0 1.25rem; font-size: .95rem; }
.form-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.field input, .field select { width: 100%; font: 400 1rem var(--font); padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--blue); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-repeat: no-repeat; background-position: right .85rem center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%231c2430' d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); line-height: 1.45; }
.consent input { margin-top: .2rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--blue); }
.form-msg { margin: .8rem 0 0; font-size: .95rem; min-height: 1.4em; }
.form-msg.error { color: #b3261e; }
.form-msg.success { color: var(--blue-dark); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section h2 { font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 1rem; text-transform: uppercase; }
.section .intro { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 2rem; }
.section-center { text-align: center; }
.section-center .intro, .section-center h2 { margin-inline: auto; }
.section-tint { background: var(--blue-tint); }
.section-deep { background: var(--blue-deep); color: var(--white); }
.section-deep .intro { color: rgba(255,255,255,.85); }

/* Three-step cards (this IS a sequence) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.25rem; text-align: center; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--white); border: 2px solid var(--blue); border-radius: var(--radius); padding: 2rem 1.5rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; }
.steps h3 { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 800; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Cities */
.cities { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; padding: 0; margin: 0; list-style: none; }
.cities li { padding: .65rem 1.3rem; border: 2px solid rgba(255,255,255,.35); border-radius: 999px; font-weight: 600; }

/* Agents */
.agents { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .agents { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; } }
.agent-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.agent-card .avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-deep); display: grid; place-items: center; margin: 0 auto 1rem; font-weight: 800; font-size: 1.6rem; }
.agent-card h3 { margin: 0 0 .2rem; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.agent-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* FAQ */
.faq { max-width: var(--measure); margin-inline: auto; text-align: left; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: .75rem 0 0; color: var(--ink-soft); }

/* Prose pages */
.prose { max-width: var(--measure); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.prose h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .5rem; text-transform: uppercase; }
.prose h2 { font-weight: 800; font-size: 1.35rem; margin: 2rem 0 .6rem; }
.prose .updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2rem; }
.prose ul { padding-left: 1.3rem; } .prose li { margin-bottom: .4rem; }

/* Footer */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.82); padding: 2.5rem 0 2rem; font-size: .9rem; }
.site-footer .wrap { display: grid; gap: 1.75rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr; } }
.site-footer p { margin: 0 0 .5rem; }
.site-footer a { color: var(--white); }
.trec .agent-name, .trec .broker-name { font-size: 1rem; color: var(--white); font-weight: 700; } /* broker ≥ half agent size (TREC 535.155) */
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.4rem; margin-top: .75rem; }
.footer-links a { text-decoration: none; } .footer-links a:hover { text-decoration: underline; }
.hashtag { font-weight: 800; letter-spacing: .06em; color: var(--white); text-transform: uppercase; margin-top: .75rem; }

/* ===================== Fun layer ===================== */
:root { --sun: #FFC72C; --sun-deep: #E8AE00; --coral: #FF6B4A; --navy: #0e3a5c; }

/* Primary CTA pops: sun yellow on blue */
.btn { background: var(--sun); color: var(--navy); box-shadow: 0 6px 0 var(--sun-deep); transform: translateY(0); transition: transform .12s ease, box-shadow .12s ease, background .15s; }
.btn:hover { background: var(--sun); transform: translateY(2px); box-shadow: 0 4px 0 var(--sun-deep); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--sun-deep); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 0 var(--blue-dark); }
.btn-blue:hover { background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }

/* Nav: playful active state */
.nav a { border-bottom: 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.logo-row img { height: 110px; }
@media (max-width: 480px) { .logo-row img { height: 78px; } }

/* Hero: angled bottom, sticker badge, headline entrance */
.hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%); padding-bottom: 2.5vw; }
.hero-bg::after { background: linear-gradient(100deg, rgba(8,32,56,.9) 0%, rgba(8,32,56,.62) 50%, rgba(41,159,216,.35) 100%); }
.hero h1 { position: relative; }
.hero h1 .word { display: inline-block; animation: pop .55s cubic-bezier(.2,.9,.3,1.3) both; }
.hero h1 .word:nth-child(2) { animation-delay: .1s; } .hero h1 .word:nth-child(3) { animation-delay: .2s; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) rotate(-2deg); } to { opacity: 1; transform: none; } }
.sticker { display: inline-block; background: var(--sun); color: var(--navy); font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; padding: .5rem 1rem; border-radius: 6px; transform: rotate(-4deg); margin: 0 0 1.1rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: pop .5s .35s cubic-bezier(.2,.9,.3,1.3) both; }
.sticker::before { content: '★ '; color: var(--blue-dark); }
.hero .facts li::before { background: var(--sun); border-radius: 50%; }
.hero .facts { font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .hero h1 .word, .sticker { animation: none; } }

/* Section headings get a star flourish */
.section h2 { position: relative; display: inline-block; }
.section h2::after { content: ''; display: block; width: 3.5rem; height: .35rem; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--sun)); margin: .6rem 0 0; }
.section-center h2::after { margin-inline: auto; }
.section h2 { margin-bottom: 1.25rem; }

/* Step cards: illustrated, tilted, alive */
.steps li { border: 0; box-shadow: 0 10px 30px rgba(14,58,92,.10); position: relative; padding-top: 2.4rem; transition: transform .2s ease; }
.steps li:nth-child(1) { transform: rotate(-1.2deg); } .steps li:nth-child(3) { transform: rotate(1.2deg); }
.steps li:hover { transform: rotate(0) translateY(-6px); }
.steps li::before { position: absolute; top: -1.3rem; left: 50%; translate: -50% 0; background: var(--sun); color: var(--navy); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); margin: 0; }
.steps .ico { width: 84px; height: 84px; margin: 0 auto 1rem; color: var(--blue); }
.steps .ico svg { width: 100%; height: 100%; }
.steps h3 { color: var(--navy); }
.section-tint .steps li { background: #fff; }

/* Why-us perks */
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .perks { grid-template-columns: repeat(2, 1fr); } }
.perks li { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: 12px; padding: 1.25rem 1.4rem; box-shadow: 0 8px 24px rgba(14,58,92,.08); }
.perks .em { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--blue-tint); display: grid; place-items: center; font-size: 1.35rem; }
.perks h3 { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.perks p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Numbers band */
.numbers { display: grid; gap: 1.5rem; text-align: center; margin-top: 1.5rem; }
@media (min-width: 640px) { .numbers { grid-template-columns: repeat(3, 1fr); } }
.numbers strong { display: block; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; line-height: 1; color: var(--sun); letter-spacing: -.03em; }
.numbers span { color: rgba(255,255,255,.85); font-weight: 600; }

/* City ticker */
.ticker { overflow: hidden; margin-top: 2rem; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker ul { display: flex; gap: 0; padding: 0; margin: 0; list-style: none; width: max-content; animation: scroll 28s linear infinite; }
.ticker li { padding: .6rem 1.6rem; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.ticker li::before { content: '★'; color: var(--sun); margin-right: 1.6rem; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* CTA band with a little texture */
.section-tint.cta { background: var(--blue-tint) radial-gradient(circle at 15% 20%, rgba(41,159,216,.18), transparent 40%), radial-gradient(circle at 85% 80%, rgba(255,199,44,.25), transparent 40%); }

/* Panel: a touch more personality */
.panel { border-top: 6px solid var(--sun); }
.panel h2::after { display: none; }
.footer-logo { height: 64px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .9; }
@media (min-width: 900px) { .agents { grid-template-columns: repeat(3, minmax(0, 300px)); } }
.agent-card p a { color: var(--blue-dark); text-decoration: none; } .agent-card p a:hover { text-decoration: underline; }
.agent-card .avatar { width: 128px; height: 128px; font-size: 2rem; border: 4px solid var(--sun); box-shadow: 0 8px 20px rgba(14,58,92,.15); }
.agent-card .avatar.photo { object-fit: cover; }

/* Equal Housing Opportunity badge */
.eho { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.eho-icon { width: 26px; height: 26px; color: var(--white); flex: none; }
.eho span { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.9); }

/* Numbers band on a light section (moved out of the dark Cities band) */
.numbers-light { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(14,58,92,.12); }
.numbers-light strong { color: var(--blue-dark); }
.numbers-light span { color: var(--ink-soft); }

/* Blog post tables (rent ranges, comparisons, timelines) */
.prose .table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--blue-tint); color: var(--blue-deep); font-weight: 700; }
.prose tr:nth-child(even) td { background: rgba(41,159,216,.04); }

/* Blog index cards */
.post-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
.post-card { display: block; background: #fff; border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: 0 8px 24px rgba(14,58,92,.08); transition: transform .15s ease; }
.post-card:hover { transform: translateY(-4px); }
.post-card .meta { font-size: .82rem; color: var(--blue-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.post-card h3 { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* Blog post page header */
.prose .post-meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2rem; }
.prose .post-cta { background: var(--blue-tint); border-radius: 12px; padding: 1.5rem; margin-top: 2.5rem; text-align: center; }
.prose .post-cta p { margin: 0 0 1rem; }

/* Related reading block on blog posts */
.related-posts { background: var(--blue-tint); border-radius: 12px; padding: 1.5rem 1.75rem; margin-top: 3rem; }
.related-posts h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.related-posts h2::after { display: none; }
.related-posts ul { margin: 0; padding-left: 1.2rem; }
.related-posts li { margin-bottom: .5rem; }
.related-posts a { color: var(--blue-dark); font-weight: 600; text-decoration: none; }
.related-posts a:hover { text-decoration: underline; }

.prose .table-wrap + p a, .prose p a { color: var(--blue-dark); font-weight: 600; }

/* Minimal ad-landing header: logo + phone only, nothing else to click */
.site-header-minimal .header-row { justify-content: space-between; }

/* Highlight fields the visitor skipped when they try to submit */
.field-invalid { border-color: #b3261e !important; background: #fff5f4; }
.field-invalid.consent, label.consent:has(.field-invalid) { color: #b3261e; }
