/* ==========================================
   RESYVEX MASTER BRAND - MAIN STYLESHEET
   ========================================== */

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

:root {
    --primary-color: #111111;
    --secondary-color: #d62828;
    --accent-color: #000000;
    --text-dark: #111111;
    --text-light: #4b4b4b;
    --bg-light: #f7f7f7;
    --bg-white: #ffffff;
    --border-color: #e8e8e8;
    --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.10);
    --transition: all 0.28s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.65;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
    background: var(--bg-white);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.logo {
    display: block;
}

.logo img {
    height: 1.75rem;
    width: auto;
    max-width: 140px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

main {
    width: 100%;
    margin: 0 auto;
}

section {
    padding: 5rem 4rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

section:last-of-type {
    border-bottom: none;
}

section:not(#hero) {
    background: #ffffff;
    max-width: 1600px;
    margin: 0 auto;
}

section[style*="linear-gradient"] {
    background: #ffffff !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06) !important;
    padding: 3.3rem !important;
}

h1 {
    font-size: clamp(3rem, 4vw, 5rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    max-width: 860px;
}

h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
}

p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */

#hero {
    background: radial-gradient(circle at top right, rgba(214, 40, 40, 0.14), transparent 24%),
                radial-gradient(circle at left center, rgba(17, 17, 17, 0.06), transparent 18%),
                #ffffff;
    color: var(--text-dark);
    padding: 8rem 4rem 7rem;
    text-align: center;
}

#hero h1 {
    color: var(--text-dark);
    font-size: clamp(3.6rem, 6vw, 5.6rem);
    margin-bottom: 1.6rem;
}

#hero p {
    color: #2e2e2e;
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

#hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 180px;
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    transform: translateX(-50%);
    border-radius: 999px;
    opacity: 0.4;
}

/* ==========================================
   BUTTONS & CTA
   ========================================== */

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    background: #1f1f1f;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.18);
}

.btn-secondary {
    background: var(--secondary-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background: #b61f1f;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(214, 40, 40, 0.18);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: #ffffff;
}

/* ==========================================
   CARDS & GRID
   ========================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #ffffff;
    border: 2px solid rgba(17, 17, 17, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 1 20px 45px rgba(17, 17, 17, 0.05);
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp 0.9s ease forwards;
}

.card:hover {
    box-shadow: 0 30px 55px rgba(17, 17, 17, 0.08);
    transform: translateY(-3px);
}

.card:nth-child(1) {
    animation-delay: 0.12s;
}

.card:nth-child(2) {
    animation-delay: 0.18s;
}

.card:nth-child(3) {
    animation-delay: 0.24s;
}

.card:nth-child(4) {
    animation-delay: 0.30s;
}

.card:nth-child(5) {
    animation-delay: 0.36s;
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 0;
}

/* ==========================================
   STATS / METRICS
   ========================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.8rem 1rem;
    border-radius: 1.25rem;
    background: #f9f9f9;
    border: 1px solid rgba(17, 17, 17, 0.07);
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp 0.9s ease forwards;
}

.stat:nth-child(1) {
    animation-delay: 0.12s;
}

.stat:nth-child(2) {
    animation-delay: 0.18s;
}

.stat:nth-child(3) {
    animation-delay: 0.24s;
}

.stat:nth-child(4) {
    animation-delay: 0.30s;
}

.stat:nth-child(5) {
    animation-delay: 0.36s;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    background: #faf9f7;
    border-left: 4px solid var(--secondary-color);
    padding: 1.8rem;
    border-radius: 1.25rem;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp 0.9s ease forwards;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.testimonial:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.testimonial:nth-of-type(1) {
    animation-delay: 0.12s;
}

.testimonial:nth-of-type(2) {
    animation-delay: 0.18s;
}

.testimonial:nth-of-type(3) {
    animation-delay: 0.24s;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 0.75rem;
    color: #2c2c2c;
    line-height: 1.6;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

/* ==========================================
   TIMELINE
   ========================================== */

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp 0.9s ease forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.12s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.18s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.24s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.30s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.36s;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* ==========================================
   FORMS
   ========================================== */

form {
    max-width: 700px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.95rem;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.12);
}

textarea {
    resize: vertical;
    min-height: 160px;
}

/* ==========================================
   DIVIDER & HIGHLIGHTS
   ========================================== */

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 3rem 0;
}

.highlight {
    background: rgba(214, 40, 40, 0.05);
    padding: 2rem;
    border-radius: 1.25rem;
    border-left: 4px solid var(--secondary-color);
}

/* ==========================================
   TWO COLUMN LAYOUT
   ========================================== */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.two-col-text h3 {
    margin-bottom: 1rem;
}

.two-col-text p {
    margin-bottom: 1rem;
}

/* ==========================================
   LIST STYLES
   ========================================== */

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

ul li strong, ol li strong {
    color: var(--text-dark);
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background: #111111;
    color: #ffffff; 
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

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

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section ul li,
.footer-section ul li a,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-section ul {
    list-style: none;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero h1,
#hero p,
#hero .btn-group,
.card,
.stat,
.testimonial,
.timeline-item,
.highlight,
.footer-section {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.9s ease forwards;
}

#hero h1 {
    animation-delay: 0.12s;
}

#hero p {
    animation-delay: 0.18s;
}

#hero .btn-group {
    animation-delay: 0.24s;
}

.card,
.stat,
.testimonial,
.timeline-item,
.highlight,
.footer-section {
    animation-delay: 0.14s;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .header-container,
    .footer-container {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    section {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.9rem;
    }

    h2 {
        font-size: 2rem;
    }

    main {
        padding: 0;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .header-container {
        padding: 0.75rem 1.5rem;
        position: relative;
    }

    nav {
        position: absolute;
        left: -9999px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        gap: 1.5rem;
        padding: 5rem 1.5rem 2rem;
        box-shadow: none;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 101;
        justify-content: flex-start;
        align-items: flex-start;
    }

    nav.active ul {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul li a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    #hero {
        padding: 5rem 1.5rem 4rem;
    }

    #hero h1 {
        font-size: 2.4rem;
    }

    #hero p {
        font-size: 1.05rem;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat {
        padding: 1.5rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
