:root {
  /* Colour Palette - Inspired by image-restore.co.uk */
  --primary: #0f172a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --bg-light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --max-w: 1200px;
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  margin: 0;
}

.container-new {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { 
  font-size: clamp(1.8rem, 5vw, 2.6rem); 
  margin-bottom: 1rem; 
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 700;
}
h2 { font-size: clamp(1.5rem, 4vw, 1.8rem); margin-bottom: 0.8rem; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; letter-spacing: -0.01em; font-weight: 600; }

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.6;
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form-card {
  padding: 40px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-info-sticky {
  position: sticky;
  top: 140px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form-card {
    padding: 24px;
  }
  
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .contact-info-sticky {
    position: static;
  }
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.terms-label input {
  margin-top: 4px;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.terms-label span {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Global Overrides and Resets */
main {
  padding: 0 !important;
}

body.nav-open {
  overflow: hidden;
}

p { margin-bottom: 1.25rem; font-size: 1.1rem; color: var(--text-main); text-align: inherit; }
li { color: var(--text-main); margin-bottom: 0.5rem; text-align: inherit; }
.small { font-size: 0.9rem; color: var(--text-muted); }

/* Buttons */
.btn-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* Header Redesign */
.header-new {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 3000;
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-new {
  display: flex;
  gap: clamp(10px, 2vw, 32px);
  align-items: center;
}

.nav-link-new {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 10px clamp(12px, 1.4vw, 20px);
  border-radius: 100px;
  border: none !important;
  background: none !important;
}

.nav-link-new:hover {
  color: var(--accent);
}

.nav-link-new.active,
.nav-link-new[aria-current="page"] {
  color: var(--accent) !important;
  font-weight: 800;
  border: none !important;
  background: none !important;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-alt {
  background-color: var(--white);
}

/* Hero Section */
.hero-new {
  padding: 80px 0 120px;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent),
              radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05), transparent);
}

.hero-services {
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
              url('../images/services/hero-background.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-portfolio {
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
              url('../images/portfolio/portfolio-hero.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-home {
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
              url('../images/home-hero-restoremyphotos.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-pricing {
  background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), 
              url('../images/pricing/pricing-hero.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-about {
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), 
              url('../images/about-hero-restoremyphotos.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-faq {
  background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), 
              url('../images/faq-hero-restoremyphotos.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-contact {
  background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), 
              url('../images/contact-hero-restoremyphotos.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-legal {
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6)), 
              url('../images/legal-pages-hero-restoremyphotos.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-local-shops {
  background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
              url('../images/about-hero-restoremyphotos.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 900px) {
  .hero-home,
  .hero-services,
  .hero-portfolio,
  .hero-pricing,
  .hero-about,
  .hero-faq,
  .hero-contact,
  .hero-legal,
  .hero-local-shops {
    background: transparent !important;
    background-image: none !important;
    background-attachment: scroll !important;
  }
}

@media (max-width: 600px) {
  .ba-slider .before-img-container {
    width: 0%;
    border-right: 0;
  }
}

/* Stats Section */
.stats-section {
  background-color: var(--primary) !important;
  color: var(--white) !important;
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.stat-label {
  color: #e2e8f0; /* Lighter gray for better contrast */
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Trust Section */
.trust-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.07), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-section .container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.trust-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 48px;
  align-items: start;
}

.section-label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}

.trust-section h2 {
  margin: 0 0 18px;
  max-width: 640px;
}

.trust-section__content > p:not(.section-label) {
  max-width: 680px;
  color: var(--text-muted);
  line-height: 1.75;
}

.trustpilot-box,
.trust-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.trustpilot-box {
  margin: 34px 0 30px;
  padding: 30px;
}

.trustpilot-box h3,
.trust-card h3 {
  margin-top: 0;
}

.trustpilot-box p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.manual-trustpilot-rating {
  margin: 18px 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 182, 122, 0.25);
  border-radius: 14px;
  background: #f7fffb;
}

.manual-trustpilot-rating__stars {
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: #00b67a;
  line-height: 1;
  margin-bottom: 8px;
}

.manual-trustpilot-rating p {
  margin: 0 0 6px;
  color: var(--text-main);
  font-size: 1rem;
}

.manual-trustpilot-rating small {
  color: #5f6f89;
  font-size: 0.9rem;
  line-height: 1.45;
}

.manual-trustpilot-rating a {
  font-weight: 700;
  color: #00b67a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trustpilot-box .btn {
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
  padding: 14px 24px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.trustpilot-box .btn:hover {
  background: var(--accent-hover);
  color: var(--white);
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
}

.trust-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  margin: 0;
  padding: 15px 18px 15px 46px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  font-weight: 600;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.11);
}

.trust-section__proof {
  display: grid;
  gap: 22px;
}

.trust-card {
  padding: 28px;
}

.trust-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.trust-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trust-before-after figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-light);
}

.trust-before-after img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.trust-before-after figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.quote-placeholder {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px dashed rgba(37, 99, 235, 0.35);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-style: normal;
}

.quote-placeholder span {
  display: block;
  color: var(--text-muted);
  font-weight: 700;
}

.approved-customer-quote {
  margin: 18px 0 0;
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.quote-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.quote-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d4ed8, #172554);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.25);
}

.quote-header strong {
  display: block;
  color: var(--primary);
  font-size: 1.08rem;
  line-height: 1.2;
  margin-bottom: 5px;
}

.quote-rating {
  color: #f59e0b;
  font-size: 0.92rem;
  letter-spacing: 1px;
  line-height: 1;
}

.approved-customer-quote p {
  margin: 0 0 24px;
  color: var(--text-main);
  font-size: 1.04rem;
  line-height: 1.75;
}

.small-note {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .trust-section {
    padding: 78px 0;
  }

  .trust-section__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 640px) {
  .trust-section .container {
    padding: 0 18px;
  }

  .trustpilot-box,
  .trust-card {
    border-radius: 14px;
    padding: 22px;
  }

  .trustpilot-box .btn {
    width: 100%;
  }

  .manual-trustpilot-rating {
    padding: 12px 14px;
  }

  .manual-trustpilot-rating__stars {
    font-size: 1.2rem;
  }

  .trust-before-after {
    grid-template-columns: 1fr;
  }
}

/* Client Testimonials Section */
.reviews-section {
  padding: 100px 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent),
              radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05), transparent);
  background-color: #f8fafc;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonial-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.testimonial-slider {
  display: flex;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
  flex: 0 0 400px;
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.testimonial-meta h4 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
}

.testimonial-stars {
  color: #fbbf24;
  display: flex;
  gap: 4px;
  font-size: 0.9rem;
  margin-top: 4px;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.7;
  margin: 0 0 24px 0;
  flex-grow: 1;
  font-weight: 400;
}

.testimonial-footer {
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.testimonial-footer svg {
  color: var(--accent);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.control-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.control-btn:hover {
  transform: translateY(-4px);
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(30, 41, 59, 0.2);
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 320px;
    padding: 30px;
  }
}

.hero-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-centered h1 {
  margin-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-grid h1 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .hero-new {
    padding: 60px 0 80px;
  }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content p { margin: 0 auto 1.5rem; }
  .hero-cta { justify-content: center; }
  .hero-cta .btn-new { width: 100%; max-width: 340px; }
}

.hero-grid-stacked {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 40px;
}

.hero-grid-stacked .card-new {
  max-width: 800px;
  margin: 0 auto;
}

.local-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.local-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.local-hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.local-trust-card h2 {
  margin-top: 0;
}

.local-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.local-stats-grid div {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
}

.local-stats-grid strong {
  display: block;
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1.1;
}

.local-stats-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 4px;
}

.section-header-new {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-header-new h2 {
  margin-top: 0;
}

.section-header-new p {
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
}

.local-note {
  max-width: 860px;
  margin: 0 auto 32px;
  border-color: rgba(37, 99, 235, 0.22);
  background: #eff6ff;
}

.local-note h3 {
  margin-top: 0;
}

.local-note p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.local-shop-grid,
.local-two-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.local-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.local-shop-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.local-shop-card > div:last-child {
  padding: 28px;
}

.local-shop-placeholder {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(37, 99, 235, 0.78)),
    linear-gradient(135deg, #e2e8f0, #f8fafc);
  color: var(--white);
}

.local-shop-placeholder span {
  font-weight: 800;
  font-size: 1.2rem;
}

.local-shop-placeholder small {
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-weight: 700;
}

.local-shop-image {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: var(--bg-light);
}

.local-shop-image img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  display: block;
  object-fit: cover;
}

.local-shop-image small {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  color: var(--white);
  font-weight: 700;
}

.local-shop-card h3 {
  margin-top: 0;
}

.local-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.local-link:hover {
  text-decoration: underline;
}

.local-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.local-cta h2 {
  margin-top: 0;
}

.local-cta p {
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 0;
}

.local-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .local-hero-grid,
  .local-shop-grid,
  .local-two-column,
  .local-cta {
    grid-template-columns: 1fr;
  }

  .local-hero-grid {
    text-align: center;
    gap: 36px;
  }

  .local-hero-actions,
  .local-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .local-stats-grid {
    grid-template-columns: 1fr;
  }

  .local-hero-actions .btn-new,
  .local-cta-actions .btn-new {
    width: 100%;
  }
}

.story-img-left {
  float: left;
  width: 350px;
  margin: 0 32px 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .story-img-left {
    float: none;
    width: 100%;
    margin: 0 0 24px 0;
  }
}

/* Grid Layouts */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.blog-card{
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.blog-card-img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 16px;
  display: block;
  background: #eef2ff;
}

.blog-card h3{
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.blog-card p{
  margin: 0 0 18px;
  color: var(--text-muted);
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.55;
}

.blog-card a{
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.blog-card a:hover{
  text-decoration: underline;
}

.blog-fallback{
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  padding: 10px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.services-who-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .services-who-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .blog-grid{
    grid-template-columns: 1fr;
  }
}

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

.price-tag {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin: 20px 0;
}

.price-tag span {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Card Design */
.card-new {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.card-new:hover {
  transform: translateY(-5px);
}

/* Before/After Slider */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}

.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-slider .after-img {
  z-index: 1;
}

.ba-slider .before-img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid var(--white);
}

.ba-slider .before-img {
  width: 100%; /* Image should match the parent container's width */
}

/* Handle */
.ba-slider .slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  pointer-events: none;
}

.ba-slider .slider-handle::before,
.ba-slider .slider-handle::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.ba-slider .slider-handle::before {
  border-right: 8px solid var(--primary);
  margin-right: 4px;
}

.ba-slider .slider-handle::after {
  border-left: 8px solid var(--primary);
  margin-left: 4px;
}

.ba-slider .slider-label {
  position: absolute;
  bottom: 10px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.5);
  color: white !important;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 4;
  pointer-events: none;
}

.ba-slider .label-before {
  left: 10px;
}

.ba-slider .label-after {
  right: 10px;
}

.ba-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Update ba-grid for sliders */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .ba-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 12px;
}

/* Why Choose Section Layout */
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.why-choose-image-desktop img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: block;
}

.why-choose-image-mobile {
  display: none;
}

.why-choose-checklist {
  margin-top: 30px;
}

@media (max-width: 900px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .why-choose-image-desktop {
    display: none;
  }
  
  .why-choose-image-mobile {
    display: block;
    margin: 20px 0 30px;
  }
  
  .why-choose-image-mobile img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: block;
    object-fit: cover;
    max-height: 400px;
  }
}

/* Footer Redesign */
.footer-new {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0 40px;
}

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-title {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-link {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .footer-bottom > div:last-child {
    justify-content: center !important;
    flex-wrap: wrap;
  }
}

/* Mobile Navigation Redesign */
@media (max-width: 900px) {
  .hamburger-btn {
    display: flex !important;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 2000 !important; /* Ensure it's above everything */
    flex-direction: column;
    gap: 5px;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
  }

  .hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary) !important;
    transition: all 0.3s ease;
    margin: 0 !important;
  }

  .hamburger-btn.active {
    position: fixed;
    right: 24px;
    top: 20px;
  }

  .hamburger-btn.active span {
    background: var(--primary) !important;
  }

  .hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger-btn.active span:nth-child(2) { opacity: 0; }
  .hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-new {
    position: fixed !important;
    top: 0;
    right: 0;
    width: 92% !important;
    max-width: 360px !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) saturate(120%) !important;
    border-left: 1px solid var(--border) !important;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    flex-direction: column !important;
    padding: 80px 24px 40px !important;
    gap: 10px !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1900 !important;
    box-shadow: -20px 0 60px rgba(15,23,42,0.2) !important;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
  }

  .nav-new.mobile-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link-new {
    color: var(--text-main) !important;
    font-size: 1.05rem;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid var(--border) !important;
    width: 100%;
    text-align: center;
    transition: all 0.2s ease;
    background: var(--white) !important;
  }

  .nav-link-new:hover, .nav-link-new.active, .nav-link-new[aria-current="page"] {
    color: var(--accent) !important;
    background: var(--bg-light) !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
    box-shadow: 0 4px 16px rgba(15,23,42,0.06);
  }

  .nav-new .btn-primary {
    margin-top: 20px;
    width: 100%;
    border-radius: 12px;
    padding: 16px;
    background: var(--accent) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  }

  .lang-toggle {
    margin: 10px 0 10px;
    width: 100%;
  }

  .lang-toggle-btn {
    width: 100%;
    background: var(--white) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
    padding: 12px !important;
    border-radius: 12px !important;
    font-size: 0.9rem;
  }

  .lang-dropdown {
    position: static !important;
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    border-radius: 12px;
  }

  .lang-dropdown.active {
    max-height: 200px;
    margin-top: 8px;
  }

  .lang-option {
    color: var(--text-main) !important;
    padding: 10px 15px !important;
    font-size: 0.9rem;
  }
}

/* GLOBAL OVERRIDES FOR READABILITY */
/* Ensure all text in redesign-controlled areas is dark enough */
.section.section-alt p, 
.section.section-alt li, 
.section.section-alt span:not(.btn-new):not(.ba-label):not(.trust-item):not(.slider-label),
.section.section-alt div:not(.card-new):not(.btn-new):not(.ba-label):not(.slider-label):not(.slider-handle) {
  color: var(--text-main) !important;
}

.card-new p, 
.card-new li, 
.card-new span:not(.btn-new) {
  color: var(--text-main) !important;
}

/* Specifically target muted text to be more readable if it's too light */
.section.section-alt .text-muted,
.section.section-alt .small,
.section.section-alt p.small,
.section.section-alt p[style*="color: var(--text-muted)"] {
  color: #1c1c1c !important; /* Darker grey than #64748b */
}

/* Fix form inputs for light mode redesign */
input, textarea, select {
  color: var(--text-main) !important;
  background-color: var(--white) !important;
  border-color: var(--border) !important;
}

input::placeholder, textarea::placeholder {
  color: #94a3b8 !important;
}

label {
  color: var(--primary) !important;
}
