/* =========================================================
   TufKo global website styles
   ========================================================= */

:root {
    --tufko-orange: #e84a00;
    --tufko-orange-bright: #ff6a00;
    --tufko-orange-dark: #b83200;

    --tufko-steel-light: #d9d9d9;
    --tufko-steel: #8a8a8a;
    --tufko-steel-dark: #3f3f3f;

    --tufko-black: #111111;
    --tufko-charcoal: #1a1a1a;
    --tufko-grey-900: #242424;
    --tufko-grey-700: #555555;
    --tufko-grey-300: #d7d7d7;
    --tufko-grey-100: #f3f3f3;
    --tufko-white: #ffffff;

    --page-width: 1200px;
    --page-gutter: clamp(1rem, 4vw, 2rem);

    --font-heading: "Rajdhani", "Arial Narrow", Arial, sans-serif;
    --font-body: Arial, Helvetica, sans-serif;

    --transition-fast: 160ms ease;
}

/* Reset */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--tufko-white);
    color: var(--tufko-black);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* Accessibility */

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.7rem 1rem;
    background: var(--tufko-orange);
    color: var(--tufko-white);
    text-decoration: none;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Shared layout */

.site-container {
    width: min(calc(100% - (var(--page-gutter) * 2)),
            var(--page-width));
    margin-inline: auto;
}

main {
    min-height: 55vh;
}

/* Shared typography */

.eyebrow {
    margin: 0 0 1rem;
    color: var(--tufko-orange-bright);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section {
    padding-block: clamp(4rem, 9vw, 7rem);
}

.section--dark {
    background: var(--tufko-charcoal);
    color: var(--tufko-white);
}

.section--muted {
    background: var(--tufko-grey-100);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 3rem;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
}

/* Buttons */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 3px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.button--primary {
    background: var(--tufko-orange);
    color: var(--tufko-white);
}

.button--primary:hover,
.button--primary:focus-visible {
    background: var(--tufko-orange-bright);
}

.button--secondary {
    border-color: var(--tufko-steel);
    color: var(--tufko-white);
}

.button--secondary:hover,
.button--secondary:focus-visible {
    border-color: var(--tufko-orange);
    color: var(--tufko-orange-bright);
}

/* =========================================================
   Legal and policy pages
   ========================================================= */

.legal-page__content {
    max-width: 900px;
}

.legal-page h1 {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
}

.legal-page h2 {
    margin: 2.5rem 0 0.75rem;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
}

.legal-page p,
.legal-page li {
    max-width: 78ch;
}

.legal-page address {
    padding: 1.25rem;
    background: var(--tufko-grey-100);
    border-left: 4px solid var(--tufko-orange);
    font-style: normal;
}

.legal-page a {
    color: var(--tufko-orange-dark);
}

.legal-table-wrapper {
    overflow-x: auto;
    margin-block: 1.5rem;
}

.legal-page table {
    width: 100%;
    border-collapse: collapse;
}

.legal-page th,
.legal-page td {
    padding: 0.85rem;
    border: 1px solid var(--tufko-grey-300);
    text-align: left;
    vertical-align: top;
}

.legal-page th {
    background: var(--tufko-grey-100);
    font-family: var(--font-heading);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: var(--tufko-charcoal);
    color: var(--tufko-steel-light);
}

.site-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.8fr) repeat(3, minmax(140px, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
    padding-block: clamp(3rem, 6vw, 5rem);
}

.site-footer__brand {
    max-width: 380px;
}

.site-footer__logo {
    width: min(100%, 240px);
    height: auto;
    margin-bottom: 1.25rem;
}

.site-footer__brand p {
    max-width: 36ch;
    margin: 0;
    color: var(--tufko-steel-light);
}

.site-footer__navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.site-footer__navigation h2 {
    margin: 0 0 0.5rem;
    color: var(--tufko-white);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__navigation a {
    color: var(--tufko-steel-light);
    text-decoration: none;
}

.site-footer__navigation a:hover,
.site-footer__navigation a:focus-visible {
    color: var(--tufko-orange-bright);
}

.site-footer__company {
    border-top: 1px solid rgb(255 255 255 / 12%);
}

.site-footer__company-inner {
    display: grid;
    grid-template-columns: auto auto minmax(300px, 1fr);
    align-items: start;
    gap: 0.75rem 2rem;
    padding-block: 1.25rem;
}

.site-footer__company p {
    margin: 0;
    color: var(--tufko-steel);
    font-size: 0.78rem;
    line-height: 1.5;
}

.site-footer__company p:last-child {
    text-align: right;
}

/* Footer responsiveness */

@media (max-width: 1000px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__company-inner {
        grid-template-columns: 1fr;
    }

    .site-footer__company p:last-child {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-block: 3rem;
    }

    .site-footer__brand {
        max-width: none;
    }
}

@media (max-width: 650px) {
    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
