
/* =====================================================
   AS PROJECT STUDIO — HOMEPAGE
   Premium UK Consultancy Design
   Page-specific CSS
===================================================== */

.as-home {
    --navy: #101d35;
    --navy-deep: #0b182a;
    --teal: #087f8c;
    --teal-bright: #10a1a8;
    --charcoal: #172033;
    --slate: #475569;
    --soft: #f5f7fa;
    --white: #ffffff;
    font-family: Helvetica, Arial, sans-serif;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.65;
    overflow-x: clip;
}

.as-home *,
.as-home *::before,
.as-home *::after {
    box-sizing: border-box;
}

.as-home .home-container {
    width: min(1440px, calc(100% - 80px));
    margin-inline: auto;
}

.as-home .home-section {
    padding-block: clamp(75px, 7vw, 115px);
}

.as-home h1,
.as-home h2,
.as-home h3 {
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--charcoal);
    margin: 0;
}

.as-home h1,
.as-home h2 {
    font-weight: 800;
}

.as-home p {
    margin: 0;
}

.as-home a {
    text-decoration: none;
}

.as-home a:focus-visible,
.as-home summary:focus-visible {
    outline: 3px solid var(--teal-bright);
    outline-offset: 4px;
}

.as-home .section-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 25px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.as-home .section-eyebrow > span {
    width: 25px;
    height: 2px;
    flex: none;
    background: currentColor;
}

.as-home .eyebrow-light {
    color: #78d5dc;
}

.as-home .home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 22px;
    min-height: 51px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .2s, background .2s;
}

.as-home .home-button:hover {
    transform: translateY(-2px);
}

.as-home .button-primary {
    background: var(--teal);
    color: #fff;
}

.as-home .button-primary:hover {
    background: #066b76;
}

.as-home .button-secondary {
    background: #fff;
    color: var(--navy);
    border: 1px solid #ccd6df;
}

.as-home .button-secondary:hover {
    border-color: var(--teal);
}

.as-home .button-white {
    background: #fff;
    color: var(--navy);
}

.as-home .home-link {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    border-bottom: 2px solid var(--teal);
    padding-bottom: 6px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.as-home .home-link:hover {
    color: var(--teal);
}

/* ==================== IMAGE SPACES ==================== */

.as-home .image-space {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    border-radius: 12px;
    background: #ebf0f4;
    border: 1px dashed #b7c7d2;
}

.as-home .image-space > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-home .image-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 30px;
    text-align: center;
    color: #516777;
}

.as-home .placeholder-symbol {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--teal);
}

.as-home .image-placeholder strong {
    font-size: 19px;
    color: var(--navy);
}

.as-home .image-placeholder small {
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* ==================== HERO ==================== */

.as-home .home-hero {
    padding-block: clamp(75px, 7vw, 115px);
    background: linear-gradient(110deg, #fff 45%, #f1f8f8 100%);
}

.as-home .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(40px, 5.5vw, 90px);
}

.as-home .hero-copy h1 {
    font-size: clamp(45px, 5.1vw, 76px);
    max-width: 810px;
    margin-bottom: 28px;
}

.as-home .hero-copy h1 span {
    color: var(--teal);
}

.as-home .hero-description {
    max-width: 640px;
    color: var(--slate);
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.7;
    margin-bottom: 32px;
}

.as-home .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.as-home .hero-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.as-home .hero-keywords span {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate);
}

.as-home .hero-keywords span + span::before {
    content: "•";
    margin-right: 12px;
    color: var(--teal);
}

.as-home .image-hero {
    min-height: 530px;
    background: #e5f0f2;
}

/* ==================== ABOUT ==================== */

.as-home .about-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: clamp(50px, 7vw, 120px);
    align-items: center;
}

.as-home .image-about {
    min-height: 480px;
    background: #f0f3f7;
}

.as-home .about-copy h2 {
    font-size: clamp(35px, 3.5vw, 56px);
    margin-bottom: 26px;
}

.as-home .about-copy h2 span {
    color: var(--teal);
}

.as-home .about-copy > p:not(.section-eyebrow) {
    color: var(--slate);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 21px;
}

.as-home .about-copy .home-link {
    margin-top: 12px;
}

/* ==================== SECTION HEADING ==================== */

.as-home .section-heading {
    display: grid;
    grid-template-columns: 1fr .7fr;
    align-items: end;
    gap: 50px;
    margin-bottom: 46px;
}

.as-home .section-heading h2 {
    font-size: clamp(36px, 3.8vw, 60px);
}

.as-home .heading-description {
    color: var(--slate);
    font-size: 17px;
    line-height: 1.8;
}

/* ==================== SERVICES ==================== */

.as-home .home-services {
    background: var(--soft);
}

.as-home .services-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

.as-home .service-feature {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 565px;
    padding: clamp(30px, 3.5vw, 52px);
    background: var(--navy);
    border-radius: 12px;
}

.as-home .service-feature-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #8bd7db;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.as-home .service-feature-top span:last-child {
    font-size: 30px;
}

.as-home .service-feature h3 {
    font-size: clamp(30px, 3vw, 47px);
    color: #fff;
    margin-bottom: 19px;
}

.as-home .service-feature p {
    color: #cdd7e4;
    font-size: 17px;
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 28px;
}

.as-home .service-feature a {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border-bottom: 2px solid #73cfd3;
    padding-bottom: 6px;
}

.as-home .service-stack {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.as-home .service-line {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 18px;
    flex: 1;
    padding: 26px 30px;
    border: 1px solid #e0e8ef;
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s, transform .2s;
}

.as-home .service-line:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.as-home .service-index {
    font-size: 13px;
    color: var(--teal);
    font-weight: 800;
}

.as-home .service-line h3 {
    font-size: clamp(20px, 1.8vw, 27px);
    margin-bottom: 10px;
}

.as-home .service-line p {
    color: var(--slate);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 12px;
}

.as-home .service-line a {
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
}

.as-home .services-bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 34px;
}

/* ==================== WHY US ==================== */

.as-home .home-why {
    background: var(--navy);
}

.as-home .why-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: clamp(50px, 7vw, 120px);
    align-items: center;
}

.as-home .why-copy h2 {
    color: #fff;
    font-size: clamp(36px, 4vw, 61px);
    margin-bottom: 26px;
}

.as-home .why-copy h2 span {
    color: #83d4da;
}

.as-home .why-copy > p:not(.section-eyebrow) {
    color: #c9d7e4;
    font-size: 17px;
    line-height: 1.8;
    max-width: 530px;
    margin-bottom: 30px;
}

.as-home .why-points {
    border-top: 1px solid rgba(255,255,255,.17);
}

.as-home .why-point {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,.17);
    padding: 24px 0;
}

.as-home .why-point > span {
    color: #83d4da;
    font-size: 13px;
    font-weight: 800;
}

.as-home .why-point h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 9px;
}

.as-home .why-point p {
    color: #c8d6e2;
    font-size: 15px;
    line-height: 1.7;
}

/* ==================== PROCESS ==================== */

.as-home .home-process {
    background: #fff;
}

.as-home .process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 52px;
}

.as-home .process-item {
    position: relative;
    border-top: 3px solid var(--teal);
    padding: 31px 20px 25px 0;
}

.as-home .process-number {
    display: block;
    color: #c2d2da;
    font-size: clamp(40px, 4.2vw, 64px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
}

.as-home .process-item h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

.as-home .process-item p {
    color: var(--slate);
    font-size: 15px;
    line-height: 1.75;
    max-width: 280px;
}

/* ==================== RESOURCES ==================== */

.as-home .home-resources {
    background: var(--soft);
}

.as-home .resources-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: clamp(45px, 6vw, 100px);
    align-items: center;
}

.as-home .resources-copy h2 {
    font-size: clamp(36px, 3.9vw, 58px);
    margin-bottom: 26px;
}

.as-home .resources-copy h2 span {
    color: var(--teal);
}

.as-home .resources-copy > p:not(.section-eyebrow) {
    font-size: 17px;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 27px;
    max-width: 600px;
}

.as-home .resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 33px;
}

.as-home .resource-tags span {
    background: #fff;
    border: 1px solid #dce5ed;
    border-radius: 30px;
    padding: 10px 15px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.as-home .image-resources {
    min-height: 460px;
    background: #e8eef3;
}

/* ==================== FAQ ==================== */

.as-home .home-faq {
    background: #fff;
}

.as-home .faq-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(45px, 7vw, 120px);
    align-items: start;
}

.as-home .faq-intro h2 {
    font-size: clamp(35px, 3.7vw, 56px);
    margin-bottom: 24px;
}

.as-home .faq-intro h2 span {
    color: var(--teal);
}

.as-home .faq-intro > p:not(.section-eyebrow) {
    color: var(--slate);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 25px;
}

.as-home .faq-list {
    border-top: 1px solid #dae3eb;
}

.as-home .faq-item {
    padding: 24px 0;
    border-bottom: 1px solid #dae3eb;
}

.as-home .faq-item summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding-right: 42px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.as-home .faq-item summary::-webkit-details-marker {
    display: none;
}

.as-home .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 3px;
    top: -3px;
    color: var(--teal);
    font-size: 25px;
    font-weight: 400;
}

.as-home .faq-item[open] summary::after {
    content: "−";
}

.as-home .faq-item p {
    color: var(--slate);
    line-height: 1.8;
    font-size: 15px;
    padding-top: 18px;
    max-width: 700px;
}

/* ==================== FINAL CTA ==================== */

.as-home .home-final-cta {
    background: #fff;
    padding-top: 25px;
}

.as-home .final-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    background: var(--navy);
    border-radius: 13px;
    padding: clamp(40px, 5vw, 80px);
}

.as-home .final-cta-box h2 {
    color: #fff;
    font-size: clamp(34px, 3.8vw, 58px);
    margin-bottom: 20px;
}

.as-home .final-cta-box p:not(.section-eyebrow) {
    max-width: 650px;
    color: #cbd8e4;
    font-size: 17px;
    line-height: 1.8;
}

/* ==================== RESPONSIVE TABLET ==================== */

@media (max-width: 1100px) {
    .as-home .hero-grid,
    .as-home .about-grid,
    .as-home .why-grid,
    .as-home .resources-grid,
    .as-home .faq-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .as-home .hero-copy h1 {
        font-size: clamp(40px, 5.3vw, 60px);
    }

    .as-home .image-hero {
        min-height: 420px;
    }

    .as-home .services-layout {
        grid-template-columns: 1fr 1fr;
    }

    .as-home .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==================== RESPONSIVE SMALL TABLET ==================== */

@media (max-width: 800px) {
    .as-home .home-container {
        width: min(1440px, calc(100% - 40px));
    }

    .as-home .hero-grid,
    .as-home .about-grid,
    .as-home .section-heading,
    .as-home .services-layout,
    .as-home .why-grid,
    .as-home .resources-grid,
    .as-home .faq-grid {
        grid-template-columns: 1fr;
    }

    .as-home .hero-grid {
        gap: 45px;
    }

    .as-home .image-hero,
    .as-home .image-about,
    .as-home .image-resources {
        min-height: 370px;
    }

    .as-home .about-grid .image-about {
        order: 2;
    }

    .as-home .service-feature {
        min-height: 380px;
    }

    .as-home .final-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================== RESPONSIVE MOBILE ==================== */

@media (max-width: 520px) {
    .as-home .home-container {
        width: calc(100% - 32px);
    }

    .as-home .home-section {
        padding-block: 65px;
    }

    .as-home .home-hero {
        padding-block: 55px 65px;
    }

    .as-home .hero-copy h1 {
        font-size: clamp(38px, 10vw, 52px);
        overflow-wrap: break-word;
    }

    .as-home .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .as-home .home-button {
        white-space: normal;
        text-align: center;
    }

    .as-home .hero-keywords {
        gap: 8px;
    }

    .as-home .hero-keywords span {
        font-size: 11px;
    }

    .as-home .image-hero,
    .as-home .image-about,
    .as-home .image-resources {
        min-height: 270px;
    }

    .as-home .service-line {
        grid-template-columns: 30px 1fr;
        padding: 24px 18px;
    }

    .as-home .service-feature {
        min-height: 370px;
        padding: 28px;
    }

    .as-home .service-feature h3 {
        font-size: 32px;
    }

    .as-home .why-point {
        grid-template-columns: 33px 1fr;
    }

    .as-home .process-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .as-home .process-item {
        padding-bottom: 25px;
    }

    .as-home .process-number {
        margin-bottom: 18px;
    }

    .as-home .resource-tags span {
        font-size: 12px;
    }

    .as-home .faq-item summary {
        font-size: 16px;
    }

    .as-home .final-cta-box {
        padding: 33px 24px;
    }

    .as-home .final-cta-box h2 {
        font-size: 34px;
    }
}

/* ==================== ACCESSIBILITY ==================== */

@media (prefers-reduced-motion: reduce) {
    .as-home *,
    .as-home *::before,
    .as-home *::after {
        transition-duration: 0s !important;
        animation-duration: 0s !important;
    }
}

/* MATCH HOMEPAGE TYPOGRAPHY */

.as-home,
.as-home h1,
.as-home h2,
.as-home h3,
.as-home p,
.as-home a,
.as-home button,
.as-home span,
.as-home summary {
    font-family: 'Inter', Arial, sans-serif;
}

.as-home h1,
.as-home h2 {
    font-weight: 800;
    letter-spacing: -0.045em;
}

.as-home h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
}
