/*
 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
 Text Domain:  generatepress_child
*/

/* html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
} */

/* Reset for back-to-top button using its class */
/* html.generate-back-to-top-scrolling {
    scroll-behavior: auto;
} */

/* === Variables === */
:root {
    --primary-exact: #3386c8;
    --primary-darker: #296ba0;
    --primary-40darker: #1f5078;
    --primary-heading: #2f3338;
    --primary-text: #383c41;
    --secondary: #e67e22;
    /* Orange accent color */
    --tertiary: #6c8c84;
    /* Muted teal accent */
    --light: #f5f5f5;
    /* Light background */
    --dark: #333;
    /* Dark text color */
    --logo-dark: #2c2e35;
    --new-secondary: #e67e22;
    /* Used in footer */
    --max-width: 1200px;
    /* Standard container width */
    --section-spacing: 5rem;
    /* Vertical spacing between sections */
    --card-radius: 8px;
    /* Standard border radius for cards */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Standard shadow */
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow on hover */
    --transition: all 0.3s ease;
    /* Standard transition */
}

/* :root {
    --primary-exact: #3386c8;
    --primary-darker: #296ba0;
    --logo-dark: #2c2e35;
    --secondary: #e67e22;
    --tertiary: #6c8c84;
    --light: #f5f5f5;
    --dark: #333;
    --max-width: 1200px;
    --section-spacing: 5rem;
} */

/* === Layout & Container Styles === */
.container-1200 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.container-1200-special {
    max-width: 1200px;
    margin: 2rem auto 1rem;
    padding: 1rem 2rem 2rem;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.container-full {
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.mine-container-contained {
    margin: 1rem 0 2rem;
    padding: 1rem 2rem;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.center-this {
    text-align: center !important;
}

.hideme {
    display: none;
}

.invisibleme {
    visibility: hidden;
}

@media (max-width: 1200px) {
    .container-1200 {
        padding: 1rem 1.5rem 0;
    }
}

/* === Typography === */
/* Updated typography to match homepage styles */
h1,
h2,
h3,
h4,
.geo-wrapper h1,
.geo-wrapper h2,
.geo-wrapper h3,
.geo-wrapper h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-heading)
}


.geo-hero-overlay h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white !important;
    animation: 1s ease 0s 1 normal none running fadeInUp;
    text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    letter-spacing: 0.5px;
}


.geo-hero-overlay p {

    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white !important;
    animation: 1s ease 0.2s 1 normal both running fadeInUp;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-heading);

}

h1 {
    font-size: 2.6rem;
}

h2 {
    font-size: 2.3rem;

}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

.geo-wrapper p {
    margin-bottom: 1rem;
}

.geo-wrapper p {
    margin: 0 0 1.5em;
    font-size: 1rem;
    line-height: 1.4;
    color: inherit;
    hyphens: auto;
    word-wrap: break-word;
    color: var(--primary-text);
}

p.cards {
    margin: 0;
}

p:first-child {
    margin-top: 0;
}

.geo-wrapper .geo-link a {
    color: var(--primary-darker);
    text-decoration: none;
    transition: all 0.3s ease;
}

.geo-wrapper .geo-link a:hover {
    color: var(--secondary);
}

h2.customUnderline {
    position: relative;
    padding-bottom: 0.5rem;
}

h2.customUnderline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background-color: currentColor;
}

/* Responsive Typography */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.40rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    p {
        line-height: 1.2;
        margin-bottom: 1.25em;
    }
}

/* === Navigation === */
nav.stuckElement .main-navigation .navigation-branding img {
    padding: 10px 0;
}

nav:not(.stuckElement) .main-navigation .navigation-branding img {
    padding: 5px 0;
}

.main-nav .dropdown-menu-toggle .gp-icon.icon-arrow {
    transform: scale(1.4) translateY(1px);
    transform-origin: center;
    margin-left: 0.15rem;
    display: inline-block;
}

/* === Button Styles === */
.geo-button {
    display: inline-block;
    /* padding: 0.8rem 1.8rem; */
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    /* min-width: 150px; */
    text-align: center;
    padding: 0.5rem 1rem;
    margin: 5px;
    position: relative;
    overflow: hidden;
}

.geo-button--primary {
    background-color: var(--primary-darker);
    color: white !important;
    border: 2px solid var(--primary-darker);
}

.geo-button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-exact) !important;
    border: 2px solid var(--primary-exact);
}

.geo-button--outline {
    background-color: transparent !important;
    color: white !important;
    border: 2px solid white;
}

.geo-button--outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: transparent !important;
    color: white !important;
    border: 2px solid white;
}

/* === Card Styles === */
.geo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    background-color: white;
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.geo-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.geo-card .geo-btn,
.geo-card .geo-button {
    margin-top: auto;
    align-self: start;
}

/* Grid Layout */
.geo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .geo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .geo-grid {
        grid-template-columns: 1fr;
    }
}

/* === Footer Styles === */
.site-footer {
    font-family: 'Tinos', serif;
}

.site-footer *,
.gb-container {
    border-color: #756868;
}

.site-footer figure.wp-block-image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.geo-social-icons svg {
    width: 1.2rem !important;
    height: 1.2rem !important;
    display: inline-block;
    vertical-align: middle;
}

/* New Footer Styles */
.footer-column h3 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-size: 22px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--new-secondary);
}

.footer-column p {
    margin-bottom: 25px;
}

.footer-column p,
.footer-column a,
.footer-column span,
.footer-column h3,
.footer-bottom p {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

.my-footer .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    transition: all 0.3s ease;
}

.my-footer .social-icon:hover {
    background-color: var(--new-secondary);
    color: white !important;
}

.my-footer .social-icon svg {
    width: 16px;
    height: 16px;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--new-secondary);
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ccc;
}

.contact-icon {
    margin-right: 15px;
    flex-shrink: 0;
    color: var(--new-secondary);
    width: 16px;
    height: 16px;
    top: 1px;
}

.footer-contact p {
    margin: 0;
    padding: 0;
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--new-secondary);
}

.main-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.footer-bottom p {
    color: #cccccc;
    font-size: 14px;
    margin: 0;
}

/* === Back to Top Button === */
.generate-back-to-top,
.generate-back-to-top:visited {
    background-color: var(--primary-darker) !important;
    color: #EBF3FA;
    border-radius: 5px;
    opacity: 0.75;
}

.generate-back-to-top:hover,
.generate-back-to-top:focus {
    background-color: var(--primary-exact) !important;
    color: #EBF3FA;
}

/* === Mobile Specific Styles === */
@media (max-width: 768px) {
    .sub-menu li a {
        padding-left: 50px !important;
    }

    .sub-menu li {
        margin-bottom: 0.5rem !important;
    }

    .sub-menu li:last-child {
        margin-bottom: 1rem !important;
    }

    .main-nav .dropdown-menu-toggle .gp-icon.icon-arrow {
        transform: scale(1.4) translateY(0px);
        margin-left: 0;
    }

    .navigation-stick .site-logo img.header-image {
        height: 70px !important;
        width: auto !important;
    }

    .menu-toggle .gp-icon.icon-menu-bars svg {
        transform: scale(1.5);
        transform-origin: center;
        margin-right: 0.5em;
    }

    .navigation-stick .menu-toggle .gp-icon.icon-menu-bars svg {
        transform: scale(1.3);
        transform-origin: center;
        margin-right: 0.5em;
    }

    .generate-back-to-top,
    .generate-back-to-top:visited {
        line-height: 30px;
        width: 30px;
        font-size: 1.5rem;
        right: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 1240px) {
    .main-footer-container {
        padding: 0 20px;
    }
}



/* ======== HERO SECTION FOR ALL PAGES (non-home) =========== */


.geo-hero-overlay {
    position: relative;
    height: calc(100vh - 100px) !important;
}

.geo-hero-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
    pointer-events: none;
}

/* Make sure content appears above the overlay */
.geo-hero-overlay>* {
    position: relative;
    z-index: 2;
}

/* Button Styles */

.geo-hero-overlay .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}


.geo-hero-overlay .btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 150px;
    text-align: center;
    padding: 10px 20px;
    margin: 5px;
    position: relative;
    overflow: hidden;
}

.geo-hero-overlay .btn-primary {
    background-color: var(--primary-darker);
    color: white !important;
    border: 2px solid var(--primary-darker);

}

.geo-hero-overlay .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-exact) !important;
    border: 2px solid var(--primary-exact);
}

.geo-hero-overlay .btn-secondary {
    background-color: var(--secondary);
    color: white !important;
    border: 2px solid var(--secondary);
}

.geo-hero-overlay .btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary) !important;
}

.geo-hero-overlay .btn-outline {
    background-color: transparent;
    color: white !important;
    border: 2px solid white;
}

.geo-hero-overlay .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: transparent !important;
    border-color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.geo-hero-overlay .hero .btn-primary:hover {
    box-shadow: 0 0 20px 5px rgba(26, 105, 133, 0.4);
    transform: translateY(-3px);
}

.geo-hero-overlay .hero .btn-outline:hover {
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.geo-hero-overlay .hero .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}




/* Responsive Styles */
@media (max-width: 1024px) {
    .geo-hero-overlay h1 {
        font-size: 3rem;
    }


}

@media (max-width: 768px) {
    .geo-hero-overlay h1 {
        font-size: 2.5rem;
    }

    .geo-hero-overlay p {
        font-size: 1.1rem;
    }

    .geo-hero-overlay .hero-buttons {
        flex-direction: column;
    }



    .geo-hero-overlay .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }



}


/* Add responsive padding at smaller screen sizes */
@media (max-width: 1240px) {

    .geo-hero-overlay,
    .geo-content-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {

    .geo-hero-overlay,
    .geo-content-section {
        padding-left: 20px;
        padding-right: 20px;


        /* height: calc(100vh - 100px) !important; */
        /* Adjust 60px to match your navbar height */


    }
}

.geo-content-section {
    max-width: 800px !important;
}

.geo-content-section p {
    line-height: 1.5;
}

/* Base padding for all content sections */
/* padding-bottom: 2rem; */
/* .geo-content-section {
    
} */

/* Additional top padding for all but the first section */
.geo-content-section:not(:first-child) {
    padding-top: 2rem;
}

/* .geo-content-section h3 {
    padding-left: 0.75rem;
    border-left: 3px solid #2f3338; 
    line-height: 1.2;
} */

/* Lighter version of heading color */
/* .geo-content-section h3 {
    padding-left: 0.75rem;
    border-left: 3px solid rgba(47, 51, 56, 0.4); 
    line-height: 1.2;
} */

/* Blue accent - good for geology theme */
/* .geo-content-section h3 {
    padding-left: 0.75rem;
    border-left: 3px solid #3a7ca5; 
    line-height: 1.2;
} */

/* Very subtle, thicker border */
/* .geo-content-section h3 {
    padding-left: 1rem;
    border-left: 4px solid rgba(47, 51, 56, 0.2); 
    line-height: 1.2;
} */

.geo-content-section h3 {
    padding-left: 1rem;
    border-left: 4px solid var(--primary-exact);
    /* Using your logo's blue color */
    line-height: 1.2;
}


@media (min-width: 1024px) {
    /* Style for parent items with dropdown menus */
    .menu-item-has-children > a {
        position: relative;
    }
    
    /* Add a consistent hover effect for main menu items */
    .main-nav .menu > li > a:hover {
        color: var(--primary-exact);
    }
    
    /* Style the dropdown menu */
    .main-nav .sub-menu {
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        border-radius: 0 0 4px 4px;
        padding: 10px 0;
    }
    
    /* Style the dropdown menu items */
    .main-nav .sub-menu a {
        padding: 8px 15px;
        transition: background-color 0.2s ease;
    }
    
    /* Hover effect for dropdown items */
    .main-nav .sub-menu a:hover {
        background-color: rgba(0,0,0,0.05);
    }
    
    /* Style for active items in dropdown */
    .main-nav .sub-menu a[aria-current="page"] {
        border-left: 4px solid var(--primary-exact);
        padding-left: 22px; /* 15px - 4px border */
        background-color: rgba(0,0,0,0.05) !important;
    }
    
    /* Remove the bottom indicator for sub-menu items */
    .main-nav .sub-menu a[aria-current="page"]::after {
        display: none;
    }
}

@media (min-width: 1024px) {
    .main-nav a[aria-current="page"] {
        position: relative;
    }

    
    .main-nav a[aria-current="page"]::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 80%;
        height: 2px;
        background-color: var(--primary-exact);
        transform: translateY(-25px) translateX(-50%);
    }
    
    
    .is_stuck .main-nav a[aria-current="page"]::after,
    .navigation-stick .main-nav a[aria-current="page"]::after {
        transform: translateY(-12px) translateX(-50%); 
    }
}


/* SVG Animation styling */
.svg-animation {
    width: 100%;
    max-width: 455px;
    margin: 30px 0; /* Changed from 'margin: 30px auto' to remove horizontal centering */
    text-align: left; /* Changed from 'text-align: center' to left align */
}

.svg-animation svg {
    max-width: 100%;
    height: auto;
    display: block; /* Makes the SVG behave like a block element */
}
