/*
  Theme Name:    GeneratePress Child
  Theme URI:     https://generatepress.com
  Description:   Default GeneratePress child theme
  Author:        Tom Usborne
  Author URI:    https://tomusborne.com
  Template:      generatepress
  Version:       0.1
*/

/* ----- Typography: Adobe Fonts (Canada Type Gibson) ----- */
body, h1, h2, h3, h4, h5 {
  font-family: "canada-type-gibson", sans-serif;
  font-style: normal;
}

h1 { 
  font-weight: 300; 
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 { font-weight: 400; }
h3 { font-weight: 500; }
h4, h5 { font-weight: 600; }
body { font-weight: 400; }

/* ----- SimpLy Gallery: Grid Items & Lightbox ----- */
.pgcsimplygalleryblock-masonry-item .pgcsimplygalleryblock-masonry-item-title {
  font-family: "canada-type-gibson", sans-serif !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.pgcsimplygalleryblock-masonry-item .pgcsimplygalleryblock-masonry-item-inner .pgcsimplygalleryblock-masonry-title-wrap {
  position: absolute;
  top: auto !important; 
  left: 0 !important; 
  right: 0 !important; 
  bottom: 0 !important;
  display: flex; 
  justify-content: center; 
  align-items: flex-end;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%) !important;
  padding: 20px 15px 15px 15px !important;
}

.pgc-rev-lb-b-item-title-wrap {
  display: flex !important; 
  justify-content: flex-start !important; 
  align-items: center !important;
  padding: 15px 25px !important; 
  background-color: rgba(0,0,0,0.9) !important;
}

.pgc-rev-lb-b-item-title {
  font-family: "canada-type-gibson", sans-serif !important;
  font-size: 18px !important; 
  font-weight: 400 !important;
}

/* ----- Global Footer Layout (Desktop 1025px+) ----- */
@media (min-width: 1025px) {
  .inside-footer-widgets {
    display: flex;
    flex-wrap: wrap;
  }
  .footer-widget-1 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 50px; 
  }
  .footer-widget-2, .footer-widget-3, .footer-widget-4, .footer-widget-5 { flex: 1; }
}

/* Logo and Social Row (All Devices) */
.footer-top-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

.footer-logo-img { 
  max-width: 315px; 
  height: auto !important; 
  display: block; 
}

.footer-social-container { 
  display: flex !important; 
  justify-content: flex-end; 
  gap: 20px !important; 
}

.social-icon-link { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 7px !important; 
  color: #ffffff !important; 
  transition: 0.2s ease; 
  text-decoration: none !important; 
}

.social-icon-link:hover { background-color: #da291c !important; }

.social-icon-link svg { 
  width: 19px; 
  height: 19px; 
  display: block; 
}

/* Mobile Logo/Social Centering */
@media (max-width: 768px) {
  .footer-top-row { 
    flex-direction: column !important; 
    gap: 20px; 
    text-align: center; 
  }
  .footer-logo-img { margin: 0 auto !important; }
  .footer-social-container { justify-content: center !important; }
}

/* ----- Footer Styling: Titles & Links ----- */
.footer-widgets .widget-title {
  font-family: "canada-type-gibson", sans-serif;
  font-weight: 600; 
  font-size: 22px;
  text-transform: uppercase; 
  color: #ffffff; 
  margin-bottom: 8px;
}

.footer-widgets ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

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

.footer-widgets ul li a {
  color: #ffffff; 
  font-weight: 600; 
  font-size: 0.75rem;
  text-transform: uppercase; 
  letter-spacing: 0.0625rem;
  text-decoration: none !important;
  transition: all 0.2s ease; 
  padding: 2px 4px; 
  display: inline-block; 
  margin-left: -4px;
}

.footer-widgets ul li a:hover { 
  background-color: #da291c; 
  color: #ffffff; 
}

/* Contact Info Styling (Widget 2) */
.footer-contact-info p, 
.footer-contact-info a {
  font-family: "canada-type-gibson", sans-serif;
  font-weight: 300 !important; 
  font-size: 15px; 
  line-height: 1.6; 
  color: #ffffff !important;
}

.footer-phone-link { 
  text-decoration: underline !important; 
  text-decoration-color: transparent !important; 
  transition: text-decoration-color 0.2s ease !important; 
}

.footer-phone-link:hover { text-decoration-color: #da291c !important; }

.footer-link-underline { 
  text-decoration: underline !important; 
  text-decoration-color: #ffffff !important; 
}

.footer-link-underline:hover { text-decoration-color: #da291c !important; }

/* Copyright Alignment */
.site-info .inside-site-info { 
  justify-content: flex-start !important; 
  text-align: left !important; 
}

.site-info .copyright-bar { 
  margin-left: 0 !important; 
  margin-right: auto !important; 
}

/* ----- Tablet & Mobile Grid Logic ----- */
@media (max-width: 1024px) {
  /* Override GeneratePress Floats */
  .footer-widgets .inside-footer-widgets {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
  }

  /* Force 2 Columns (50%) for Widgets 2-5 */
  .footer-widget-1, .footer-widget-2, .footer-widget-3, .footer-widget-4, .footer-widget-5 {
    float: none !important;
    width: 50% !important;
    box-sizing: border-box;
  }

  /* Logo stays full width at top */
  .footer-widget-1 { 
    width: 100% !important; 
    flex: 0 0 100% !important; 
    order: 1; 
    margin-bottom: 40px; 
  }

  /* Menus stay in middle rows */
  .footer-widget-3, .footer-widget-4, .footer-widget-5 { 
    order: 2; 
    margin-bottom: 30px; 
  }

  /* Contact Info: Forced to bottom */
  .footer-widget-2 { 
    order: 10; 
    margin-top: 20px;
    flex: 0 0 100% !important; 
    width: 100% !important; 
  }
}

/* Final Mobile Break: Everything to 100% width */
@media (max-width: 768px) {
  .footer-widget-3, .footer-widget-4, .footer-widget-5 {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}
