/* ============================================
   Pacific Shield Insurance — Main Stylesheet
   Colors: Blue + White + Orange (Coastal CA)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --blue-dark: #0f2b4c;
  --blue-primary: #1a3f6f;
  --blue-medium: #2d5f9a;
  --blue-light: #e8f1fa;
  --blue-pale: #f4f8fc;
  --orange-primary: #e87b2f;
  --orange-hover: #d06820;
  --orange-light: #fff4ec;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
p { color: var(--gray-600); }

.section-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange-primary);
  margin-bottom: 8px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 640px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232, 123, 47, 0.35);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 123, 47, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
}
.btn-secondary:hover {
  background: var(--blue-primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue-dark);
}
.btn-white:hover {
  background: var(--blue-pale);
  transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--blue-dark);
}
.nav-logo .shield-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-medium));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-primary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-primary);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta .btn { padding: 10px 24px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 50%, var(--blue-medium) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232,123,47,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom right, transparent 49.5%, var(--white) 50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero-content h1 .highlight {
  color: var(--orange-primary);
}
.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.trust-item .icon {
  color: var(--orange-primary);
  font-size: 1.1rem;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}
.hero-card h3 {
  margin-bottom: 24px;
  text-align: center;
}
.hero-card .form-group {
  margin-bottom: 16px;
}
.hero-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.hero-card input,
.hero-card select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--gray-800);
}
.hero-card input:focus,
.hero-card select:focus {
  outline: none;
  border-color: var(--blue-medium);
  box-shadow: 0 0 0 3px rgba(45, 95, 154, 0.1);
}
.hero-card .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* --- Services Section --- */
.services {
  padding: 100px 0;
  background: var(--white);
}
.services-header {
  text-align: center;
  margin-bottom: 60px;
}
.services-header .section-subtitle {
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 16px; }
.service-card .learn-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .learn-more:hover { gap: 10px; }

/* --- Why Us / Features Section --- */
.why-us {
  padding: 100px 0;
  background: var(--blue-pale);
}
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-us-content { max-width: 540px; }
.why-us-content h2 { margin-bottom: 20px; }
.why-us-content > p { margin-bottom: 32px; }

.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--gray-800);
}
.feature-item p { font-size: 0.9rem; }

.why-us-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* --- Testimonials --- */
.testimonials {
  padding: 100px 0;
  background: var(--white);
}
.testimonials-header { text-align: center; margin-bottom: 60px; }
.testimonials-header .section-subtitle { margin: 0 auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
}
.testimonial-stars {
  color: var(--orange-primary);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 20px;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--blue-primary);
  font-size: 1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; color: var(--gray-800); }
.testimonial-role { font-size: 0.8rem; color: var(--gray-500); }

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,123,47,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
}
.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--orange-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.footer-license {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 8px;
}

/* --- Quote Form Page --- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

.quote-section {
  padding: 80px 0;
  background: var(--gray-50);
}
.quote-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

/* Multi-step form */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.step-dot {
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-200);
  transition: all var(--transition);
}
.step-dot.active { background: var(--orange-primary); width: 60px; }
.step-dot.complete { background: var(--blue-primary); }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--gray-800);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-medium);
  box-shadow: 0 0 0 3px rgba(45,95,154,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

/* Insurance type selector cards */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.type-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.type-card:hover { border-color: var(--blue-medium); background: var(--blue-pale); }
.type-card.selected {
  border-color: var(--orange-primary);
  background: var(--orange-light);
}
.type-card .type-icon { font-size: 2rem; margin-bottom: 8px; }
.type-card .type-name { font-weight: 600; font-size: 0.95rem; color: var(--gray-800); }

/* --- About Page --- */
.about-content { padding: 80px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.value-item {
  padding: 24px;
  background: var(--blue-pale);
  border-radius: var(--radius-md);
}
.value-item h4 { margin-bottom: 8px; font-size: 1rem; }
.value-item p { font-size: 0.9rem; }

/* --- Contact Page --- */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--blue-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero-grid,
  .why-us-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 120px 0 80px; }
  .hero-card { margin-top: 20px; }
  .footer-grid { gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .why-us-stats { grid-template-columns: 1fr 1fr; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .quote-form-wrapper { padding: 28px 20px; }
  .values-grid { grid-template-columns: 1fr; }
}
