/* -- Reset -- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -- Accessibility -- */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* -- High Contrast -- */

@media (prefers-contrast: high) {
    :root {
        --color-text: #000;
    }
}

/* -- Reduced Motion -- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

}

/* -- Screen Reader -- */

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

/* -- Focus Buttons -- */

a:focus-visible,
.btn:focus-visible,
.jo-btn:focus-visible,
.button-custom:focus-visible {
    outline: 1px solid var(--color-accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(185,143,74,.35);
    text-decoration: none;
    transition:
        box-shadow .25s ease,
        outline .25s ease;
}

.btn:hover:focus-visible,
.jo-btn:hover:focus-visible,
.button-custom:hover:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* -- Hero -- */

.services-hero h1,
.hero-intro__text h1,
.brand-hero h1,
.marketing-hero h1,
.web-hero h1,
.contact-hero h1 {
    color: var(--color-heading);
    line-height: 1.25;
    margin-bottom: clamp(.5rem,.8vw,.8rem);
    word-break: break-word;
}

/* -- Mobile -- */

@media (max-width:768px){

.services-hero h1,
.hero-intro__text h1,
.brand-hero h1,
.marketing-hero h1,
.web-hero h1,
.contact-hero h1,
.divider-title {

    font-size:1.8rem;
    line-height:1.15;
    word-break:break-word;

 }
}