:root {
    --brand-color: #558bff;
    --sky-gradient: linear-gradient(180deg, #a8d5f8 0%, #c3d7e6 70%, #e8eff5 100%);
    --base-background: #2d3748;
    --card-background: #4a5568;
    --footer-background: #2d3748;
    --text-color: #e2e8f0;
    --heading-color: #ffffff;
    --dark-text-color: #4a5568;
    --dark-heading-color: #1a202c;
    --hero-heading-color: #1a202c;
    --hero-text-color: #374151;
    --hero-highlight-color: #3978ff;
    --shading: 0px 4px 6px rgba(0, 0, 0, 0.2);
    --filter-shading: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.2));
    --cta-gradient: linear-gradient(45deg, #3978ff, #234896);
    --cta-heading-color: #ffffff;
    --cta-text-color: #e2e8f0;
    --cta-button-bg: var(--base-background);
    --cta-button-text: var(--brand-color);
    --cta-button-hover-bg: #2e3542;
}

body {
    background-color: var(--base-background);
    color: var(--text-color);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
}

/* Visually hidden but accessible label helper */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: 8px;
    top: 8px;
    transform: translateY(-150%);
    background: #111827;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 1000;
    transition: transform 150ms ease;
}
.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--brand-color);
    outline-offset: 2px;
}

.hero {
    width: 100%;
    min-height: 85vh;
    background: var(--sky-gradient);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: var(--shading);
    color: var(--dark-heading-color);
    display: flex;
    flex-direction: column;
}

.hero-mini {
    min-height: 88px !important;
}

.hero-header {
    top: 0;
    z-index: 50;
    padding: 0.75rem 1.5rem;
}

@media (min-width: 640px) {
     .hero-header {
         padding: 1rem 3rem;
     }
}

.hero-logo {
    height: 48px;
    filter: var(--filter-shading);
    transition: transform 200ms ease, filter 200ms ease;
    cursor: pointer;
}

.hero-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0.25));
}

.hero-link a {
    color: var(--dark-heading-color);
    font-weight: 500;
    transition: color 200ms ease, transform 150ms ease;
    display: inline-block;
    padding: 0.5rem 0;
}

.hero-link a:hover {
    color: var(--hero-highlight-color);
    transform: translateY(-1px);
}

.hero-dropdown {
    position: relative;
    display: inline-block;
}

.hero-dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    z-index: 100;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 200ms ease, transform 200ms ease;
    margin-top: 0px;
    left: 0;
}

.hero-dropdown:hover .hero-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.hero-dropdown-content .hero-link a {
    padding: 8px 16px;
    display: block;
    font-weight: 400;
    color: var(--dark-heading-color);
}

.hero-dropdown-content .hero-link a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--hero-highlight-color);
    font-weight: 500;
    transform: none;
}

.hero-dropdown:hover > a {
    color: var(--hero-highlight-color);
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    gap: 3rem;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 3rem 3rem;
        gap: 2rem;
    }
 }

.hero-text-content {
    text-align: center;
}

@media (min-width: 768px) {
    .hero-text-content {
        text-align: left;
        flex-basis: 55%;
    }
}

.hero-content h1 {
    color: var(--hero-heading-color);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    color: var(--hero-text-color);
    max-width: 600px;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-content p {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-content button {
    background: var(--cta-gradient);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--heading-color);
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 700;
    transition: all 200ms ease;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.hero-content button:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    filter: brightness(105%);
    transform: translateY(-2px);
}

.hero-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-basis: 40%;
}

.hero-icons {
    display: flex;
    gap: 1.5rem;
    color: rgba(45, 55, 72, 0.3);
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.1));
    font-size: 5rem;
}

.hero-icons.side-page {
    font-size: 9rem;
}

@media (min-width: 768px) {
    .hero-icons {
        font-size: 6rem;
        gap: 2rem;
    }

    .hero-icons.side-page {
        font-size: 10rem;
    }
 }

 @media (min-width: 1024px) {
    .hero-icons {
        font-size: 7rem;
        gap: 2.5rem;
    }

    .hero-icons.side-page {
        font-size: 11rem;
    }
}

.hero-icons i {
    transition: color 200ms ease, transform 200ms ease;
}

.hero-icons i:hover {
     color: rgba(45, 55, 72, 0.5);
     transform: scale(1.05) translateY(-2px);
}

.card {
    background: var(--card-background);
    box-shadow: var(--shading);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    width: 100%;
    color: var(--text-color);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
     transform: translateY(-3px);
     box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.25);
}

.card h1 {
    color: var(--heading-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.card h2,
.card h3 {
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card p {
    color: var(--text-color);
    line-height: 1.6;
}

.card button {
    background: var(--brand-color);
    box-shadow: var(--shading);
    color: var(--dark-heading-color);
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 700;
    width: fit-content;
    transition: all 200ms ease;
    cursor: pointer;
    border: none;
    margin-top: 1rem;
}

.card button:hover {
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.25);
    filter: brightness(110%);
    transform: translateY(-1px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    transition: background-color 200ms ease;
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--brand-color);
    margin-bottom: 1rem;
    transition: transform 200ms ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h2,
.service-card h3 {
    font-size: 1.15rem;
}

.service-card p {
    font-size: 0.9rem;
}

.why-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 8px;
    transition: background-color 200ms ease;
}

.why-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--brand-color);
    margin-right: 2rem;
    transition: transform 200ms ease;

    width: 3rem;
    height: 3rem; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-card:hover i {
    transform: scale(1.1);
}

.why-card h2,
.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.why-card p {
    font-size: 0.9rem;
}

.cta-card {
    background: var(--cta-gradient);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.cta-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

.cta-card h1,
.cta-card h2 {
    color: var(--cta-heading-color);
    font-weight: 900;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.cta-card p {
    color: var(--cta-text-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card button {
    background: var(--cta-button-bg);
    color: var(--cta-button-text);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 200ms ease;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 0rem !important;
}

.cta-card button:hover {
    background: var(--cta-button-hover-bg);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

/* CTA form styles to match button aesthetics */
.cta-form {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.cta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}
.cta-input {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--cta-button-bg);
    color: var(--cta-button-text);
    border: none;
    outline: none;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 200ms ease, background 200ms ease, color 200ms ease;
}
.cta-input::placeholder { color: #9aa4b2; }
.cta-input:focus {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}
.cta-input.full {
    width: 100%;
    margin-top: 12px;
}
.cta-name-wrapper[hidden] { display: none !important; }

.cta-message {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #e2e8f0;
}
.cta-message.success { color: #b7f7c1; }
.cta-message.error { color: #ffd1d1; }
.cta-message.warn { color: #ffe9b0; }

/* Global focus-visible outlines for keyboard accessibility */
:where(a, button, input, select, textarea, [role="button"]) :focus-visible,
:where(a, button, input, select, textarea, [role="button"])::file-selector-button:focus-visible {
    outline: 2px solid var(--brand-color);
    outline-offset: 2px;
}
/* Ensure native controls get cursor and focus states */
button, [role="button"], input[type="submit"], input[type="button"] { cursor: pointer; }

@media (max-width: 640px) {
    .cta-row {
        flex-direction: column;
    }
    .cta-card button {
        width: 100%;
    }
}

.footer {
    background: var(--footer-background);
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.3);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    color: #a0aec0;
}

.footer span.font-bold {
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.footer-link {
    color: #a0aec0;
    transition: color 200ms ease;
    /* inherit font-size so parent utility classes (e.g., text-2xl) apply to icons */
    font-size: inherit;
}

.footer-link:hover {
    color: var(--brand-color);
    font-weight: 500;
}

.link {
    color: var(--brand-color);
    text-decoration: none;
    transition: filter 200ms ease;
}

.link:hover {
    filter: brightness(120%);
}

.footer .hero-logo {
    filter: none;
    opacity: 0.8;
    transition: opacity 200ms ease;
}

.footer .hero-logo:hover {
    opacity: 1;
}

.footer > div:last-child span {
    color: #97abc9;
}

.footer > div:last-child a {
    color: #e7eff8;
}

.footer > div:last-child a:hover {
    color: var(--brand-color);
}