/*
 * Styling for the inner pages. The Aurax theme ships most of what these pages need
 * (.page-header, .studio-service-items, .pricing-item, .portfolio-item), so this file
 * only covers the blocks the theme has no equivalent for: case-study bodies, service
 * detail sidebars, timelines, skill bars and the FAQ accordion.
 */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Page header ---------- */
.page-header-content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin: 10px 0 0;
}

.page-header-intro {
    margin-top: 24px;
    font-size: 18px;
    max-width: 62ch;
    margin-inline: auto;
}

.page-breadcrumb {
    margin-top: 28px;
    font-size: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0.75;
}

.page-breadcrumb a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

@media (max-width: 767px) {
    .page-header-content h1 {
        font-size: 38px;
    }
}

/* ---------- Shared bits ---------- */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mt-60 { margin-top: 60px; }
.mb-40 { margin-bottom: 40px; }

.section-sub-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--dl-heading-color);
}

/* ---------- Service detail ---------- */
.service-body p {
    margin-bottom: 18px;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    counter-reset: step;
}

.process-list li {
    display: flex;
    gap: 22px;
    padding: 26px 0;
    border-top: 1px solid var(--dl-border-color);
}

.process-step {
    font-size: 20px;
    font-weight: 700;
    color: var(--dl-primary-color);
    flex: 0 0 auto;
}

.process-list h3 {
    font-size: 20px;
    margin: 0 0 8px;
}

.service-aside {
    position: sticky;
    top: 110px;
    background: var(--dl-bg-grey);
    border-radius: 20px;
    padding: 34px;
}

.aside-title,
.service-aside h2 {
    font-size: 22px;
    margin-bottom: 18px;
}

.aside-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.aside-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}

.aside-list i {
    color: var(--dl-primary-color);
    margin-top: 5px;
}

.aside-list.columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
}

.aside-cta {
    border-top: 1px solid var(--dl-border-color);
    padding-top: 26px;
    margin-top: 6px;
}

.aside-cta h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.aside-email {
    display: block;
    margin-top: 14px;
    font-size: 15px;
    word-break: break-all;
}

.aside-related {
    border-top: 1px solid var(--dl-border-color);
    margin-top: 26px;
    padding-top: 26px;
}

.aside-related ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.aside-related li {
    padding: 6px 0;
}

.aside-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.tag-pill {
    border: 1px solid var(--dl-border-color);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 13px;
}

@media (max-width: 991px) {
    .service-aside {
        position: static;
        margin-top: 40px;
    }
    .aside-list.columns {
        grid-template-columns: 1fr;
    }
}

/* ---------- Case study ---------- */
.case-hero img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.case-facts {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    border-top: 1px solid var(--dl-border-color);
    border-bottom: 1px solid var(--dl-border-color);
    padding-block: 26px;
}

.case-fact-label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    margin-bottom: 6px;
}

.case-fact-value {
    font-weight: 600;
}

.case-block {
    margin-bottom: 44px;
}

.case-block h2 {
    font-size: 30px;
    margin-bottom: 16px;
}

.case-next {
    margin-top: 70px;
    padding-top: 30px;
    border-top: 1px solid var(--dl-border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.case-next span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
}

.case-next a {
    font-size: 30px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .case-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .case-next a {
        font-size: 22px;
    }
}

/* ---------- About page ---------- */
.about-portrait img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    background: var(--dl-bg-grey);
}

.about-facts {
    list-style: none;
    padding: 0;
    margin: 36px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-facts strong {
    display: block;
    font-size: 40px;
    line-height: 1;
    color: var(--dl-primary-color);
}

.about-facts span {
    font-size: 15px;
    opacity: 0.75;
}

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

.timeline-list li {
    border-left: 2px solid var(--dl-primary-color);
    padding: 0 0 34px 24px;
}

.timeline-period {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dl-primary-color);
}

.timeline-list h3 {
    font-size: 21px;
    margin: 8px 0 4px;
}

.timeline-org {
    font-weight: 600;
    margin-bottom: 10px;
}

.skills-group-title {
    font-size: 20px;
    margin-bottom: 22px;
}

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

.skill-bars li {
    margin-bottom: 20px;
}

.skill-bar-head {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 8px;
}

.skill-bar-track {
    height: 6px;
    border-radius: 999px;
    background: var(--dl-bg-grey);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--dl-primary-color);
}

/* ---------- FAQ accordion ---------- */
.faq-group {
    margin-bottom: 54px;
}

.faq-group-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--dl-border-color);
    padding: 22px 0;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

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

.faq-item summary h3 {
    font-size: 20px;
    margin: 0;
}

.faq-item summary::after {
    content: "+";
    font-size: 24px;
    line-height: 1;
    color: var(--dl-primary-color);
    flex: 0 0 auto;
}

.faq-item[open] summary::after {
    content: "\2013";
}

.faq-item p {
    margin: 14px 0 0;
    max-width: 78ch;
}

/* ---------- Contact page ---------- */
.contact-detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}

.contact-detail-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--dl-border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
}

.contact-detail-list a {
    font-size: 19px;
    font-weight: 600;
}

.contact-socials .social-share {
    margin-top: 12px;
}

.contact-form select.form-control {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

/* ---------- Footer nav ---------- */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
    margin: 40px 0 10px;
}

.footer-nav a {
    font-size: 15px;
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
}

/* ---------- Long-form body sections ---------- */
.service-block,
.service-process,
.service-faqs {
    margin-top: 56px;
}

.service-block h2,
.service-process h2,
.service-faqs h2,
.case-block h2 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 18px;
}

.service-block p,
.case-block p {
    margin-bottom: 18px;
    max-width: 68ch;
}

.mt-30 { margin-top: 30px; }

/* ---------- Rates list in the service sidebar ---------- */
.aside-rates {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.aside-rates li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dl-border-color);
}

.aside-rates strong {
    white-space: nowrap;
}

.aside-rates em {
    font-style: normal;
    opacity: 0.6;
    font-weight: 400;
}

/* ---------- Case study results ---------- */
.results-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.results-grid li {
    text-align: center;
    padding: 34px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
}

.results-grid strong {
    display: block;
    font-size: 42px;
    line-height: 1.1;
    color: var(--dl-primary-color);
    margin-bottom: 8px;
}

.results-grid span {
    color: var(--dl-body-white);
    font-size: 15px;
}

@media (max-width: 767px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    .results-grid strong {
        font-size: 34px;
    }
}

/* ---------- CTA band ---------- */
.cta-band-copy p {
    margin-bottom: 26px;
    max-width: 46ch;
}

.next-project .case-next {
    margin-top: 0;
}

/* ---------- Tech stack strips ---------- */
.service-stack {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin: 18px 0 0;
}

.service-stack img {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.hover-reveal-item:hover .service-stack img {
    opacity: 0.9;
}

.aside-stack {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dl-border-color);
}

.aside-stack ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
    margin: 0;
}

.aside-stack img {
    opacity: 1;
}

/* Service group headings on the services index */
.service-section .section-heading h2 {
    font-size: 26px;
    max-width: 52ch;
}

/* ---------- 404 ---------- */
.error-section { padding-top: 180px; }

.error-head { max-width: 46rem; margin-bottom: 70px; }

.error-code {
    display: block;
    font-size: clamp(72px, 14vw, 180px);
    line-height: 0.9;
    font-weight: 600;
    color: var(--dl-primary-color);
    letter-spacing: -0.03em;
}

.error-title { font-size: clamp(28px, 4vw, 44px); margin: 18px 0 14px; }

.error-intro { max-width: 34rem; }

.error-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
    margin-top: 34px;
}

.error-cols .aside-title { margin-bottom: 18px; }

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

.error-list li { border-top: 1px solid var(--dl-border-color); }

.error-list li a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.error-list li a:hover { padding-left: 10px; color: var(--dl-primary-color); }

.error-list li a span { opacity: 0.55; }

/* ---------- Case study gallery ---------- */
.case-gallery-title {
    font-size: 26px;
    margin-bottom: 34px;
}

.case-gallery-grid {
    display: grid;
    gap: 26px;
}

.case-gallery-item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--dl-border-color);
    background: var(--dl-bg-grey);
}

.case-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    /* The work is watermarked at source; this only removes the one-gesture
       drag-to-desktop path. It is a speed bump, not protection. */
    -webkit-user-drag: none;
    user-select: none;
}

.case-gallery-item figcaption {
    padding: 14px 18px;
    font-size: 14px;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .case-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Every third frame runs full width, so the rhythm does not flatten into
       an undifferentiated grid of identical tiles. */
    .case-gallery-item:nth-child(3n + 1) {
        grid-column: 1 / -1;
    }
}

/* ---------- Blog index ---------- */
.blog-grid { display: grid; gap: 40px; }

.blog-card-media { display: block; overflow: hidden; border-radius: 14px; }

.blog-card-media img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card-media:hover img { transform: scale(1.03); }

.blog-card-body { padding-top: 22px; }

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 12px;
}

.blog-cat {
    color: var(--dl-primary-color);
    opacity: 1;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px;
}

.blog-card-title { font-size: 24px; margin-bottom: 12px; line-height: 1.25; }

.blog-card-title a { transition: color 0.3s ease; }
.blog-card-title a:hover { color: var(--dl-primary-color); }

.blog-card-excerpt { margin-bottom: 18px; }

@media (min-width: 768px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    /* The newest post gets the full width, so the index has a clear lead. */
    .blog-card.featured { grid-column: 1 / -1; }
    .blog-card.featured .blog-card-title { font-size: 34px; max-width: 24ch; }
}

/* ---------- Post ---------- */
.post-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 26px;
}

.post-cover {
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin-bottom: 38px;
}

.post-intro p {
    font-size: 19px;
    line-height: 1.7;
}

.post-section { margin-top: 44px; }

.post-section h2 { font-size: 26px; margin-bottom: 18px; }

.post-code {
    background: var(--dl-bg-dark);
    color: #e8f3f0;
    padding: 20px 22px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin: 24px 0;
}

.post-faqs { margin-top: 54px; }

.post-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.post-tags li {
    font-size: 12px;
    padding: 5px 11px;
    border: 1px solid var(--dl-border-color);
    border-radius: 20px;
    opacity: 0.8;
}

.aside-takeaways {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dl-border-color);
}

/* ---------- Hire pages ---------- */
/* The opening answer is visually separated because it is doing a specific
   job: standing alone as the passage an answer engine quotes. */
.hire-answer {
    font-size: 20px;
    line-height: 1.65;
    padding: 22px 26px;
    margin-bottom: 30px;
    border-left: 3px solid var(--dl-primary-color);
    background: var(--dl-bg-grey);
    border-radius: 0 10px 10px 0;
}

.hire-proof {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 22px;
}

.hire-proof img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hire-proof li { overflow: hidden; }
.hire-proof a:hover img { transform: scale(1.03); }

.hire-proof-title { display: block; font-weight: 600; }

.hire-proof-meta { display: block; font-size: 14px; opacity: 0.6; }

@media (min-width: 600px) {
    .hire-proof { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Hire link grid ---------- */
.hire-link-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }

.hire-link-grid li { border-top: 1px solid var(--dl-border-color); }
.hire-link-grid li:last-child { border-bottom: 1px solid var(--dl-border-color); }

.hire-link-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    transition: padding-left 0.35s ease, color 0.35s ease;
}

.hire-link-grid a:hover { padding-left: 12px; color: var(--dl-primary-color); }

.hire-link-title { font-size: 19px; font-weight: 500; }

@media (min-width: 768px) {
    .hire-link-grid { grid-template-columns: repeat(2, 1fr); column-gap: 46px; }
}
