
/* =========================================
   ATHEIST HOSTING — RESPONSIVE
   ========================================= */

/* TABLET & SMALL LAPTOPS */

@media (max-width: 1100px) {

    .ah-nav {
        gap: 20px;
    }

    .ah-nav-links {
        gap: 18px;
    }

    .ah-nav-links a {
        font-size: 12px;
    }

    .ah-hero-heading h1 {
        font-size: clamp(65px, 10vw, 115px);
        letter-spacing: -5px;
    }

    .ah-hero-bottom {
        gap: 50px;
    }

    .ah-approach-layout,
    .ah-infra-layout {
        gap: 65px;
    }

    .ah-intro-content {
        gap: 60px;
    }

    .ah-service {
        padding: 28px;
    }

    .ah-founder {
        padding: 30px;
    }

}

/* TABLET */

@media (max-width: 850px) {

    .ah-nav {
        min-height: 80px;
    }

    .ah-nav-links {
        display: none;
    }

    .ah-nav-actions {
        margin-left: auto;
    }

    .ah-menu-toggle {
        display: block;
    }

    /* MOBILE MENU - supports common open class placements */

    .ah-nav.ah-nav-open .ah-nav-links,
    .ah-nav-links.ah-nav-open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        position: absolute;
        top: 80px;
        left: 5%;
        right: 5%;
        width: 90%;
        padding: 30px;
        background: var(--panel);
        border: 1px solid var(--border);
        z-index: 200;
    }

    .ah-nav.ah-nav-open .ah-nav-links a,
    .ah-nav-links.ah-nav-open a {
        font-size: 15px;
    }

    .ah-hero {
        padding-top: 75px;
    }

    .ah-hero-top {
        margin-bottom: 50px;
    }

    .ah-hero-heading h1 {
        font-size: clamp(60px, 11vw, 100px);
        letter-spacing: -4px;
    }

    .ah-hero-bottom {
        grid-template-columns: 1fr;
        gap: 60px;
        margin-top: 60px;
    }

    .ah-hero-description {
        max-width: 500px;
    }

    .ah-hero-visual {
        min-height: 380px;
    }

    .ah-intro-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .ah-intro-content h2 {
        font-size: clamp(50px, 9vw, 80px);
    }

    .ah-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ah-approach-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .ah-approach-layout h2 {
        font-size: clamp(50px, 9vw, 80px);
    }

    .ah-infra-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .ah-infra-text h2 {
        font-size: clamp(50px, 9vw, 80px);
    }

    .ah-founders-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .ah-founder-mark {
        margin-top: 45px;
    }

    .ah-footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }

    .ah-footer-brand {
        grid-column: 1 / -1;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    :root {
        --padding: 6%;
    }

    .ah-nav {
        width: 88%;
        min-height: 75px;
    }

    .ah-logo {
        font-size: 18px;
    }

    .ah-nav-actions {
        gap: 12px;
    }

    .ah-login {
        display: none;
    }

    .ah-nav-cta {
        padding: 10px 14px;
        font-size: 11px;
    }

    .ah-nav.ah-nav-open .ah-nav-links,
    .ah-nav-links.ah-nav-open {
        top: 75px;
        padding: 25px;
    }

    .ah-hero {
        width: 88%;
        padding-top: 65px;
        padding-bottom: 60px;
    }

    .ah-hero-top {
        margin-bottom: 40px;
        align-items: flex-start;
        gap: 20px;
    }

    .ah-eyebrow {
        font-size: 8px;
        letter-spacing: 1.3px;
        max-width: 230px;
    }

    .ah-hero-index {
        font-size: 9px;
        white-space: nowrap;
    }

    .ah-hero-heading h1 {
        font-size: clamp(44px, 11vw, 68px);
        letter-spacing: -3px;
        line-height: 1.02;
    }

    .ah-hero-bottom {
        margin-top: 45px;
        gap: 45px;
    }

    .ah-hero-description p {
        font-size: 15px;
    }

    .ah-button {
        padding: 14px 17px;
        gap: 25px;
        font-size: 10px;
    }

    .ah-hero-visual {
        min-height: 300px;
    }

    .ah-visual-main {
        width: 240px;
        height: 240px;
    }

    .ah-ring-one {
        width: 115px;
        height: 115px;
    }

    .ah-ring-two {
        width: 180px;
        height: 180px;
    }

    .ah-ring-three {
        width: 235px;
        height: 235px;
    }

    .ah-visual-core {
        width: 75px;
        height: 75px;
        font-size: 24px;
    }

    .ah-visual-top,
    .ah-visual-bottom {
        left: 15px;
        right: 15px;
        font-size: 8px;
    }

    .ah-hero-scroll {
        margin-top: 50px;
        font-size: 8px;
    }

    /* INTRO */

    .ah-intro {
        padding: 90px 6%;
    }

    .ah-intro-content {
        margin-top: 45px;
        gap: 30px;
    }

    .ah-intro-content h2 {
        font-size: clamp(40px, 10vw, 60px);
        letter-spacing: -3px;
    }

    .ah-intro-content p {
        font-size: 14px;
    }

    /* SERVICES */

    .ah-services {
        padding: 90px 6%;
    }

    .ah-section-header h2 {
        font-size: clamp(45px, 10vw, 65px);
        letter-spacing: -3px;
        margin-top: 40px;
    }

    .ah-section-header p {
        font-size: 14px;
    }

    .ah-services-grid {
        grid-template-columns: 1fr;
        margin-top: 55px;
    }

    .ah-service {
        min-height: 250px;
        padding: 28px;
    }

    .ah-service-icon {
        width: 55px;
        height: 55px;
        margin-top: 25px;
    }

    .ah-service h3 {
        font-size: 22px;
    }

    /* APPROACH */

    .ah-approach {
        padding: 90px 6%;
    }

    .ah-approach-layout {
        margin-top: 50px;
        gap: 45px;
    }

    .ah-approach-layout h2 {
        font-size: clamp(40px, 10vw, 60px);
        letter-spacing: -3px;
    }

    .ah-approach-item {
        padding: 28px 0;
        gap: 15px;
    }

    .ah-approach-item h3 {
        font-size: 20px;
    }

    .ah-approach-item p {
        font-size: 13px;
    }

    /* INFRASTRUCTURE */

    .ah-infrastructure {
        padding: 90px 6%;
    }

    .ah-infra-layout {
        margin-top: 50px;
        gap: 45px;
    }

    .ah-infra-text h2 {
        font-size: clamp(40px, 10vw, 60px);
        letter-spacing: -3px;
        margin-top: 30px;
    }

    .ah-infra-text p {
        font-size: 14px;
    }

    .ah-spec {
        padding: 28px 0;
    }

    .ah-spec h3 {
        font-size: 27px;
    }

    /* FOUNDERS */

    .ah-founders {
        padding: 90px 6%;
    }

    .ah-founders-header {
        margin: 50px auto;
    }

    .ah-founders-header h2 {
        font-size: clamp(40px, 10vw, 65px);
        letter-spacing: -3px;
    }

    .ah-founders-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ah-founder {
        padding: 28px;
    }

    .ah-founder-mark {
        width: 95px;
        height: 95px;
        margin: 45px 0 30px;
        font-size: 25px;
    }

    .ah-founder h3 {
        font-size: 28px;
    }

    .ah-founder > p:last-child {
        font-size: 14px;
    }

    /* FINAL CTA */

    .ah-final-cta {
        padding: 100px 6%;
    }

    .ah-final-cta h2 {
        font-size: clamp(45px, 11vw, 75px);
        letter-spacing: -4px;
        margin-top: 50px;
    }

    .ah-final-cta p {
        font-size: 14px;
    }

    /* FOOTER */

    .ah-footer {
        padding: 70px 6% 25px;
    }

    .ah-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px 25px;
    }

    .ah-footer-brand {
        grid-column: 1 / -1;
    }

    .ah-footer-column a {
        font-size: 12px;
    }

    .ah-footer-bottom {
        margin-top: 55px;
        flex-direction: column;
        gap: 15px;
        font-size: 9px;
    }

}

/* VERY SMALL DEVICES */

@media (max-width: 380px) {

    .ah-hero-heading h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .ah-hero-top {
        flex-direction: column;
    }

    .ah-hero-index {
        align-self: flex-end;
    }

    .ah-hero-visual {
        min-height: 260px;
    }

    .ah-service {
        padding: 24px;
    }

    .ah-final-cta h2 {
        font-size: 42px;
    }

    .ah-founder-top {
        flex-direction: column;
    }

}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}
