/* ── Design System & Theme Variables ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Dynamic Palette Placeholders (to be replaced by the agent) */
  --primary-navy: #0B132B;       /* Primary dark bg/text */
  --secondary-navy: #1C2541;   /* Secondary dark panel */
  --copper-orange: #E05A47;        /* Highlight/Brand color */
  --copper-hover: #C84634;         /* Brand hover state */
  --water-blue: #0077B6;          /* Light accent (e.g. water/sky blue) */
  --water-light: #E0F2FE;         /* Accent background tint */
  
  --neutral-dark: #1E293B;
  --neutral-light: #F8FAFC;
  --border-color: rgba(15, 23, 42, 0.08);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* ── Reset & Base Styles (Mobile First) ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-dark);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile sticky bottom CTA */
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.2;
}

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

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

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 60px 0; /* Compact padding for mobile screens */
}

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

/* ── Typography & Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  color: var(--copper-orange);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 1.85rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: #64748b;
  font-size: 0.95rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  width: 100%; /* Default block buttons for easy tap targets on mobile */
  text-align: center;
}

.btn-primary {
  background: var(--copper-orange);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(224, 90, 71, 0.25);
}

.btn-primary:hover {
  background: var(--copper-hover);
}

.btn-secondary {
  background: var(--water-light);
  color: var(--water-blue);
}

.btn-secondary:hover {
  background: #bae6fd;
}

.btn-call-pulse {
  background: var(--water-blue);
  color: #ffffff;
  animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
  0% { box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 119, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 119, 182, 0); }
}

/* ── Header & Navigation ── */
header.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--water-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

/* Hide desktop menu and CTA by default on mobile */
.nav-menu, 
.nav-cta {
  display: none;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 50px 0 60px 0;
  text-align: center;
}

/* Background image placed as a subtle background behind overlay */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15; /* Subdued on mobile for readability */
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-veteran {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224, 90, 71, 0.2);
  border: 1px solid rgba(224, 90, 71, 0.4);
  color: #ffd8d3;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 2.1rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero h2 span {
  color: var(--copper-orange);
}

.hero-subtext {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 24px;
  max-width: 100%;
}

.hero-bullets {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.bullet-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: bold;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* ── Trust Banner ── */
.trust-banner {
  background: var(--neutral-light);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  position: relative;
  z-index: 20;
  margin-top: -20px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  margin-left: 10px;
  margin-right: 10px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}

.trust-item {
  padding: 8px 0;
}

.trust-item:nth-child(odd) {
  border-right: 1px solid var(--border-color);
}

.trust-item .value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.trust-item .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ── Services Section ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: #ffffff;
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--water-light);
  color: var(--water-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.service-card p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--water-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* ── Why Choose Us ── */
.features-split {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.features-visual {
  position: relative;
  width: 100%;
}

.features-img-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.badge-license {
  position: absolute;
  bottom: -16px;
  right: 16px;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-license .icon {
  font-size: 1.5rem;
  color: var(--copper-orange);
}

.badge-license .text span {
  font-size: 0.65rem;
  color: #94a3b8;
  display: block;
}

.badge-license .text strong {
  font-size: 0.85rem;
  font-family: var(--font-display);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.feature-row {
  display: flex;
  gap: 12px;
}

.feature-row-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(224, 90, 71, 0.08);
  color: var(--copper-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-row h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-row p {
  color: #64748b;
  font-size: 0.9rem;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.review-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #fbbf24;
  margin-bottom: 12px;
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--neutral-dark);
  font-style: italic;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--neutral-light);
  color: var(--secondary-navy);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
}

.author-info span {
  font-size: 0.75rem;
  color: #64748b;
}

/* ── Contact Section ── */
.contact-split {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.contact-info-panel {
  background: var(--secondary-navy);
  color: #ffffff;
  padding: 40px 24px;
  position: relative;
}

.contact-info-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('hero.png');
  background-size: cover;
  opacity: 0.05;
  pointer-events: none;
}

.contact-info-panel h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.contact-info-panel p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-detail-row .icon {
  font-size: 1.1rem;
  color: var(--copper-orange);
}

.contact-detail-row h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 2px;
}

.contact-detail-row span {
  font-size: 0.95rem;
  font-weight: 500;
}

.license-info {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #94a3b8;
}

.contact-form-panel {
  padding: 40px 24px;
}

.contact-form-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form-panel p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px to prevent auto-zoom in iOS Safari */
}

.form-input:focus {
  outline: none;
  border-color: var(--water-blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* ── Footer ── */
footer {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 50px 0 30px 0;
  border-top: 4px solid var(--copper-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  grid-column: span 2;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--copper-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.8rem;
  text-align: center;
}

/* ── Mobile Sticky Call Bar ── */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-navy);
  border-top: 3px solid var(--copper-orange);
  padding: 10px 16px;
  z-index: 999;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
}

.mobile-sticky-cta .btn {
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* ────────────────────────────────────────── */
/* ── Tablet Enhancements (min-width: 768px) ── */
/* ────────────────────────────────────────── */
@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 2.1rem;
  }
  
  .btn {
    width: auto;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  
  .nav-cta {
    display: flex;
    align-items: center;
  }
  
  .nav-cta .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero {
    text-align: left;
    padding: 80px 0;
  }
  
  .hero-bg-overlay {
    opacity: 0.25;
  }
  
  .hero-bullets {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }
  
  .hero-ctas {
    flex-direction: row;
  }
  
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .trust-item {
    border-right: 1px solid var(--border-color);
  }
  
  .trust-item:last-child {
    border-right: none;
  }
  
  .trust-item:nth-child(odd) {
    border-right: 1px solid var(--border-color);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-split {
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }
  
  .features-visual {
    width: 50%;
  }
  
  .features-content {
    width: 50%;
  }
  
  .contact-split {
    flex-direction: row;
  }
  
  .contact-info-panel, 
  .contact-form-panel {
    width: 50%;
    padding: 50px 36px;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-group-full {
    grid-column: span 2;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .mobile-sticky-cta {
    display: none;
  }
  
  body {
    padding-bottom: 0;
  }
}

/* ────────────────────────────────────────── */
/* ── Desktop Enhancements (min-width: 1024px) ── */
/* ────────────────────────────────────────── */
@media (min-width: 1024px) {
  .section {
    padding: 100px 0;
  }
  
  .section-title {
    font-size: 2.35rem;
  }
  
  .hero {
    padding: 120px 0 140px 0;
  }
  
  .hero-bg-overlay {
    left: auto;
    right: 0;
    width: 50%;
    opacity: 0.45;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
  }
  
  .hero-content {
    max-width: 650px;
    align-items: flex-start;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .features-split {
    gap: 60px;
  }
  
  .contact-split {
    grid-template-columns: 1fr 1.2fr;
  }
  
  .contact-info-panel, 
  .contact-form-panel {
    width: auto;
    padding: 60px 48px;
  }
}
