/* =========================================
   2. PREMIUM HYBRID FOOTER (Light Theme)
   ========================================= */
.jh-footer {
  background-color: var(--color-gray-100); /* Shifted to a premium light gray/white theme */
  color: var(--text-default);
  padding-top: var(--space-3xl);
  font-family: var(--font-body);
  position: relative;
}

.jh-footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

/* Typography & Basic Elements */
.jh-footer-title {
  color: var(--color-black); /* Dark text for light theme */
  font-family: var(--font-heading);
  font-size: var(--h5-size);
  margin-bottom: var(--space-m);
  position: relative;
}

.jh-footer-text {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--space-m);
}

/* Col 1: Brand & Social */
.jh-footer-logo {
  height: 50px;
  margin-bottom: var(--space-s);
  /* Removed the brightness/invert filter so the original Jawed Habib logo renders in its natural colors */
}

.jh-social-icons {
  display: flex;
  gap: var(--space-xs);
}

.jh-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-circle);
  border: 1px solid var(--color-gray-200); /* Light theme border */
  color: var(--color-black); /* Dark icons */
  transition: all var(--transition-fast);
}

.jh-social-icons a:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white); /* Flips to white on hover over the red background */
}

.jh-social-icons svg {
  width: 16px;
  height: 16px;
}

/* Col 2: Services List */
.jh-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jh-footer-list li {
  margin-bottom: var(--space-xs);
}

.jh-footer-list a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.jh-footer-list a svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.jh-footer-list a:hover {
  color: var(--color-primary); /* Swapped hover to primary red instead of white */
}

/* Col 3: Instagram Grid */
.jh-insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.insta-item {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius-sm);
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.insta-item:hover {
  transform: scale(1.05);
}

/* Col 4: Newsletter & Contact */
.jh-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-m);
}

.jh-newsletter-form input {
  background-color: var(--color-white); /* Pure white input background */
  border: 1px solid var(--color-gray-200);
  color: var(--color-black);
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--border-radius-sm);
}

.jh-newsletter-form input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.jh-newsletter-form button {
  background-color: var(--color-primary); /* Uses Jawed Habib Red[cite: 5, 6] */
  color: var(--color-white);
  border: none;
  padding: var(--space-xs) var(--space-s);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
}

.jh-newsletter-form button:hover {
  background-color: var(--color-primary-dark);
}

.phone-large {
  display: block;
  font-size: var(--h5-size);
  color: var(--color-black); /* Dark text for light theme */
  font-family: var(--font-heading);
  margin-top: var(--space-s);
}

/* Footer Bottom Bar */
.jh-footer-bottom {
  border-top: 1px solid var(--color-gray-200); /* Softer gray border for light theme[cite: 6] */
  padding: var(--space-m) 0;
  position: relative;
}

.bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-s);
  padding-bottom: 0;
}

.jh-footer-bottom p, .jh-bottom-links a {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
}

.jh-bottom-links a:hover {
  color: var(--color-primary); /* Swapped hover to primary red */
}

/* Back to Top Button */
.jh-back-to-top {
  position: absolute;
  top: -24px;
  right: 5%;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-circle); /*[cite: 6] */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Lightened the shadow for the light theme */
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.jh-back-to-top:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-5px);
}

.jh-back-to-top svg {
  width: 20px;
  height: 20px;
}