/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary-blue: #007bff;
    --color-primary-pink: #d91e82;
    --color-primary-pink-hover: #c01a75;
    --color-dark-text: #0B1220;
    --color-medium-text: #475467;
    --color-light-gray: #F8F6F2;
    --color-border-gray: #949494;
    --color-light-grey2: #FAFAFA;
    --color-dark-blue: #2C2724;
    --color-greengrey: #2F3A36;
    --color-blue-dark: #2E332F;
    --color-white: #ffffff;
    --color-offwhite: #F9F7F5;
    --color-black: #222222;
    --color-red: #ef4444;
    --color-mushroomgrey: #F3EEE9;
    --color-claygrey: #D4CCC6;
    --color-warmcharcoal: #2E2A28;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-warmcharcoal);
    background-color: var(--color-offwhite);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 32px;
    max-width: 56rem;
}

h2 {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
    max-width: 56rem;
}

h3 {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 38px;
    margin-bottom: 20px;
}

input[type="checkbox"] {
    margin: 4px 0 0;
    line-height: normal;
    width: 20px;
    height: 20px;
    min-width: auto;
    min-height: auto;
    vertical-align: top;
}

p {margin-bottom:12px}

ul.indent-one {margin-left:28px}

.pb-50 {margin-bottom:50px}

#features-heading {margin-bottom:30px}


/* Skip to Content Link for Accessibility */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--color-claygrey);
    color: var(--color-warmcharcoal);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 16px;
    left: 16px;
}

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

/* Navbar Styles */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--color-offwhite);
    border-bottom: 1px solid var(--color-mushroomgrey);
    width: 100%;
}

.navbar-container {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 3.84px;
    color: var(--color-black);
    text-transform: uppercase;
}

.desktop-nav {
    display: none;
}

.desktop-nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    font-size:16px;
}

.desktop-nav a {
    color: var(--color-dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {color: var(--color-primary-pink)}
.desktop-nav a:focus {
    color: var(--color-primary-pink);
    outline: 2px solid var(--color-primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}


/* Hero Section */


.hero h1 {
    color: #2A2320;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero h2 {
    color: #3F332E;
    font-weight: 400;
    margin-bottom:24px;
}

.hero p {
    color: #5E5450;
    font-weight: 400;
}





/* Features Section */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.feature-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    background-color: var(--color-blue-dark);
    border-radius: 50%;
    padding: 16px;
    flex-shrink: 0;
}

.feature-content {
    color: var(--color-white);
    padding-top: 12px;
}


/* Resources Section */
.resources {
    background-color: var(--color-white);
    padding: 64px 24px;
}

.resources-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}




.resources-divider {
    flex: 1;
    height: 1px;
    background-color: var(--color-light-gray);
}

.resources-description {
    font-family: 'DM Sans', sans-serif;
    color: var(--color-medium-text);
    font-size: 18px;
    margin-bottom: 48px;
    max-width: 32rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

.resource-card {
    display: flex;
    flex-direction: column;
}

.resource-image {
    height: 400px;
    width: 100%;
    margin-bottom: 24px;
    border: 1px solid #D4D0D0;
}

    .resource-image.one {
        background-image: url("../images/projectbrief.png"); background-repeat:no-repeat; background-size:cover;
    }

    .resource-image.two {
        background-image: url("../images/accessibilitybasics.png"); background-repeat:no-repeat; background-size:cover;
    }

    .resource-image.three {
        background-image: url("../images/Feedbackcapturesheet.png"); background-repeat:no-repeat; background-size:cover;
    }


.resource-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}


.resource-info p {
    line-height: 27px;
    color: var(--color-medium-text);
}


/* Sections */
.bg-grey {background-color: var(--color-light-grey2)}
.bg-mushroomgrey {background-color: var(--color-mushroomgrey)}
.bg-blue {background-color: var(--color-primary-blue)}
.bg-white {background-color: var(--color-offwhite)}
.bg-pink {background-color: var(--color-primary-pink)}

    .bg-darkblue h1, .bg-darkblue h2, .bg-darkblue h3, .bg-darkblue p, .bg-blue h1, .bg-blue h2, .bg-blue h3, .bg-pink h1, .bg-pink h2, .bg-pink h3, .bg-pink p, .bg-pink .link-secondary {
        color: var(--color-white)
    }


section {padding: 64px 24px}
    section.expertise h1, section.expertise h2 {
        font-family: 'DM Serif Display', Georgia, 'Times New Roman', Times, serif;
        font-weight: 400;
        margin-bottom:0;
    }

    section.expertise h1, section.expertise h2, section.expertise p {
        color: var(--color-white);   
    }

    section.expertise p {
        margin-top:14px;
    }


.expertise-header {
    margin-bottom: 48px;
}



/* Footer */
.footer {
    background-color: var(--color-claygrey);
    padding: 64px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

.footer-section h3 {
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: #2A2320;
    letter-spacing: 1.92px;
    margin-bottom: 0;
}

.footer p {
    font-weight: 400;
    color: #4F453F;
    letter-spacing: 0.02em;
}

    .footer p.copyright {
        font-size: 0.875rem;
        color: #4F4540;
    }

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}


.footer-links a {
        color: var(--color-white);
        text-decoration: underline;
        transition: color 0.3s ease;
}

.footer-links a:hover {
        color: var(--color-white);
}

    .footer-links a:focus {
        color: var(--color-white);
        outline: 2px solid var(--color-white);
        outline-offset: 2px;
        border-radius: 4px;
    }

.footer-bottom {
    border-top: 1px solid #1e40af;
    padding-top: 32px;
}

.footer-copyright {
    font-size: 16px;
    color: var(--color-white);
    letter-spacing: 1.92px;
    text-align: center;
    text-transform: uppercase;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Respect user's motion preferences (WCAG 2.3.3 - Level AAA) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .toast {
        animation: none;
    }
}

/* Accessibility: Minimum Touch Target Size (WCAG 2.5.5 - Level AAA) */
button,
a,
input,
select,
textarea {
    min-height: 44px;
    min-width: 44px;
}

/* Exception for inline text links */
p a,
li a {
    min-width: auto;
    min-height: auto;
}


.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .menu-button {
        display: none;
    }
    
    .navbar-container {
        padding: 16px 32px;
    }
    
    .desktop-nav {
        display: flex;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card:last-child {
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .navbar-container {
        padding: 16px 128px
    }
    
    .hero {
        padding: 140px 128px
    }
    .hero.legal {
        padding: 50px 128px
    }
    h1 {
        font-size: 56px
    }

    h2 {
        font-size:36px

    }

    h3 {
        font-size: 28px
    }
    

    
    section {
        padding: 94px 128px;
    }
    
    .footer {
        padding-left:124px;
    }
  
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}



