/**
 * TopTexasApartments.com — landing page styles (PORT-SPEC §6).
 *
 * Brand: navy #16324C ground, gold #D9A441 accents. Georgia serif display,
 * system sans body. Single file, system fonts only, no external requests.
 * Mobile-first. The concierge widget ships its own scoped styles
 * (.tth-root, z-index 999999) — nothing here touches it or outranks it.
 */

/* ------------------------------------------------------------------ *
 * Tokens
 * ------------------------------------------------------------------ */

:root {
	--navy:       #16324C;
	--navy-deep:  #0F2437;
	--navy-line:  rgba(255, 255, 255, 0.14);
	--gold:       #D9A441;
	--gold-hover: #E2B25A;
	--gold-deep:  #C08A2B;  /* large display text on light (3:1+) */
	--gold-ink:   #9A6B1A;  /* small gold text on light (4.5:1+) */
	--gold-pale:  #EBD3A1;  /* links on deep navy */
	--paper:      #F7F3EB;
	--white:      #FFFFFF;
	--ink:        #1C2B39;
	--muted:      #51616F;
	--cloud:      #E9EEF3;  /* body text on navy */
	--mist:       #B9C6D2;  /* muted text on navy */
	--line:       #E3DCCB;
	--serif:      Georgia, 'Iowan Old Style', 'Times New Roman', Times, serif;
	--sans:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
	              'Helvetica Neue', Arial, sans-serif;
	--container:  71.25rem;
	--radius:     14px;
	--shadow:     0 10px 30px -12px rgba(22, 50, 76, 0.18);
}

/* ------------------------------------------------------------------ *
 * Reset & base
 * ------------------------------------------------------------------ */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol {
	margin: 0;
}

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--navy);
}

h2 {
	font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

h3 {
	font-size: 1.35rem;
	line-height: 1.3;
}

img,
svg {
	max-width: 100%;
}

a {
	color: var(--navy);
}

button {
	font: inherit;
}

::selection {
	background: var(--gold);
	color: var(--navy-deep);
}

:focus-visible {
	outline: 2px solid transparent;
	/* Two-layer ring reads on both navy and light grounds. */
	box-shadow: 0 0 0 2px var(--white), 0 0 0 5px var(--navy);
	border-radius: 4px;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.7rem 1.2rem;
	background: var(--white);
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 8px 8px;
	box-shadow: var(--shadow);
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 0;
}

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ------------------------------------------------------------------ *
 * Shared bits
 * ------------------------------------------------------------------ */

.eyebrow {
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1rem;
}

.eyebrow-ink {
	color: var(--gold-ink);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 650;
	line-height: 1;
	padding: 1.02rem 1.9rem;
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.18s ease, transform 0.18s ease,
	            box-shadow 0.18s ease;
}

.btn svg {
	width: 1.05em;
	height: 1.05em;
	flex: none;
}

.btn-gold {
	background: var(--gold);
	color: var(--navy-deep);
}

.btn-gold:hover {
	background: var(--gold-hover);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
}

.btn-gold:active {
	transform: translateY(0);
}

.btn-navy {
	background: var(--navy);
	color: var(--white);
}

.btn-navy:hover {
	background: var(--navy-deep);
	transform: translateY(-1px);
}

.link-cta {
	background: none;
	border: 0;
	padding: 0.4rem 0.2rem;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 500;
	color: var(--cloud);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: rgba(217, 164, 65, 0.65);
	cursor: pointer;
	transition: color 0.18s ease;
}

.link-cta:hover {
	color: var(--gold);
}

.section {
	padding-block: clamp(4rem, 9vw, 6.5rem);
}

.section-white {
	background: var(--white);
}

.section-paper {
	background: var(--paper);
}

.section-navy {
	background: var(--navy);
}

.section-head {
	max-width: 46ch;
	margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

/* ------------------------------------------------------------------ *
 * Masthead: header + hero share one navy ground
 * ------------------------------------------------------------------ */

/* The masthead wraps header + main so the hero shares one navy ground;
   every section below the hero paints its own opaque background over it.
   The gold glow is anchored to the TOP edge with length positioning so
   the wrapper's full height never stretches it. */
.masthead {
	background-color: var(--navy);
	background-image: radial-gradient(58rem 32rem at 85% -8rem, rgba(217, 164, 65, 0.14), transparent 65%);
	background-repeat: no-repeat;
}

.site-header :focus-visible,
.hero :focus-visible {
	box-shadow: 0 0 0 2px var(--navy-deep), 0 0 0 5px var(--gold);
}

/* --- Header ------------------------------------------------------- */

.site-header {
	border-bottom: 1px solid var(--navy-line);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding-block: 1.1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}

.brand-star {
	width: 1.3rem;
	height: 1.3rem;
	flex: none;
	color: var(--gold);
}

.brand-word {
	font-family: var(--serif);
	font-size: 1.28rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--white);
	white-space: nowrap;
}

.brand-accent {
	color: var(--gold);
}

.site-nav {
	display: none;
	gap: 1.75rem;
}

.site-nav a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--cloud);
	text-decoration: none;
	padding-block: 0.35rem;
	border-bottom: 2px solid transparent;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover {
	color: var(--gold);
	border-bottom-color: var(--gold);
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.05rem;
	border: 1px solid var(--navy-line);
	border-radius: 999px;
	color: var(--gold);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.header-phone:hover {
	border-color: var(--gold);
	background: rgba(217, 164, 65, 0.1);
}

.header-phone svg {
	width: 1rem;
	height: 1rem;
	flex: none;
}

.header-phone span {
	display: none;
}

/* --- Hero --------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(4.5rem, 11vw, 8rem) clamp(4rem, 9vw, 6.5rem);
}

.hero-star {
	position: absolute;
	top: 50%;
	right: clamp(-9rem, -12vw, -5rem);
	width: clamp(18rem, 42vw, 32rem);
	height: auto;
	transform: translateY(-50%) rotate(12deg);
	color: rgba(217, 164, 65, 0.07);
	pointer-events: none;
}

.hero-inner {
	position: relative;
}

.hero h1 {
	max-width: 21ch;
	font-size: clamp(2.5rem, 6vw, 4.25rem);
	color: var(--white);
}

.hero-free {
	color: var(--gold);
	font-style: italic;
}

.hero-sub {
	max-width: 56ch;
	margin-top: 1.5rem;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.7;
	color: var(--cloud);
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.1rem 1.5rem;
	margin-top: 2.25rem;
}

.trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0;
	margin-top: 2.75rem;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--mist);
}

.trust-row li {
	display: inline-flex;
	align-items: center;
}

.trust-row li + li::before {
	content: '\00B7';
	margin-inline: 0.9rem;
	color: var(--gold);
	font-size: 1.2em;
}

/* ------------------------------------------------------------------ *
 * How it works
 * ------------------------------------------------------------------ */

.steps {
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.step {
	position: relative;
	padding-top: 0.4rem;
	border-top: 1px solid var(--line);
}

.step-num {
	display: block;
	font-family: var(--serif);
	font-size: clamp(2.6rem, 4vw, 3.4rem);
	font-weight: 700;
	line-height: 1;
	color: var(--gold-deep);
	margin-block: 0.9rem 0.65rem;
}

.step h3 {
	margin-bottom: 0.55rem;
}

.step p {
	color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * Why a locator
 * ------------------------------------------------------------------ */

.cards {
	display: grid;
	gap: 1.5rem;
}

.card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2rem 1.85rem;
	box-shadow: var(--shadow);
}

.card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.1rem;
	height: 3.1rem;
	margin-bottom: 1.15rem;
	border-radius: 50%;
	background: rgba(217, 164, 65, 0.16);
	color: var(--gold-ink);
}

.card-icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.card h3 {
	margin-bottom: 0.55rem;
}

.card p {
	color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * Gift card callout
 * ------------------------------------------------------------------ */

.gift-panel {
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
	align-items: center;
	padding: clamp(2rem, 5vw, 3.5rem);
	border: 2px dashed rgba(217, 164, 65, 0.55);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.03);
}

.gift-amount {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	text-align: center;
}

.gift-icon {
	width: 2.6rem;
	height: 2.6rem;
	color: var(--gold);
	margin-bottom: 0.5rem;
}

.amount {
	font-family: var(--serif);
	font-size: clamp(4rem, 9vw, 5.75rem);
	font-weight: 700;
	line-height: 1;
	color: var(--gold);
}

.amount-label {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mist);
}

.gift-copy h2 {
	color: var(--white);
	margin-bottom: 1rem;
}

.gift-copy p {
	color: var(--cloud);
	max-width: 54ch;
	margin-bottom: 1.75rem;
}

.section-navy .eyebrow {
	color: var(--gold);
}

.section-navy :focus-visible {
	box-shadow: 0 0 0 2px var(--navy-deep), 0 0 0 5px var(--gold);
}

/* ------------------------------------------------------------------ *
 * About + contact card
 * ------------------------------------------------------------------ */

.about-grid {
	display: grid;
	gap: clamp(2.25rem, 5vw, 4rem);
	align-items: start;
}

.about-copy h2 {
	margin-bottom: 1.15rem;
}

.about-copy p {
	color: var(--muted);
	max-width: 58ch;
}

.about-copy p + p {
	margin-top: 1rem;
}

.contact-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 4px solid var(--gold);
	border-radius: var(--radius);
	padding: 2rem 1.85rem;
	box-shadow: var(--shadow);
}

.contact-name {
	font-family: var(--serif);
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--navy);
}

.contact-role {
	margin-top: 0.3rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.contact-links {
	margin: 1.5rem 0 1.75rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.85rem;
}

.contact-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 600;
	color: var(--navy);
	text-decoration: none;
	word-break: break-word;
	transition: color 0.18s ease;
}

.contact-links a:hover {
	color: var(--gold-ink);
}

.contact-links svg {
	width: 1.15rem;
	height: 1.15rem;
	flex: none;
	color: var(--gold-ink);
}

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */

.site-footer {
	background: var(--navy-deep);
	color: var(--mist);
	font-size: 0.95rem;
	/* Bottom clearance so the floating chat launcher never covers the
	   TREC links on small screens. */
	padding-block: clamp(3rem, 6vw, 4rem) 6.5rem;
}

.site-footer :focus-visible {
	box-shadow: 0 0 0 2px var(--navy-deep), 0 0 0 5px var(--gold);
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.75rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--navy-line);
}

.footer-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--white);
}

.footer-wordmark .brand-star {
	width: 1.1rem;
	height: 1.1rem;
}

.footer-tag {
	margin-top: 0.5rem;
	max-width: 40ch;
}

.footer-contact {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
	text-align: left;
}

.footer-contact a,
.trec-links a {
	color: var(--gold-pale);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.18s ease;
}

.footer-contact a:hover,
.trec-links a:hover {
	color: var(--white);
}

.footer-legal {
	padding-top: 2rem;
}

.trec-links {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.6rem;
}

.footer-note {
	color: var(--mist);
	max-width: 62ch;
}

.footer-copy {
	margin-top: 1.25rem;
	color: var(--mist);
}

/* ------------------------------------------------------------------ *
 * Breakpoints
 * ------------------------------------------------------------------ */

@media (min-width: 40em) {
	.header-phone span {
		display: inline;
	}
}

@media (min-width: 52em) {
	.steps,
	.cards {
		grid-template-columns: repeat(3, 1fr);
	}

	.gift-panel {
		grid-template-columns: auto 1fr;
	}

	.gift-amount {
		padding-inline: clamp(0.5rem, 3vw, 2.5rem);
		border-right: 1px solid var(--navy-line);
	}
}

@media (min-width: 60em) {
	.site-nav {
		display: inline-flex;
	}

	.about-grid {
		grid-template-columns: 1.15fr 0.85fr;
	}
}

/* ------------------------------------------------------------------ *
 * Motion preferences
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
