/* ============================================
   PLASTIC RIDDERS LIMITED
   Design System: "Earth & Clean" — Organic Modern
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&family=Playfair+Display:wght@400;600;700;800&display=swap');

:root {
    /* — Palette — */
    --forest: #1B4332;
    --green-deep: #2D6A4F;
    --green-mid: #40916C;
    --green-leaf: #52B788;
    --mint: #95D5B2;
    --mint-light: #D8F3DC;
    --cream: #FAFDF7;
    --white: #ffffff;
    --dark: #111611;
    --text: #2C2C2C;
    --text-soft: #6B7A6F;
    --border: rgba(45, 106, 79, 0.12);

    /* — Typography — */
    --font-body: 'DM Sans', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* — Spacing — */
    --section-pad: 140px;
    --radius: 24px;
    --radius-sm: 12px;
    --radius-pill: 100px;

    /* — Motion — */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition: all 0.5s var(--ease);
    --transition-slow: all 0.8s var(--ease);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: var(--transition);
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(250, 253, 247, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(27, 67, 50, 0.06);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1002;
}

.nav-brand .brand-icon {
    width: 48px;
    height: 48px;
    transition: var(--transition);
    overflow: hidden;
}

.nav-brand .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-brand .brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--forest);
}

.nav-brand .brand-name span {
    color: var(--green-leaf);
}

.nav-menu {
    display: flex;
    gap: 42px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-soft);
    letter-spacing: 0.3px;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-leaf);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--green-deep);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1002;
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--forest);
    cursor: pointer;
    z-index: 1002;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--green-deep);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--forest);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(45, 106, 79, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--green-deep);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    background: var(--mint-light);
    border-color: var(--mint);
    transform: translateY(-2px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--green-mid);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.section-label .dot {
    width: 8px;
    height: 8px;
    background: var(--green-leaf);
    border-radius: 50%;
}

.section-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.8rem;
    color: var(--forest);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.section-heading span {
    color: var(--green-leaf);
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-soft);
    line-height: 1.8;
    max-width: 580px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--mint-light) 0%, transparent 70%);
    opacity: 0.5;
    border-radius: 50%;
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mint-light);
    color: var(--green-deep);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border: 1px solid rgba(82, 183, 136, 0.2);
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--green-leaf);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5.2rem;
    font-weight: 800;
    color: var(--forest);
    line-height: 1.05;
    margin-bottom: 1.8rem;
}

.hero-title .highlight {
    color: var(--green-leaf);
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-soft);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image .img-main {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(27, 67, 50, 0.12);
}

.hero-image .floating-card {
    position: absolute;
    bottom: -30px;
    left: -40px;
    background: var(--white);
    padding: 28px 32px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    z-index: 3;
}

.floating-card .fc-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: 6px;
}

.floating-card .fc-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--forest);
}

.floating-card .fc-value span {
    font-size: 1rem;
    color: var(--green-leaf);
}

/* ============================================
   IMPACT NUMBERS
   ============================================ */
.impact-bar {
    background: var(--forest);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.impact-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.impact-item .impact-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--mint);
    margin-bottom: 8px;
}

.impact-item .impact-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ============================================
   SERVICES / WHAT WE DO
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card .card-img {
    margin: -48px -36px 28px -36px;
    height: 200px;
    overflow: hidden;
}

.service-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-img img {
    transform: scale(1.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(27, 67, 50, 0.1);
    border-color: var(--mint);
}

.service-card .card-icon {
    width: 64px;
    height: 64px;
    background: var(--mint-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: var(--green-deep);
}

.service-card .card-icon i {
    font-size: 1.4rem;
    color: var(--green-deep);
    transition: var(--transition);
}

.service-card:hover .card-icon i {
    color: var(--mint-light);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 14px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.7;
}

/* ============================================
   PROCESS / HOW IT WORKS
   ============================================ */
.process-section {
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 80px;
    counter-reset: process-counter;
}

.process-step {
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

.process-step::before {
    counter-increment: process-counter;
    content: counter(process-counter, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: var(--mint-light);
    display: block;
    margin-bottom: 20px;
    line-height: 1;
}

.process-step h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--forest);
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.7;
}

/* divider arrow between steps */
.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    font-size: 1.5rem;
    color: var(--mint);
}

/* ============================================
   PROTOCOL (RINSE SECTION)
   ============================================ */
.protocol-section {
    background: var(--mint-light);
    border-radius: 0;
    overflow: hidden;
}

.protocol-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.protocol-visual {
    background: var(--white);
    border-radius: var(--radius);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.protocol-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--mint);
    border-radius: 50%;
    opacity: 0.15;
    top: -50px;
    right: -50px;
}

.protocol-steps-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.protocol-step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.protocol-step-item .step-number {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--green-deep);
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
}

.protocol-step-item h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--forest);
    margin-bottom: 6px;
}

.protocol-step-item p {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.7;
}

/* ============================================
   ABOUT / FULL BLEED
   ============================================ */
.about-full {
    background: var(--forest);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-full::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--green-mid) 0%, transparent 70%);
    opacity: 0.2;
}

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

.about-content .section-label {
    color: var(--mint);
}

.about-content .section-label .dot {
    background: var(--mint);
}

.about-content .section-heading {
    color: var(--white);
}

.about-content .section-heading span {
    color: var(--mint);
}

.about-content .section-desc {
    color: rgba(255, 255, 255, 0.65);
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    height: 500px;
}

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

/* ============================================
   COMPLIANCE BANNER
   ============================================ */
.compliance-banner {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.compliance-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--green-leaf), var(--mint));
}

.compliance-banner .compliance-icon {
    width: 64px;
    height: 64px;
    background: var(--mint-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.compliance-banner .compliance-icon i {
    font-size: 1.4rem;
    color: var(--green-deep);
}

.compliance-banner h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--forest);
    margin-bottom: 12px;
}

.compliance-banner .license-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green-deep);
    margin: 16px 0;
    letter-spacing: 3px;
}

.compliance-banner p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--forest);
    color: var(--white);
    padding: 100px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: 24px;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--mint);
    margin-bottom: 28px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--green-leaf);
    border-color: var(--green-leaf);
    color: var(--white);
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--green-leaf);
    box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.12);
    background: var(--white);
}

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

/* ============================================
   ANIMATIONS & MOTION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

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

/* Stagger children */
.service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.process-step:nth-child(2) {
    transition-delay: 0.15s;
}

.process-step:nth-child(3) {
    transition-delay: 0.3s;
}

.process-step:nth-child(4) {
    transition-delay: 0.45s;
}

.impact-item:nth-child(2) {
    transition-delay: 0.1s;
}

.impact-item:nth-child(3) {
    transition-delay: 0.2s;
}

.impact-item:nth-child(4) {
    transition-delay: 0.3s;
}

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

/* TABLET (≤ 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero-layout,
    .protocol-layout,
    .about-layout {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-image {
        max-width: 800px;
        margin: 0 auto;
    }

    .hero-image .img-main {
        height: 450px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr !important;
    }

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

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

    .process-step:not(:last-child)::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: 0.6s var(--ease);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.8rem;
        color: var(--forest);
        font-family: var(--font-display);
    }

    .nav-menu a::after {
        display: none;
    }

    /* Target specific inline grids used in subpages */
    [style*="grid-template-columns: 1.2fr 1fr"],
    [style*="grid-template-columns: 1fr 1.3fr"],
    [style*="grid-template-columns: 1fr 1.1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

/* SMALL TABLET (≤ 768px) */
@media (max-width: 768px) {
    :root {
        --section-pad: 80px;
    }

    .container {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-heading {
        font-size: 2.2rem;
    }

    .services-grid,
    .process-grid,
    .impact-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .hero-image {
        display: none;
    }

    .floating-card {
        display: none;
    }

    .nav-brand .brand-name {
        font-size: 1.1rem;
    }

    .nav-actions .btn {
        display: none;
    }

    .about-image {
        height: 350px !important;
    }

    .compliance-banner {
        padding: 40px 24px;
    }

    .compliance-banner .license-number {
        font-size: 1.8rem;
    }
}

/* PHONE (≤ 480px) */
@media (max-width: 480px) {
    :root {
        --section-pad: 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .protocol-step-item {
        flex-direction: column;
        gap: 12px;
    }

    .protocol-step-item .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .impact-item .impact-number {
        font-size: 2.2rem;
    }

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