/* ==========================================================================
   Triple1s Real Estate Solutions — Warm Coastal Trust Design System
   Pure Vanilla CSS · Zero External Framework Dependencies
   ========================================================================== */

:root {
  --bg-ivory: #FAF8F4;
  --bg-sand: #F2EDE4;
  --bg-white: #FFFFFF;
  --navy: #0F223D;
  --navy-hover: #1A355B;
  --navy-deep: #091629;
  --gold: #B4843E;
  --gold-dark: #8C6324;
  --gold-light: #DFC08A;
  --gold-tint: #F7F1E4;
  --ink: #141C27;
  --slate: #4F5D70;
  --slate-light: #94A3B8;
  --border: #E5DFD5;
  --border-strong: #D5CCC0;
  --emerald: #166534;
  --emerald-bg: #ECFDF3;
  --emerald-border: #BBF7D0;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 12px 32px -12px rgba(15, 34, 61, 0.10), 0 2px 6px rgba(15, 34, 61, 0.04);
  --shadow-photo: 0 18px 40px -16px rgba(15, 34, 61, 0.18);
  --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 860px;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(223, 192, 138, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.brand-sub {
  font-size: 12px;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-white);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--slate);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.lang-btn.is-active {
  background: var(--navy);
  color: var(--bg-white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--navy);
  color: var(--bg-white);
  box-shadow: 0 2px 8px rgba(15, 34, 61, 0.16);
}

.btn--primary:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 34, 61, 0.22);
}

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

.btn--sm {
  padding: 9px 15px;
  font-size: 13px;
}

.btn--outline {
  background: var(--bg-white);
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: var(--bg-ivory);
}

.btn--full {
  width: 100%;
  padding: 15px 20px;
  font-size: 15px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 48px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.88fr);
  gap: 44px;
  align-items: start;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 18px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  margin: 0 0 28px;
  max-width: 580px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy);
  box-shadow: var(--shadow-photo);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9.4;
  object-fit: cover;
  object-position: center 45%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.metric-cell {
  padding: 16px 18px;
  border-right: 1px solid var(--border);
}

.metric-cell:last-child {
  border-right: 0;
}

.metric-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  line-height: 1.2;
}

.metric-desc {
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 4px;
  line-height: 1.35;
}

/* ==========================================================================
   Cash Offer Form Card
   ========================================================================== */

.offer-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-card);
}

.offer-card-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 6px;
}

.offer-card-sub {
  font-size: 13.5px;
  color: var(--slate);
  margin: 0 0 20px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-ivory);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.field input::placeholder {
  color: #8492A6;
}

.field input:focus,
.field select:focus {
  background: var(--bg-white);
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 34, 61, 0.10);
}

.form-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--slate);
}

.form-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  font-size: 13.5px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-result.is-hidden {
  display: none;
}

.form-result-title {
  font-weight: 700;
  color: var(--emerald);
}

.form-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   Trust Credentials Strip
   ========================================================================== */

.trust-strip {
  background: var(--bg-sand);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

.trust-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold-dark);
}

/* ==========================================================================
   Section Headers & Shared Rhythm
   ========================================================================== */

.section {
  padding: 76px 0;
}

.section--sand {
  background: var(--bg-sand);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-header {
  max-width: 660px;
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 10px;
}

.section--navy .section-title {
  color: var(--bg-white);
}

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

.section-sub {
  font-size: 15.5px;
  color: var(--slate);
  margin: 0;
  line-height: 1.65;
}

.section--navy .section-sub {
  color: #CBD5E1;
}

/* ==========================================================================
   Interactive Net Proceeds Calculator
   ========================================================================== */

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: stretch;
}

.calc-controls {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.slider-header label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.slider-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--bg-white);
  box-shadow: 0 2px 6px rgba(15, 34, 61, 0.30);
  cursor: pointer;
  transition: transform var(--transition);
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--bg-white);
  box-shadow: 0 2px 6px rgba(15, 34, 61, 0.30);
  cursor: pointer;
}

.calc-footnote {
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.55;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.calc-results-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  flex: 1;
}

.calc-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.calc-card--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--bg-white);
  box-shadow: var(--shadow-card);
}

.calc-card-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}

.calc-card--featured .calc-card-kicker {
  color: var(--gold-light);
}

.calc-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate);
}

.calc-card--featured .calc-row {
  color: #CBD5E1;
}

.calc-row strong {
  color: var(--ink);
  font-weight: 600;
}

.calc-card--featured .calc-row strong {
  color: var(--bg-white);
}

.calc-row .is-good {
  color: #6EE7B7;
  font-weight: 700;
}

.calc-total {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-card--featured .calc-total {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.calc-total-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
}

.calc-card--featured .calc-total-label {
  color: #CBD5E1;
}

.calc-total-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

.calc-card--featured .calc-total-value {
  color: var(--gold-light);
}

.calc-summary-bar {
  background: var(--gold-tint);
  border: 1px solid #E6D8BE;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-summary-bar strong {
  color: var(--gold-dark);
}

/* ==========================================================================
   3-Step Closing Process (Navy Editorial Band)
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  padding-top: 22px;
  border-top: 1px solid rgba(223, 192, 138, 0.35);
}

.step-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bg-white);
  margin: 0 0 10px;
}

.step-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: #CBD5E1;
  margin: 0;
}

/* ==========================================================================
   Situations + Comparison Table
   ========================================================================== */

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
}

.panel-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}

.panel-sub {
  font-size: 14px;
  color: var(--slate);
  margin: 0 0 22px;
}

.situations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.situation-item {
  padding: 15px 16px;
  background: var(--bg-ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.situation-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.situation-item span {
  display: block;
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.45;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 0 10px 14px 0;
  border-bottom: 2px solid var(--border);
}

.compare-table th.col-t1 {
  color: var(--navy);
}

.compare-table td {
  padding: 14px 10px 14px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table .factor-cell {
  font-weight: 600;
  color: var(--ink);
}

.compare-table .t1-cell {
  font-weight: 700;
  color: var(--navy);
}

.compare-table .trad-cell {
  color: var(--slate);
}

/* ==========================================================================
   Local South Florida Presence & Service Areas
   ========================================================================== */

.areas-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

.area-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-photo);
  background: var(--bg-white);
}

.area-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.area-caption {
  padding: 13px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.county-block {
  margin-top: 22px;
}

.county-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 10px;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-tag {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  list-style: none;
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--gold-dark);
  transition: transform var(--transition);
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--slate);
}

/* ==========================================================================
   Final CTA Band
   ========================================================================== */

.cta-band {
  padding: 0 0 76px;
}

.cta-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.cta-box p {
  margin: 0;
  font-size: 15px;
  color: var(--slate);
  max-width: 560px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: #CBD5E1;
  padding: 48px 0 40px;
  font-size: 13.5px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--bg-white);
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 13px;
  color: var(--slate-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-links a {
  color: var(--gold-light);
  font-weight: 500;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.footer-disclosure {
  margin: 22px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #94A3B8;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid,
  .calc-grid,
  .split-grid,
  .areas-grid {
    grid-template-columns: 1fr;
  }

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

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 28px 0 44px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .metric-cell {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .metric-cell:last-child {
    border-bottom: 0;
  }

  .form-row-2,
  .calc-cards,
  .situations-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .offer-card,
  .panel-card,
  .calc-controls,
  .cta-box {
    padding: 22px 20px;
  }

  .brand-sub {
    display: none;
  }

  .header-cta {
    display: none;
  }
}
