/* Universal Location Template Styles */
/* This single file handles ALL location pages */
:root { 
  --brand-blue: #1b50b3; 
  --brand-sky: #52ade5; 
  --ink: #1f2a44; 
  --muted: #6b7280; 
  --bg: #f6f8fb; 
  --success: #10b981;
  --white: #ffffff;
  --yellow: #f4d03f;
  --light-gray: #f8f9fa;
}

/* Universal location page styling */
.location-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.location-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 80px;
  align-items: center;
}

.location-text {
  color: white;
}

.location-text h1 {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 24px 0;
  line-height: 1.1;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.location-text p {
  font-size: 20px;
  line-height: 1.6;
  margin: 0 0 32px 0;
  opacity: 0.95;
}

.location-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.feature-item svg {
  color: var(--brand-sky);
  flex-shrink: 0;
  border: 1px solid var(--brand-sky);
  border-radius: 4px;
  width: 24px;
  height: 24px;
}

.location-form-container {
  display: flex;
  justify-content: center;
}

/* Contact Card Styling - Global for all location pages */
.contact-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  overflow: visible;
  width: 100%;
  max-width: 500px;
}

.card-header {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f3f6fd;
  padding: 16px 18px;
  border-bottom: 1px solid #e7ecf5;
  border-radius: 14px 14px 0 0;

}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--brand-blue);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.card-header p {
  margin: 0;
  color: #3b4b66;
  font-size: 14px;
  line-height: 1.5;
}

.universal-form {
  padding: 20px;
}

.benefits-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand-sky);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Location specific content styling */
.location-highlight {
  background: var(--brand-sky);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Enhanced form styling for location pages */
.form-header h3 {
  color: var(--ink);
  position: relative;
}

.form-header h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--brand-sky);
  border-radius: 1px;
}

/* Location page specific enhancements */
.location-benefits {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: white;
  padding: 80px 20px;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
}

.benefits-header {
  text-align: center;
  margin-bottom: 60px;
}

.benefits-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px 0;
}

.benefits-header p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.benefit-card {
  background: var(--light-gray);
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-sky);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
}

.benefit-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px 0;
}

.benefit-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.sticky-scroll-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--light-gray);
  padding: 80px 20px;
}

.sticky-scroll-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}

.scroll-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.content-block h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.content-block h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px 0;
}

.content-block p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.sticky-cards {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Location-specific trust indicators */
.location-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}

.location-trust-badge svg {
  width: 16px;
  height: 16px;
}

/* Enhanced service cards for location pages */
.service-card-sticky {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 300px;
}

.service-card-sticky:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px 24px;
  text-align: left;
  z-index: 2;
}

.card-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.read-more-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

/* Location-specific hero backgrounds using body classes */
body.page-template-template-location-media-city .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/media-city.jpg');
}

body.page-template-template-location-ardwick .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/manchester.jpg');
}

body.page-template-template-location-didsbury .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/didsbury.jpg');
}

body.page-template-template-location-ancoats .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/manchester.jpg');
}

body.page-template-template-location-cheetham-hill .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/manchester-ariel.jpg');
}

body.page-template-template-location-deansgate .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/manchester-ariel.jpg');
}

body.page-template-template-location-stockport .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/stockport.jpg');
}

body.page-template-template-location-trafford-park .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/trafford-centre.jpg') ;
}

body.page-template-template-location-castlefield .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/manchester.jpg');
}

body.page-template-template-location-hale .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/manchester.jpg');
}

body.page-template-template-location-hulme .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/manchester.jpg');
}

body.page-template-template-location-sale .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/manchester.jpg');
}

body.page-template-template-location-salford .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/manchester.jpg');
}

body.page-template-template-location-withington .location-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/manchester.jpg');
}

/* Add more locations as needed following the same pattern */

/* Location page responsive adjustments */
@media (max-width: 992px) {
  .location-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .location-form-container {
    order: -1;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .sticky-scroll-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .sticky-cards {
    position: static;
  }
}

@media (max-width: 768px) {
  .location-hero {
    padding: 60px 20px;
    min-height: 80vh;
  }
  
  .location-text h1 {
    font-size: 32px;
  }
  
  .location-text p {
    font-size: 18px;
  }
  
  .location-benefits,
  .sticky-scroll-section {
    padding: 60px 20px;
  }
  
  .benefits-header h2 {
    font-size: 32px;
  }
  
  .content-block h2 {
    font-size: 36px;
  }
  
  .content-block h3 {
    font-size: 20px;
  }
  
  .location-trust-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .location-hero {
    padding: 40px 20px;
    min-height: 70vh;
  }
  
  .location-text h1 {
    font-size: 28px;
  }
  
  .location-text p {
    font-size: 16px;
  }
  
  .location-benefits,
  .sticky-scroll-section {
    padding: 40px 20px;
  }
  
  .benefits-header h2 {
    font-size: 28px;
  }
  
  .content-block h2 {
    font-size: 32px;
  }
}
