/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    --maroon-dark:    #3c1414;
    --maroon-darker:  #2a0e0e;
    --blue-dark:      #0a1d37;
    --blue-darker:    #05111f;
    --grey-light:     #f8f9fa;
    --green-dark:     #006400;
    --white:          #ffffff;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3 {
    font-family: Calibri, Arial, Helvetica, sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    background: var(--maroon-dark);
    color: var(--white);
    padding: 1.1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    height: 54px;
    width: auto;
}

.logo-area h1 {
    font-size: 2.1rem;
    letter-spacing: -0.4px;
    white-space: nowrap;
}

/* Navigation links – white & visible */
nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li a {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav li a:hover,
nav li a:focus {
    color: #e8d0d0 !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================================
   HERO + TOOLS GRID
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    padding: 5rem 5% 3rem;
    text-align: center;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: #1a1a1a;
}

.hero p {
    font-size: 1.25rem;
    max-width: 760px;
    margin: 0 auto 2.5rem;
    color: #444;
}

.tools-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 5rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.4rem;
}

.tool-card {
    background: var(--blue-dark);
    color: var(--white);
    border-radius: 10px;
    padding: 1.6rem 1.2rem;
    text-align: center;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.28);
    font-family: Calibri, Arial, sans-serif;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    text-decoration: none;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.38);
    background: var(--blue-darker);
}

/* ==========================================================================
   TESTIMONIALS – FAST SCROLLING MARQUEE
   ========================================================================== */
.testimonials {
    background: #e9ecef;
    padding: 4rem 5% 5rem;
    overflow: hidden;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 3rem;
    color: #222;
}

.marquee-wrapper {
    display: flex;
    animation: marquee 14s linear infinite;   /* ≈10× faster than original slow versions */
    will-change: transform;
}

.marquee-item {
    flex: 0 0 340px;
    margin-right: 1.8rem;
    background: white;
    border-radius: 12px;
    padding: 1.6rem 1.4rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    font-size: 1.02rem;
}

.marquee-item strong {
    display: block;
    margin-bottom: 0.9rem;
    color: #1a1a1a;
    font-size: 1.15rem;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: var(--maroon-dark);
    color: var(--white);
    padding: 4rem 5% 2.5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.4rem;
    color: #e8d0d0;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #d9c0c0;
    line-height: 2.1;
}

.footer-section a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #5a2a2a;
    font-size: 1rem;
    color: var(--green-dark);
    font-weight: bold;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .tools-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
    nav ul { gap: 1.3rem; font-size: 1rem; }
}

@media (max-width: 720px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .marquee-item { flex: 0 0 300px; margin-right: 1.5rem; }
}

@media (max-width: 480px) {
    .tools-grid { grid-template-columns: 1fr; }
    .marquee-item { flex: 0 0 280px; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-wrapper { animation: none !important; }
}