/* theme/assets/css/main.css */

@font-face {
    font-family: 'bebas-reg';
    src: url(/wp-content/themes/firefly-collective/templates/firefly/assets/fonts/bebas-reg.ttf);
}

@font-face {
    font-family: 'open-sans';
    src: url(/wp-content/themes/firefly-collective/templates/firefly/assets/fonts/opensans-regular.ttf);
}

@font-face {
    font-family: 'kanit-reg';
    src: url(/wp-content/themes/firefly-collective/templates/firefly/assets/fonts/kanit-reg.ttf);
}

html {
    overflow: scroll;
    z-index: 0;
}
  
html,
body {
    position: relative;
    overflow-x: hidden;
    color: rgb(255, 255, 255);
    min-height: 100vh;
    font-family: var(--textFont);
    background-color: var(--mainColor);
}

body {
    padding: 0;
    margin: 0;
    overflow-y: hidden;
}

h1, h2 {
    color: var(--mainYellow);
    font-family: var(--secondaryFont);
    text-shadow: 1px 1px 2px var(--darkGrey);
}

h1 {
    font-size: 3rem;
    margin: 0;
    text-align: center;
}

h2 {
    font-size: 2rem;
}

h1, h2, h3, h4, h5, h6, p {
    padding: 1rem;
}

p {
    font-family: var(--textFont);
    font-size: 1.25rem;
}

a {
    color: white;
}

a:hover {
    color: var(--mainYellow);
}

main {
    min-height: 1000px;
    position: relative;
}

body:not(.home) main {
    margin-top: 15vh;
}

button {
    cursor: pointer;
}

.content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: 100%;
    box-sizing: border-box;
}

.content > p:first-of-type {
    margin: 0 auto;
}

input[type=button] {
    cursor: pointer;
}

main.no-homepage {
    margin-top: 10vh;
}

#visual-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url(/wp-content/themes/firefly-collective/templates/firefly/images/visual-backdrop.webp);
    background-repeat: no-repeat;
    background-size: contain;
}

#fp-banner picture {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
}

#fp-banner picture > img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#fp-banner {
    margin-top: 10vh;
    width: 100vw;
    height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

#fp-banner > div {
    width: 100%;
    z-index: 1;
    display: grid;
    justify-content: center;
    margin: 0 auto;
}

#fp-banner > div:first-of-type {
    justify-self: end;
    position: relative;
    left: 5vw;
}

#fp-banner > div:first-of-type p:nth-of-type(2) {
    text-shadow: var(--lightWhiteGlow);
}

#fp-banner p {
    font-family: var(--mainFont);
    color: var(--mainYellow);
    margin: 1rem;
    margin: 0;
    padding: 0;
    line-height: 0.85em;
}

#fp-banner p:first-of-type {
    color: white;
    font-size: 5vh;
}

#fp-banner p:nth-of-type(2) {
    font-size: 13vh;
}

.fp-button {
    background-color: var(--darkTurquoiseTransparent);
    font-family: var(--mainFont);
    padding: 1rem;
    border: 3px solid var(--mainYellow);
    border-radius: 15px;
    cursor: pointer;
    font-size: 3vw;
    max-width: 30vw;
}

.fp-button:hover {
    color: var(--mainYellow);
    border: 3px solid white;
}

.wp-block-group.dynamic-card {
    opacity: 0;
    margin: 0;
    position: relative;
    padding: 3rem;
    display: grid;
    place-content: center;
}

.wp-block-group.dynamic-card.even {
    background-color: white;
    color: var(--darkTurquoise);
}

.wp-block-group.dynamic-card.odd {
    background-color: transparent;
    color: white;
}

.dynamic-card p {
    max-width: 50vw;
    padding-top: 0;
    margin: 0;
}

.dynamic-card h2 {
    font-family: var(--secondaryFont);
    font-size: 2.5rem;
    margin: 0 !important;
}

.dynamic-card > figure:first-of-type {
    position: absolute;
    top: 3vw;
    left: 16%;
}

.animate-from-left {
    animation: 0.7s slideInFromLeft forwards;
}

.animate-from-right {
    animation: 0.7s slideInFromRight forwards;
}

#contact-sticky {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0.5rem;
    background-color: rgba(17, 49, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border: 2px solid var(--darkTurquoise);
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    animation: 1s fadeIn forwards;
    user-select: none;
    font-family: var(--mainFont);
    font-size: 1.5rem;
}

#contact-sticky:hover {
    border: 2px solid var(--mainYellow);
}

#contact-sticky h3 {
    color: var(--mainYellow);
    margin: 0;
    padding: 0;
}

#contact-sticky a {
    color: white;
    text-decoration: none;
    font-family: var(--secondaryFont);
}

#contact-sticky a:hover {
    color: white;
    text-decoration: underline;
}

footer {
    display: grid;
    place-content: center;
    min-height: 25vh;
    background-color: var(--darkTurquoise);
    color: white;
    z-index: 1;
    width: 100%;
    text-align: center;
    gap: 0.5rem;
    background-image: url(/wp-content/themes/firefly-collective/templates/firefly/images/footer-bg.webp);
    background-repeat: no-repeat;
    background-size: cover;
}

footer > div:first-of-type {
    font-family: var(--mainFont);
    font-size: 2rem;
}
footer div,
footer a {
    text-shadow: var(--subtleDropShadow);
}

footer a {
    font-family: var(--secondaryFont);
    font-size: 1.5rem;
    text-decoration: none;
    user-select: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

.reverse-email {
    unicode-bidi: bidi-override;
    direction: rtl;
}  
  
/* Contact page */

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 1rem;
    position: relative;
    padding: 5rem;
    max-width: 35vw;
    margin: 0 auto;
    background-color: var(--whiteTransparent);
    color: black;
    border: 3px solid var(--veryDarkTurquoise);
    box-shadow: var(--normalBoxShadow);
}

.contact-form > div {
    display: grid;
    grid-template-columns: 1fr 9fr;
}


.contact-form > div > span {
    justify-self: end;
}

.contact-form > div > input[type=text],
.contact-form > div > input[type=email],
.contact-form > div > textarea,
#send-message-btn,
#send-message-btn > button {
    width: 90%;
    font-family: 'cinzel-bold';
    font-size: 1rem;
    margin: 0 auto;
    padding: 0.5rem;
}

.contact-form > div > textarea {
    height: 150px;
}

.contact-form-icon img {
    max-width: 30px;
    height: auto;
}

#send-message-btn {
    position: absolute;
    bottom: 0;
    left: 54%;
    transform: translateX(-50%);
    cursor: pointer;
    width: 40%;
    text-align: center;
    display: flex;
    justify-content: center;
}

/* Signup/Bookings */

.subscribe p {
    max-width: 50vw;
    justify-self: center;
}

.subscribe .signup-form button {
    max-width: 40%;
    margin: 0 auto;
}

.subscribe #google-signin {
    font-size: 1rem;
    padding: .5rem;
}

.subscribe .third-party-providers {
    display: flex !important;
}

.signup-form,
.signup-form > div,
.signup-form > div > div {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 1rem;
}

.signup-form {
    position: relative;
}

.book-an-appointment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    gap: 2vw;
    margin: 0 auto;
}

.book-an-appointment-form > div:first-of-type {
    width: 90%;
    background-color: var(--whiteTransparent);
    padding: 1vw;
    display: grid;
    gap: 1vh;
    grid-template-columns: 1fr;
    margin: 0 auto;
}

.book-an-appointment-form > div:nth-of-type(2) {
    position: relative;
    width: 65vh;
    height: 65vh;
}

.book-an-appointment-form h2 {
    text-align: center;
}

.signup-form {
    background-color: var(--whiteTransparent);
    width: 50vw;
    padding: 2vw;
    justify-self: center;
}

.signup-form,
.book-an-appointment-form {
  padding-bottom: 10vh;
}

.book-an-appointment-form input,
.book-an-appointment-form textarea,
.book-an-appointment-form select {
    display: block;
}

.book-an-appointment-form input[type=text],
.book-an-appointment-form textarea,
.book-an-appointment-form select,
.signup-form input[type=text],
.signup-form input[type=password],
.signup-form input[type=email],
.signup-form input[type=tel],
.signup-form select,
.signup-form textarea {
  width: 90%;
  font-family: 'verdana';
  font-size: 1rem;
  padding: 0.5rem;
  margin: 0 auto;
}

.book-an-appointment-form select {
    width: 93%;
}

.signup-form textarea,
.book-an-appointment-form textarea {
  min-height: 20vh;
}

.party-disabled {
    opacity: 0.3;
    pointer-events: none;
}

#signup-btn {
  position: absolute;
  bottom: -5vh;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  text-align: center;
}

#signup-btn {
    bottom: 3%;
}

#signup-btn button,
#book-an-appointment-btn button {
  cursor: pointer;
  font-family: var(--textFont);
}

#book-an-appointment-btn {
  opacity: 0.3;
  pointer-events: none;
  width: 100%;
  text-align: center;
  margin-top: 3vh;
}

#book-an-appointment-btn button {
    font-size: 1.25rem;
    font-family: var(--secondaryFont);
}

/* Request a Quote */
#request-a-quote-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#request-a-quote-content {
    margin-left: 10vh;
}

#request-a-quote-content p:first-of-type {
    text-shadow: var(--subtleTextShadow);
}

#request-a-quote-content p {
    margin: 0;
    padding: 1rem;
}

#request-a-quote-content h2 {
    color: var(--mainYellow);
    font-family: var(--secondaryFont);
    font-size: 12vh;
    line-height: 12vh;
    margin: 0;
    text-shadow: var(--lightWhiteGlow);
}

#request-a-quote-form {
    margin-right: 10vw;
    padding: 1rem;
    align-self: center;
}

#request-a-quote-form > div {
    position: relative;
    background-color: var(--whiteTransparent);
    padding-inline: 10%;
    padding-bottom: 15%;
    color: black;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

#request-a-quote-form > div > div {
    display: grid;
    grid-template-columns: 1fr 9fr;
}

#request-a-quote-form > div > div > span {
    display: grid;
    align-items: center;
    justify-content: center;
}

#request-a-quote-form > div > div > span#request-a-quote-msg-icon {
    align-items: start;
}

#request-a-quote-form > div h2 {
    font-family: var(--secondaryFont);
    margin: 0;
    padding-block: 0;
}

#request-a-quote-form > div textarea {
    height: 20vh;
}

.request-a-quote-icon {
    max-width: 30px;
}

.password-field {
    position: relative;
    min-height: 40px;
}

.password-field > input {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.toggle-password {
    cursor: pointer;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

input.error {
    border: 2px solid red;
}

.loader {
    max-width: 50px;
    height: auto;
}

#request-a-quote-form input,
#request-a-quote-form textarea {
    padding: 0.5rem;
    font-family: var(--textFont);
    font-size: 1rem;
    width: 90%;
}

#request-a-quote-form > div > div#request-a-quote-submit {
    display: block;
    text-align: center;
    margin-left: 2vw;
}

#request-a-quote-submit {
    position: relative;
    height: 60px;
}

#request-a-quote-submit input[type=button] {
    width: 20vw;
}

#request-a-quote-form-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 0;
    right: 0;
    background-color: var(--mainColor);
    background-image: url(/wp-content/themes/firefly-collective/templates/firefly/images/form-corner.webp);
    background-repeat: no-repeat;
    background-size: contain;
}

#request-a-quote-form > div > div#error-txt {
    grid-template-columns: 1fr;
    text-align: center;
    color: red;
}

/* What We Do */

/* Main section heading - Fluid typography with optimal scaling */
.what-we-do > h2 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
    font-family: var(--secondaryFont);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

/* Lead paragraph container - Professional card design */
.what-we-do > .wp-block-group:first-of-type {
    background: linear-gradient(135deg, rgba(27, 154, 170, 0.2) 0%, rgba(26, 83, 92, 0.2) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 214, 0, 0.3);
    border-radius: 16px;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem) !important;
    margin: 0 auto clamp(3rem, 6vw, 5rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 900px !important;
    width: calc(100% - 2rem) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.what-we-do > .wp-block-group:first-of-type:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 214, 0, 0.2);
    border-color: rgba(255, 214, 0, 0.5);
}

/* Lead paragraph - Enhanced readability */
.what-we-do > .wp-block-group:first-of-type p {
    font-family: var(--secondaryFont);
    font-size: clamp(1.125rem, 2.4vw, 1.375rem);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    color: white;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    padding-inline: 0;
    padding-bottom: 0;
}

.what-we-do > .wp-block-group:first-of-type p:nth-of-type(2) {
    margin-bottom: 2rem !important;
}

.what-we-do > .wp-block-group:first-of-type p + p {
    margin-top: 1.5rem !important;
}

.what-we-do .wp-block-button:first-of-type {
    width: 100%;
    display: grid;
    place-content: center;
    margin-bottom: 5vh;
}

.what-we-do .wp-block-button:first-of-type > a {
    max-width: 300px;
    background: var(--mainYellow);
    color: var(--darkTurquoise);
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(2rem, 4vw, 2.75rem);
    border-radius: 50px;
    font-family: var(--mainFont);
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    transition: all 0.3s ease;
    box-shadow: var(--bottomEdgeShadow);
    display: inline-block;
    border: 3px solid transparent;
    cursor: pointer;
}

.what-we-do .wp-block-button:first-of-type > a:hover {
    background: white;
    color: var(--mainColor);
    transform: translateY(-2px);
    box-shadow: var(--lightGoldenGlow);
    border-color: var(--mainYellow);
}

/* Content paragraphs - Optimized for readability */
.what-we-do > p,
.what-we-do .wp-block-list,
.values p {
    max-width: min(65ch, 90vw);
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.005em;
}

/* Service list - Professional hierarchy */
.what-we-do .wp-block-list {
    text-align: center;
    list-style-type: none;
    padding: 0;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    margin-top: clamp(1.5rem, 4vw, 3rem);
}

.what-we-do .wp-block-list li {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-family: var(--secondaryFont);
    font-weight: 500;
    color: var(--mainYellow);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.what-we-do .wp-block-list li:hover {
    transform: translateY(-2px);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
}

/* Custom Package section styling */
.what-we-do > .wp-block-group:has(.wp-block-buttons) {
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem);
    margin: clamp(2rem, 5vw, 4rem) 0;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

/* Call-to-action section headings - Enhanced visual hierarchy */
.what-we-do > .wp-block-group > .wp-block-heading {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    margin: 0 0 clamp(1rem, 3vw, 2rem) 0;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-family: var(--secondaryFont);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Call-to-action paragraphs - Improved readability */
.what-we-do > .wp-block-group > p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    max-width: min(55ch, 90vw);
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.what-we-do > .wp-block-group > .wp-block-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.what-we-do > .wp-block-group > .wp-block-buttons > .wp-block-button {
    margin: 0;
}

/* Button typography - Modern and accessible */
.what-we-do > .wp-block-group > .wp-block-buttons > .wp-block-button > .wp-block-button__link {
    background: var(--mainYellow);
    color: var(--darkTurquoise);
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(2rem, 4vw, 2.75rem);
    border-radius: 50px;
    font-family: var(--mainFont);
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    transition: all 0.3s ease;
    box-shadow: var(--bottomEdgeShadow);
    display: inline-block;
    border: 3px solid transparent;
}

.what-we-do > .wp-block-group > .wp-block-buttons > .wp-block-button > .wp-block-button__link:hover {
    background: white;
    color: var(--mainColor);
    transform: translateY(-2px);
    box-shadow: var(--lightGoldenGlow);
    border-color: var(--mainYellow);
}

@media (max-height: 600px) {
    .what-we-do > .wp-block-group > p {
        margin: 0;
        padding: 0;
    }

    .what-we-do > .wp-block-group > p:first-of-type {
        margin-top: 1rem !important;
    }
}

.wp-block-group.portfolio-card {
    padding-block: 1rem;
}

.wp-block-group.portfolio-card.even {
    background-color: white;
    color: black;
    box-shadow: var(--bottomEdgeShadow);
}

.wp-block-group.portfolio-card > div {
    max-width: 70vw;
    margin: 0 auto;
}

.wp-block-group.portfolio-card figure,
.wp-block-group.portfolio-card p,
.wp-block-group.portfolio-card h2 {
    margin: 0;
}

.wp-block-group.portfolio-card p > a {
    padding: .5rem;
    background-color: var(--darkTurquoise);
    border: 2px solid var(--veryDarkTurquoise);
    border-radius: 10px;
    font-size: 1.5rem;
    font-family: var(--mainFont);
    text-decoration: none;
    box-shadow: var(--normalBoxShadow);
}

.wp-block-group.portfolio-card a:hover {
    color: var(--mainYellow);
}

.wp-block-group.portfolio-card figure img {
    border: 3px solid var(--darkTurquoise);
    box-shadow: var(--normalBoxShadow);
    max-width: 90vw;
    height: auto;
}

.wp-block-group.portfolio-card h2 {
    font-size: 3rem;
}

.wp-block-group.portfolio-card .wp-block-columns {
    display: grid;
    grid-template-columns: 1fr 1fr ;
}

.wp-block-group.portfolio-card .wp-block-column {
    padding: 0;
}

.wp-block-group.portfolio-card .wp-block-column:first-child {
    justify-self: end;
}

.wp-block-group.portfolio-card .wp-block-column:last-child {
    align-self: center;
}

/* Portfolio testimonials - ensure proper centering */
.wp-block-group.portfolio-card p.has-text-align-center {
    text-align: center;
    font-style: italic;
    margin-top: clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
    max-width: 100%;
    grid-column: 1 / -1;
}

/* Testimonials on white background cards */
.wp-block-group.portfolio-card.even p.has-text-align-center {
    color: rgba(0, 0, 0, 0.7);
}

.loader {
    max-height: 50px;
    width: auto;
}

/* Who We Are */

.who-we-are p {
    max-width: 60vw;
    margin: 0 auto;
    text-shadow: var(--subtleTextShadow);
}

/* Firefly Cards - Enhanced Typography */

/* Firefly Card 1 Typography */
.firefly-card-1 h2 {
    color: white;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-family: var(--secondaryFont);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
    padding-block: clamp(0.75rem, 2vw, 1.25rem);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.firefly-card-1 h3 {
    margin: 0;
    padding: 0;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    font-family: var(--secondaryFont);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--mainYellow);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.firefly-card-1 p {
    max-width: 90%;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.005em;
    padding: 0;
    padding-inline: 5%;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
}

.firefly-card-1 .wp-block-columns {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
}

.firefly-card-1 .wp-block-columns > div {
    min-width: 30vw;
}

.firefly-card-1 .wp-block-column,
.wp-block-columns.firefly-card-2 {
    flex: 1 1 auto;
    max-width: 30vw;
    background: var(--mainGradient);
    color: white;
    padding: 0.5rem;
    padding-bottom: 3rem;
    border: 3px solid var(--veryDarkTurquoise);
    border-radius: 10px;
    box-shadow: var(--normalBoxShadow);
    margin-bottom: 2rem;
}

.firefly-card-1 figure {
    width: 100%;
}

.firefly-card-1 figure img {
    max-width: 100px;
    height: auto;
}

/* Package Cards - Base Container */
.what-we-do > .wp-block-group > .wp-block-group {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 2.5rem;
    background: var(--mainGradient);
    border: 2px solid rgba(255, 214, 0, 0.3);
    border-radius: 16px;
    box-shadow: var(--normalBoxShadow);
    z-index: 1;
    transition: all 0.3s ease;
}

.what-we-do > .wp-block-group > .wp-block-group::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/wp-content/themes/firefly-collective/templates/firefly/images/fp-banner-mobile.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    border-radius: 16px;
}

.what-we-do > .wp-block-group > .wp-block-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 214, 0, 0.2);
    border-color: rgba(255, 214, 0, 0.5);
}

/* Header Section - Centered */
.what-we-do > .wp-block-group > .wp-block-group > .wp-block-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Main Packages Section Heading */
.what-we-do > h2.has-text-align-center {
    font-family: var(--secondaryFont);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--mainYellow);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    margin: 4rem 0 3rem;
    padding: 0;
}

/* Package Title */
.what-we-do > .wp-block-group > .wp-block-group h2 {
    font-family: var(--mainFont);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--mainYellow);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Package Image */
.what-we-do > .wp-block-group > .wp-block-group figure {
    margin: 0;
    display: flex;
    justify-content: center;
}

.what-we-do > .wp-block-group > .wp-block-group figure img {
    max-width: clamp(180px, 20vw, 280px);
    height: auto;
}

/* Package Button Container */
.what-we-do > .wp-block-group > .wp-block-group .wp-block-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}

.what-we-do > .wp-block-group > .wp-block-group .wp-block-button {
    margin: 0;
}

/* Package Button Styling */
.what-we-do > .wp-block-group > .wp-block-group .wp-block-button__link {
    display: inline-block;
    padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1.75rem, 3.5vw, 2.5rem);
    background: linear-gradient(135deg, var(--mainYellow) 0%, #FFB700 100%);
    color: var(--veryDarkTurquoise);
    font-family: var(--mainFont);
    font-size: clamp(1.125rem, 2.3vw, 1.375rem);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    border-radius: 50px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
    text-shadow: none;
}

.what-we-do > .wp-block-group > .wp-block-group .wp-block-button__link:hover {
    background: linear-gradient(135deg, #FFD700 0%, var(--mainYellow) 100%);
    color: var(--mainColor);
    transform: translateY(-2px);
    box-shadow: var(--lightGoldenGlow);
    border-color: var(--mainYellow);
}

/* Feature Columns - Responsive Grid */
.what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0;
}

/* Spacing between multiple column groups */
.what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns + .wp-block-columns {
    margin-top: 2rem;
}

/* Force specific column counts based on number of children */
/* 2 columns */
.what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns:has(.wp-block-column:nth-child(2):last-child) {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* 3 columns */
.what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns:has(.wp-block-column:nth-child(3):last-child) {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* 4 columns */
.what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns:has(.wp-block-column:nth-child(4):last-child) {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Individual Feature Column */
.what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns > .wp-block-column {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

/* Feature Text */
.what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns p {
    font-family: var(--textFont);
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
    text-align: left;
}

.what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns strong {
    color: var(--mainYellow);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
    font-size: clamp(1.125rem, 2vw, 1.3rem);
    text-align: left;
}

#error-txt {
    color: black;
    font-weight: bold;
}

@media (max-width: 1500px) {
    .wp-block-columns.firefly-card-2 li {
        font-size: 1rem;
    }
}

@media (max-width: 1400px) {
    #fp-banner p:first-of-type {
        font-size: 4vh;
    }
    
    #fp-banner p:nth-of-type(2) {
        font-size: 10vh;
    }

    .dynamic-card > figure:first-child {
        left: 10%;
    }

    .firefly-card-1 .wp-block-column {
        max-width: 40vw;
    }

    #request-a-quote-content h2 {
        font-size: 8vh;
        line-height: 8.5vh;
    }

    .wp-block-group.portfolio-card > div {
        max-width: 90vw;
    }

    .wp-block-group.portfolio-card .wp-block-columns {
        grid-template-columns: 1fr;
    }

    .wp-block-group.portfolio-card .wp-block-columns {
        gap: 0;
    }

    .wp-block-group.portfolio-card.even .wp-block-columns .wp-block-column:first-child {
        padding-bottom: 2rem;
    }

    #book-an-appointment-content,
    .book-an-appointment-form {
        max-width: 70vw;
    }
}

@media(max-width: 1300px) {
    .book-an-appointment-form > div:nth-of-type(2) {
        width: 50vh;
    }
}

/* Tablet Breakpoint - Adjust grid to 2 columns */
@media(max-width: 1000px) {
    .what-we-do > .wp-block-group > .wp-block-group {
        padding: 2rem;
    }

    .what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns + .wp-block-columns {
        margin-top: 1.5rem;
    }

    .what-we-do > .wp-block-group > .wp-block-group figure img {
        max-width: clamp(150px, 25vw, 220px);
    }

    /* Removed font-size override - using fluid typography */
    .what-we-do .wp-block-list li {
        margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    }

    .book-an-appointment-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .book-an-appointment-form > div:nth-of-type(2) {
        width: 90vw;
        height: auto;
        justify-self: center;
    }

    #book-an-appointment-btn {
        margin-bottom: 5vh;
    }
}

@media (max-width: 950px) {

    .dynamic-card > figure:first-child {
        position: static;
    }

    .dynamic-card h2 {
        text-align: center;
    }

    .dynamic-card  p {
        max-width: 80vw;
    }

    /* Enhanced mobile spacing for what-we-do */
    .what-we-do > p,
    .values p {
        max-width: 95vw;
        padding: clamp(0.75rem, 2vw, 1rem);
        padding-bottom: clamp(1.5rem, 4vw, 2rem);
    }

    #request-a-quote-container {
        grid-template-columns: 1fr;
    }

    #request-a-quote-content,
    #request-a-quote-form {
        margin-right: 1rem;
        margin-left: 1rem;
    }

}

/* Mobile Breakpoint - Single column layout */
@media (max-width: 800px) {

    body:not(.home) main {
        margin-top: 10vh;
    }

    .what-we-do > .wp-block-group > .wp-block-group {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns + .wp-block-columns {
        margin-top: 1.25rem;
    }

    .what-we-do > .wp-block-group > .wp-block-group figure img {
        max-width: clamp(140px, 35vw, 200px);
    }

    .what-we-do > .wp-block-group > .wp-block-group .wp-block-button__link {
        padding: 0.75rem 1.5rem;
        font-size: 1.125rem;
    }
    #fp-banner {
        align-items: start;
        justify-content: center;
        grid-template-columns: auto;
        grid-template-rows: 1fr 1fr;
    }

    #fp-banner p:first-of-type {
        font-size: 3vh;
    }
    
    #fp-banner p:nth-of-type(2) {
        font-size: 8vh;
    }

    #fp-banner > div:first-of-type {
        max-width: 80vw;
    }

    #fp-banner > div:first-of-type {
        margin-top: 5vh;
        width: auto;
    }

    #fp-banner > div:nth-of-type(2) {
        max-width: 70vw;
        font-size: 4vh;
    }

    #request-a-quote-content h2 {
        text-align: center;
    }

    .contact-form {
        max-width: 70vw;
        padding: 5vw;
        padding-bottom: 20vw;
    }


    .who-we-are p {
        max-width: 90vw;
    }

    .firefly-card-1 .wp-block-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0;
        margin-bottom: 1rem;
    }

    .firefly-card-1 .wp-block-column {
        margin: 0 auto;
        max-width: 80vw;
    }

}

/* Small Mobile - Extra compact */
@media (max-width: 600px) {

    main {
        min-height: 800px;
        margin-bottom: 12vh;
    }

    .what-we-do > .wp-block-group > .wp-block-group {
        padding: 1rem;
        margin-bottom: 2.5rem;
    }

    .what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns {
        gap: 1rem;
    }

    .what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns + .wp-block-columns {
        margin-top: 1rem;
    }

    .what-we-do > .wp-block-group > .wp-block-group figure img {
        max-width: clamp(120px, 40vw, 180px);
    }

    .what-we-do > .wp-block-group > .wp-block-group h2 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    .what-we-do > .wp-block-group > .wp-block-group .wp-block-button__link {
        padding: 0.65rem 1.25rem;
        font-size: 1rem;
    }

    .what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns p {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        line-height: 1.4;
        text-align: left;
    }

    .what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns strong {
        font-size: clamp(1.125rem, 2.5vw, 1.25rem);
        margin-bottom: 0;
        line-height: 1.3;
        text-align: left;
    }

    .what-we-do > .wp-block-group > .wp-block-group > .wp-block-columns > .wp-block-column {
        gap: 0;
        align-items: center;
    }

    #visual-backdrop {
        background-image: url(/wp-content/themes/firefly-collective/templates/firefly/images/visual-backdrop-mobile.webp);
        background-size: cover;
    }

    #fp-banner > div:first-of-type {
        max-width: 90vw;
    }

    footer {
        background-image: url(/wp-content/themes/firefly-collective/templates/firefly/images/footer-bg-mobile.webp);
    }

    #book-an-appointment-btn {
        bottom: 3vh;
    }

    #request-a-quote-form > div > div {
        grid-template-columns: 1.5fr 8.5fr;
    }

    .wp-block-group.portfolio-card h2 {
        font-size: 2rem;
    }

    #book-an-appointment-content,
    .book-an-appointment-form {
        max-width: 90vw;
    }

    .book-an-appointment-form > div:nth-of-type(2) {
        max-height: 50vh;
    }
    
    #request-a-quote-form > div h2 {
        font-size: 1.5rem;
    }

    /* Removed font-size override - using fluid typography */
    .what-we-do > h2 {
        margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
    }

    .what-we-do .wp-block-list {
        max-width: 95vw;
        margin-bottom: clamp(1.5rem, 4vw, 3rem);
    }

    .firefly-card-1 figure img {
        max-width: 100px;
        height: auto;
    }

    .firefly-card-1 .wp-block-column h2 {
        font-size: 1.75rem;
    }


    .subscribe p,
    .signup-form {
        width: 90vw;
        max-width: 90vw;
    }

    #book-an-appointment-btn {
        bottom: -75px;
    }
}

@media (max-height: 600px) {
    #fp-banner p:first-of-type {
        font-size: 3.5vh;
    }

    #fp-banner > div:first-of-type p:nth-of-type(2) {
        font-size: 9vh;
    }

    main {
        margin-bottom: 15vh;
    }

    .what-we-do > .wp-block-group:first-of-type {
        padding: 0 !important;
    }

    .what-we-do > .wp-block-group:first-of-type p {
        font-size: 1rem;
        padding-inline: 1rem;
    }

    .what-we-do > .wp-block-group:first-of-type p:nth-child(2) {
        margin-bottom: .5rem;
    }
}

/* Mobile - Contact sticky size reduction */
@media (max-width: 800px) {
    #contact-sticky {
        padding: 0.35rem;
        font-size: 1.05rem;
        bottom: 14px;
        right: 14px;
    }

    #contact-sticky h3 {
        font-size: 1.05rem;
    }
}

@media (max-width: 400px) {
    #logo-name {
        top: 14px !important;
    }

    #hamburger,
    #close-nav-btn {
        top: 10px !important;
    }

    #logo-name img {
        max-height: 5vh !important;
    }

    #site-name {
        font-size: 1.5rem !important;
    }

    .wp-block-group.dynamic-card {
        padding: 0.5rem;
    }

    #request-a-quote-form {
        padding: 0.5rem;
    }

    #request-a-quote-form input,
    #request-a-quote-form textarea {
        width: 80%;
        margin-bottom: .5rem;
    }

    #request-a-quote-form > div h2 {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    #request-a-quote-form > div {
        padding: 0;
        padding-top: 2rem;
        padding-bottom: 5rem;
    }

    #request-a-quote-submit input[type=button] {
        margin-top: 1rem;
        width: 50%;
    }

    #fp-banner p:first-of-type {
        font-size: 2.5vh;
    }

    #fp-banner p:nth-of-type(2) {
        font-size: 7vh;
    }
}