/* Profit Property Management · East Bay
   Brand: navy + light blue accent (per client request, Inner Circle PM style)
   Built on Cloudflare Pages with D1-backed editable content.
*/

:root {
  --navy: #0f2a4a;
  --navy-dark: #08172b;
  --navy-light: #1f3d68;
  --blue: #8acef1;
  --blue-dark: #4aa8d9;
  --blue-soft: #e9f4fc;
  --green: #2ecc71;
  --green-dark: #25a25a;
  --green-soft: #e6f7ec;
  --red: #e74c3c;
  --yellow: #f39c12;
  --gray-50: #f7f9fb;
  --gray-100: #eef2f6;
  --gray-200: #dee4eb;
  --gray-300: #cbd2da;
  --gray-500: #6e7a89;
  --gray-700: #3d4755;
  --gray-900: #1a202c;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 2px 8px rgba(15, 42, 74, 0.08);
  --shadow-lg: 0 4px 24px rgba(15, 42, 74, 0.12);
  --shadow-xl: 0 12px 40px rgba(15, 42, 74, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--navy); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ======== NAV ======== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%);
  color: var(--blue);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}
.logo .accent { color: var(--blue-dark); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy); }
.btn-nav {
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 12px rgba(46, 204, 113, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-nav:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(46, 204, 113, 0.45);
}
.nav-mobile-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--navy); cursor: pointer; }

/* ======== HERO ======== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(138, 206, 241, 0.15) 0%, transparent 50%);
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-block;
  background: rgba(138, 206, 241, 0.15);
  border: 1px solid rgba(138, 206, 241, 0.3);
  color: var(--blue);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(46, 204, 113, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.15s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ======== TRUST STRIP ======== */
.trust {
  background: var(--blue-soft);
  padding: 48px 24px;
  border-bottom: 1px solid var(--gray-200);
}
.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-num {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.trust-label {
  font-size: 13px;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ======== SECTIONS ======== */
section { padding: 80px 24px; }
.bg-gray { background: var(--gray-50); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: rgba(255, 255, 255, 0.85); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-eyebrow {
  display: inline-block;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-lead {
  font-size: 17px;
  color: var(--gray-700);
}

/* ======== SERVICE GRID (6-service Inner Circle style) ======== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p { font-size: 15px; color: var(--gray-700); }

/* ======== WHY BLOCK ======== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.why-list { list-style: none; padding: 0; margin-top: 24px; }
.why-list li {
  padding-left: 36px;
  position: relative;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--gray-700);
}
.why-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-illustration {
  background: linear-gradient(135deg, var(--blue-soft) 0%, #fff 100%);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow);
}
.why-illustration .big-num {
  font-size: 72px;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.why-illustration .big-label {
  font-size: 14px;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

/* ======== TESTIMONIALS ======== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial p {
  font-size: 15px;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.6;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.testimonial-role {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ======== CTA SECTION ======== */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}
.final-cta h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; font-weight: 800; letter-spacing: -0.5px; }
.final-cta p { color: rgba(255, 255, 255, 0.85); font-size: 17px; max-width: 640px; margin: 0 auto 32px; }

/* ======== FORM ======== */
.form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-field input, .form-field textarea, .form-field select {
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--gray-900);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(74, 168, 217, 0.15);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field.honeypot { display: none; }
.form-success { background: var(--green-soft); border: 1px solid var(--green); color: var(--green-dark); padding: 16px; border-radius: 8px; margin-top: 16px; text-align: center; font-weight: 600; }
.form-error { background: #fdecea; border: 1px solid var(--red); color: var(--red); padding: 16px; border-radius: 8px; margin-top: 16px; text-align: center; font-weight: 600; }

/* ======== FOOTER ======== */
footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 4px;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 8px;
}

/* ======== MOBILE ======== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-mobile-toggle { display: block; }
  .service-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 24px; }
  .hero { padding: 64px 24px 56px; }
  .form-wrap { padding: 28px; }
}
