/*
Theme Name: GIANT 2025
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: giant-2025
Tags: 


Table of Contents : 
- Globals
- Header & Footer
- Categories Accordion
- Home Portfolio Section
- Gooey Buttons Area
- Video Block
- Vertical Post Columns
- POrtfolio Columns
- Welcome Section
- Service Page
*/




/* Globals Start  */

.gradient-background a:hover {
  border-style: none;
  border-width: 0px;
  background: linear-gradient(115deg, rgb(0, 126, 254) 0%, rgb(52, 37, 201) 25%, rgb(111, 0, 189) 43%, rgb(229, 0, 74) 100%);
  padding-top: 8px;
  padding-right: 25px;
  padding-bottom: 8px;
  padding-left: 25px;
  border: 2px solid transparent;
}

span.gradient-text,
.gradient-text,
.wp-block-navigation-link:hover span {
  background: linear-gradient(150deg, #007EFE, #6F00BD, #0000ff, #E5004A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wp-block-button {
  display: flex !important;
  align-items: center !important;
}

.wp-block-button#dark-btn {
  display: flex !important;
  justify-content: left !important;
  align-items: left !important;
}

.wp-block-button#dark-btn::before {
  content: '';
  background-image: url("https://demo.gogiant.co.uk/giant-2025/wp-content/uploads/sites/18/2025/09/arrow-circle-blue.svg");
  width: 42px;
  height: 32px;
  background-size: cover;
  background-position: center;
  position: relative;
  bottom: 50%;
  left: 99%;
  display: inline-block;
}

.wp-block-button#grad-btn {
  display: flex !important;
  justify-content: left !important;
  align-items: left !important;
  position: relative;
}

.wp-block-button#grad-btn::before {
  /* content: '';
  background-image: url("https://demo.gogiant.co.uk/giant-2025/wp-content/uploads/sites/18/2025/09/arrow-circle-grad.svg");
  width: 42px;
  height: 32px;
  background-size: cover;
  background-position: center;
  position: relative;
  bottom: 50%;
  left: 99%;
  display: inline-block; */
}

.wp-block-button#grad-btn-footer {
  display: flex !important;
  justify-content: left !important;
  align-items: left !important;
  margin-bottom: -630px;
  position: relative;
}

.wp-block-button#grad-btn-footer::before {
  content: '';
  background-image: url("https://demo.gogiant.co.uk/giant-2025/wp-content/uploads/sites/18/2025/09/arrow-circle-grad.svg");
  width: 42px;
  height: 32px;
  background-size: cover;
  background-position: center;
  position: relative;
  bottom: 50%;
  left: 99%;
  display: inline-block;
}

.noise {
  position: relative;
}

.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.3'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

main > .entry-content {
  margin-top: 0;
  /* add space to account for floating/sticky header */
  padding-top:160px;
  overflow:hidden;
}

/* Globals End  */

/* Header & Footer Start */

header {
  position: fixed;
  z-index: 100;
  min-width: 100% !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0) 100%);
}

.header-logo {
  background-color: white;
}

.header-logo>a {
  display: block !important;
}

.wp-social-link:hover {
  background: linear-gradient(150deg, #007EFE, #6F00BD, #0000ff, #E5004A);
}

footer.wp-block-template-part {
  margin-inline: 30px !important;
}

/* Logo pinned to bottom */
#footer-big-logo {
  position: fixed;
  bottom: 40px;
  left: 50%;
  width: 800px;
  transform: translateX(-50%) scaleY(1) scaleX(1);
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.4, 1.4);
  z-index: 1;
  /* under foot */
}

/* Foot above logo */
#foot {
  position: fixed;
  top: -700px;
  /* offscreen start */
  left: 50%;
  width: 600px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
  /* above logo */
  display: none;
  /* hide by default */
}

/* override block editor burger icon alignment */

.burger-menu > button {
    align-self:flex-end !important;
}

/* menu modal */
.wp-block-navigation__responsive-container-close {
    padding:0.5em;
}

@media only screen and (max-width: 700px) {

    ul.header-social {
        display:none;
    }
    
}

/* easter eggs */

/* ========================================================
   1. Initial State Overrides 
   ======================================================== */

#giant-foot {
    position: fixed !important;
    top: -100vh !important; 
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important; 
    pointer-events: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important; 
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important; 
}

#giant-foot img {
    display: block !important;
    height: 130vh !important; 
    width: auto !important;
    max-width: none !important; 
    max-height: none !important;
    object-fit: contain !important;
    object-position: bottom center !important; 
    transform: none !important;
}

#big-footer-logo {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    transform-origin: bottom center !important; 
    display: block !important;
}

/* ========================================================
   2. Bump States
   ======================================================== */

.logo-bump-1 {
    transform: translateY(40px) rotate(5deg) !important;
}

.logo-bump-2 {
    transform: translateY(80px) rotate(-4deg) !important;
}

/* ========================================================
   3. The Grand Finale Animations
   ======================================================== */

.trigger-foot-drop {
    animation: footDrop 1.2s forwards ease-in-out;
}

.trigger-logo-squash {
    animation: logoSquash 1.2s forwards ease-in-out;
}

/* The Foot Timeline - Now stomps and holds its position firmly */
@keyframes footDrop {
    0%   { transform: translateY(0vh); }
    30%  { transform: translateY(100vh); }               /* Sole hits bottom of viewport */
    40%  { transform: translateY(calc(100vh + 100px)); } /* Sinks 100px to squash the logo */
    100% { transform: translateY(calc(100vh + 100px)); } /* STAYS HERE. No floating back up. */
}

@keyframes logoSquash {
    0%   { transform: translateY(80px) rotate(-4deg) scaleY(1); }
    30%  { transform: translateY(80px) rotate(0deg) scaleY(1); }     
    40%  { transform: translateY(80px) rotate(0deg) scaleY(0.2); }   
    45%  { transform: translateY(80px) rotate(0deg) scaleY(0.2); }   
    100% { transform: translateY(150vh) rotate(0deg) scaleY(0.2); }  
}

/* Header & Footer End */

#intro-left-column {
  z-index: 2;
}

/* Categories Accordion */


.featured-cats>.wp-block-cover.category>.wp-block-cover__inner-container {
  position: absolute;
  display: block;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
}

.editor-visual-editor .featured-cats>.wp-block-cover.category>.wp-block-cover__inner-container {
  position: relative;
  top: unset;
  bottom: unset;
  height: unset;
  width: unset;
}

.featured-cats>.wp-block-cover.category>.wp-block-cover__inner-container>a {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.featured-cats>.category {
  transition: padding 0.5s ease-in-out;
}

.featured-cats>.category:hover {
  padding: 0 3.25em;
}

.featured-cats>.wp-block-cover.category>img.wp-block-cover__image-background {
  transition: width 0.25s ease, height 0.25s ease;
  width: 125%;
  height: 125%;
}

.featured-cats>.wp-block-cover.category:hover>img.wp-block-cover__image-background {
  transition: width 16s ease, height 16s ease;
  width: 100%;
  height: 100%;
}

.featured-cats>.wp-block-cover.category>.wp-block-cover__inner-container {
  z-index: 5;
}

.featured-cats .read-stories {
  max-width: 84px;
}

.featured-cats .category.rotate90 {
  writing-mode: vertical-rl;
  max-height: 70%;
  position: absolute;
  top: 1em;
  width: 100%;
  right: 0;
  align-content: center;
  line-height: 1.1em;
  margin: 0;
}

@media only screen and (max-width: 900px) {
  /* home - featured categories */

  .wp-block-group.featured-cats {
    width: 200vw;
  }

  .home-podcast-area>.wp-block-group.is-nowrap:first-of-type {
    flex-direction: column;
  }

  .home-podcast-area .episode-meta .headline {
    font-size: 1.2em !important;
  }
}

@media only screen and (max-width: 800px) {
  /* featured categories */

  .post-cat-columns {
    overflow: unset;
  }

  .wp-block-group.featured-cats {
    position: relative;
    width: 100%;
    flex-wrap: wrap;
  }

  .post-cat-columns .wp-block-cover.category {
    width: 50% !important;
    min-height: 50vw !important;
    aspect-ratio: 1/1 !important;
    transition: none;
  }

  .featured-cats>.wp-block-cover.category>.wp-block-cover__inner-container>a {
    flex-direction: column;
  }

  .featured-cats .category.rotate90 {
    writing-mode: unset;
    height: 100%;
    max-height: 100%;
    padding-top: 0.6em;
    position: static;
    top: unset;
    width: auto;
    right: unset;
    align-self: center;
    align-content: center;
    text-align: center;
    font-size: 1.75em !important;
    text-shadow: 0px 2px 8px #000;
  }

  .featured-cats .read-stories {
    margin: 0 auto;
    align-self: baseline;
  }
}

/* Home Portfolio Section Start */

.portfolio-bg,
.portfolio-bg img {
  /* display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  max-width: 600px !important;
  max-height: 500px !important;
  min-width: 500px !important; */
}

.wp-block-image.portfolio-item {
  position: relative;
  max-width: 85%;
}

.wp-block-image.portfolio-item-logo {
  position: relative;
  top: -360px;
  left: 145px;
  z-index: 1;
  margin-top: 50px;
}

.wp-block-column.portfolio-column {
  max-height: 500px !important;
}


/* Home Portfolio Section End */

.logo-slider img,
#grad-btn,
#grad-btn-footer {
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  opacity: 50%;
}

.logo-slider img:hover,
#grad-btn:hover,
#grad-btn-footer:hover {
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
  -moz-filter: grayscale(0%);
  opacity: 100%;
}

/* Case Study Inside Page START */

h3.number-circle {
  border: 2px solid var(--wp--preset--color--accent-2);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  align-items: center;
  padding: 10px;
  font-size: 1.2em;
  color: var(--wp--preset--color--accent-2);
}

/* Case Study Inside Page END */


/* Services Landing Page START */

.service-name:hover {
  background: linear-gradient(150deg, #007EFE, #6F00BD, #0000ff, #E5004A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Services Landing Page START */


/* - Gooey Buttons Area Start  */
#gooey-buttons-area .wp-block-column {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

@media screen and (max-width: 700px) {
  #gooey-buttons-area .wp-block-column {
    flex-wrap: wrap;
  }
}

/* - Gooey Buttons Area End  */



/* - Video Block Start  */

.wp-block-video video {
  max-width: 100% !important;
}

/* - Video Block End  */



/* Vertical Post Columns Start  */


#vertical-post-columns {
  max-width: 100%;
  overflow-x: scroll;
}

#vertical-post-columns .category {
  display: flex;
  align-items: center;
}

#vertical-post-columns .section-logo {
  position: absolute;
  top: 50px;
}

@media screen and (max-width: 800px) {
  #vertical-post-columns .wp-block-group:first-child {
    display: grid;
    grid-template-columns: auto auto;
  }

  #vertical-post-columns .wp-block-cover {
    min-width: 100% !important;
  }
}

/* Vertical Post Columns End */



/* Portfolio Columns Start  */
#portfolio-columns .wp-block-cover__inner-container {
  position: unset;
}

#portfolio-columns .wp-block-column {
  position: relative;
}

#portfolio-columns img:hover {
  transform: scale(1.1);
}

.portfolio-bg,
.portfolio-bg img {
  margin: auto;
}

@media screen and (max-width: 781px) {
  #portfolio-columns {
    max-width: 90%;
    padding-top: unset !important;
  }

  #portfolio-columns .wp-block-column {
    margin-bottom: 40px;
  }
}


/* Content Columns End  */


/* - Welcome Section Start  */

@media screen and (max-width: 900px) {
  #welcome-section .wp-block-columns {
    flex-wrap: wrap !important;
  }

  #welcome-section .wp-block-columns .wp-block-column {
    width: 100% !important;
  }
}

/* - Welcome Section End  */

/*
 * Service Icons Block Styles
 */
.service-icon-block-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px; 
    justify-content: center;
}
.service-icon-item {
    position: relative; 
}
.service-icon-block-container .service-icon-link,
.service-icon-block-container .service-icon-wrapper {
    display: inline-block;
    
    /* ---  Uses 'Contrast' from your palette --- */
    background-color: var(--wp--preset--color--contrast);
    
    mask-image: var(--icon-url);
    -webkit-mask-image: var(--icon-url);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    width: 48px;
    height: 48px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}
.service-icon-block-container .service-icon-link:hover {
    opacity: 1; 
    /* ---  Uses 'Accent 3' (purple) from your palette --- */
    background-color: var(--wp--preset--color--accent-3);
}

/* --- Index Mode Styling --- */
.service-icon-block-container.is-index-mode .service-icon-link,
.service-icon-block-container.is-index-mode .service-icon-wrapper {
    /* ---  Uses 'Accent 6' (light grey) from your palette --- */
    background-color: var(--wp--preset--color--accent-6);
    opacity: 0.4;
}
.service-icon-block-container.is-index-mode .is-active {
    /* ---  Uses 'Accent 1' (red) from your palette --- */
    background-color: var(--wp--preset--color--accent-1);
    opacity: 1;
}
.service-icon-block-container.is-index-mode .service-icon-link:not(.is-active):hover {
    opacity: 0.7;
    /* ---  Uses 'Accent 2' (medium grey) from your palette --- */
    background-color: var(--wp--preset--color--accent-2);
}
.service-icon-block-container.is-index-mode .service-icon-link.is-active:hover {
    /* --- Uses 'Contrast' (dark) from your palette --- */
    background-color: var(--wp--preset--color--contrast);
}

/* --- Tooltip Styling  --- */
.service-icon-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    background-color: #3c434a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 10;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none; 
}
.service-icon-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #3c434a transparent; 
}
.service-icon-item:hover .service-icon-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}

/* service archive */

.archive.tax-service .wp-block-query li.wp-block-post .service-icon-block-container .service-icon-link,
.archive.tax-service .wp-block-query li.wp-block-post .service-icon-block-container .service-icon-wrapper {
	width: 30px;
	height: 30px;
}