/* ============================================
   ROTHBERG SPECIALTY — Design Tokens & Styles
   ============================================ */

:root {
  --font-display: 'Cabinet Grotesk', 'Trebuchet MS', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;

  --navy: #0D1B2A;
  --navy-light: #1B3A4B;
  --navy-mid: #142535;
  --red: #E63946;
  --red-hover: #C62D39;
  --gold: #C8963E;
  --gold-hover: #B07E2E;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --light-gray: #F0F2F5;
  --mid-gray: #D1D5DB;
  --text-dark: #1A1A2E;
  --text-muted: #5A6170;
  --text-light: #8A9099;

  --content-max: 1200px;
  --content-narrow: 800px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--text-dark); }
h4, h5, h6 { font-family: var(--font-body); font-weight: 600; color: var(--text-dark); }

.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section--navy { background: var(--navy); color: var(--white); }
.section--navy .section-title, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy .section-subtitle { color: rgba(255,255,255,0.7); }

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

.section--navy-light { background: var(--navy-light); color: var(--white); }
.section--navy-light .section-title, .section--navy-light h3, .section--navy-light h4 { color: var(--white); }
.section--navy-light .section-subtitle { color: rgba(255,255,255,0.7); }

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow 0.3s ease;
  height: 72px;
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 52px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 4px 0;
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.header__nav a:hover { color: #fff; }
.header__nav a:hover::after { width: 100%; }

.header__cta {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.header__cta:hover { background: var(--red-hover); }
.header__cta::after { display: none !important; }

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 0;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__hamburger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: clamp(64px, 12vw, 120px) 0 clamp(48px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  max-width: 720px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #fff;
}

.hero__title span { color: var(--red); }

.hero__text {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover { background: var(--red-hover); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

.btn--gold {
  background: var(--gold);
  color: #fff;
}
.btn--gold:hover { background: var(--gold-hover); transform: translateY(-1px); }

/* Stats bar */
.stats-bar {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stats-bar__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.stat__value--red { color: var(--red); }

.stat__label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ============================================
   ABOUT
   ============================================ */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}

.about__text p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about__highlights {
  display: grid;
  gap: 20px;
}

.highlight-card {
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 24px;
}

.highlight-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(230,57,70,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 18px;
}

.highlight-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  background: var(--navy);
  color: #fff;
  padding: 28px;
  border-radius: var(--radius-md);
}

.team-card h4 { color: #fff; font-size: 18px; margin-bottom: 2px; }
.team-card .role { color: var(--red); font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.team-card .contact-line {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.team-card a { color: rgba(255,255,255,0.85); text-decoration: none; }
.team-card a:hover { color: #fff; text-decoration: underline; }

.states-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.state-tag {
  background: var(--off-white);
  border: 1px solid var(--mid-gray);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================
   HOA PROGRAM
   ============================================ */

.program-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}

.program-intro__text p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.program-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
}

.program-box h4 { color: #fff; font-size: 17px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
.program-box p { color: rgba(255,255,255,0.75); font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.program-box p:last-child { margin-bottom: 0; }

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.coverage-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.coverage-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.coverage-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--navy);
}

.coverage-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Comparison table */
.comparison-table {
  margin-top: 40px;
  overflow-x: auto;
}

.comparison-table table {
  min-width: 600px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comparison-table thead th {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.comparison-table tbody td {
  padding: 14px 20px;
  font-size: 15px;
  border-bottom: 1px solid var(--light-gray);
}

.comparison-table tbody tr:last-child {
  background: var(--off-white);
  font-weight: 700;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.savings-value { color: var(--red); font-weight: 600; }

.case-study-card {
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 24px;
}

.case-study-card .big-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}

.case-study-card .label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.case-study-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* How We Work */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.how-card {
  text-align: center;
  padding: 32px 24px;
}

.how-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(230,57,70,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--red);
}

.how-card h4 { font-size: 17px; margin-bottom: 8px; }
.how-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0 auto; max-width: 300px; }

@media (max-width: 768px) {
  .program-intro { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   DEVELOPER SERVICES
   ============================================ */

.lifecycle {
  display: flex;
  gap: 0;
  margin: 40px 0;
  overflow-x: auto;
}

.lifecycle__phase {
  flex: 1;
  min-width: 160px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.lifecycle__phase:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.lifecycle__phase:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.lifecycle__number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.lifecycle__name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.lifecycle__items {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  line-height: 1.5;
}

.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.track {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.track__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.track h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.track > p { color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 20px; font-style: italic; }

.track__item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.track__item:last-child { border-bottom: none; }

.track__item h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 4px;
}

.track__item p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
}

.dev-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.dev-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.dev-stat__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}

.dev-stat__label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  line-height: 1.4;
}

.dev-stat__sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.bring-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.bring-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bring-item::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 768px) {
  .tracks { grid-template-columns: 1fr; }
  .dev-stats { grid-template-columns: repeat(2, 1fr); }
  .bring-list { grid-template-columns: 1fr; }
  .lifecycle { flex-direction: column; }
  .lifecycle__phase:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .lifecycle__phase:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
}

/* ============================================
   MARKETS
   ============================================ */

.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.market-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.market-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.market-card__abbr {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.market-card__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 4px;
  margin-bottom: 8px;
}

.market-card__risk {
  display: inline-block;
  background: rgba(230,57,70,0.08);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.market-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .markets-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

.contact-person {
  margin-bottom: 24px;
}

.contact-person h4 { font-size: 17px; margin-bottom: 2px; }
.contact-person .role { color: var(--red); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.contact-person p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.contact-person a { color: var(--navy); text-decoration: none; }
.contact-person a:hover { color: var(--red); }

.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-form h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--mid-gray);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand img { height: 44px; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; line-height: 1.6; max-width: 280px; }

.footer h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; }
.footer__links a:hover { color: #fff; }

.footer__newsletter p { font-size: 14px; margin-bottom: 12px; }

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14px;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-form button {
  padding: 10px 20px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.newsletter-form button:hover { background: var(--red-hover); }

.footer__bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA banner */
.cta-banner {
  text-align: center;
  padding: 48px 24px;
}

.cta-banner h3 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 16px; margin: 0 auto 24px; max-width: 560px; }
