/* ========================================
   ICA FOOTER - RESPONSIVE DESIGN
   Mobile First, Pixel Perfect
   
   IMPORTANT: All selectors are prefixed with .ica-footer 
   to prevent conflicts with other components like marquee images
   ======================================== */

/* Override any inline styles - ensure external CSS takes precedence */
.ica-footer img[style] {
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

/* Exception: ensure back-to-top stamp never expands */
.ica-footer .back-to-top img {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* Base footer styles */
.ica-footer {
  background: var(--ica-bg);
  color: var(--ica-green-deep);
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: var(--font-ui);
}



.ica-footer * {
  box-sizing: border-box;
}

.ica-footer address {
  font-style: normal;
}

.ica-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* ========================================
   MOBILE FIRST (Default - All Screens)
   ======================================== */

/* Hide desktop layout by default */
.ica-desktop-layout {
  display: none;
}

/* Show mobile layout by default */
.ica-mobile-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
  gap: 2rem;
}

/* Logo Section */
.ica-logo-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ica-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: contain;
}

/* Content Section */
.ica-content-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 10px;
}

.ica-headline {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  text-align: center;
  color: var(--ica-green-deep);
}

.ica-headline em {
  font-style: italic;
  font-weight: 600;
}

.ica-buttons {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ica-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border: 2px solid var(--ica-green-deep);
  background: transparent;
  color: var(--ica-green-deep);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  min-width: 120px;
  border-radius: 0;
}

.ica-button:hover {
  background: var(--ica-lavender);
  color: var(--ica-green-deep);
  border: none;
}

.ica-button-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  filter: var(--footer-filter);
}

/* Badges Section */
.ica-badges-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.ica-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0.25rem;
  border-radius: 0;
  transition: all 0.3s ease;
  flex: 0 0 auto;
}

.ica-badge:hover {
  transform: scale(1.1);
}

.ica-footer .ica-badge img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Footer Navigation */
.ica-footer-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  flex-wrap: wrap;
  line-height: 0.5
}

.ica-footer-nav a {
  color: var(--ica-green-deep);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
}

.ica-footer-nav a:hover {
  color: var(--ica-teal);
}

/* Social Icons */
.ica-social {
  display: flex;
  justify-content: center;
  gap: 5rem;
}

.ica-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.ica-social a:hover {
  transform: scale(1.1);
}

.ica-footer .ica-social img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: var(--footer-filter);
  transition: filter 0.3s ease;
}

.ica-footer .ica-social a:hover img {
  filter: var(--footer-filter-hover);
}

/* ========================================
   SMALL MOBILE (480px and up)
   ======================================== */
@media (min-width: 480px) {
  .ica-footer .ica-logo {
    width: 200px;
    height: 200px;
  }
  
  .ica-headline {
    font-size: 35px;
  }
  
  .ica-buttons {
    gap: 2rem;
  }
  
  .ica-button {
    font-size: 0.8rem;
    padding: 0.875rem 1.75rem;
    min-width: 140px;
  }
  
  .ica-button-icon {
    width: 18px;
    height: 18px;
  }
  
  .ica-badges-section {
    gap: 1rem;
  }
  
  .ica-footer .ica-badge img {
    width: 125px;
    height: 65px;
  }
  
  .ica-footer-nav {
    gap: 2rem;
    line-height: 0;
  }
  
  .ica-footer-nav a {
    font-size: 0.8rem;
  }
}

/* ========================================
   TABLET (768px and up) - MATCH TABLET DESIGN
   ======================================== */
@media (min-width: 768px) {
  .ica-container {
    padding: 0 2rem;
  }
  
  .ica-mobile-layout {
    padding: 3rem 0;
    gap: 2.5rem;
  }
  
  .ica-footer .ica-logo {
    width: 180px;
    height: 180px;
  }
  
  .ica-badges-section {
    gap: 1.25rem;
  }
  
  /* Tablet: Transition to 2-column for headline/buttons */
  .ica-content-section {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
    text-align: left;
  }
  
  .ica-content-section .ica-headline {
    font-size: 32px;
    text-align: left;
    flex: 1;
  }
  
  .ica-content-section .ica-buttons {
    flex-direction: row;
    align-items: flex-end;
    flex: 1;
    gap: 2.5rem;
  }
  
  .ica-button {
    font-size: 0.875rem;
    padding: 0.5rem 0.7rem;

    min-width: 150px;
  }
  
  .ica-button-icon {
    width: 20px;
    height: 20px;
  }
  
  .ica-footer .ica-badge img {
    width: 200px;
    height: 90px;
  }
  
  /* Tablet: 2-column for nav/social */
  .ica-footer-nav {
    justify-content: center;
    gap: 2.5rem;
  }
  
  .ica-footer-nav a {
    font-size: 0.875rem;
  }
  
  .ica-social {
    justify-content: flex-end;
  }
  
  .ica-social a {
    width: 32px;
    height: 32px;
  }
  
  .ica-footer .ica-social img {
    width: 32px;
    height: 32px;
    filter: var(--footer-filter);
  }
}

/* ========================================
   DESKTOP (1024px and up)
   3-Column Grid Layout - EXACT MATCH TO DESIGN
   ======================================== */
@media (min-width: 1024px) {
  .ica-container {
    padding: 0 2rem;
  }
  
  /* Hide mobile layout */
  .ica-mobile-layout {
    display: none;
  }
  
  /* Show desktop layout */
  .ica-desktop-layout {
    display: grid;
    grid-template-columns: 200px 1fr 350px;
    gap: 2rem;
    align-items: flex-start;
    padding: 3rem 0;
  }
  
  /* Column 1: Logo */
  .ica-col-logo {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }
  
  .ica-col-logo .ica-logo {
    width: 170px;
    height: 170px;
  }
  
  /* Column 2: Content */
  .ica-col-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    text-align: left;
  }
  
  .ica-col-content .ica-headline {
    font-size: 2.25rem;
    line-height: 1.2;
    text-align: left;
    margin: 0;
  }
  
  .ica-col-content .ica-buttons {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
  }
  
  .ica-col-content .ica-button {
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
    min-width: 140px;
  }
  
  .ica-col-content .ica-button-icon {
    width: 18px;
    height: 18px;
  }
  
  /* Column 3: Sidebar */
  .ica-col-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
  }
  
  .ica-col-sidebar .ica-badges-section {
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
  }
  
  .ica-col-sidebar .ica-badges-section {
    gap: 1.5rem;
  }
  
  .ica-col-sidebar .ica-badge img {
    width: 80px;
    height: 80px;
  }
  
  /* Navigation and Social Row */
  .ica-nav-social-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
  }
  
  .ica-nav-social-row .ica-footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
  
  .ica-nav-social-row .ica-footer-nav a {
    font-size: 0.875rem;
    padding: 0.25rem 0;
  }
  
  .ica-nav-social-row .ica-social {
    flex-direction: column;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: flex-end;
  }
  
  .ica-nav-social-row .ica-social a {
    width: 36px;
    height: 36px;
  }
  
  .ica-nav-social-row .ica-social img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(15%) sepia(15%) saturate(1000%) hue-rotate(120deg) brightness(0.2) contrast(1);
  }
}

/* ========================================
   LARGE DESKTOP (1200px and up)
   ======================================== */
@media (min-width: 1200px) {
  .ica-desktop-layout {
    grid-template-columns: 200px 1fr 320px;
    gap: 4rem;
    padding: 5rem 0;
  }
  
  .ica-col-logo .ica-logo {
    width: 190px;
    height: 190px;
  }
  
  .ica-col-content .ica-headline {
    font-size: 36px;
    line-height: 1.15;
  }
  
  .ica-col-content .ica-buttons {
    gap: 2.5rem;
  }
  
  .ica-col-content .ica-button {
    font-size: 0.875rem;
    padding: 1rem 2rem;
    min-width: 160px;
  }
  
  .ica-col-content .ica-button-icon {
    width: 20px;
    height: 20px;
  }
  
  .ica-col-sidebar {
    gap: 2.5rem;
  }
  
  .ica-col-sidebar .ica-badges-section {
    gap: 1.75rem;
  }
  
  .ica-col-sidebar .ica-badge img {
    width: 90px;
    height: 75px;
  }
  
  .ica-nav-social-row {
    gap: 2.5rem;
    align-items: center;
  }
  
  .ica-nav-social-row .ica-footer-nav a {
    font-size: 0.875rem;
    padding: 0.4rem 0;
  }
  
  .ica-nav-social-row .ica-social {
    gap: 1rem;
  }
  
  .ica-nav-social-row .ica-social a {
    width: 36px;
    height: 36px;
  }
  
  .ica-nav-social-row .ica-social img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(15%) sepia(15%) saturate(1000%) hue-rotate(120deg) brightness(0.2) contrast(1);
  }
}

/* ========================================
   EXTRA LARGE DESKTOP (1440px and up)
   ======================================== */
@media (min-width: 1440px) {
  .ica-desktop-layout {
    grid-template-columns: 240px 1fr 380px;
    gap: 5rem;
    padding: 6rem 0;
  }
  
  .ica-col-logo .ica-logo {
    width: 220px;
    height: 220px;
  }
  
  .ica-col-content .ica-headline {
    font-size: 42px;
  }
  
  .ica-col-content .ica-buttons {
    gap: 3rem;
  }
  
  .ica-col-content .ica-button {
    font-size: 0.9rem;
    padding: 1.125rem 2.25rem;
    min-width: 170px;
  }
  
  .ica-col-content .ica-button-icon {
    width: 22px;
    height: 22px;
  }
  
  .ica-col-sidebar {
    gap: 3rem;
  }
  
  .ica-col-sidebar .ica-badges-section {
    gap: 2rem;
  }
  
  .ica-col-sidebar .ica-badge img {
    width: 100px;
    height: 90px;
  }
  
  .ica-nav-social-row {
    gap: 3rem;
  }
  
  .ica-nav-social-row .ica-footer-nav a {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }
  
  .ica-nav-social-row .ica-social {
    gap: 1.2rem;
  }
  
  .ica-nav-social-row .ica-social a {
    width: 40px;
    height: 40px;
  }
  
  .ica-nav-social-row .ica-social img {
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(15%) sepia(15%) saturate(1000%) hue-rotate(120deg) brightness(0.2) contrast(1);
  }
}



/* ========================================
   COPYRIGHT BAR
   ======================================== */
.ica-copyright {
  background: var(--ica-green-deep);
  color: white;
  padding: 1rem 0;
  text-align: center;
}

.ica-copyright p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .ica-copyright {
    padding: 1.25rem 0;
  }
  
  .ica-copyright p {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .ica-copyright p {
    font-size: 0.8rem;
  }
}

@media (min-width: 1440px) {
  .ica-copyright p {
    font-size: 0.85rem;
  }
}

/* ========================================
   ACCESSIBILITY & FOCUS STATES
   ======================================== */
.ica-button:focus,
.ica-footer-nav a:focus,
.ica-social a:focus,
.back-to-top:focus {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .ica-footer {
    background: white !important;
    color: black !important;
  }
  
  .ica-copyright {
    background: black !important;
    color: white !important;
  }
  
  .ica-badge {
    background: black !important;
    color: white !important;
  }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed !important;
  bottom: 16px !important;
  right: 16px !important;
  top: auto;
  left: auto;
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  padding: 0;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.back-to-top:focus {
  outline: none;
}

.back-to-top.show {
  background-color: var(--ica-mint);
  padding: 5px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
}

/* Back to Top Button - Mobile Styles */
@media (max-width: 768px) {
  .back-to-top {
    width: 80px;
    height: 80px;
  }
}

/* Back to Top Button - Large Desktop */
@media (min-width: 1440px) {
  .back-to-top {
    width: 80px;
    height: 80px;
  }
}

/* Hide back to top button on print */
@media print {
  .back-to-top {
    display: none !important;
  }
}

/* Disable WordPress admin bar back-to-top functionality */
#wpadminbar .ab-item[onclick*="scrollTo"],
#wpadminbar .ab-item[onclick*="scroll"],
#wpadminbar .ab-item[onclick*="top"],
#wpadminbar .ab-item[title*="back"],
#wpadminbar .ab-item[title*="top"],
#wpadminbar .ab-item[title*="scroll"] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}