/* ============================================
   JME Glass Recycling - Components
   ============================================ */

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 0 var(--border);
}

.header-top {
    background: var(--green-dark);
    padding: 8px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
}

.header-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.header-top__contact {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.header-top__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

a.header-top__item {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

a.header-top__item:hover {
    color: var(--white);
}

.header-top__item svg {
    width: 14px;
    height: 14px;
    stroke: var(--green-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.header-top__item a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.header-top__item a:hover {
    color: var(--white);
}

/* Header Main Bar */
.header-main {
    padding: 0 0;
}

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

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}

.site-logo__image {
    display: block;
    width: auto;
    height: 62px;
    max-width: 170px;
    object-fit: contain;
}

.mobile-call-toggle {
    display: none;
}

/* === NAVIGATION === */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--green-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav__link:hover,
.nav__link.active {
    color: var(--green-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
    transform: scaleX(1);
}

/* Dropdown Arrow */
.nav__arrow {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.nav__item:hover .nav__arrow,
.nav__item.open .nav__arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-heavy);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.nav__item:hover .dropdown,
.nav__item.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__item {
    display: block;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown__item:hover {
    background: var(--green-bg);
    color: var(--green-primary);
}

/* Header CTA */
.header-cta {
    margin-left: auto;
}

.header-cta .btn {
    padding: 10px 22px;
    font-size: 0.875rem;
}

/* Mobile Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle__bar {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === HERO === */
.hero {
    position: relative;
    background: var(--green-dark);
    color: var(--white);
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero--tall {
    min-height: 640px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,94,32,0.92) 0%, rgba(27,94,32,0.7) 60%, rgba(27,94,32,0.4) 100%);
    z-index: 1;
}

.hero__image {
    position: absolute;
    inset: 0;
    container-type: size;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.hero__video.is-loaded {
    opacity: 1;
}

.hero__video--embed {
    inset: auto;
    top: 50%;
    left: 50%;
    width: max(270vw, 480vh);
    height: max(151.88vw, 270vh);
    border: 0;
    opacity: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

/* Placeholder hero background */
.hero--placeholder {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 40%, #388e3c 70%, #1b5e20 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 16px;
    background: rgba(76,175,80,0.15);
    border: 1px solid rgba(76,175,80,0.3);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero__intro {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 58ch;
    line-height: 1.7;
}

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

/* Page Hero (inner pages) */
.page-hero {
    background: var(--green-primary);
    color: var(--white);
    padding: 96px 0 84px;
    position: relative;
    overflow: hidden;
}

.page-hero--placeholder {
    background:
        linear-gradient(90deg, rgba(8,173,82,0.94) 0%, rgba(8,173,82,0.78) 54%, rgba(8,173,82,0.32) 100%),
        #1f252b;
}

.page-hero__home-button {
    display: inline-flex;
    margin-top: 28px;
    padding: 14px 28px;
    border: 2px solid var(--white);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: #1f252b;
    font-weight: 700;
}

.page-hero__home-button:hover,
.page-hero__home-button:focus-visible {
    border-color: #1f252b;
    background: #1f252b;
    color: var(--white);
}

.page-hero--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-page-hero {
    min-height: 420px;
}

.page-hero.page-hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(90deg, rgba(8,173,82,0.94) 0%, rgba(8,173,82,0.78) 54%, rgba(8,173,82,0.32) 100%);
    z-index: 0;
}

.page-hero--image .container {
    position: relative;
    z-index: 1;
}

.page-hero::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.page-hero__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 16px;
    max-width: 680px;
}

.page-hero__intro {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 0;
    line-height: 1.7;
}

/* === CTA SECTION (Reusable Component) === */
.cta-section {
    background: var(--green-primary);
    color: var(--white);
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.03) 40px,
        rgba(255,255,255,0.03) 80px
    );
}

.cta-section__inner {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin: 0 auto 36px;
    max-width: 520px;
}

.cta-section__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    padding: 14px 28px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.cta-section .phone-link:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.cta-section .phone-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* === FOOTER === */
.site-footer {
    background: #111;
    color: rgba(255,255,255,0.7);
    padding-top: 64px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand__logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.footer-brand__tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 24px;
    max-width: 26ch;
    line-height: 1.6;
}

.footer-brand__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
}

.footer-contact-item:hover {
    color: var(--green-light);
}

.footer-contact-item svg {
    width: 15px;
    height: 15px;
    stroke: var(--green-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--green-light);
    padding-left: 4px;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-bottom a {
    color: rgba(255,255,255,0.35);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: rgba(255,255,255,0.7);
}

/* === SERVICE CARDS (Homepage) === */
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: var(--shadow-med);
    transform: translateY(-3px);
    border-color: var(--green-light);
}

.service-card__image {
    height: 180px;
}

.service-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.service-card__text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 16px;
    max-width: 100%;
    flex: 1;
}

.service-card__link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: var(--transition);
}

.service-card__link:hover {
    gap: 8px;
    color: var(--green-dark);
}

/* === TESTIMONIAL === */
.testimonial {
    background: var(--white);
    border-left: 4px solid var(--green-primary);
    padding: 28px 32px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-light);
}

.testimonial__text {
    font-size: 1rem;
    color: var(--text-mid);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.7;
    max-width: 100%;
}

.testimonial__author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.testimonial__source {
    font-size: 0.8rem;
    color: var(--text-light);
}

.stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
    color: #f9a825;
}

/* === STATS ROW === */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stat-item {
    background: var(--white);
    padding: 36px 24px;
    text-align: center;
}

.stat-item__number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--green-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-item__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--white);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb__sep {
    opacity: 1;
}

/* === NOTICE BANNER === */
.notice-banner {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--green-dark);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
}

.notice-banner svg {
    width: 20px;
    height: 20px;
    stroke: var(--green-primary);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 1px;
}
