/* ========================================
   M & C Recycling — Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #0A1C3F;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 200;
    font-weight: 500;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: #0A1C3F;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.938rem;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background: #0A1C3F;
    color: #ffffff;
    border-color: #0A1C3F;
}

.btn-primary:hover {
    background: #132d5e;
    border-color: #132d5e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 28, 63, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-light {
    background: #ffffff;
    color: #0A1C3F;
    border-color: #ffffff;
}

.btn-light:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: #0A1C3F;
    border-color: #0A1C3F;
}

.btn-outline:hover {
    background: #0A1C3F;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Section Shared --- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #059669;
    margin-bottom: 12px;
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #059669;
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.063rem;
    color: #4a5568;
    max-width: 640px;
    line-height: 1.7;
}

.section-header--centered {
    text-align: center;
}

.section-header--centered .section-desc {
    margin: 0 auto;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 28, 63, 0.08);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(10, 28, 63, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: #0A1C3F;
}

.logo-accent {
    color: #059669;
}

.nav {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.938rem;
    font-weight: 500;
    color: #374151;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #0A1C3F;
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: none;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(10, 28, 63, 0.15);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    position: relative;
    width: 18px;
    height: 14px;
    display: block;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0A1C3F;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before { top: 0; }
.hamburger span { top: 6px; }
.hamburger::after { top: 12px; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    background: #0A1C3F;
    padding: 120px 0 0;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.813rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #34D399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.188rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #34D399;
    line-height: 1;
}

.stat-label {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-visual {
    position: relative;
}

.hero-image-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-float {
    position: absolute;
    bottom: -24px;
    left: -24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    border: 4px solid #0A1C3F;
}

.hero-image-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.float-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(10, 28, 63, 0.9));
    color: #ffffff;
    font-size: 0.813rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Services --- */
.services {
    padding: 96px 0;
    background: #F8FAFC;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(10, 28, 63, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0A1C3F, #059669);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(10, 28, 63, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(10, 28, 63, 0.06), rgba(5, 150, 105, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A1C3F;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #0A1C3F;
}

.service-card p {
    font-size: 0.938rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.service-link:hover {
    gap: 10px;
}

/* --- About --- */
.about {
    padding: 96px 0;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(10, 28, 63, 0.12);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(10, 28, 63, 0.15);
    border: 4px solid #ffffff;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: 24px;
    background: #0A1C3F;
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(10, 28, 63, 0.25);
}

.exp-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #34D399;
    line-height: 1;
    margin-bottom: 4px;
}

.exp-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-text {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.938rem;
    font-weight: 500;
    color: #1a1a2e;
}

.value-check {
    color: #059669;
    flex-shrink: 0;
}

/* --- Process --- */
.process {
    padding: 96px 0;
    background: #F8FAFC;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 56px;
    position: relative;
}

.process-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    align-items: start;
    position: relative;
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A1C3F;
    opacity: 0.15;
    line-height: 1;
    padding-top: 4px;
}

.step-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0A1C3F;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.938rem;
    color: #4a5568;
    line-height: 1.7;
}

.step-connector {
    display: none;
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #0A1C3F 0%, #132d5e 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #ffffff;
}

.cta-text {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* --- Contact --- */
.contact {
    padding: 96px 0;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(10, 28, 63, 0.06), rgba(5, 150, 105, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A1C3F;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0A1C3F;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.938rem;
    color: #4a5568;
    line-height: 1.6;
}

.contact-item a {
    color: #059669;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #047857;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(10, 28, 63, 0.08);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: #F8FAFC;
    border-radius: 16px;
    padding: 36px;
    border: 1px solid rgba(10, 28, 63, 0.06);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #0A1C3F;
}

.form-desc {
    font-size: 0.938rem;
    color: #4a5568;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(10, 28, 63, 0.12);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.938rem;
    color: #1a1a2e;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 8px;
    color: #047857;
    font-size: 0.938rem;
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    background: #0A1C3F;
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand .logo-text {
    color: #ffffff;
}

.footer-desc {
    font-size: 0.938rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #34D399;
}

.footer-contact p {
    font-size: 0.938rem;
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #34D399;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Mobile Nav Overlay --- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 28, 63, 0.5);
    backdrop-filter: blur(4px);
    z-index: 98;
}

.nav-overlay.active {
    display: block;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .process-step {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 16px;
    }

    .step-number {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .step-connector {
        display: block;
        position: absolute;
        top: 28px;
        right: 0;
        width: calc(100% - 60px);
        height: 2px;
        background: linear-gradient(90deg, #0A1C3F, #059669);
        opacity: 0.12;
        transform: translateX(50%);
    }

    .process-step:last-child .step-connector {
        display: none;
    }

    .about-values {
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-image-float {
        left: -40px;
        bottom: -32px;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (min-width: 1024px) {
    .nav {
        display: block;
    }

    .nav-toggle {
        display: none;
    }

    .header-cta {
        display: inline-flex;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-inner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .nav-overlay {
        display: none;
    }

    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        z-index: 99;
        padding: 32px 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 1.125rem;
        border-bottom: 1px solid rgba(10, 28, 63, 0.06);
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 0;
    }

    .hero-image-float {
        display: none;
    }

    .hero-stats {
        gap: 16px;
    }

    .about-img-secondary {
        display: none;
    }

    .about-experience-badge {
        right: -8px;
        top: -12px;
        padding: 14px 18px;
    }

    .exp-number {
        font-size: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
