/* --- GLOBAL TOKENS & RESETS --- */
:root {
    /* Color Palette - Professional Teal/Slate for Upkeep */
    --md-sys-color-primary: #006874;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #97f0ff;
    --md-sys-color-on-primary-container: #001f24;
    
    --md-sys-color-surface: #fbfdfd;
    --md-sys-color-on-surface: #191c1d;
    --md-sys-color-surface-container: #eff1f1;
    
    /* Typography */
    --md-sys-typescale-font-family: 'Roboto', sans-serif;
    
    /* Elevations */
    --md-sys-elevation-2: 0px 2px 4px -1px rgba(0, 0, 0, 0.08), 
                          0px 4px 5px 0px rgba(0, 0, 0, 0.04), 
                          0px 1px 10px 0px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--md-sys-typescale-font-family);
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.main-content {
    /* Push content down to avoid hiding behind the fixed top bar */
    padding-top: 80px; 
    padding-inline: 16px;
    max-width: 1440px;
    margin: 0 auto;
}

/* --- NAVIGATION --- */
.md3-top-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    box-shadow: var(--md-sys-elevation-2);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.app-bar-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    color: var(--md-sys-color-primary);
    font-size: 28px;
}

.brand-title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.15px;
}

.md3-button-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 24px;
    border-radius: 20px;
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    font-family: var(--md-sys-typescale-font-family);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.md3-button-filled:hover {
    background-color: #005a64;
    box-shadow: var(--md-sys-elevation-2);
}

.button-icon {
    font-size: 18px;
}

/* --- HERO SECTION --- */
.hero-section {
    --hero-bg: #001f24; 
    --hero-text: #ffffff;
    --hero-text-muted: #bfe9ef;
    
    --hero-cta-bg: #ffb703; 
    --hero-cta-text: #001f24;
    --hero-cta-hover: #fb8500;

    background-color: var(--hero-bg);
    color: var(--hero-text);
    padding: 120px 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--hero-text-muted);
    margin-bottom: 48px;
    max-width: 650px;
    margin-inline: auto;
}

.md3-button-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 64px;
    padding: 0 40px;
    border-radius: 32px;
    background-color: var(--hero-cta-bg);
    color: var(--hero-cta-text);
    font-family: var(--md-sys-typescale-font-family, 'Roboto', sans-serif);
    font-size: 20px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.md3-button-hero:hover {
    background-color: var(--hero-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.md3-button-hero:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.button-icon-large {
    font-size: 28px;
}

/* --- STANDARDS GRID --- */
.standards-section {
    background-color: var(--md-sys-color-surface, #fbfdfd);
    padding: 80px 24px;
    color: var(--md-sys-color-on-surface, #191c1d);
}

.standards-container {
    max-width: 1440px;
    margin: 0 auto;
}

.standards-heading {
    text-align: center;
    font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.md3-elevated-card {
    background-color: var(--md-sys-color-surface-container-low, #f7f9f9);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 
                0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), 
                transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.md3-elevated-card:hover {
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 
                0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 36px;
    color: var(--md-sys-color-primary, #006874);
    margin-bottom: 16px;
    flex-shrink: 0; 
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--md-sys-color-on-surface, #191c1d);
}

.card-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--md-sys-color-on-surface-variant, #3f484a);
    margin: 0;
}

/* --- SEO CHIP BAR --- */
.seo-chip-bar {
    --md-chip-gold: #FFB800;
    --md-chip-gold-hover: rgba(255, 184, 0, 0.08);
    --md-chip-gold-focus: rgba(255, 184, 0, 0.12);
    
    padding: 32px 24px;
    background-color: transparent;
    display: flex;
    justify-content: center;
}

.chip-container {
    max-width: 1000px;
    width: 100%;
}

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

.md3-chip-set {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.md3-assist-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px;
    padding: 0 16px 0 8px;
    border: 1px solid var(--md-chip-gold);
    border-radius: 8px;
    background-color: transparent;
    color: var(--md-chip-gold);
    font-family: var(--md-sys-typescale-font-family, 'Roboto', sans-serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.md3-assist-chip:hover {
    background-color: var(--md-chip-gold-hover);
}

.md3-assist-chip:focus-visible {
    background-color: var(--md-chip-gold-focus);
    outline: 2px solid var(--md-chip-gold);
    outline-offset: 2px;
}

.chip-icon {
    font-size: 18px;
    margin-right: 8px;
    color: var(--md-chip-gold);
}

/* --- INTAKE FORM --- */
.form-card-container {
    background-color: var(--md-sys-color-surface-container-low, #ffffff);
    border-radius: 12px;
    padding: 32px 24px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 
                0px 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--md-sys-color-on-surface, #191c1d);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.form-subtitle {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.25px;
    color: var(--md-sys-color-on-surface-variant, #3f484a);
}

.intake-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.md3-field-group {
    position: relative;
    width: 100%;
}

.md3-outlined-input {
    width: 100%;
    height: 56px; 
    padding: 16px;
    background-color: transparent;
    border: 1px solid #79747e;
    border-radius: 4px;
    font-size: 16px; 
    color: var(--md-sys-color-on-surface, #191c1d);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea-input {
    height: auto;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.md3-outlined-input:hover {
    border-color: var(--md-sys-color-on-surface, #191c1d);
}

.md3-outlined-input:focus {
    outline: none;
    border-color: var(--md-sys-color-primary, #006874);
    box-shadow: inset 0 0 0 1px var(--md-sys-color-primary, #006874);
}

.md3-floating-label {
    position: absolute;
    left: 16px;
    top: 18px;
    padding: 0 4px;
    background-color: var(--md-sys-color-surface-container-low, #ffffff);
    font-size: 16px;
    color: var(--md-sys-color-on-surface-variant, #49454f);
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), 
                font-size 0.2s cubic-bezier(0.2, 0, 0, 1), 
                color 0.2s cubic-bezier(0.2, 0, 0, 1);
    transform-origin: left top;
}

.md3-outlined-input:focus ~ .md3-floating-label,
.md3-outlined-input:not(:placeholder-shown) ~ .md3-floating-label {
    transform: translateY(-28px) scale(0.85);
    color: var(--md-sys-color-primary, #006874);
}

.md3-outlined-input:not(:placeholder-shown) ~ .md3-floating-label {
    color: var(--md-sys-color-on-surface-variant, #49454f);
}

.md3-outlined-input:focus ~ .md3-floating-label {
    color: var(--md-sys-color-primary, #006874);
}

.submit-btn-gold {
    width: 100%;
    height: 56px; 
    margin-top: 8px;
    border-radius: 28px;
    background-color: #FFB800;
    color: #001f24;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px; 
    font-weight: 700;
    letter-spacing: 0.1px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 
                0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn-gold:hover {
    background-color: #e5a600;
    box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.submit-btn-gold:active {
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
}

/* --- FOOTER --- */
.site-footer {
    background-color: #F3EDF7;
    color: #1d1b20;
    padding: 64px 24px 24px;
    font-family: var(--md-sys-typescale-font-family, 'Roboto', sans-serif);
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 64px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1d1b20;
}

.footer-license {
    font-size: 14px;
    font-weight: 700;
    color: #006874;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 16px;
    line-height: 1.5;
    color: #49454f;
}

.footer-heading {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #1d1b20;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text-list li {
    font-size: 16px;
    color: #49454f;
}

.link-list a {
    font-size: 16px;
    color: #49454f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-list a:hover {
    color: #006874;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #cac4d0;
}

.copyright {
    font-size: 14px;
    color: #49454f;
}

.privacy-link {
    font-size: 14px;
    color: #49454f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: #1d1b20;
    text-decoration: underline;
}
