/* 
  Pam Keyes Construction - Official CSS Style Sheet
  Designed for strength, readability, and conversion.
  Colors derived from official logos.
  Oswald (Headings) & Lato (Body) Typography.
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&family=Oswald:wght@500;600;700&display=swap');

/* --- Custom Variables (Design System) --- */
:root {
  --primary: #2D1A4C; /* Deep Rich Purple */
  --primary-light: #4A3275;
  --primary-dark: #1E0F36;
  
  --gold: #FAD219; /* Vibrant Logo Gold */
  --gold-dark: #BF8F32; /* Rich Bronze Gold */
  --gold-gradient: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  
  --yellow-accent: #E9E617; /* High-Visibility Accent Yellow */
  --red-accent: #ED2024; /* Logo Star Red */
  
  --white: #FFFFFF;
  --near-black: #111111;
  --dark-gray: #1E1E1E;
  --light-gray: #F5F4F7;
  --border-color: #DDDCE2;
  
  --font-headings: 'Oswald', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(45,26,76,0.15);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --container-width: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px body text for older demographic readability */
  line-height: 1.6;
  color: var(--near-black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 10px 20px;
  font-family: var(--font-headings);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition-fast);
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.5rem; /* Mobile */
  font-weight: 700;
}

h2 {
  font-size: 2rem; /* Mobile */
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

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

p {
  margin-bottom: 1.25rem;
}

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

a:hover {
  color: var(--gold-dark);
}

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

/* --- Layout Elements --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 80px 0;
}

.bg-purple {
  background-color: var(--primary);
  color: var(--white);
}

.bg-purple h1, 
.bg-purple h2, 
.bg-purple h3 {
  color: var(--white);
}

.bg-light {
  background-color: var(--light-gray);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

/* --- Buttons & Action Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  text-align: center;
  min-height: 48px; /* Obvious tap target */
  outline: none;
  letter-spacing: 0.5px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--near-black);
  box-shadow: 0 4px 15px rgba(250, 210, 25, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--gold);
  box-shadow: 0 6px 20px rgba(250, 210, 25, 0.4);
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--white);
  color: var(--primary);
}

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

.btn-outline-purple:hover, .btn-outline-purple:focus {
  background-color: var(--primary);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* --- Header & Navigation --- */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  /* Must sit above .nav-overlay (z-index:1040). The mobile nav drawer is a child
     of <header>, so it's confined to this stacking context — keeping header below
     the overlay would render the open drawer behind the blurred backdrop and block
     all taps. Header (and its nav) must therefore outrank the overlay. */
  z-index: 1050;
  transition: padding var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  transition: padding var(--transition-normal);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

header.scrolled .header-inner {
  padding: 10px 0;
}

.logo-link {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.logo-link:hover {
  transform: scale(1.02);
}

.logo-link img {
  height: 50px;
  width: auto;
  transition: height var(--transition-normal);
}

header.scrolled .logo-link img {
  height: 42px;
}

/* Nav Menu styles */
nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--primary);
  padding: 8px 4px;
  letter-spacing: 1.5px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.nav-link:hover::after {
  width: 20px;
}

.nav-link.active {
  color: var(--primary-dark);
  font-weight: 700;
}

.nav-link.active::after {
  width: 24px;
}

.header-cta-btn {
  margin-left: 25px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  min-height: auto;
  border-radius: 50px;
  background: var(--gold-gradient);
  box-shadow: 0 4px 15px rgba(250, 210, 25, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 210, 25, 0.35);
  background: var(--gold);
}

/* Mobile Toggle Hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-height: 48px;
  min-width: 48px;
  z-index: 1100;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.mobile-menu-btn:hover {
  background-color: rgba(45, 26, 76, 0.05);
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--primary);
  margin: 6px auto;
  transition: transform var(--transition-normal), opacity var(--transition-normal), background-color var(--transition-normal);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Diagonal Background Graphic */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(250,210,25,0.03) 0%, rgba(250,210,25,0.08) 100%);
  transform: skewX(-15deg);
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(250, 210, 25, 0.15);
  border: 1px solid var(--yellow-accent);
  color: var(--yellow-accent);
  font-family: var(--font-headings);
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 15px;
  color: var(--white);
}

.hero-tagline {
  font-family: var(--font-headings);
  color: var(--yellow-accent);
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-badge-img-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.hero-word-logo {
  max-width: 250px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.25));
  transition: transform var(--transition-normal);
}

.hero-word-logo:hover {
  transform: translateY(-4px);
}

.hero-badge-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-normal);
}

.hero-badge-img:hover {
  transform: translateY(-4px);
}

/* --- Trust Strip --- */
.trust-strip {
  background-color: var(--gold);
  color: var(--near-black);
  padding: 15px 0;
  border-bottom: 4px solid var(--gold-dark);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.trust-item-star {
  color: var(--red-accent);
  font-size: 1.4rem;
  display: inline-block;
  line-height: 1;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 50px;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--gold);
  margin: 10px auto 0;
  border-radius: var(--radius-sm);
}

.section-header.left-aligned h2::after {
  margin: 10px 0 0;
}

.section-subtitle {
  display: block;
  font-size: 1.15rem;
  color: var(--primary-light);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* --- Services Overview (Home Cards) --- */
.services-grid {
  margin-top: 40px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card-image-wrapper {
  position: relative;
  height: 220px;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-content h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card-content p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-card-link {
  font-family: var(--font-headings);
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  gap: 5px;
  align-self: flex-start;
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.service-card-link:hover {
  color: var(--gold-dark);
  gap: 10px;
}

/* --- Insurance / Storm Band --- */
.insurance-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  border-top: 5px solid var(--gold);
  border-bottom: 5px solid var(--gold);
  position: relative;
}

.insurance-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.insurance-icon {
  background-color: rgba(250, 210, 25, 0.15);
  border: 2px solid var(--gold);
  padding: 15px;
  border-radius: 50%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insurance-icon svg {
  fill: var(--gold);
}

.insurance-band-title {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 15px;
}

.insurance-band h2 {
  color: var(--white);
}

.insurance-band-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* --- Reviews Snippet & Reviews Page --- */
.reviews-container {
  max-width: 900px;
  margin: 0 auto;
}

.review-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.review-card::before {
  content: '“';
  position: absolute;
  top: 15px;
  right: 30px;
  font-family: Georgia, serif;
  font-size: 6rem;
  color: rgba(45, 26, 76, 0.05);
  line-height: 1;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.25rem;
  border: 2px solid var(--gold);
}

.review-meta h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.review-location {
  font-size: 0.9rem;
  color: #666;
}

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  color: #333;
}

/* --- Conversion Contact Form --- */
.estimate-section {
  position: relative;
  background-color: var(--light-gray);
  border-top: 1px solid var(--border-color);
}

.estimate-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.form-wrapper {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--primary);
}

.form-wrapper h3 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  min-height: 48px;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 26, 76, 0.1);
}

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

/* Client validation classes */
.form-group.has-error .form-control {
  border-color: var(--red-accent);
  background-color: #FFF5F5;
}

.error-message {
  color: var(--red-accent);
  font-size: 0.9rem;
  margin-top: 5px;
  font-weight: 700;
  display: none;
}

.form-group.has-error .error-message {
  display: block;
}

/* Form success message */
.form-response-success {
  display: none;
  text-align: center;
  background-color: #F6FFF6;
  border: 2px solid #2ECC71;
  padding: 40px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-response-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #2ECC71;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  font-weight: bold;
}

.form-response-success h3 {
  color: #27AE60;
  margin-bottom: 10px;
}

/* Estimate Column info */
.estimate-info h2 {
  margin-bottom: 20px;
}

.estimate-info-p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #444;
}

.contact-quick-list {
  list-style: none;
  margin-bottom: 35px;
}

.contact-quick-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-quick-icon {
  background-color: rgba(45, 26, 76, 0.08);
  border-radius: 50%;
  padding: 10px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-quick-details h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 3px;
}

.contact-quick-details p, .contact-quick-details a {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
}

.contact-quick-details a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Services Detail Page Styles --- */
.services-quick-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-services-jump {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-family: var(--font-headings);
  font-weight: 600;
  padding: 8px 24px;
  font-size: 1rem;
  letter-spacing: 1px;
  border-radius: 50px;
  min-height: auto;
  transition: all var(--transition-fast);
}

.btn-services-jump:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--near-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(250, 210, 25, 0.3);
}

.service-detail-section {
  border-bottom: 1px solid var(--border-color);
}

.service-detail-section:last-of-type {
  border-bottom: none;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.service-detail-content h2 {
  margin-bottom: 6px;
}

.service-detail-list {
  list-style: none;
  margin: 25px 0;
}

.service-detail-list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.service-detail-list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

.service-detail-img-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--primary);
  background-color: var(--primary);
}

/* --- Insurance Restoration Explainer --- */
.insurance-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.insurance-step-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary);
  position: relative;
}

.insurance-step-number {
  position: absolute;
  top: 15px;
  right: 25px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 3rem;
  color: rgba(45, 26, 76, 0.07);
  line-height: 1;
}

.insurance-step-card h3 {
  margin-bottom: 12px;
  padding-right: 50px;
}

.insurance-step-card p {
  color: #555;
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* --- About Page Styles --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-motto {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin: 25px 0;
  line-height: 1.3;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.about-feature-item {
  display: flex;
  gap: 15px;
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: var(--radius-md);
}

.about-feature-icon {
  color: var(--gold-dark);
  font-size: 1.5rem;
  line-height: 1;
}

.about-feature-text h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.about-feature-text p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

/* --- Contact Page Styles --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.map-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background-color: var(--white);
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hours-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--gold);
  margin-top: 30px;
}

.hours-card h3 {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 8px 0;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--light-gray);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-day {
  font-weight: 700;
  color: var(--primary);
}

.hours-time {
  text-align: right;
  color: #444;
}

/* --- Footer --- */
footer {
  background-color: var(--near-black);
  color: var(--white);
  padding: 60px 0 20px;
  border-top: 6px solid var(--gold);
}

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

.footer-col h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

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

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.footer-logo {
  max-height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.footer-motto {
  font-family: var(--font-headings);
  color: var(--yellow-accent);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 5px;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.footer-contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item a:hover {
  color: var(--gold);
}

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

.footer-license {
  font-weight: 700;
  color: var(--yellow-accent);
}

/* --- Mobile Bottom Bar --- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
  grid-template-columns: 1fr 1fr;
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-align: center;
  height: 100%;
  gap: 8px;
}

.mobile-cta-btn.call-btn {
  background-color: var(--primary);
  color: var(--white);
}

.mobile-cta-btn.call-btn:hover {
  background-color: var(--primary-light);
}

.mobile-cta-btn.form-btn {
  background: var(--gold-gradient);
  color: var(--near-black);
}

.mobile-cta-btn.form-btn:hover {
  background: var(--gold);
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Media Queries (Responsiveness) --- */

@media (min-width: 576px) {
  .hero-ctas {
    flex-direction: row;
  }
  
  .btn-full {
    width: auto;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-ctas {
    justify-content: flex-start;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insurance-band-title {
    font-size: 2.6rem;
  }
  
  .insurance-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .estimate-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
  }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .insurance-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 70px;
  }

  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* Nav Menu toggle visibility logic */
@media (max-width: 991px) {
  body {
    padding-bottom: 60px; /* Space for mobile sticky bottom CTA bar */
  }

  .mobile-cta-bar {
    display: grid;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Backdrop Overlay Blur */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(45, 26, 76, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .nav-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(45, 26, 76, 0.15);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    padding: 100px 30px 40px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  nav.open {
    right: 0;
    left: auto;
  }

  .nav-menu {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu li {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  nav.open .nav-menu li {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger link entry */
  nav.open .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
  nav.open .nav-menu li:nth-child(2) { transition-delay: 0.15s; }
  nav.open .nav-menu li:nth-child(3) { transition-delay: 0.2s; }
  nav.open .nav-menu li:nth-child(4) { transition-delay: 0.25s; }
  nav.open .nav-menu li:nth-child(5) { transition-delay: 0.3s; }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    color: var(--primary);
    letter-spacing: 1px;
  }

  .nav-link::after {
    display: none;
  }

  .header-cta-btn {
    margin-left: 0;
    margin-top: 30px;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
  }

  nav.open .header-cta-btn {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hamburger transform when menu open */
  .mobile-menu-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary-light);
  }
  
  .mobile-menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary-light);
  }
}
