/* ============================================
   Access Home Services - Main Stylesheet
   Mobile-first, responsive design
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1E88E5;
  --primary-dark: #0D47A1;
  --light-bg: #F5F7FA;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --border-color: #e0e0e0;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 25px rgba(30, 136, 229, 0.15);
  --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--white);
  box-shadow: var(--shadow);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark) !important;
}

.navbar-brand svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.25rem;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary) !important;
  background: rgba(30, 136, 229, 0.08);
}

.navbar-toggler {
  border-color: var(--border-color);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.85) 0%, rgba(30, 136, 229, 0.75) 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ---------- Section Common ---------- */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bg-light-custom {
  background-color: var(--light-bg);
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.service-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.service-card .card-body {
  padding: 1.5rem;
}

.service-card .card-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 136, 229, 0.1);
  color: var(--primary);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

/* ---------- How It Works (Steps) ---------- */
.steps-item {
  padding: 1.5rem 1rem;
}

.steps-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.steps-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.steps-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  height: 100%;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
}

.testimonial-stars {
  color: #f0c14b;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Service Areas ---------- */
.service-areas-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-areas-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

/* ---------- Why Choose Us ---------- */
.why-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.why-item .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-item .icon-wrap svg {
  width: 32px;
  height: 32px;
}

.why-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ---------- Trust / Stats ---------- */
.trust-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}

.trust-item {
  text-align: center;
  padding: 1rem;
}

.trust-item .number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.trust-item .label {
  font-size: 0.9375rem;
  opacity: 0.9;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--light-bg);
}

.cta-section .btn-primary {
  padding: 0.75rem 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-logo svg {
  width: 36px;
  height: 36px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* ---------- Page Headers (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.95);
}

/* ---------- Forms ---------- */
.form-label {
  font-weight: 600;
  color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.error-message {
  font-size: 0.875rem;
  color: #dc3545;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* ---------- Content Pages (About, Terms, Privacy) ---------- */
.content-page {
  padding: 2rem 0 4rem;
}

.content-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.content-page h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-page ul, .content-page ol {
  margin-bottom: 1rem;
}

/* ---------- Utilities ---------- */
.text-primary-custom {
  color: var(--primary) !important;
}

.bg-primary-custom {
  background-color: var(--primary) !important;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }

  .hero {
    min-height: 45vh;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
  }
}
