/*
Theme Name: Expert Pro Painters Clone
Theme URI: https://expertpropaintersinc.com/
Author: LuiiSbg Tech
Description: WordPress clone of Expert Pro Painters Inc (Hostinger builder).
Version: 2.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: expert-pro-painters
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --epp-green: #69be28;
  --epp-green-dark: #008361;
  --epp-navy: #002244;
  --epp-dark: #1d1e20;
  --epp-muted: #727586;
  --epp-bg: #ffffff;
  --epp-bg-soft: #f2f3f6;
  --epp-border: #dadce0;
  --epp-shadow: 0 12px 40px rgba(0, 34, 68, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--epp-dark);
  background: var(--epp-bg);
  line-height: 1.6;
}
body.epp-no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.epp-shell { min-height: 100vh; }
.epp-container { width: min(1224px, calc(100% - 32px)); margin: 0 auto; }
.epp-section { padding: 72px 0; }

.epp-heading {
  margin: 0 0 20px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  text-align: center;
}
.epp-lead {
  margin: 0 auto 32px;
  max-width: 900px;
  color: var(--epp-dark);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

/* Header — transparent over hero */
.epp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.epp-header--on-light {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
.epp-header__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.epp-brand__logo {
  width: min(220px, 42vw);
  height: auto;
}
.epp-brand__logo--dark { display: none; }
.epp-header--on-light .epp-brand__logo--light { display: none; }
.epp-header--on-light .epp-brand__logo--dark { display: block; }

.epp-header .epp-nav,
.epp-header .epp-nav a,
.epp-header .epp-nav__group > button {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.epp-header .epp-nav a:hover,
.epp-header .epp-nav__group > button:hover { color: var(--epp-green); }
.epp-header--on-light .epp-nav,
.epp-header--on-light .epp-nav a,
.epp-header--on-light .epp-nav__group > button {
  color: var(--epp-dark);
  text-shadow: none;
}
.epp-header--on-light .epp-nav a:hover,
.epp-header--on-light .epp-nav__group > button:hover { color: var(--epp-green-dark); }

.epp-nav { display: flex; align-items: center; gap: 28px; font-family: 'Lato', Arial, sans-serif; font-weight: 600; font-size: 0.95rem; }
.epp-nav__group { position: relative; }
.epp-nav__group > button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 0;
}
.epp-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--epp-border);
  border-radius: 10px;
  box-shadow: var(--epp-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms ease;
}
.epp-nav__group:hover .epp-dropdown,
.epp-nav__group:focus-within .epp-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.epp-dropdown a { display: block; padding: 10px 12px; border-radius: 6px; font-weight: 500; color: var(--epp-dark); }
.epp-dropdown a:hover { background: var(--epp-bg-soft); }

.epp-menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 34, 68, 0.35);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.epp-header--on-light .epp-menu-toggle {
  border-color: var(--epp-border);
  background: #fff;
  color: var(--epp-dark);
}

.epp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.epp-btn--primary {
  background: var(--epp-green);
  color: #fff;
  border-color: #fff;
}
.epp-btn--primary:hover { background: var(--epp-navy); color: #fff; }

/* Hero */
.epp-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 100px 0 80px;
  overflow: hidden;
}
.epp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.epp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 34, 68, 0.55) 0%, rgba(0, 34, 68, 0.75) 100%);
}
.epp-hero__inner { position: relative; z-index: 1; max-width: 920px; }
.epp-hero h1 {
  margin: 0 0 20px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
}
.epp-hero__tag {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.3;
}
.epp-hero__seattle {
  display: inline-block;
  margin: 8px 0 24px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid #fff;
  background: var(--epp-green);
  color: #fff;
  font-weight: 500;
}
.epp-hero__seattle:hover { background: var(--epp-navy); }
.epp-hero__trust {
  margin: 0 0 28px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
}
.epp-hero__license { margin-top: 20px; font-size: 0.95rem; }
.epp-hero__license a { color: #fff; text-decoration: underline; }

/* Services grid (original embed) */
#services { text-align: center; }
.epp-services-title {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 500;
}
.epp-services-grid,
.epp-services-grid.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.epp-service-card,
.epp-service-card.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: #000;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, background-color 0.3s;
}
.epp-service-card:hover,
.epp-service-card.card:hover {
  transform: scale(1.03);
  background-color: #1a1a1a;
}
.epp-service-card img,
.epp-service-card.card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}
.epp-service-card img[alt="Exterior Painting"],
.epp-service-card.card img[alt="Exterior Painting"] {
  filter: brightness(0) saturate(100%);
}
.epp-service-card small,
.epp-service-card.card small {
  font-size: 14px;
  display: block;
  color: #000;
}

/* Stats (original embed) */
.epp-stats,
.epp-stats.stats {
  font-weight: bold;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 700px;
  margin: auto;
  justify-content: center;
  align-items: center;
}
.epp-stat,
.epp-stat.stat {
  text-align: center;
  min-width: 120px;
}
.epp-stat .number,
.stats .stat .number {
  font-size: 3rem;
  color: #000;
  display: block;
  line-height: 1;
}
.epp-stat .label,
.stats .stat .label {
  font-size: 1rem;
  color: #aaa;
  margin-top: 6px;
  font-weight: bold;
  display: block;
}

/* About */
.epp-about { max-width: 900px; margin: 0 auto; text-align: center; }

/* Contact */
.epp-contact-heading { margin: 0 0 20px; font-size: 1rem; text-align: center; }
.epp-contact-meta p { margin: 0 0 10px; text-align: center; }
.epp-contact-meta a { color: var(--epp-green-dark); }
.epp-contact-block { max-width: 720px; margin: 0 auto; text-align: center; }
.epp-email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}
.epp-email-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 200px;
  padding: 14px 16px;
  border: 1px solid var(--epp-border);
  border-radius: 8px;
}

/* Map */
.epp-service-area { text-align: center; }
.epp-map {
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}
.epp-map iframe { display: block; width: 100%; min-height: 480px; }

/* Gallery */
.epp-gallery-sub {
  text-align: center;
  margin: 0 0 36px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}
.epp-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.epp-gallery figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
}
.epp-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}
.epp-gallery figure:nth-child(1) { grid-column: span 4; }
.epp-gallery figure:nth-child(2) { grid-column: span 4; }
.epp-gallery figure:nth-child(3) { grid-column: span 4; }
.epp-gallery figure:nth-child(4) { grid-column: span 6; min-height: 280px; }
.epp-gallery figure:nth-child(5) { grid-column: span 6; min-height: 280px; }

/* Featured testimonials */
.epp-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
  max-width: 1100px;
  margin: 0 auto 48px;
}
.epp-testimonial { text-align: left; position: relative; }
.epp-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}
.epp-testimonial__text {
  margin: 0 0 16px;
  color: #000;
  font-size: 1rem;
  line-height: 1.65;
  background: #f4f4f4;
  padding: 20px;
  border-radius: 0;
}
.epp-testimonial__name {
  margin: 0 0 16px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgb(13, 20, 26);
}
.epp-testimonial__photo {
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
}
.epp-testimonial__photo img {
  width: 100%;
  min-height: 240px;
  object-fit: cover;
}
.epp-testimonial__stars {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgb(13, 20, 26);
}

/* Yelp reviews (original embed) */
#reviews .review-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.review-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
}
.review-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.review-card .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card .user-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #666;
}
.review-card .stars { color: gold; font-size: 1rem; }
.review-card .review-date { font-size: 0.85rem; color: #bbb; }
.review-card .review-location { font-size: 0.9rem; color: #aaa; }
.review-card p {
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 8px 0;
  line-height: 1.5;
}
.review-card a {
  color: var(--epp-green-dark);
  font-weight: 600;
  text-decoration: none;
}
.review-card .placeholder-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-card .placeholder-icon svg { fill: white; width: 30px; height: 30px; }
.write-review-button {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}
.write-review-button a {
  display: inline-block;
  background-color: #d32323;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.write-review-button a:hover { background-color: #a61b1b; }

/* Reveal */
.epp-reveal {
  opacity: 1;
  transform: translateY(24px);
  transition: transform 0.55s ease;
}
.epp-reveal.is-visible { transform: translateY(0); }

.epp-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}
.epp-alert--success { background: #def4f0; color: #008361; }
.epp-alert--error { background: #ffe8ef; color: #d63163; }

/* Site footer (reviews + legal bar on all pages) */
.epp-site-footer { margin-top: 0; }
.epp-footer-reviews {
  background: #fff;
  border-top: 1px solid var(--epp-border);
}
.epp-footer {
  background: #fff;
  border-top: 1px solid var(--epp-border);
  padding: 40px 0 32px;
  text-align: center;
  color: var(--epp-dark);
  font-size: 0.9rem;
}
.epp-footer p { margin: 0 0 8px; }

/* Service pages */
.epp-service-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--epp-navy) center/cover no-repeat;
  background-image: var(--epp-service-hero-image);
  padding: 120px 0 72px;
}
.epp-service-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 34, 68, 0.55) 0%, rgba(0, 34, 68, 0.82) 100%);
}
.epp-service-hero__inner { position: relative; z-index: 1; max-width: 900px; }
.epp-service-hero__title {
  margin: 0 0 16px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
}
.epp-service-hero__subtitle {
  margin: 0 0 28px;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
}
.epp-service-hero__subtitle span { display: block; }
.epp-service-hero__cta { margin: 0; }
.epp-service-body { background: #fff; }
.epp-service-block { padding: 56px 0; }
.epp-service-block:nth-child(even) { background: var(--epp-bg-soft); }
.epp-service-intro,
.epp-service-text,
.epp-service-list-block,
.epp-service-highlight { max-width: 820px; margin: 0 auto; text-align: center; }
.epp-service-h2 {
  margin: 0 0 12px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--epp-navy);
  line-height: 1.2;
}
.epp-service-h3 {
  margin: 0 0 20px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--epp-green-dark);
}
.epp-service-prose { text-align: left; color: var(--epp-text); line-height: 1.7; }
.epp-service-prose p { margin: 0 0 16px; }
.epp-service-list { margin: 16px 0 0; padding-left: 1.25rem; text-align: left; }
.epp-service-list li { margin-bottom: 10px; }
.epp-service-list--bullets { list-style: disc; }
.epp-service-highlight {
  padding: 32px;
  border: 1px solid var(--epp-border);
  border-radius: 12px;
  background: #fff;
}
.epp-service-highlight__lead { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.epp-service-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.epp-service-media--reverse .epp-service-media__figure { order: 2; }
.epp-service-media--reverse .epp-service-media__body { order: 1; }
.epp-service-media__figure { margin: 0; }
.epp-service-media__figure img,
.epp-service-gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.epp-service-media__body { text-align: left; }
.epp-service-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.epp-service-gallery figure { margin: 0; }
.epp-service-steps .epp-service-step { margin-bottom: 48px; }
.epp-service-steps .epp-service-step:last-child { margin-bottom: 0; }

/* Static pages */
.epp-static-hero { padding: 120px 0 40px; background: var(--epp-bg-soft); text-align: center; }
.epp-static-content { padding: 40px 0 72px; }
.epp-static-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.epp-content-card {
  background: #fff;
  border: 1px solid var(--epp-border);
  border-radius: 12px;
  padding: 32px;
}
.epp-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--epp-green-dark);
}
.epp-static-hero__cta { margin-top: 24px; text-align: center; }

@media (min-width: 600px) {
  .epp-services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .epp-stats,
  .epp-stats.stats {
    flex-direction: row;
  }
}
@media (min-width: 900px) {
  .epp-services-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
  .epp-menu-toggle { display: inline-flex; }
  .epp-nav {
    position: fixed;
    inset: 88px 16px auto 16px;
    max-height: calc(100vh - 110px);
    overflow: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--epp-border);
    border-radius: 12px;
    box-shadow: var(--epp-shadow);
    color: var(--epp-dark);
    text-shadow: none;
  }
  .epp-nav.is-open { display: flex; }
  .epp-dropdown { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .epp-testimonials { grid-template-columns: 1fr; }
  .epp-gallery { grid-template-columns: 1fr 1fr; }
  .epp-gallery figure { grid-column: span 1 !important; }
  .epp-static-grid { grid-template-columns: 1fr; }
  .epp-service-media,
  .epp-service-media--reverse { grid-template-columns: 1fr; }
  .epp-service-media--reverse .epp-service-media__figure,
  .epp-service-media--reverse .epp-service-media__body { order: unset; }
  .epp-service-gallery { grid-template-columns: 1fr; }
  .epp-nav .epp-btn--primary { width: 100%; margin-top: 8px; }
}

@media (max-width: 640px) {
  .epp-section { padding: 56px 0; }
  .epp-hero { min-height: 78vh; padding: 88px 0 64px; }
  .epp-stats { gap: 20px; }
  .epp-gallery { grid-template-columns: 1fr; }
  .epp-email-form { flex-direction: column; }
  .epp-email-form button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
