/* William Property Solutions — Static Site Stylesheet */

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

:root {
  --bg-deep: #000A24;
  --primary: #002574;
  --primary-soft: #1a3a6e;
  --accent: #1081FC;
  --accent-hover: #00A8FF;
  --headline: #FFFFFF;
  --body-text: #BFD3E0;
  --card-bg: #001138;
  --border-color: #012B81;

  /* Light theme tokens */
  --page-bg: #f7f9fc;
  --page-text: #1e293b;
  --section-bg: #eef3fb;
  --white: #ffffff;
  --heading-navy: #002574;
  --body-dark: #334155;
  --muted-text: #64748b;
  --light-border: #e2e8f0;
  --light-card: #ffffff;
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--page-bg);
  color: var(--page-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--heading-navy);
  line-height: 1.25;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--primary) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-header .logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header .logo-link img {
  height: 48px;
  width: auto;
}

.site-header .logo-text {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-header .nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #BFD3E0;
  transition: color 0.2s;
}

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

.site-header .phone-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}

.site-header .phone-cta:hover {
  color: var(--white);
}

.site-header .mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #BFD3E0;
}

.site-header .mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.site-header .mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 37, 116, 0.95);
}

.site-header .mobile-menu.open {
  display: block;
}

.site-header .mobile-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #BFD3E0;
  border-radius: 0.375rem;
}

.site-header .mobile-menu a:hover,
.site-header .mobile-menu a.active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.site-header .mobile-menu .mobile-phone {
  color: var(--accent);
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 1024px) {
  .site-header .nav-links { display: flex; }
  .site-header .phone-cta { display: inline; }
  .site-header .mobile-toggle { display: none; }
  .site-header .mobile-menu { display: none !important; }
}

@media (max-width: 1023px) {
  .site-header .nav-links { display: none; }
  .site-header .phone-cta { display: none; }
  .site-header .mobile-toggle { display: inline-flex; }
  .site-header .logo-text { display: none; }
}

@media (min-width: 640px) {
  .site-header .logo-text { display: inline; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://vibe.filesafe.space/1786816502600964841/assets/4c8f300e-8fc4-4959-b747-e1410c92f54c.png');
  background-size: cover;
  background-position: center;
}

.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 37, 116, 0.95) 0%, rgba(0, 37, 116, 0.75) 50%, rgba(0, 37, 116, 0.45) 100%);
}

.hero .hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

@media (min-width: 640px) {
  .hero .hero-content { padding: 7rem 1.5rem; }
}

.hero .hero-content .hero-inner {
  max-width: 48rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}

.hero .hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: #BFD3E0;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Nunito Sans', sans-serif;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(16, 129, 252, 0.1);
  color: var(--accent);
}

.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .btn-group { flex-direction: row; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .section { padding: 7rem 0; }
}

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

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

.section-navy {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: var(--white);
}

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

.section-navy p {
  color: #BFD3E0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .section-title h2 { font-size: 2.25rem; }
}

.section-title p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--body-dark);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.section-navy .section-title p {
  color: #BFD3E0;
}

/* ===== GRID ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-navy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: background-color 0.2s;
}

.card-navy:hover {
  background: rgba(255, 255, 255, 0.1);
}

.card-accent-bar {
  width: 2.5rem;
  height: 4px;
  background: var(--accent);
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ===== OVERVIEW SECTION ===== */
.overview-text h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .overview-text h2 { font-size: 2.25rem; }
}

.overview-text p {
  font-size: 1.125rem;
  color: var(--body-dark);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.overview-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
  .overview-image img { height: 380px; }
}

/* ===== SITUATIONS ===== */
.situation-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--heading-navy);
}

.situation-card p {
  font-size: 0.875rem;
  color: var(--body-dark);
  line-height: 1.6;
}

/* ===== HOW IT WORKS (steps timeline) ===== */
.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step-row {
  display: flex;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .step-row { gap: 2.5rem; }
}

.step-circle {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(16, 129, 252, 0.1);
  border: 1px solid rgba(16, 129, 252, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
}

.step-body {
  flex: 1;
  padding-bottom: 2rem;
}

.step-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .step-body h2 { font-size: 1.875rem; }
}

.step-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-body li {
  display: flex;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--body-dark);
  line-height: 1.7;
}

.step-body li::before {
  content: '•';
  color: var(--muted-text);
  flex-shrink: 0;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border: 1px solid var(--light-border);
  border-radius: 0.5rem;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading-navy);
  font-family: 'Nunito Sans', sans-serif;
  transition: background-color 0.2s;
}

@media (min-width: 640px) {
  .faq-question { padding: 1.25rem 2rem; font-size: 1.125rem; }
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 2rem 1.5rem;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--light-border);
  color: var(--body-dark);
  line-height: 1.7;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 2fr; gap: 4rem; }
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.contact-info-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.contact-info-card .value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-navy);
}

.contact-info-card .value a {
  color: var(--heading-navy);
}

.contact-info-card .value a:hover {
  color: var(--accent);
}

.contact-info-card .subtext {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-text);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.hours-row .day { color: var(--body-dark); }
.hours-row .time { color: var(--heading-navy); font-weight: 500; }
.hours-row .closed { color: var(--muted-text); }

.what-to-expect {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.what-to-expect h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.what-to-expect p {
  font-size: 0.875rem;
  color: var(--body-dark);
  line-height: 1.6;
}

/* ===== CTA BOX ===== */
.cta-box {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 0.5rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-top: 4rem;
}

.cta-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .cta-box h2 { font-size: 1.875rem; }
}

.cta-box p {
  font-size: 1.125rem;
  color: var(--body-dark);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-box .btn-group {
  justify-content: center;
}

/* ===== CONTENT (legal/info pages) ===== */
.content-section {
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .content-section { padding: 5rem 0; }
}

.content-block {
  max-width: 48rem;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}

@media (min-width: 640px) {
  .content-block h2 { font-size: 1.5rem; }
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  margin-bottom: 1rem;
  color: var(--body-dark);
  line-height: 1.7;
}

.content-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.content-block li {
  margin-bottom: 0.5rem;
  color: var(--body-dark);
}

.content-block strong {
  color: var(--heading-navy);
}

.content-block a {
  color: var(--accent);
  text-decoration: underline;
}

.callout {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-box {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 0.375rem;
  padding: 1rem;
  margin-top: 0.5rem;
}

.contact-box p {
  margin-bottom: 0.25rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary);
  border-top: 1px solid var(--primary);
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.site-footer .footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.site-footer .footer-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 20rem;
}

.site-footer h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  font-family: 'Nunito Sans', sans-serif;
}

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

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer ul a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.site-footer ul a:hover {
  color: var(--accent);
}

.site-footer .footer-hours {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer .footer-bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.site-footer .footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
