/* Nationwide Commercial Appraisers — Main Stylesheet */

:root {
  --navy: #0b1f3a;
  --navy-mid: #132d52;
  --navy-light: #1e4080;
  --charcoal: #1e293b;
  --slate: #334155;
  --blue-accent: #2563eb;
  --blue-light: #3b82f6;
  --white: #ffffff;
  --off-white: #f8fafc;
  --light-gray: #e2e8f0;
  --mid-gray: #94a3b8;
  --text: #1e293b;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p { font-size: 1rem; line-height: 1.7; color: var(--slate); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--blue-accent);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; font-size: 1rem;
}
.nav-logo-text {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.nav-logo-text span { display: block; font-weight: 400; font-size: 0.75rem; color: var(--mid-gray); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: #cbd5e1; text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--blue-accent); color: var(--white);
  padding: 0.55rem 1.25rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-light); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0d2847 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
  gap: 3rem;
}
.hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 480px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9);
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { display: none; }
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(37,99,235,0.2); border: 1px solid rgba(37,99,235,0.4);
  color: #93c5fd; padding: 0.35rem 0.85rem; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: #60a5fa; }
.hero p { color: #cbd5e1; font-size: 1.15rem; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue-accent); color: var(--white);
  padding: 0.875rem 2rem; border-radius: 8px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.1); color: var(--white);
  padding: 0.875rem 2rem; border-radius: 8px;
  font-size: 1rem; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--charcoal);
  padding: 1.25rem 5%;
  display: flex; justify-content: center; gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: #94a3b8; font-size: 0.85rem; font-weight: 500;
}
.trust-item svg { color: var(--blue-accent); flex-shrink: 0; }

/* ── SECTIONS ── */
section { padding: 80px 5%; }
.section-label {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--blue-accent); margin-bottom: 0.75rem;
}
.section-intro { max-width: 640px; }
.section-intro h2 { margin-bottom: 1rem; }

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.service-card {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 12px; padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 20px rgba(37,99,235,0.08);
}
.service-icon {
  width: 44px; height: 44px;
  background: #eff6ff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.25rem;
}
.service-card h3 { margin-bottom: 0.5rem; color: var(--charcoal); }
.service-card p { font-size: 0.9rem; }

/* ── WHY US ── */
.why-us { background: var(--navy); }
.why-us .section-label { color: #60a5fa; }
.why-us h2, .why-us .section-intro p { color: var(--white); }
.why-us .section-intro p { color: #cbd5e1; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.why-card {
  border-left: 3px solid var(--blue-accent);
  padding-left: 1.5rem;
}
.why-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.why-card p { color: #94a3b8; font-size: 0.925rem; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--blue-accent);
  text-align: center; padding: 60px 5%;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }
.btn-white {
  background: var(--white); color: var(--blue-accent);
  padding: 0.875rem 2.5rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  display: inline-block; transition: opacity 0.2s;
}
.btn-white:hover { opacity: 0.9; }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: #64748b;
  padding: 3rem 5% 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { color: #64748b; font-size: 0.875rem; margin-top: 0.75rem; line-height: 1.6; max-width: 300px; }
.footer-col h4 { color: #94a3b8; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: #64748b; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul a:hover { color: #94a3b8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between;
  font-size: 0.8rem;
}

/* ── FORM PAGE ── */
.page-header {
  background: var(--navy); padding: 140px 5% 80px;
  text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p { color: #cbd5e1; margin-top: 1rem; font-size: 1.1rem; }
.form-container { max-width: 680px; margin: 0 auto; padding: 60px 5%; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--charcoal); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px; font-size: 1rem; font-family: var(--font);
  color: var(--text); background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue-accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%; background: var(--blue-accent); color: var(--white);
  padding: 1rem; border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: var(--font); transition: background 0.2s;
}
.btn-submit:hover { background: var(--blue-light); }

/* ── STANDARDS PAGE ── */
.standards-body { max-width: 760px; margin: 0 auto; padding: 60px 5%; }
.standards-body h2 { margin: 2.5rem 0 1rem; }
.standards-body p { margin-bottom: 1rem; }
.credential-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem; margin: 2rem 0;
}
.credential-card {
  background: var(--off-white); border: 1px solid var(--light-gray);
  border-radius: 10px; padding: 1.5rem; text-align: center;
}
.credential-card .big { font-size: 2rem; font-weight: 800; color: var(--blue-accent); }
.credential-card p { font-size: 0.85rem; margin-top: 0.25rem; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 1rem; }
  .nav-links { display: none; }
  .trust-bar { gap: 1.25rem; justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .form-row { grid-template-columns: 1fr; }
}
