/* ============================================
   WEBSTER ELECTRICAL - HOMEPAGE
   ============================================ */

/* Font */
@font-face {
    font-family: 'Satoshi';
    src: url('/fonts/satoshi/Satoshi-Regular.woff2') format('woff2'),
         url('/fonts/satoshi/Satoshi-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Satoshi', sans-serif; color: #303231; background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }

/* Section Title */
.we-section-title { font-family: 'Satoshi', sans-serif; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; color: #303231; margin-bottom: 24px; }
.we-section-title--light { color: #fff; }
.we-section-title--center { text-align: center; }
.we-section-title--center .we-section-title__line { margin: 12px auto 0; }
.we-section-title__line { display: block; width: 48px; height: 3px; background: #e8a020; margin-top: 12px; border-radius: 2px; }

/* Buttons */
.we-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; font-family: 'Satoshi', sans-serif; font-size: 0.95rem; font-weight: 700; text-decoration: none; border-radius: 6px; border: none; transition: background 0.2s ease; cursor: pointer; }
.we-btn--primary { background: #e8a020; color: #303231; }
.we-btn--primary:hover { background: #d4911a; }
.we-btn--dark { background: #303231; color: #fff; }
.we-btn--dark:hover { background: #1a1b1a; }
.we-btn--book { background: #303231; color: #fff; }
.we-btn--book:hover { background: #1a1b1a; }

/* Contextual Links */
.we-link { color: #303231; text-decoration: underline; text-decoration-color: #e8a020; text-underline-offset: 3px; text-decoration-thickness: 2px; font-weight: 500; transition: color 0.2s ease; }
.we-link:hover { color: #e8a020; }
.we-link--light { color: #fff; text-decoration-color: #e8a020; }
.we-link--light:hover { color: #e8a020; }

/* Utility */
.we-text--white { color: #fff !important; }


/* ---- HERO ---- */
.we-home-hero { background: url('/images/webster-hero.jpg') center center / cover no-repeat; position: relative; }
.we-home-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.we-home-hero__inner { max-width: 1280px; margin: 0 auto; padding: 80px 24px 88px; position: relative; z-index: 1; text-align: center; }
.we-home-hero__content { max-width: 720px; margin: 0 auto; }
.we-home-hero__title { font-family: 'Satoshi', sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.we-home-hero__subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 32px; }
.we-home-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 28px; }
.we-home-hero .we-btn--dark { background: #000; color: #fff; }
.we-home-hero .we-btn--dark:hover { background: #1a1b1a; }
.we-home-hero__trust { padding-top: 8px; }

@media (min-width: 768px) {
    .we-home-hero__inner { padding: 104px 24px 112px; text-align: left; }
    .we-home-hero__content { margin: 0; }
    .we-home-hero__actions { justify-content: flex-start; }
}


/* ---- TRUST STRIP ---- */
.we-home-trust { background: #f5f5f0; border-bottom: 1px solid #e8e8e3; }
.we-home-trust__inner { max-width: 1280px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 32px; }
.we-home-trust__item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #303231; }


/* ---- SERVICES ---- */
.we-home-services { padding: 80px 0 80px; }
.we-home-services__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.we-home-services__intro { font-size: 1.05rem; color: #666; margin-bottom: 56px; max-width: 520px; margin-left: auto; margin-right: auto; text-align: center; }

/* Alternating rows */
.we-svc-row {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #f7f7f4; border-radius: 12px; overflow: hidden; margin-bottom: 24px;
}
.we-svc-row--dark { background: #303231; color: #fff; }
.we-svc-row--dark .we-svc-row__content h3 { color: #fff; }
.we-svc-row--dark .we-svc-row__content p { color: rgba(255,255,255,0.75); }

.we-svc-row__img { width: 100%; overflow: hidden; position: relative; }
.we-svc-row__img::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.we-svc-row__img img { width: 100%; height: 280px; object-fit: cover; display: block; background: #e0e0dc; }

.we-svc-row__content { padding: 40px 24px; max-width: 560px; }
.we-svc-row__content h3 { font-family: 'Satoshi', sans-serif; font-size: 1.4rem; font-weight: 700; color: #303231; margin-bottom: 14px; }
.we-svc-row__content p { font-size: 1rem; color: #555; line-height: 1.75; margin-bottom: 28px; }

@media (min-width: 768px) {
    .we-svc-row { flex-direction: row; text-align: left; }
    .we-svc-row--reverse { flex-direction: row-reverse; }
    .we-svc-row__img { width: 50%; flex-shrink: 0; }
    .we-svc-row__img img { height: 360px; }
    .we-svc-row__content { display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; flex: 1; max-width: none; }
}

/* Trio cards */
.we-svc-trio { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 16px; }

.we-svc-trio__card {
    display: flex; flex-direction: column; background: #f7f7f4;
    text-align: center; border-radius: 12px; overflow: hidden;
}
.we-svc-trio__card--dark { background: #303231; }

.we-svc-trio__img { width: 100%; height: 220px; object-fit: cover; display: block; background: #e0e0dc; }

.we-svc-trio__body {
    padding: 32px 24px 36px; display: flex; flex-direction: column; align-items: center; flex: 1;
}
.we-svc-trio__body h3 { font-family: 'Satoshi', sans-serif; font-size: 1.2rem; font-weight: 700; color: #303231; margin-bottom: 12px; }
.we-svc-trio__body p { font-size: 0.9rem; color: #666; line-height: 1.7; margin-bottom: 24px; flex: 1; }
.we-svc-trio__body .we-btn { margin-top: auto; }

@media (min-width: 768px) {
    .we-svc-trio { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .we-svc-trio__body { align-items: flex-start; text-align: left; }
}


/* ---- WHO WE ARE ---- */
.we-home-about { padding: 0; background: #303231; }
.we-home-about__inner { max-width: 1280px; margin: 0 auto; padding: 80px 24px; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.we-home-about__img { width: 100%; max-width: 100%; border-radius: 10px; overflow: hidden; }
.we-home-about__img img { width: 100%; height: auto; display: block; background: #e0e0dc; }
.we-home-about__content { max-width: 600px; }
.we-home-about__label { display: inline-block; font-family: 'Satoshi', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #e8a020; margin-bottom: 16px; }
.we-home-about__content .we-section-title__line { margin: 12px auto 0; }
.we-home-about__content p { font-size: 1.05rem; color: rgba(255,255,255,0.75); line-height: 1.75; margin-bottom: 20px; }
.we-home-about__content p:last-of-type { margin-bottom: 32px; }

@media (min-width: 768px) {
    .we-home-about__inner { flex-direction: row; text-align: left; gap: 56px; padding: 100px 24px; align-items: stretch; }
    .we-home-about__img { max-width: 480px; flex-shrink: 0; }
    .we-home-about__img img { height: 100%; object-fit: cover; }
    .we-home-about__content .we-section-title__line { margin: 12px 0 0; }
    .we-home-about__content { display: flex; flex-direction: column; justify-content: center; }
}


/* ---- WHY CHOOSE US ---- */
.we-home-why { padding: 80px 0; background: #fff; }
.we-home-why__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; text-align: center; }
.we-home-why__grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
.we-why-card { background: #f0ede4; border-radius: 12px; padding: 40px 28px; text-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.we-why-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.we-why-card__logo { width: 120px; height: 120px; margin: 0 auto 28px; display: flex; align-items: center; justify-content: center; background: #f7f7f4; border: 2px solid #e8a020; border-radius: 12px; padding: 16px; }
.we-why-card__logo img { max-width: 100%; max-height: 100%; display: block; object-fit: contain; }
.we-why-card h3 { font-family: 'Satoshi', sans-serif; font-size: 1.05rem; font-weight: 700; color: #303231; margin-bottom: 12px; }
.we-why-card p { font-size: 0.9rem; color: #555; line-height: 1.7; }

@media (min-width: 768px) { .we-home-why__grid { grid-template-columns: repeat(3, 1fr); } }


/* ---- TESTIMONIALS ---- */
.we-home-testimonials { padding: 80px 0; background: #f7f7f4; }
.we-home-testimonials__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; text-align: center; }
.we-home-testimonials__grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px; align-items: stretch; }
.we-testimonial { background: #fff; border-radius: 10px; padding: 36px 28px; text-align: center; display: flex; flex-direction: column; }
.we-testimonial__header { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.we-testimonial__stars { display: flex; gap: 2px; }
.we-testimonial__google svg { display: block; }
.we-testimonial__text { font-size: 0.95rem; color: #444; line-height: 1.75; margin-bottom: 24px; font-style: italic; flex: 1; }
.we-testimonial__author { font-family: 'Satoshi', sans-serif; font-size: 0.875rem; font-weight: 700; color: #303231; margin-top: auto; }

@media (min-width: 768px) {
    .we-home-testimonials__grid { grid-template-columns: repeat(3, 1fr); }
    .we-testimonial { text-align: left; }
    .we-testimonial__header { justify-content: flex-start; }
}


/* ---- AREAS ---- */
.we-home-areas { padding: 80px 0; background: #303231; }
.we-home-areas__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; text-align: center; }
.we-home-areas__intro { font-size: 1.05rem; color: rgba(255,255,255,0.7); margin-bottom: 40px; }
.we-home-areas__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 800px; margin: 0 auto; }
.we-area-card { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px 16px; background: rgba(255,255,255,0.06); border-radius: 8px; text-decoration: none; color: #fff; transition: background 0.25s ease; }
.we-area-card:hover { background: #e8a020; color: #303231; }
.we-area-card__pin { display: flex; align-items: center; color: #e8a020; font-size: 1rem; }
.we-area-card:hover .we-area-card__pin { color: #303231; }
.we-area-card__name { font-family: 'Satoshi', sans-serif; font-size: 1rem; font-weight: 700; }
.we-area-card__label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: #e8a020; color: #303231; padding: 2px 8px; border-radius: 3px; }

@media (min-width: 600px) { .we-home-areas__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .we-home-areas__grid { grid-template-columns: repeat(5, 1fr); } }


/* ---- CTA ---- */
.we-home-cta { padding: 80px 0; background: #e8a020; text-align: center; }
.we-home-cta__inner { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.we-home-cta .we-section-title { color: #303231; }
.we-home-cta .we-section-title__line { background: #303231; margin: 12px auto 0; }
.we-home-cta p { font-size: 1.05rem; color: rgba(48,50,49,0.8); margin-bottom: 32px; }
.we-home-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 28px; }
.we-home-cta__reviews { padding-top: 4px; }
