/*
=====================================================
    Theme: Sandbox
    Author: Lyle Properties
    Version: 15.0
=====================================================
*/

/* 1. Variables & Root Styles */
:root {
    --primary-color: #FFD166;
    /* Sunny Yellow */
    --secondary-color: #06D6A0;
    /* Teal */
    --accent-color: #EF476F;
    /* Coral */
    --dark-color: #1E2A3A;
    /* Navy Blue */
    --medium-color: #6D778B;
    --light-color: #F8F9FA;
    --bg-color: #FFFCF5;
    /* Sandy off-white */
    --border-color: #E0E0E0;

    --font-primary: 'Figtree', sans-serif;
    --font-weight-normal: 400;
    --font-weight-bold: 600;
    --font-weight-black: 800;

    --transition-speed: 0.3s;
    --container-width: 1140px;
    --section-padding: 120px 0;
}

/* 2. Base & Reset Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--dark-color);
    line-height: 1.7;
}

h1,
h2,
h3,
h4 {
    font-weight: var(--font-weight-black);
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
}

h2 {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--medium-color);
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* 3. Animations & Utilities */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(-5deg);
    }
}

.animate-on-load {
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-padding {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.text-center p,
.text-center h2 {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title .subtitle {
    color: var(--medium-color);
    font-weight: var(--font-weight-bold);
}

/* 4. Header & Navigation */
#main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background-color: rgba(255, 252, 245, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: var(--font-weight-bold);
}

#hamburger-btn {
    display: none;
    background: none;
    border: none;
    z-index: 1001;
}

#hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: all var(--transition-speed);
    border-radius: 2px;
}

#hamburger-btn span:not(:last-child) {
    margin-bottom: 5px;
}

/* 5. CTA Button */
.cta-button {
    padding: 1rem 2rem;
    background: var(--dark-color);
    color: white;
    border-radius: 50px;
    border: 2px solid var(--dark-color);
    transition: all var(--transition-speed);
}

.cta-button:hover {
    background: transparent;
    color: var(--dark-color);
    transform: translateY(-3px);
}

.header-cta {
    padding: 0.75rem 1.5rem;
}

/* 6. Background Blobs */
.background-blob {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.3;
}

.shape1 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: 10%;
    left: 5%;
    animation: float 15s infinite ease-in-out;
}

.shape2 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    bottom: 15%;
    right: 10%;
    animation: float 18s infinite ease-in-out reverse;
}

.shape3 {
    width: 350px;
    height: 350px;
    background: var(--primary-color);
    bottom: -150px;
    left: 15%;
    animation: float 20s infinite ease-in-out;
}


/* 7. Hero Section */
#hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

#hero .container {
    text-align: center;
}

#hero .subtitle {
    color: var(--dark-color);
    font-size: 1.1rem;
}

#hero h1 {
    max-width: 900px;
    margin: 1rem auto;
}

#hero .highlight {
    color: var(--primary-color);
}

#hero p {
    font-size: 1.2rem;
    max-width: 60ch;
    margin: 1.5rem auto 2.5rem;
}

/* 8. Services Section */
#services {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--dark-color);
    transform: rotate(-2deg);
    background-color: var(--white-color);
    transition: transform var(--transition-speed);
}

.service-card:nth-child(even) {
    transform: rotate(2deg);
}

.service-card:hover {
    transform: rotate(0) translateY(-10px);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 9. Philosophy (Building Blocks) Section */
#philosophy {
    background: var(--white-color);
}

.philosophy-blocks {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.block {
    padding: 1.5rem 2rem;
    border-radius: 50px;
    background: var(--light-color);
    color: var(--dark-color);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.block h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin: 0;
}

.block:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

#tooltip-display {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
    white-space: nowrap;
}

#tooltip-display::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-color) transparent transparent transparent;
}


/* 10. Process Section */
#process {
    background-color: var(--light-color);
}

.process-grid {
    max-width: 800px;
    margin: auto;
    display: grid;
    gap: 1.5rem;
}

.process-card {
    border-radius: 12px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.process-card-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.1rem;
}

.process-card-header h3 {
    margin: 0;
    flex-grow: 1;
    text-align: left;
    margin-left: 1.5rem;
    font-size: 1.2rem;
}

.process-card-header i {
    margin-left: auto;
    transition: transform var(--transition-speed);
}

.process-card.open .process-card-header i {
    transform: rotate(45deg);
}

.process-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.process-card-content p {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* 11. Results Section */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    color: var(--medium-color);
    font-weight: 600;
    font-size: 1rem;
}

.stat-item p {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin: 0;
    color: var(--primary-color);
}

/* 12. Testimonial Section */
#testimonial {
    background: var(--secondary-color);
}

.quote {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

cite {
    color: var(--dark-color);
    font-style: normal;
    font-weight: 600;
}

/* 13. Final CTA Section */
#final-cta {
    background: var(--primary-color);
    position: relative;
}

#final-cta h2,
#final-cta p {
    color: var(--dark-color);
}

#final-cta p {
    max-width: 600px;
    margin: 1rem auto 2rem;
}

#final-cta .cta-button {
    background-color: var(--dark-color);
    color: var(--white-color);
}

#final-cta .cta-button:hover {
    background: #000;
}

/* 14. Page & Legal Styles */
.page-header {
    padding: 140px 0;
    position: relative;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 2rem;
}

#contact-page .contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item div {
    margin-top: 0.5rem;
}

.contact-item p {
    margin: 0;
}

/* 15. Footer */
#main-footer {
    padding: 80px 0;
    background-color: var(--light-color);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-col a {
    font-weight: 600;
}

/* 16. Responsive Design */
@media (max-width: 991px) {
    .header-cta {
        display: none;
    }

    #hamburger-btn {
        display: block;
    }

    .nav-open #main-nav {
        transform: translateX(0);
    }

    .nav-open #hamburger-btn .bar:first-of-type {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-open #hamburger-btn .bar:nth-of-type(2) {
        opacity: 0;
    }

    .nav-open #hamburger-btn .bar:last-of-type {
        transform: translateY(-8px) rotate(-45deg);
    }

    #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--white-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform var(--transition-speed);
        z-index: 1000;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {

    .results-grid,
    #contact-page .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .results-title {
        text-align: center;
        margin-bottom: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        text-align: center;
    }
}