/* 
   El Cajon Plumbing & Drain Services - Premium Stylesheet
   Design System: Deep Ocean Blue (Trust/Reliability) & Warm Amber/Orange (Urgency/CTA)
   Font Family: Inter & Outfit via Google Fonts
*/

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

:root {
  /* Color Palette */
  --primary: #0f2c59;       /* Deep Navy Blue */
  --primary-light: #1d4480; /* Lighter Navy */
  --accent: #f86f03;        /* Warm Emergency Orange */
  --accent-hover: #d05b00;  /* Darker Orange for Hover */
  --secondary: #525fe1;     /* Royal Blue for support accents */
  --text-dark: #1a1a24;     /* Crisp Dark Charcoal */
  --text-light: #ffffff;    /* Plain white */
  --bg-light: #f8fafc;      /* Soft Light Grey-Blue */
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;  /* Soft divider color */
  --success: #10b981;       /* Cool green for success indicators */

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-in-out;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: #4a5568;
}

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

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

/* Utility Layout Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media(min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Button & CTA Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(248, 111, 3, 0.4);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248, 111, 3, 0.6);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-phone {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(15, 44, 89, 0.3);
}

.btn-phone:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 44, 89, 0.5);
}

/* Header & Navigation */
.top-bar {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.top-bar a:hover {
  color: var(--accent);
}

header {
  background-color: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent);
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: #4a5568;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

@media(min-width: 1024px) {
  .nav-cta {
    display: inline-flex;
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

@media(min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

@media(max-width: 991px) {
  .nav-menu {
    position: absolute;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.25rem;
    display: block;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
}

/* Navigation Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 220px;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.5rem;
  color: #4a5568;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--accent);
  padding-left: 1.75rem;
}

/* Desktop Dropdown Expand on Hover */
@media(min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile Dropdown Styling */
@media(max-width: 991px) {
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent);
    background-color: var(--bg-light);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    min-width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu li a {
    padding: 0.5rem 1.5rem;
  }
  
  .dropdown-menu li a:hover {
    padding-left: 1.5rem;
    background-color: transparent;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(15,44,89,0.95) 0%, rgba(10,30,62,0.98) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%230f2c59" width="100" height="100"/><circle fill="%23ffffff" fill-opacity="0.03" cx="50" cy="50" r="40"/></svg>');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(to top, var(--bg-light), transparent);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(248, 111, 3, 0.15);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  align-self: flex-start;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(248, 111, 3, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  color: #cbd5e1;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.hero-feature-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.hero-card-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lead Form Card in Hero */
.lead-form-card {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  color: var(--text-dark);
  width: 100%;
  max-width: 450px;
  border: 1px solid var(--border-color);
}

.lead-form-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.lead-form-card p {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(82, 95, 225, 0.15);
}

.lead-form-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Trust Factors Section */
.trust-bar {
  background-color: var(--bg-white);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 2rem 1.5rem;
}

@media(min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  text-align: center;
  padding: 1rem;
}

.trust-item:not(:last-child) {
  border-right: none;
}

@media(min-width: 768px) {
  .trust-item:not(:last-child) {
    border-right: 1px solid var(--border-color);
  }
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.trust-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Services Grid Section */
.section-title-wrapper {
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(82, 95, 225, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: rgba(15, 44, 89, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
}

.service-card:hover .service-icon svg {
  fill: var(--text-light);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #718096;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
}

.service-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition-fast);
}

.service-link:hover {
  color: var(--primary);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* Why Choose Us Section */
.why-us {
  background-color: var(--bg-white);
}

.why-us-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  height: 100%;
  min-height: 350px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.why-us-img-content {
  color: var(--text-light);
  padding: 3rem;
  text-align: center;
  z-index: 2;
}

.why-us-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--accent) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.15;
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.why-us-item {
  display: flex;
  gap: 1.25rem;
}

.why-us-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(248, 111, 3, 0.2);
  line-height: 1;
}

.why-us-text h3 {
  margin-bottom: 0.5rem;
}

.why-us-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Page Intro/Header (For Inner Pages) */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: #cbd5e1;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  color: #64748b;
}

/* Service Detail Page Layout */
.service-detail-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media(min-width: 992px) {
  .service-detail-container {
    grid-template-columns: 2fr 1fr;
  }
}

.service-content h2, .service-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.service-content ul {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

.service-content ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.service-content ul li::before {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%23f86f03"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>');
  position: absolute;
  left: 0;
  top: 0.15rem;
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget.cta-widget {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  border: none;
}

.sidebar-widget.cta-widget h3 {
  color: var(--text-light);
}

.sidebar-widget.cta-widget p {
  color: #cbd5e1;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 0.5rem;
}

.sidebar-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  font-weight: 500;
}

.sidebar-links a:hover, .sidebar-links a.active {
  background-color: var(--primary);
  color: var(--text-light);
}

.sidebar-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media(min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.contact-info-card {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(248, 111, 3, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.contact-info-text h4 {
  margin-bottom: 0.25rem;
}

.contact-info-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-form-wrapper {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.contact-form-wrapper h2 {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  grid-template-columns: 1fr;
}

@media(min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Dynamic Alert Styles */
.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  display: none;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer Styles */
footer {
  background-color: #091a33;
  color: #a0aec0;
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

@media(min-width: 576px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--accent);
}

.footer-widget h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--text-light);
  transform: translateX(4px);
}

.footer-links a svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media(min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--text-light);
}

/* Privacy Policy Layout */
.privacy-container {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.privacy-container h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-container p, .privacy-container ul {
  margin-bottom: 1.25rem;
}

.privacy-container ul {
  padding-left: 1.5rem;
}

/* Semantic SEO FAQ Accordion Styles */
.faq-accordion {
  max-width: 800px;
  margin: 3rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  outline: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.faq-content {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: #fcfdfe;
}

.faq-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #4a5568;
}
