/*
Theme Name: East Apex
Theme URI: https://eastapex.com/
Author: East Apex
Description: A fast, standalone WordPress theme for East Apex deck, carpentry, and outdoor construction services. No page builder required.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: east-apex
*/

:root {
  --ea-yellow: #ffe51f;
  --ea-yellow-hover: #f2d900;
  --ea-black: #090909;
  --ea-ink: #151515;
  --ea-muted: #686868;
  --ea-soft: #f3f3f1;
  --ea-white: #ffffff;
  --ea-border: #dfdfdc;
  --ea-radius: 18px;
  --ea-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  --ea-container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ea-ink);
  background: var(--ea-white);
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.ea-menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ea-container {
  width: min(var(--ea-container), calc(100% - 48px));
  margin-inline: auto;
}

.ea-section {
  padding: 104px 0;
}

.ea-section--soft {
  background: var(--ea-soft);
}

.ea-section--dark {
  color: var(--ea-white);
  background: #171411;
}

.ea-section-heading {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}

.ea-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #8d7600;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ea-section--dark .ea-eyebrow {
  color: var(--ea-yellow);
}

.ea-section-heading h2,
.ea-page-content h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.ea-section-heading p {
  max-width: 660px;
  margin: 22px auto 0;
  color: var(--ea-muted);
  font-size: 18px;
}

.ea-section--dark .ea-section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.ea-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: var(--ea-yellow);
  color: var(--ea-black);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.ea-button:hover,
.ea-button:focus-visible {
  background: var(--ea-yellow-hover);
  transform: translateY(-2px);
}

.ea-button--light {
  border-color: var(--ea-white);
  background: var(--ea-white);
}

.ea-button--outline {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ea-white);
  backdrop-filter: blur(10px);
}

.ea-button--outline:hover,
.ea-button--outline:focus-visible {
  background: var(--ea-white);
  color: var(--ea-black);
}

/* Header */
.ea-site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  color: var(--ea-white);
  background: var(--ea-black);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.admin-bar .ea-site-header {
  top: 32px;
}

.ea-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 34px;
}

.ea-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ea-white);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.ea-brand .custom-logo {
  width: auto;
  max-height: 44px;
}

.ea-brand .custom-logo-link {
  display: flex;
  align-items: center;
}

.ea-main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
}

.ea-main-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease;
}

.ea-main-nav a:hover,
.ea-main-nav a:focus-visible {
  color: var(--ea-yellow);
}

.ea-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ea-whatsapp {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #20bf55;
  color: #071d0e;
  transition: transform 180ms ease;
}

.ea-whatsapp:hover {
  transform: translateY(-2px) scale(1.04);
}

.ea-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ea-phone-button {
  min-height: 44px;
  padding: 12px 18px;
  background: var(--ea-yellow);
  color: var(--ea-black);
  font-size: 14px;
  font-weight: 850;
}

.ea-menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: #222;
  color: var(--ea-white);
  cursor: pointer;
}

.ea-menu-toggle span,
.ea-menu-toggle::before,
.ea-menu-toggle::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.ea-menu-toggle span {
  margin: 5px 0;
}

/* Hero */
.ea-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(820px, calc(100vh - 72px));
  align-items: center;
  overflow: hidden;
  color: var(--ea-white);
  background: #222 url("assets/images/hero.webp") center / cover no-repeat;
}

.ea-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.78) 0%, rgba(5, 5, 5, 0.48) 52%, rgba(5, 5, 5, 0.18) 100%);
  content: "";
}

.ea-hero-content {
  max-width: 720px;
  padding: 96px 0;
}

.ea-hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.ea-hero p {
  max-width: 690px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(18px, 2vw, 22px);
}

.ea-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.ea-hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 650;
}

.ea-hero-note::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ea-yellow);
  box-shadow: 0 0 0 6px rgba(255, 229, 31, 0.16);
  content: "";
}

/* Services */
.ea-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.ea-service-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.15fr;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--ea-border);
  border-radius: var(--ea-radius);
  background: var(--ea-white);
  box-shadow: 0 12px 34px rgba(18, 18, 18, 0.06);
}

.ea-service-card__image {
  min-height: 280px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.ea-service-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
}

.ea-service-card h3 {
  margin: 0 0 14px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ea-service-card p {
  margin: 0 0 24px;
  color: var(--ea-muted);
}

.ea-service-card .ea-button {
  min-height: 46px;
  margin-top: auto;
  padding-inline: 18px;
  font-size: 13px;
}

/* Gallery */
.ea-gallery {
  display: grid;
  grid-auto-rows: 250px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ea-gallery-button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ddd;
  cursor: zoom-in;
}

.ea-gallery-button:nth-child(1),
.ea-gallery-button:nth-child(8) {
  grid-column: span 2;
}

.ea-gallery-button:nth-child(4),
.ea-gallery-button:nth-child(11) {
  grid-row: span 2;
}

.ea-gallery-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 300ms ease;
}

.ea-gallery-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.46));
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.ea-gallery-button:hover img,
.ea-gallery-button:focus-visible img {
  transform: scale(1.055);
}

.ea-gallery-button:hover::after,
.ea-gallery-button:focus-visible::after {
  opacity: 1;
}

.ea-lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: none;
  padding: 70px;
  background: rgba(0, 0, 0, 0.92);
}

.ea-lightbox.is-open {
  display: grid;
  place-items: center;
}

.ea-lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 84vh;
  border-radius: 8px;
  object-fit: contain;
}

.ea-lightbox button {
  position: absolute;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.ea-lightbox__close {
  top: 20px;
  right: 20px;
}

.ea-lightbox__prev,
.ea-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.ea-lightbox__prev {
  left: 20px;
}

.ea-lightbox__next {
  right: 20px;
}

/* Reviews */
.ea-reviews-wrap {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.ea-review-viewport {
  overflow: hidden;
  border-radius: var(--ea-radius);
}

.ea-review-track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ea-review-slide {
  display: grid;
  flex: 0 0 100%;
  place-items: center;
  min-height: 620px;
  padding: 34px;
}

.ea-review-slide img {
  width: min(390px, 100%);
  max-height: 570px;
  border-radius: 20px;
  box-shadow: var(--ea-shadow);
  object-fit: contain;
}

.ea-review-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--ea-border);
  border-radius: 50%;
  background: var(--ea-white);
  color: var(--ea-black);
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-50%);
}

.ea-review-control--prev {
  left: -20px;
}

.ea-review-control--next {
  right: -20px;
}

.ea-review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.ea-review-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
}

.ea-review-dot.is-active {
  width: 26px;
  border-radius: 99px;
  background: var(--ea-black);
}

/* Benefits */
.ea-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ea-benefit {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--ea-radius);
  background: rgba(255, 255, 255, 0.045);
}

.ea-benefit__number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--ea-yellow);
  color: var(--ea-black);
  font-size: 13px;
  font-weight: 900;
}

.ea-benefit h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.ea-benefit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

/* Form */
.ea-estimate-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.ea-estimate-copy {
  position: sticky;
  top: 120px;
}

.ea-estimate-copy h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.ea-estimate-copy p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
}

.ea-contact-list {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.ea-contact-list a {
  color: var(--ea-yellow);
  font-size: 18px;
  font-weight: 800;
}

.ea-estimate-form {
  display: grid;
  gap: 16px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--ea-radius);
  background: rgba(255, 255, 255, 0.06);
}

.ea-field label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.ea-field input,
.ea-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  outline: none;
  background: var(--ea-white);
  color: var(--ea-black);
}

.ea-field input {
  height: 54px;
  padding: 0 16px;
}

.ea-field textarea {
  min-height: 140px;
  padding: 16px;
  resize: vertical;
}

.ea-field input:focus,
.ea-field textarea:focus {
  border-color: var(--ea-yellow);
  box-shadow: 0 0 0 3px rgba(255, 229, 31, 0.2);
}

.ea-honeypot {
  position: absolute !important;
  left: -10000px !important;
}

.ea-form-note {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.ea-form-note a {
  color: var(--ea-yellow);
  text-decoration: underline;
}

.ea-form-status {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 700;
}

.ea-form-status--success {
  background: #d7f7df;
  color: #0b5d23;
}

.ea-form-status--error {
  background: #ffe1e1;
  color: #8a1313;
}

/* Process */
.ea-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: ea-process;
}

.ea-process-step {
  position: relative;
  padding: 32px;
  border: 1px solid var(--ea-border);
  border-radius: var(--ea-radius);
  background: var(--ea-white);
  counter-increment: ea-process;
}

.ea-process-step::before {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ea-black);
  color: var(--ea-yellow);
  content: counter(ea-process, decimal-leading-zero);
  font-size: 13px;
  font-weight: 900;
}

.ea-process-step:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 54px;
  right: -28px;
  width: 34px;
  height: 2px;
  background: var(--ea-yellow);
  content: "";
}

.ea-process-step h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.ea-process-step p {
  margin: 0;
  color: var(--ea-muted);
}

/* FAQ */
.ea-faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--ea-border);
}

.ea-faq-item {
  border-bottom: 1px solid var(--ea-border);
}

.ea-faq-item summary {
  position: relative;
  padding: 24px 56px 24px 0;
  list-style: none;
  font-size: 18px;
  font-weight: 760;
  cursor: pointer;
}

.ea-faq-item summary::-webkit-details-marker {
  display: none;
}

.ea-faq-item summary::before,
.ea-faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 20px;
  height: 2px;
  background: var(--ea-black);
  content: "";
  transition: transform 180ms ease;
}

.ea-faq-item summary::after {
  transform: rotate(90deg);
}

.ea-faq-item[open] summary::after {
  transform: rotate(0deg);
}

.ea-faq-item__answer {
  max-width: 760px;
  padding: 0 0 26px;
  color: var(--ea-muted);
}

.ea-faq-item__answer p {
  margin: 0;
}

.ea-faq-contact {
  margin-top: 50px;
  text-align: center;
}

.ea-faq-contact p {
  margin: 0 0 8px;
  color: var(--ea-muted);
}

.ea-faq-contact a {
  font-size: 20px;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--ea-yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}

/* Final CTA and footer */
.ea-final-cta {
  color: var(--ea-white);
  background: var(--ea-black);
  text-align: center;
}

.ea-final-cta__inner {
  max-width: 760px;
  margin: 0 auto;
}

.ea-final-cta h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ea-final-cta p {
  margin: 22px auto 34px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 18px;
}

.ea-site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  background: var(--ea-black);
  font-size: 13px;
}

.ea-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ea-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ea-footer-links a:hover {
  color: var(--ea-yellow);
}

/* Standard page */
.ea-page-main {
  min-height: 65vh;
  padding: 90px 0 110px;
}

.ea-page-content {
  max-width: 820px;
  margin: 0 auto;
}

.ea-page-content h1 {
  margin-bottom: 38px;
}

.ea-page-content h2 {
  margin: 42px 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.ea-page-content p,
.ea-page-content li {
  color: #4f4f4f;
  font-size: 17px;
}

.ea-page-content a {
  text-decoration: underline;
  text-decoration-color: var(--ea-yellow);
  text-decoration-thickness: 3px;
}

@media (max-width: 1080px) {
  .ea-service-card {
    grid-template-columns: 1fr;
  }

  .ea-service-card__image {
    height: 300px;
  }

  .ea-benefits-grid,
  .ea-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ea-process-step::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .admin-bar .ea-site-header {
    top: 46px;
  }

  .ea-header-inner {
    min-height: 64px;
  }

  .ea-menu-toggle {
    display: flex;
    flex-direction: column;
    margin-left: auto;
  }

  .ea-main-nav {
    position: fixed;
    z-index: 999;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 36px 24px;
    background: rgba(9, 9, 9, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .admin-bar .ea-main-nav {
    top: 110px;
  }

  .ea-main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .ea-main-nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 23px;
  }

  .ea-header-actions {
    margin-left: auto;
  }

  .ea-phone-button {
    display: none;
  }

  .ea-estimate-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .ea-estimate-copy {
    position: static;
  }

  .ea-gallery {
    grid-auto-rows: 220px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ea-container {
    width: min(100% - 32px, var(--ea-container));
  }

  .ea-section {
    padding: 76px 0;
  }

  .ea-section-heading {
    margin-bottom: 38px;
  }

  .ea-section-heading p {
    font-size: 16px;
  }

  .ea-hero {
    min-height: 660px;
    background-position: 58% center;
  }

  .ea-hero::before {
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.44));
  }

  .ea-hero-content {
    padding: 72px 0;
  }

  .ea-hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .ea-hero p {
    font-size: 17px;
  }

  .ea-hero-actions {
    display: grid;
  }

  .ea-service-grid,
  .ea-benefits-grid,
  .ea-process-grid {
    grid-template-columns: 1fr;
  }

  .ea-service-card__content,
  .ea-estimate-form {
    padding: 26px;
  }

  .ea-gallery {
    grid-auto-rows: 190px;
  }

  .ea-gallery-button:nth-child(1),
  .ea-gallery-button:nth-child(8),
  .ea-gallery-button:nth-child(4),
  .ea-gallery-button:nth-child(11) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .ea-lightbox {
    padding: 60px 16px;
  }

  .ea-lightbox__prev,
  .ea-lightbox__next {
    top: auto;
    bottom: 16px;
  }

  .ea-review-slide {
    min-height: 520px;
    padding: 18px;
  }

  .ea-review-slide img {
    max-height: 490px;
  }

  .ea-review-control {
    width: 44px;
    height: 44px;
  }

  .ea-review-control--prev {
    left: -8px;
  }

  .ea-review-control--next {
    right: -8px;
  }

  .ea-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
