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

* {
    margin: 0;
    padding: 0;
}

/*
 * Drop font files into /fonts and add matching @font-face rules here, then
 * point --tgc-font-body at them in styles/variables.css. The stack falls back
 * to the system UI face until then.
 */

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--tgc-cream);
    color: var(--tgc-ink);
    font-family: var(--tgc-font-body);
    font-size: var(--tgc-text-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/*
 * The header is fixed, so anything that does not open with a full-bleed hero
 * or the homepage opener has to clear it.
 */
main:not(:has(.service-hero)):not(:has(.hero-intro)) {
    padding-top: var(--tgc-header-h);
}

img,
svg,
video {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--tgc-ink);
    font-weight: 600;
}

a {
    color: var(--tgc-violet);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--tgc-violet-dark);
}

button {
    font-family: inherit;
}

fieldset {
    border: none;
}

.content-wrapper {
    max-width: var(--tgc-container);
    margin: 0 auto;
    padding: 0 var(--tgc-gutter);
}

.site-main {
    display: flex;
    flex-direction: column;
}

/* Accessibility helpers */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    width: auto;
    height: auto;
    clip-path: none;
    padding: 10px calc(16 * var(--tgc-u));
    border-radius: 6px;
    background-color: var(--theme-white);
    color: var(--tgc-ink);
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 20px;
    }
}

/* Shared Hero Image Panel */
.hero-image-wrapper {
    background-color: var(--theme-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(60 * var(--tgc-u));
    position: relative;
    margin: calc(40 * var(--tgc-u)) 0;
}

.hero-image-container {
    width: 100%;
    position: relative;
    left: calc(-200 * var(--tgc-u));
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Shared Button Styles */
.btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: calc(12 * var(--tgc-u));
    padding: calc(14 * var(--tgc-u)) calc(24 * var(--tgc-u));
    border-radius: calc(32 * var(--tgc-u));
    text-decoration: none;
    font-weight: 500;
    font-size: calc(16 * var(--tgc-ut));
    transition: all 0.2s ease;
    min-width: calc(140 * var(--tgc-u));
    justify-content: space-between;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--tgc-ink);
    color: var(--theme-white);
    border: 2px solid var(--tgc-ink);
}

.btn-primary:hover {
    background-color: var(--tgc-violet);
    border-color: var(--tgc-violet);
    color: var(--theme-white);
}

.btn-secondary {
    background-color: var(--tgc-violet);
    color: var(--theme-white);
    border: 2px solid var(--tgc-violet);
}

.btn-secondary:hover {
    background-color: var(--tgc-violet-dark);
    border-color: var(--tgc-violet-dark);
    color: var(--theme-white);
}

/* Responsive - Shared */
@media (max-width: 1366px) {
    .hero-image-container {
        left: 0;
    }
}

@media (max-width: 1024px) {
    .hero-image-wrapper {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        padding: 40px 20px;
        min-height: 300px;
    }

    .hero-image-container {
        max-width: 100%;
    }
}
