/* Layout & Structural Elements */

/* Header & Navigation */
header {
    background-color: var(--deep-green);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 250px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--golden-yellow);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--golden-yellow);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--golden-yellow);
    outline-offset: 4px;
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
}

.mobile-menu-btn:focus-visible {
    outline: 2px solid var(--golden-yellow);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--forest-green) 100%);
    color: var(--off-white);
    padding: 6rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Multiple layered background decorations for depth */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 40%, rgba(232, 185, 35, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 10% 80%, rgba(232, 185, 35, 0.08) 0%, transparent 30%);
    pointer-events: none;
}

/* Decorative circles in hero - more visible and layered */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-decoration-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(232, 185, 35, 0.25) 0%,
        rgba(232, 185, 35, 0.15) 20%,
        rgba(232, 185, 35, 0.08) 40%,
        transparent 70%
    );
    top: -200px;
    right: -150px;
}

.hero-decoration-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 70%
    );
    bottom: -150px;
    left: -100px;
}

/* Additional decorative elements for interest */
.hero::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(232, 185, 35, 0.12) 0%,
        rgba(232, 185, 35, 0.06) 35%,
        transparent 65%
    );
    top: 30%;
    right: 20%;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-content .cta-button {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(0, 0, 0, 0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Container */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--off-white);
    position: relative;
}

/* Subtle decorative corner elements for section-alt */
.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top right, rgba(43, 93, 79, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.section-alt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at bottom left, rgba(232, 185, 35, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.section-dark {
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--forest-green) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(232, 185, 35, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 3rem;
    color: var(--deep-green);
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 0.75rem;
    vertical-align: -0.05em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232B5D4F'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 4px rgba(232, 185, 35, 0.6));
}

.section-dark h2::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E8B923'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 6px rgba(232, 185, 35, 0.8));
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--forest-green);
}

/* Grid Systems */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
}

/* Subtle connecting pattern behind benefits grid */
.benefits-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image:
        radial-gradient(circle, rgba(232, 185, 35, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure benefit cards appear above the pattern */
.benefits-grid > * {
    position: relative;
    z-index: 1;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    position: relative;
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h4 {
    color: var(--golden-yellow);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--light-grey);
    margin-bottom: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer-section a {
    color: var(--light-grey);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
    width: fit-content;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--golden-yellow);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--golden-yellow);
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-section a:focus-visible {
    outline: 2px solid var(--golden-yellow);
    outline-offset: 2px;
    border-radius: 2px;
}

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

.footer-bottom p {
    color: var(--light-grey);
    font-size: 0.9rem;
    margin: 0;
}

.footer-credit-link {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit-link:hover {
    color: var(--golden-yellow);
    text-decoration: underline;
}

.footer-credit-link:focus-visible {
    outline: 2px solid var(--golden-yellow);
    outline-offset: 2px;
    border-radius: 2px;
}

.bold-text {
    font-weight: 700;
}

.semi-bold-text {
    font-weight: 600;
}

.footer-separator {
    margin: 0 0.75rem;
    opacity: 0.5;
}

/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--golden-yellow);
    color: var(--charcoal);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    background-color: var(--warm-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}