/*
Theme Name: GCC Block Theme
Theme URI: https://greenclosetcreative.com/
Author: AnnMarie DeVito - Web Developer 
Author URI: https://greenclosetcreative.com/
Description: Custom block theme created by Green Closet Creative.
Requires at least: 6.6
Tested up to: 6.6.1
Requires PHP: 8.1
Version: 3.1.0
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: gcc-block-theme
*/

html {
  scroll-behavior: smooth;
}
html, body {
    overflow-x: hidden;
    min-height: 100vh;
}

.error404 h1 mark {
    font-size: 70%;
}


h1.has-text-shadow {
    text-shadow: 2px 6px 20px rgba(0,0,0,0.75);
}



/* Button Style ------------------------------------------------------------------------ */
.wp-block-button__link,
.gform-footer .wp-block-button__link {
  position: relative;
  display: inline-flex;
  width: 250px !important;
  height: 75px;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 1.25em;
  border-radius: 999px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  overflow: hidden;
  transition: color 0.3s ease;
}
.wp-block-button__link .button-text,
.wp-block-button__link .button-icon {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}
.wp-block-button__link .button-text {
  width: calc(100% - (55px + 1em));
}
.wp-block-button__link .button-icon {
  right: 0.5em;
  width: 55px;
}
.wp-block-button__link .button-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  margin: auto;
}
.wp-block-button__link::before {
  content: "";
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  width: calc(75px - 1rem);
  height: calc(75px - 1rem);
  background: #2c7d7b;
  border-radius: 50%;
  z-index: 0;
  transition:
    width 0.4s ease,
    height 0.4s ease,
    right 0.4s ease,
    top 0.4s ease,
    border-radius 0.4s ease;
}

/* On hover: expand to fill entire button */
.wp-block-button__link:hover::before {
  width: 100%;
  height: 102%;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
}


.gform-footer .wp-block-button__link {
    background-color: var(--wp--preset--color--theme-primary-1);
    color: var(--wp--preset--color--theme-white);
}

.wp-block-button__link .button-icon svg path { all: revert-layer; }




/* Hero section styles ------------------------------------------------------------------------ */
.hero {
    position: relative;
    height: 100vh;
    background: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    overflow: hidden;
    padding-top: 40px;
}
.hero:before {
    content: "";
    display: block;
    width: 100%;
    height: 75%;
    background-image: linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255,1), rgba(255,255,255,1));
    position: absolute;
    top: 0;
    z-index: 2; 
}
/* Centered text content */
.hero-content {
    z-index: 3;
}
.hero-content h1 {
    margin-bottom: 0.5em;
    line-height: 1.1;
}

/* Gallery container at the bottom */
.image-gallery.image-gallery {
    position: absolute;
    width: 110%;
    max-width: unset;
    bottom: -600px;
    left: 0;
    display: grid;
    grid-template-rows: repeat(5, auto);
    gap: 20px;
    z-index: 1;
    transition: opacity 0.3s ease-out;
    transform: rotate(-30deg);
}
    
/* Each column (stacking images vertically) */
.image-gallery .col {
    display: flex;
    flex-direction: row;
    gap: 20px;
    /* Start with no translation */
    transform: translateX(0);
    transition: transform 0.3s ease-out;
}
.image-gallery .col:nth-child(1) {
    margin-left: -35%;
}
.image-gallery .col:nth-child(2) {
    margin-left: -40%;
}
.image-gallery .col:nth-child(3) {
    margin-left: -12%;
}
.image-gallery .col:nth-child(4) {
    margin-left: 6%;
}
.image-gallery .col:nth-child(5) {
    margin-left: 0;
}
.image-gallery .col:nth-child(6) {
    margin-left: 0;
}
    
/* Gallery images */
.image-gallery img {
    width: 450px;
    max-width: unset;
    height: 300px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 1450px) {
    .image-gallery .col:nth-child(3) {
        margin-left: -85%;
    }   
}
@media screen and (max-width: 567px) {
    .image-gallery .col:nth-child(3) {
        margin-left: -100%;
    }   
    .image-gallery .col:nth-child(4) {
        margin-left: -135%;
    }
}

/* Featured Client Styles ------------------------------------------------------------------------ */
#featured-client .wp-block-post > .wp-block-group {
    padding: 50px;
}
@media screen and (min-width: 782px) {
    #featured-client .wp-block-post {
        position: relative;
    }
    #featured-client .wp-block-post > .wp-block-group {
        position: absolute;
        width: 350px;
        top: -50px;
        right: 50px;
    }
}
@media screen and (min-width: 1024px) {
    #featured-client > h2 { 
        padding-left: 100px; 
    }
    #featured-client .wp-block-post > .wp-block-group {
        top: -100px;
        right: 100px;
        width: 400px;
    }
}




/* Word Parallax Styles ------------------------------------------------------------------------ */
.word-parallax {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.words {
  position: absolute;
  display: flex;
  font-size: 4rem;
  color: var(--wp--preset--color--theme-primary-1) !important;
  white-space: nowrap;
  transition: transform 0.1s linear;
}

.group-left {
  top: 20%;
  left: 10%;
  transform: translateX(-0.25vw);
}

.group-right {
  top: 45%;
  right: 10%;
  transform: translateX(0.25vw);
}
.group-right mark {
    font-style: italic;
    font-weight: bold;
    margin-right: 8px;
}

@media screen and (max-width: 991px) {
    .word-parallax {
        height: 250px;
    }
    .words {
        font-size: 3rem;
    }
    .group-left {
        left: 5%;
    }
    .group-right {
        right: 5%;
    }
}
@media screen and (max-width: 667px) {
    .word-parallax {
        height: 200px;
    }
    .words {
        font-size: 2rem;
    }
    .group-left {
        left: 0;
    }
    .group-right {
        right: -15%;
    }
}



/* blog feed -------------------------------------------------------------------------------------- */
.wp-block-post .wp-block-post-date {
    margin-bottom: -20px !important;
}
.wp-block-post .wp-block-post-excerpt__more-link {
    font-weight: 400;
}
.wp-block-post .wp-block-read-more {
    margin-left: 0 !important;
}


/* awards -------------------------------------------------------------------------------------- */
#our-awards .wp-block-columns > .wp-block-column:last-child {
    padding: 0 50px;
}
@media screen and (max-width: 1023px) {
    #our-awards h2 {
        margin-top: 50px;
    }
    #our-awards .wp-block-columns {
        flex-wrap: wrap !important;
        justify-content: center;
        text-align: center;
    }
    #our-awards .wp-block-columns .wp-block-buttons {
        justify-content: center;
    }
}



/* forms -------------------------------------------------------------------------------------- */
.gform-theme--foundation .gform_fields.gform_fields {
    row-gap: var(--gf-form-gap-x);
}



/* footer -------------------------------------------------------------------------------------- */
@media screen and (max-width: 1280px) {
    footer .wp-block-group > .wp-block-columns {
        flex-wrap: wrap !important;
        justify-content: center;
    }
    footer .wp-block-group > .wp-block-columns > .wp-block-column {
        flex-basis: 100% !important;
    }
}
@media screen and (max-width: 781px) {
    footer .wp-block-group > .wp-block-columns {
        text-align: center;
    }
    footer .wp-block-social-links {
        justify-content: center;
    }
}



/* posts -------------------------------------------------------------------------------------- */
/* Wrap both selects consistently */
.wp-block-categories-dropdown,
.wp-block-archives-dropdown {
  margin: 0 1em;
}

/* Base styles for both dropdowns */
.wp-block-categories-dropdown select,
.wp-block-archives-dropdown select {
  appearance: auto; /* default look */
  background-color: transparent;
  border: 1.5px solid #2d6d6d;
  border-radius: 999px;
  padding: 0.75em 1.25em;
  font-size: 1rem;
  font-weight: 600;
  color: #2d6d6d;
  text-align: center;
  cursor: pointer;
  min-width: 220px;
  height: 75px;
  text-align: left;
}

.wp-block-categories-dropdown select:focus,
.wp-block-archives-dropdown select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(45, 109, 109, 0.3);
}



/* container grid */
.custom-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: var(--row-height, 350px);
  gap: 32px;
  grid-auto-flow: dense;
}

/* first pattern: big-left + two stacked on right */
.custom-blog-grid .big-left {
  grid-column: 1 / span 2;
  grid-row: span 2;
}
.custom-blog-grid .stack-right-top {
  grid-column: 3;
}
.custom-blog-grid .stack-right-bottom {
  grid-column: 3;
}

/* second pattern: two stacked on left + big-right */
.custom-blog-grid .stack-left-top {
  grid-column: 1;
}
.custom-blog-grid .stack-left-bottom {
  grid-column: 1;
}
.custom-blog-grid .big-right {
  grid-column: 2 / span 2;
  grid-row: span 2;
}

/* ── Big post styling ── */
.chg-big-thumb img,
.chg-small-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
    object-fit: cover;
}

.chg-big-content {
  padding: 1em;
  background: #fff;
}

.chg-big-title {
  margin: 0 0 .5em;
  font-size: 1.5rem;
}

.chg-big-date {
  font-size: .9rem;
  color: #666;
  margin-bottom: .5em;
}

.chg-big-excerpt {
  margin-bottom: .5em;
}

.chg-big-readmore {
  font-weight: bold;
  text-decoration: none;
}

/* ── Small post styling ── */
.chg-small-title {
  margin: .5em 0;
  font-size: 1.1rem;
}

.chg-small-readmore {
  font-size: .9rem;
  text-decoration: none;
}

/* container grid */
.custom-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: var(--row-height, 350px);
  gap: 32px;
  grid-auto-flow: dense;
}

/* pattern A */
.custom-archive-grid .big-left {
  grid-column: 1 / span 2;
  grid-row: span 2;
}
.custom-archive-grid .stack-right-top,
.custom-archive-grid .stack-right-bottom {
  grid-column: 3;
}

/* pattern C */
.custom-archive-grid .stack-left-top,
.custom-archive-grid .stack-left-bottom {
  grid-column: 1;
}
.custom-archive-grid .big-right {
  grid-column: 2 / span 2;
  grid-row: span 2;
}

/* post styling (same as blog) */
.chg-big-thumb img,
.chg-small-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
}
.chg-big-content {
  padding: 1em;
  background: #fff;
}
/* …and your .chg-big-title, .chg-big-date, .chg-big-excerpt, .chg-small-title, etc. */

.custom-blog-grid + .wp-block-buttons {
  justify-content: center;
}



.single-post .wp-block-post-content {
    display: block;
}

.gcc-related-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2em;
	margin-top: 2em;
}

.gcc-related-post img {
	width: 100%;
	height: auto;
	display: block;
}

.gcc-related-title {
	font-size: 1.2rem;
}

.gcc-read-more {
	display: inline-block;
  font-weight: normal;
}

