:root {
    --td-yellow: #FFC000;
    --td-yellow-dark: #F5A800;
    --td-navy: #14438A;
    --td-blue: #2E9BD0;
    --td-sky: #4FB0E3;
    --td-teal: #2FB3C9;
    --td-lavender: #B8B9D9;
    --td-black: #1A1A1A;
    --td-grey: #6B6E72;
    --td-grey-light: #C3C6C9;
    --td-white: #FFFFFF;
    --td-purple-line: #9B30B0;
    --td-ice: #E8F6FA;

    --grad-hero: linear-gradient(
        135deg,
        #14438A 0%,
        #2E9BD0 45%,
        #2FB3C9 100%
    );

    --grad-soft: linear-gradient(
        160deg,
        #14438A 0%,
        #4FB0E3 60%,
        #B8B9D9 100%
    );

    --grad-ice: linear-gradient(
        180deg,
        #E8F6FA 0%,
        #BFE6F0 100%
    );
}
    --td-navy-deep: #0B2A5B;

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

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%; /* 16px */
}

body {
    margin: 0;
    font-family: Georgia, serif;
    background-color: var(--td-white);
    color: var(--td-black);
    line-height: 1.7;
}

/* Mobile-optimized typography */
@media (max-width: 768px) {
    body {
        font-size: 1.0625rem; /* Slightly increase base font size for mobile readability (17px vs 16px) */
        line-height: 1.8; /* Slightly increase line height for better mobile reading comfort */
    }

    /* Adjust paragraph spacing for mobile */
    p {
        margin-bottom: 1.25rem; /* Slightly increase paragraph spacing for better readability */
    }

    /* Optimize heading line heights for mobile */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3; /* Tighter line height for headings on mobile */
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
}

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

/* Links */
a {
    color: var(--td-blue);
    text-decoration: underline;
}

a:hover {
    color: var(--td-sky);
}

/* Buttons - base styles will be in components.css */
/* Form controls */
input, button, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus indicators */
:focus-visible {
    outline: 2px solid var(--td-yellow);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Layout utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Mobile-optimized container padding */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--td-grey);
    font-size: 1.125rem;
}

.text-center {
    text-align: center;
}

.text-light {
    color: var(--td-white);
}

.text-dark {
    color: var(--td-black);
}

.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;
}

/* Brand design motifs */
/* Yellow corner bars - L-shaped with clipped diagonal ends */
.corner-bar {
    position: relative;
    display: inline-block;
}

.corner-bar::before,
.corner-bar::after {
    content: '';
    position: absolute;
    background-color: var(--td-yellow);
}

.corner-bar--top-left::before {
    top: 0;
    left: 0;
    width: 20px;
    height: 5px;
}

.corner-bar--top-left::after {
    top: 0;
    left: 0;
    width: 5px;
    height: 20px;
}

/* Clip-path for diagonal ends - example for top-left */
.corner-bar--top-left-diagonal::before {
    top: 0;
    left: 0;
    width: 30px;
    height: 5px;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
}

.corner-bar--top-left-diagonal::after {
    top: 0;
    left: 0;
    width: 5px;
    height: 30px;
    clip-path: polygon(0 0, 5% 100%, 0% 80%, 100% 0);
}


/* Gradient utilities */
.bg-hero {
    background: var(--grad-hero);
}

.bg-soft {
    background: var(--grad-soft);
}

.bg-ice {
    background: var(--grad-ice);
}

/* Decorative glow */
.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle at center, var(--td-yellow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}