/* =========================================
   REUSABLE COMPONENT STYLES
   Shared across all pages. Import after
   global.css and layout.css.
========================================= */

/* ======================
   PAGE HERO BANNER
   Used on services, pricing, contact
====================== */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    background:
        linear-gradient(rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.7)),
        url(../images/recycling3.jpg) no-repeat center center;
    background-size: cover;
    color: var(--color-text-on-dark);
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Variant: light hero (no background image) */
.page-hero--light {
    background: var(--color-background-alt);
    color: var(--color-text-primary);
}

.page-hero--light h1 {
    color: var(--color-primary);
}

.page-hero--light p {
    color: var(--color-text-secondary);
    opacity: 1;
}

@media (max-width: 992px) {
    .page-hero h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .page-hero { padding: 140px 1rem 60px; }
    .page-hero h1 { font-size: 2rem; }
    .page-hero p { font-size: 1rem; padding: 0 1rem; }
}

@media (max-width: 576px) {
    .page-hero { padding: 120px 0.75rem 50px; }
    .page-hero h1 { font-size: 1.75rem; }
}


/* ======================
   CARD GRID
   Replaces .services-grid, .materials-grid,
   .process-grid, .gallery-grid
====================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card-grid--narrow {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


/* ======================
   CARD — BASE
   Common foundation for all card types
====================== */
.card {
    background: var(--color-background-main);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card .icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--color-text-secondary);
}


/* --- CARD MODIFIER: Service --- */
.card--service {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    border-top: 5px solid var(--color-primary);
}

.card--service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}


/* --- CARD MODIFIER: Material / Info --- */
.card--material {
    padding: 2rem;
    border: 1px solid var(--color-border-subtle);
}

.card--material .icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.card--material h3 {
    font-size: 1.4rem;
    color: var(--color-secondary);
}

.card--material ul {
    list-style: none;
    color: var(--color-text-secondary);
    text-align: left;
}

.card--material ul li {
    padding: 0.3rem 0;
}

.card--material ul li i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.card--material .card-desc {
    color: var(--color-text-secondary);
    text-align: left;
}


/* --- CARD MODIFIER: Process / Step --- */
.card--process {
    background: var(--color-background-alt);
    padding: 2.5rem 2rem;
    border-left: 5px solid var(--color-accent);
    position: relative;
    counter-increment: process-counter;
}

.card--process::before {
    content: "0" counter(process-counter);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: #e0e0e0;
    z-index: 1;
}

.card--process .icon {
    margin-bottom: 1rem;
}

.card--process h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.card--process p {
    position: relative;
    z-index: 2;
}


/* ======================
   FEATURE LIST
   Checkmark list inside service cards
====================== */
.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-list li {
    padding: 0.4rem 0;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.feature-list li i {
    color: var(--color-primary);
    margin-right: 0.6rem;
}


/* ======================
   PRICE DISPLAY
   Large price number used on pricing page
====================== */
.price-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 1rem 0;
}

.price-value span {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--color-text-secondary);
}


/* ======================
   INFO LIST
   Contact info items (phone, address, etc.)
   Used on home and contact pages
====================== */
.info-list .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-list .icon {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    width: 30px;
    text-align: center;
    margin-top: 4px;
    flex-shrink: 0;
}

.info-list h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.info-list p {
    margin: 0;
    word-wrap: break-word;
}

.info-list a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    word-wrap: break-word;
}

.info-list a:hover {
    color: var(--color-primary);
}


/* ======================
   MAP CONTAINER
   Google Maps embed
====================== */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


/* ======================
   FAQ LIST
   Used on home and pricing
====================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: var(--color-background-main);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-primary);
}

.faq-item h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text-primary);
    margin-bottom: 0.8rem;
}

.faq-item p {
    margin: 0;
    color: var(--color-text-secondary);
}


/* ======================
   GALLERY
   Image grid with hover effects
====================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}


/* ======================
   SECTION BACKGROUNDS
   Utility classes for alternating sections
====================== */
.bg-alt {
    background-color: var(--color-background-alt);
}
