/* =========================================================
   ROBERSON TECHNOLOGIES
   Main Stylesheet
   ========================================================= */


/* ---------- VARIABLES ---------- */

:root {
    --red: #a00018;
    --red-bright: #cf0922;
    --red-dark: #700010;

    --black: #111111;
    --grey: #666666;
    --light-grey: #e6e6e6;
    --white: #ffffff;

    --content-width: 1240px;
}


/* ---------- RESET / GLOBAL ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--black);
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    max-width: var(--content-width);
    margin: 0 auto;

    display: flex;
    align-items: center;

    padding: 0 28px;

    border-bottom: 1px solid var(--light-grey);
}


/* Logo */

header > a {
    margin-right: auto;
    display: flex;
    align-items: center;
}

header img {
    width: min(650px, 52vw);
    height: 150px;

    object-fit: contain;
    object-position: left center;
}


/* Navigation */

nav {
    display: flex;
    align-items: center;
    gap: 28px;

    font-weight: 700;
}

nav a {
    padding: 12px 0;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--red);
}


/* Mobile menu button */

#menu {
    display: none;

    border: 0;
    background: none;

    font-size: 26px;
    cursor: pointer;
}


/* =========================================================
   GENERAL PAGE STRUCTURE
   ========================================================= */

section,
.intro,
.about,
.contact,
footer {
    max-width: var(--content-width);
    margin: 0 auto;
}

section {
    padding: 70px 28px;
}


/* ---------- PAGE INTRO ---------- */

.intro {
    padding: 80px 28px 55px;

    border-bottom: 1px solid var(--light-grey);
}

.intro h1 {
    margin: 15px 0;

    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.intro p {
    max-width: 800px;

    font-size: 20px;
    color: var(--grey);
}


/* ---------- ACCENT TEXT ---------- */

b,
.eyebrow {
    color: var(--red);
}

.eyebrow {
    margin: 0;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn,
.outline {
    display: inline-block;

    padding: 13px 20px;
    margin-top: 20px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.btn {
    border: 0;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--red-bright),
            var(--red-dark)
        );
}

.btn:hover {
    background: var(--red-dark);
}

.outline {
    margin-left: 8px;

    border: 1px solid var(--black);
}

.outline:hover {
    color: var(--white);
    background: var(--black);
}


/* =========================================================
   HOMEPAGE HERO SLIDER
   ========================================================= */

.slider {
    max-width: none;
    margin: 0;
    padding: 0;

    position: relative;

    background: var(--black);
}


/* Individual slide */

.slide {
    min-height: 430px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(10, 10, 10, 0.97) 0%,
            rgba(10, 10, 10, 0.91) 52%,
            rgba(125, 0, 20, 0.80) 100%
        );
}


/* Slide content */

.slide-copy {
    width: 100%;
    max-width: 1184px;

    margin: 0 auto;
    padding: 64px 28px;

    color: var(--white);
}

.slide-copy .eyebrow {
    color: #ef1833;
}

.slide-copy h1 {
    max-width: 880px;

    margin: 10px 0 18px;

    font-size: clamp(40px, 4.5vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.slide-copy > p:not(.eyebrow) {
    max-width: 660px;

    margin-bottom: 0;

    font-size: 19px;
    color: #dddddd;
}


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

.home-introduction {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 32px 28px 16px;
    text-align: left;
}

.home-introduction-card {
    padding: 28px 32px;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    background: var(--white);
}

.home-introduction-card h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 2.5vw, 30px);
    line-height: 1.25;
    color: var(--black);
}

.home-introduction p {
    margin: 0;
    color: var(--grey);
    font-size: 18px;
    line-height: 1.75;
}

.home-introduction p + p {
    margin-top: 18px;
}

@media (max-width: 520px) {
    .home-introduction { padding: 24px 20px 16px; }
    .home-introduction-card { padding: 20px; }
    .home-introduction p { font-size: 16px; }
}

.services-home {
    max-width: var(--content-width);

    padding: 15px 28px 65px;
}


/* Services heading */

.services-title {
    margin-bottom: 32px;

    text-align: center;
}

.services-title h2 {
    margin: 4px 0;

    font-size: 38px;
}


/* Six service columns */

.service-icons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    padding-top: 24px;
    padding-bottom: 24px;

    border-top: 2px solid var(--red-bright);
    border-bottom: 2px solid var(--red-bright);
}


/* Individual service */

.service-icons a {
    min-width: 0;

    padding: 0 14px;

    text-align: center;

    border-right: 1px solid #aaaaaa;

    transition: transform 0.2s ease;
}

.service-icons a:last-child {
    border-right: 0;
}

.service-icons a:hover {
    transform: translateY(-3px);
}

.service-icons a:hover h3 {
    color: var(--red);
}


/* Service icons */

.service-icons img {
    width: 100%;
    height: 80px;

    object-fit: contain;
    object-position: center;
}


/* Service titles */

.service-icons h3 {
    margin: 8px 0 0;

    font-size: 15px;
    line-height: 1.1;
}


/* =========================================================
   GENERAL CARDS
   ========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.cards article {
    min-height: 190px;

    padding: 28px;

    border: 1px solid var(--light-grey);
}

.cards h3 {
    font-size: 22px;
}

.cards p,
.list p {
    color: var(--grey);
}


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

.service-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding: 48px 28px 64px;
}

.service-detail {
    padding: 28px;
    border: 1px solid var(--light-grey);
    border-top: 3px solid var(--red-bright);
    border-radius: 0 0 10px 10px;
    scroll-margin-top: 24px;
}

.service-detail-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.service-detail-heading img {
    width: 88px;
    height: 70px;
    flex: 0 0 88px;
    object-fit: contain;
}

.service-detail h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.service-detail p {
    margin: 0;
    color: var(--grey);
    line-height: 1.75;
}

@media (max-width: 850px) {
    .service-details { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 520px) {
    .service-details { padding: 32px 20px 48px; }
    .service-detail { padding: 20px; }
    .service-detail-heading { gap: 14px; }
    .service-detail-heading img { width: 64px; height: 52px; flex-basis: 64px; }
    .service-detail h2 { font-size: 22px; }
}


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

.about,
.contact {
    padding: 70px 28px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 80px;
}

.about-profile {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
    gap: 56px;
}

.about-story h2 {
    margin: 8px 0 20px;
    font-size: 34px;
    line-height: 1.2;
}

.about-introduction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.about-introduction h2 {
    margin: 0;
    text-align: center;
}

.portrait-frame {
    position: relative;
    width: 200px;
    height: 200px;
    flex: 0 0 200px;
    overflow: hidden;
    border: 4px solid var(--red-bright);
    border-radius: 50%;
    background: #cccccc;
}

.portrait-frame img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 115%;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
}

.about-story h3 {
    margin: 32px 0 12px;
    font-size: 23px;
    line-height: 1.3;
}

.about-story p:not(.eyebrow) {
    color: var(--grey);
}

.about-principle {
    margin: 28px 0 0;
    padding: 16px 20px;
    border-left: 4px solid var(--red-bright);
    background: #f7f7f7;
    font-size: 20px;
    font-weight: 700;
}

.credentials {
    padding: 28px;
    border-top: 4px solid var(--red-bright);
    color: var(--white);
    background: linear-gradient(135deg, #111111 45%, #49000b);
}

.credentials .eyebrow {
    color: #ff8290;
}

.credentials h2 {
    margin: 12px 0 24px;
    font-size: 27px;
    line-height: 1.2;
}

.credential-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credential-list li {
    padding: 20px 0;
    border-top: 1px solid #ffffff40;
}

.credential-list strong,
.credential-list span {
    display: block;
}

.credential-list span {
    margin-top: 6px;
    color: #dddddd;
    font-size: 14px;
}

.credential-list .credential-award {
    color: #ff8290;
    font-weight: 700;
}

.profile-link {
    display: inline-block;
    margin-top: 16px;
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================================
   FORMS
   ========================================================= */

form {
    display: grid;
    gap: 14px;
}

input,
select,
textarea {
    width: 100%;

    padding: 13px;

    border: 1px solid #aaaaaa;

    font: inherit;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    max-width: none;
    padding: 38px max(28px, calc((100% - var(--content-width)) / 2 + 28px));

    color: var(--white);
    background:
        linear-gradient(
            90deg,
            rgba(10, 10, 10, 0.97) 0%,
            rgba(10, 10, 10, 0.91) 52%,
            rgba(125, 0, 20, 0.80) 100%
        ),
        var(--black);

    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 30px;

    border-top: 4px solid var(--red);
}

footer small,
footer span {
    font-size: 13.3333px;
}

footer small {
    color: #dddddd;
}

footer a:hover,
footer a:focus-visible,
.contact a:hover,
.contact a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}


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

@media (max-width: 850px) {

    /* Header */

    header {
        flex-wrap: wrap;
        padding: 8px 20px;
    }

    header img {
        width: min(500px, 70vw);
        height: auto;
    }

    #menu {
        display: block;
    }

    nav {
        display: none;

        width: 100%;

        flex-direction: column;
        align-items: flex-start;

        gap: 10px;

        padding: 18px 0;
    }

    nav.open {
        display: flex;
    }


    /* Slider */

    .slide {
        min-height: 390px;
    }

    .slide-copy {
        padding: 55px 28px;
    }


    /* Services */

    .service-icons {
        grid-template-columns: repeat(3, 1fr);

        row-gap: 35px;
    }

    .service-icons a:nth-child(3) {
        border-right: 0;
    }

    .service-icons a:nth-child(4),
    .service-icons a:nth-child(5),
    .service-icons a:nth-child(6) {
        padding-top: 10px;
    }


    /* Other pages */

    .about,
    .contact {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}


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

@media (max-width: 520px) {

    /* Header */

    header {
        padding: 6px 16px;
    }

    header img {
        width: 76vw;
        max-width: 380px;
    }


    /* Hero */

    .slide {
        min-height: 360px;
    }

    .slide-copy {
        padding: 45px 20px;
    }

    .slide-copy h1 {
        font-size: 39px;
    }


    /* Page headings */

    .intro h1 {
        font-size: 40px;
    }


    /* Services */

    .services-home {
        padding: 15px 20px 55px;
    }

    .service-icons {
        grid-template-columns: repeat(2, 1fr);

        row-gap: 32px;
    }

    .service-icons a {
        padding: 0 10px;
    }

    .service-icons a:nth-child(3) {
        border-right: 1px solid #aaaaaa;
    }

    .service-icons a:nth-child(even) {
        border-right: 0;
    }

    .service-icons img {
        height: 75px;
    }


    /* Cards */

    .cards {
        grid-template-columns: 1fr;
    }


    /* Sections */

    section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Shared experience carousel */
.hero-carousel {
    background: #0b0b0d;
    overflow: hidden;
}
.hero-slides { display: grid; }
.hero-carousel .hero-slide {
    grid-area: 1 / 1;
    min-width: 0;
    min-height: 430px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 95% 35%, #790d2466, transparent 58%), linear-gradient(110deg, #0b0b0d 45%, #28050d);
    transition: opacity 450ms ease, visibility 450ms;
}
.hero-carousel .hero-slide.active { visibility: visible; opacity: 1; pointer-events: auto; }
.hero-carousel .slide-copy {
    max-width: var(--content-width);
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    padding: 48px 28px 100px;
}
.hero-message .eyebrow { font-size: 12px; letter-spacing: .16em; color: #ff5c72; }
.hero-message h1,
.hero-message h2 {
    margin: 18px 0 24px;
    font-size: clamp(34px, 3.7vw, 54px);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.hero-message h1 span,
.hero-message h2 span { color: #ff7387; }
.hero-message > p:not(.eyebrow) { max-width: 650px; margin: 0; color: #d5d1d3; font-size: 17px; line-height: 1.65; }
.hero-message > .hero-lead { max-width: 560px; font-size: 19px; }
.hero-message > .hero-support { margin-top: 12px; color: #bcb3b7; font-size: 15px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-tags span { border: 1px solid #ffffff26; border-radius: 20px; padding: 6px 12px; color: #e4dfe1; font-size: 12px; }
.hero-highlight {
    position: relative;
    padding: 30px;
    border: 1px solid #ff879b40;
    border-top: 3px solid #e31336;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff09, #8d173020);
    box-shadow: 0 16px 45px #00000030;
}
.highlight-kicker { display: block; color: #e7b3bc; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.highlight-number { display: block; margin: 16px 0 0; font-size: clamp(44px, 4.8vw, 72px); line-height: 1.1; letter-spacing: -.05em; }
.highlight-number > span { color: #ff4a67; font-size: .6em; }
.highlight-word { display: block; margin: 24px 0 12px; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -.025em; }
.highlight-title { display: block; color: #ff8fa1; font-size: 17px; margin-top: 10px; }
.hero-highlight p { color: #cec1c6; line-height: 1.6; font-size: 14px; margin: 20px 0 0; }
.experience-highlight { text-align: center; padding: 30px 28px; }
.experience-highlight .highlight-number {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    margin: 20px 0 8px;
    font-size: clamp(64px, 6vw, 88px);
    line-height: 1;
    letter-spacing: -.05em;
}
.experience-highlight .highlight-number > span { font-size: .45em; margin-top: 6px; letter-spacing: 0; }
.experience-highlight .highlight-title { margin: 0; font-size: 16px; color: #f5e9ed; }
.experience-highlight .experience-summary { border-top: 1px solid #ffffff26; padding-top: 18px; margin-top: 22px; line-height: 1.8; }
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    max-width: var(--content-width);
    padding: 0 28px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.slider-controls[hidden] { display: none; }
.slider-pagination, .slider-actions { display: flex; align-items: center; gap: 10px; }
.slider-controls button { cursor: pointer; color: white; font: inherit; background: #ffffff08; border: 1px solid #ffffff40; border-radius: 50%; min-width: 44px; height: 44px; }
.slider-controls button:hover { background: #8e102b; border-color: #ff7387; }
.slider-controls button:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.slider-pagination .slider-dot { position: relative; border: 0; background: transparent; min-width: 28px; width: 28px; }
.slider-dot::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 10px; background: #82767a; top: 19px; left: 10px; }
.slider-dot[aria-current="true"]::after { width: 24px; left: 2px; background: #ff4261; }
.slider-count { font-size: 12px; color: #c6b6bc; margin-right: 8px; letter-spacing: .12em; }
.slider-actions .slider-play { border-radius: 22px; width: 66px; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 850px) {
    .hero-carousel .slide-copy { gap: 24px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .hero-highlight { padding: 22px; }
}
@media (max-width: 620px) {
    .hero-carousel .slide-copy { grid-template-columns: 1fr; gap: 24px; padding: 36px 20px 92px; }
    .hero-message h1, .hero-message h2 { font-size: 34px; }
    .hero-message > p:not(.eyebrow) { font-size: 16px; }
    .hero-highlight { padding: 20px; }
    .highlight-number { font-size: 44px; margin-top: 8px; }
    .highlight-word { font-size: 26px; margin: 12px 0 8px; }
    .hero-highlight p { margin-top: 12px; }
    .slider-controls { padding: 0 20px; }
    .slider-pagination, .slider-actions { gap: 4px; }
    .slider-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-carousel .hero-slide { transition: none; }
}

/* Direct contact details */
.contact-direct {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
    padding: 64px 28px;
}
.contact-introduction h2 {
    margin: 12px 0 20px;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -.025em;
}
.contact-introduction > p:not(.eyebrow) { max-width: 480px; color: var(--grey); line-height: 1.75; }
.contact-person { margin: 28px 0 0; padding-left: 16px; border-left: 3px solid var(--red-bright); }
.contact-person strong, .contact-person span { display: block; }
.contact-person strong { color: var(--black); }
.contact-person span { font-size: 14px; }
.contact-options { display: grid; gap: 18px; min-width: 0; }
.contact-method {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
}
.contact-direct .contact-method:hover,
.contact-direct .contact-method:focus-visible { text-decoration: none; border-color: var(--red); background: #fff9fa; }
.contact-method:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.contact-symbol { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: #a000180a; color: var(--red); }
.contact-symbol svg { width: 26px; height: 26px; }
.contact-method-copy { display: grid; gap: 6px; min-width: 0; }
.contact-label { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.contact-method-copy strong { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.3; overflow-wrap: anywhere; }
.contact-hint { color: var(--grey); font-size: 14px; }
.contact-arrow { margin-left: auto; color: var(--red); font-size: 24px; }
@media (max-width: 850px) {
    .contact-direct { grid-template-columns: 1fr; gap: 32px; }
    .contact-introduction > p:not(.eyebrow) { max-width: 620px; }
}
@media (max-width: 520px) {
    .contact-direct { padding: 40px 20px; }
    .contact-method { padding: 20px 16px; gap: 12px; }
    .contact-symbol { width: 38px; height: 38px; flex-basis: 38px; }
    .contact-arrow { display: none; }
}
