/* ============================================
   JME Glass Recycling - Core Styles
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('/assets/css/cookie-consent.css');

/* --- CSS Custom Properties --- */
:root {
    --green-primary:    #00a856;
    --green-dark:       #007f42;
    --green-light:      #22c875;
    --green-bg:         #f1f8f1;
    --green-cta:        #3d8b40;

    --text-dark:        #1a1a1a;
    --text-mid:         #444444;
    --text-light:       #6b6b6b;

    --white:            #ffffff;
    --off-white:        #f8f8f6;
    --border:           #e0e0e0;
    --shadow-light:     0 2px 12px rgba(0,0,0,0.08);
    --shadow-med:       0 4px 24px rgba(0,0,0,0.12);
    --shadow-heavy:     0 8px 40px rgba(0,0,0,0.18);

    --font-main:        'Poppins', sans-serif;

    --radius-sm:        4px;
    --radius-md:        8px;
    --radius-lg:        12px;

    --max-width:        1200px;
    --section-pad:      80px;
    --section-pad-sm:   48px;

    --transition:       all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section--grey {
    background: var(--green-bg);
}

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

.section--dark {
    background: var(--green-dark);
    color: var(--white);
}

.text-center { text-align: center; }
.text-green  { color: var(--green-primary); }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 1rem;
    max-width: 68ch;
}

p:last-child { margin-bottom: 0; }

.lead {
    font-size: 1.125rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

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

.btn--primary:hover {
    background: #1f252b;
    border-color: #1f252b;
    color: var(--white);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn--outline-green {
    background: transparent;
    color: var(--green-primary);
    border-color: var(--green-primary);
}

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

/* --- Section Headings --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-primary);
    margin-bottom: 12px;
}

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

.section-intro {
    margin-bottom: 48px;
}

/* --- Divider --- */
.divider {
    width: 48px;
    height: 4px;
    background: var(--green-primary);
    margin: 16px 0 32px;
    border-radius: 2px;
}

.divider--center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Placeholder Images --- */
.placeholder-img {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 50%, #81c784 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.placeholder-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.15) 20px,
        rgba(255,255,255,0.15) 40px
    );
}

.placeholder-img span {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.7);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.live-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
}

.live-img::before {
    content: none;
}

.live-img span {
    display: none;
}
