/* style.css - accessible styling for Digital Marketing Agency Leeds */

/* CSS reset (lightweight) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #0b1f33;
    background-color: #f4f6f8;
}

/* Layout helpers */
.container {
    width: min(1100px, 100% - 2rem);
    margin-inline: auto;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    padding: 4rem 0;
    background-color: #e7ecf2;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 2rem auto;
    text-align: left;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    margin-top: 0;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    padding: 0.75rem 1rem;
    background: #0b1f33;
    color: #ffffff;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 1000;
}

.skip-link:focus {
    left: 0.5rem;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0b1f33;
    color: #ffffff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.75rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 0.75rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: #ffb100;
    font-weight: 700;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 600;
    font-size: 0.95rem;
}

.logo-sub {
    font-size: 0.75rem;
    opacity: 0.85;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: #f5f7fa;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    text-decoration: underline;
}

.nav-cta a {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background-color: #ffb100;
    color: #0b1f33;
    font-weight: 600;
}

/* Burger menu */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    padding: 0.35rem 0.45rem;
    cursor: pointer;
}

.menu-toggle-bar {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: #ffffff;
    margin-block: 0.18rem;
    border-radius: 999px;
}

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

/* Hero */
.hero {
    padding: 3.5rem 0 3.5rem 0;
    background: radial-gradient(circle at top left, #28476c 0, #0b1f33 55%, #061322 100%);
    color: #ffffff;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-lead {
    font-size: 1.1rem;
    max-width: 34rem;
}

.hero-sub {
    max-width: 34rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.hero-points {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.hero-card {
    background: rgba(7, 20, 35, 0.95);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.hero-card-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: #9fb3d9;
    margin-top: 0;
}

.hero-card-metrics {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.hero-card-metrics span {
    font-weight: 700;
    margin-right: 0.35rem;
    color: #ffb100;
}

.hero-card-note {
    font-size: 0.75rem;
    color: #d3def2;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background-color: #ffb100;
    color: #0b1f33;
}

.button-primary:hover,
.button-primary:focus-visible {
    background-color: #ffc845;
}

.button-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Cards & blocks */
.card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 35, 60, 0.08);
    border: 1px solid #d4dde8;
}

.service-card h3 {
    margin-top: 0;
}

.service-card ul {
    padding-left: 1.1rem;
}

/* Process */
.process-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 1.25rem;
    counter-reset: process-counter;
}

.process-list li {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #d4dde8;
}

.process-list h3 {
    margin-top: 0;
}

/* Testimonials */
.testimonial {
    margin: 0;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #d4dde8;
}

.testimonial blockquote {
    margin: 0 0 0.75rem 0;
    font-style: italic;
}

/* Contact */
.section-contact {
    background-color: #0b1f33;
    color: #ffffff;
}

.section-contact .section-header {
    text-align: left;
}

.section-contact .section-header h2 {
    color: #ffffff;
}

.section-contact .section-header p {
    color: #d3def2;
}

.contact-form {
    background: #071322;
    padding: 1.75rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid #253a52;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #3b4f67;
    background-color: #0b2038;
    color: #ffffff;
    font: inherit;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid #ffb100;
    outline-offset: 1px;
    border-color: #ffb100;
}

.form-note {
    font-size: 0.8rem;
    color: #d3def2;
    margin-bottom: 0.75rem;
}

.form-privacy {
    font-size: 0.8rem;
    color: #d3def2;
    margin-top: 0.75rem;
}

.honeypot {
    display: none;
}

.contact-aside h3 {
    margin-top: 0;
}

.contact-aside a {
    color: #ffb100;
}

/* Thank-you page */
.section-thankyou {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thankyou-body {
    max-width: 620px;
}

/* Related links */
.related-links {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0 0 0;
}

.related-links li {
    margin-bottom: 0.4rem;
}

.related-links a {
    text-decoration: none;
}

.related-links a:hover,
.related-links a:focus-visible {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    padding: 1.5rem 0;
    background: #061322;
    color: #c4cedd;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.4rem 0;
}

.footer-text {
    margin: 0;
}

.footer-meta {
    text-align: right;
}

.footer-links a {
    color: #c4cedd;
}

/* Responsive design */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 720px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        width: 100%;
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 0 0.5rem 0;
    }

    .nav-cta a {
        width: 100%;
        text-align: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 2.75rem;
    }

    .hero-aside {
        order: -1;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-meta {
        text-align: left;
    }
}
