/* ═══════════════════════════════════════════════════════════════
   WEST YORK PAVING LTD. — BRAND OVERRIDE CSS
   Replaces BuildGo amber (#FFBF43) with WYP brand red (#C8201E)
   ═══════════════════════════════════════════════════════════════ */

/* ─── FONT OVERRIDE ─────────────────────────────────────────── */
:root {
  --primary-color-1: #C8201E;     /* WYP brand red (AA-safe on dark bg) */
  --primary-hover:   #A01818;     /* darker hover */
  --primary-light:   #F2E8E8;     /* light tint for backgrounds */
  --dark-bg:         #1A1A1A;     /* near-black header/footer */
  --dark-bg2:        #141414;
  --text-heading-color: #111111;
  --body-color:       #555555;
  --border-color-1:  #E8E8E8;

  /* Typography */
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body,
p,
li,
span,
input,
textarea,
select,
button {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.wyp-hero__headline,
.title_split_anim,
.footer__one-cta-title h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ─── HEADER / NAV ───────────────────────────────────────────── */
.header__area {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 3px solid var(--primary-color-1);
}

.wyp-logo {
  max-height: 52px;
  width: auto;
}

.header__area-menubar-center-menu ul li a {
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #222;
}
.header__area-menubar-center-menu ul li a:hover,
.header__area-menubar-center-menu ul li.active > a {
  color: var(--primary-color-1);
}

/* Primary button */
.build_button,
.wyp-btn-primary {
  background: var(--primary-color-1) !important;
  border-color: var(--primary-color-1) !important;
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 4px;
  transition: background .2s ease, transform .15s ease;
}
.build_button:hover,
.wyp-btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Phone button in header */
.wyp-phone-btn .build_button {
  font-size: .8rem;
  padding: .6rem 1.1rem;
  white-space: nowrap;
}

/* Subtitle label */
.subtitle {
  color: var(--primary-color-1) !important;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

/* ─── HERO ────────────────────────────────────────────────────── */
.wyp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.wyp-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    url('https://westyorkpaving.com/wp-content/uploads/2016/02/SAM_0301-2.jpg.webp');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}

.wyp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,10,10,.82) 0%,
    rgba(10,10,10,.55) 55%,
    rgba(10,10,10,.20) 100%
  );
}

.wyp-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.wyp-hero__eyebrow {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary-color-1);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.wyp-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--primary-color-1);
}

.wyp-hero__headline {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.04;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}

.wyp-hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 2.4rem;
  max-width: 520px;
}

.wyp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.wyp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border: 2px solid rgba(255,255,255,.55);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .15s;
}
.wyp-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.12);
  color: #fff;
  transform: translateY(-2px);
}

.wyp-hero__badges {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}
.wyp-badge {
  height: 64px;
  width: auto;
  border-radius: 6px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
  transition: transform .2s;
}
.wyp-badge:hover { transform: scale(1.06); }

.wyp-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-decoration: none;
}
.wyp-scroll-icon {
  display: block;
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 13px;
  position: relative;
}
.wyp-scroll-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { opacity: 1; top: 6px; }
  80%  { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 6px; }
}

/* ─── TRUST BAR ───────────────────────────────────────────────── */
.wyp-trust {
  background: #fff;
  border-bottom: 1px solid var(--border-color-1);
  padding: 2rem 0;
  position: relative;
  z-index: 10;
}

.wyp-trust__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.wyp-trust__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--border-color-1);
}
.wyp-trust__item:last-child { border-right: none; }

.wyp-trust__item i {
  font-size: 2rem;
  color: var(--primary-color-1);
  flex-shrink: 0;
}
.wyp-trust__item strong {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-heading-color);
  line-height: 1.3;
}
.wyp-trust__item span {
  font-size: .75rem;
  color: #888;
}

@media (max-width: 991px) {
  .wyp-trust__grid { grid-template-columns: repeat(3, 1fr); }
  .wyp-trust__item:nth-child(3) { border-right: none; }
}
@media (max-width: 575px) {
  .wyp-trust__grid { grid-template-columns: 1fr 1fr; }
  .wyp-trust__item { border-right: 1px solid var(--border-color-1) !important; }
  .wyp-trust__item:nth-child(even) { border-right: none !important; }
  .wyp-trust__item:nth-child(5) { grid-column: 1 / -1; border-right: none !important; }
}

/* ─── ABOUT ─────────────────────────────────────────────────────*/
.wyp-about__images {
  position: relative;
  padding-right: 2rem;
}
.wyp-about__img-main {
  width: 75%;
  border-radius: 6px;
  display: block;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.wyp-about__img-secondary {
  position: absolute;
  right: 0;
  bottom: -3rem;
  width: 48%;
  border-radius: 6px;
  border: 5px solid #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.wyp-about__badge-year {
  position: absolute;
  top: 1.5rem;
  right: -1rem;
  background: var(--primary-color-1);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(200,32,30,.4);
}
.wyp-year {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-display);
  line-height: 1;
}
.wyp-year-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .85;
}

.wyp-about__pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}
.wyp-pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.wyp-pillar i {
  font-size: 1.6rem;
  color: var(--primary-color-1);
  margin-top: .2rem;
  flex-shrink: 0;
}
.wyp-pillar h5 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--text-heading-color);
}
.wyp-pillar p {
  font-size: .85rem;
  color: var(--body-color);
  margin: 0;
  line-height: 1.6;
}

/* ─── SERVICES ───────────────────────────────────────────────── */
.wyp-service-item {
  padding: 2.5rem 2rem !important;
  border-top: 3px solid var(--primary-color-1) !important;
  position: relative;
  overflow: hidden;
}
.wyp-service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-color-1);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s ease;
  z-index: 0;
}
.wyp-service-item:hover::before { transform: scaleY(1); }
.wyp-service-item > * { position: relative; z-index: 1; }
.wyp-service-item:hover i,
.wyp-service-item:hover h4,
.wyp-service-item:hover p,
.wyp-service-item:hover .more_btn {
  color: #fff !important;
}
.wyp-service-item p {
  font-size: .875rem;
  color: var(--body-color);
  margin: .75rem 0 1rem;
  line-height: 1.65;
}

/* ─── STATS ───────────────────────────────────────────────────── */
.wyp-stats {
  background: var(--primary-color-1);
}
.wyp-stats .counter__one-area-item {
  border-color: rgba(255,255,255,.2) !important;
}
.wyp-stats .counter__one-area-item h2 {
  color: #fff !important;
}
.wyp-stats .counter__one-area-item p {
  color: rgba(255,255,255,.8) !important;
}

/* ─── PROJECTS ───────────────────────────────────────────────── */
.wyp-portfolio-item {
  border-radius: 6px;
  overflow: hidden;
}
.wyp-portfolio-item img {
  height: 380px;
  width: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.wyp-portfolio-item:hover img { transform: scale(1.04); }

/* ─── WHY CHOOSE US ───────────────────────────────────────────── */
.wyp-chooseus-image-wrap {
  position: relative;
}
.wyp-chooseus-img {
  width: 85%;
  border-radius: 6px;
  display: block;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.wyp-chooseus-award {
  position: absolute;
  right: -1rem;
  bottom: -2rem;
  width: 160px;
  border-radius: 6px;
  border: 5px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  overflow: hidden;
}
.wyp-chooseus-award img {
  width: 100%;
  display: block;
}

.wyp-why-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.wyp-why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.wyp-why-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wyp-why-icon i {
  color: var(--primary-color-1);
  font-size: 1.25rem;
}
.wyp-why-item h5 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.wyp-why-item p {
  font-size: .85rem;
  color: var(--body-color);
  margin: 0;
  line-height: 1.6;
}

/* ─── TESTIMONIALS ───────────────────────────────────────────── */
.wyp-testimonials {
  background: #F7F7F7;
}
.wyp-testimonial-item {
  background: #fff !important;
  border-radius: 8px;
  padding: 2.5rem !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.07) !important;
  position: relative;
}
.wyp-quote-icon {
  font-size: 2.5rem;
  color: var(--primary-color-1);
  opacity: .18;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}
.wyp-testimonial-item p {
  font-size: .95rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial__one-item-reviews {
  color: var(--primary-color-1) !important;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* ─── FAQs ───────────────────────────────────────────────────── */
.wyp-faqs {
  background: #fff;
}
.wyp-faq-item {
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color-1);
  border-radius: 6px;
  overflow: hidden;
}
.wyp-faq-item h5 {
  font-size: .9rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-heading-color);
  margin: 0;
  transition: background .15s;
}
.wyp-faq-item h5:hover { background: var(--primary-light); }
.wyp-faq-item h5 i { color: var(--primary-color-1); font-size: .7rem; }
.wyp-faq-item p {
  font-size: .875rem;
  color: var(--body-color);
  line-height: 1.7;
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  margin: 0;
}

/* ─── SERVICE AREA ───────────────────────────────────────────── */
.wyp-area-band {
  background: var(--dark-bg);
  padding: 3rem 0;
}
.wyp-area-band__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.wyp-area-band h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}
.wyp-area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.wyp-area-pills span {
  background: rgba(255,255,255,.1);
  color: #ccc;
  padding: .35rem .9rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.15);
  transition: background .2s, color .2s;
}
.wyp-area-pills span:hover {
  background: var(--primary-color-1);
  color: #fff;
  border-color: var(--primary-color-1);
}

/* ─── CONTACT ────────────────────────────────────────────────── */
.wyp-contact {
  background: #F7F7F7;
}
.wyp-contact-info h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: .5rem;
}
.wyp-contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  align-items: flex-start;
}
.wyp-contact-detail i {
  font-size: 1.3rem;
  color: var(--primary-color-1);
  margin-top: .15rem;
  flex-shrink: 0;
}
.wyp-contact-detail strong {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-heading-color);
  margin-bottom: .25rem;
}
.wyp-contact-detail p {
  font-size: .875rem;
  color: var(--body-color);
  margin: 0;
  line-height: 1.7;
}
.wyp-contact-detail a {
  color: var(--primary-color-1);
  font-weight: 600;
  text-decoration: none;
}
.wyp-contact-detail a:hover { text-decoration: underline; }

.wyp-contact-awards {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}
.wyp-contact-awards img {
  height: 56px;
  width: auto;
  border-radius: 4px;
}

/* Form */
.wyp-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.wyp-form input,
.wyp-form textarea,
.wyp-form select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border-color-1);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: .875rem;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color .2s;
  appearance: none;
}
.wyp-form input:focus,
.wyp-form textarea:focus,
.wyp-form select:focus {
  border-color: var(--primary-color-1);
  box-shadow: 0 0 0 3px rgba(200,32,30,.12);
}
.wyp-form textarea { resize: vertical; min-height: 110px; }
.wyp-form-note {
  font-size: .75rem;
  color: #999;
  margin-bottom: 1rem;
}
.wyp-form-submit {
  border: none;
  cursor: pointer;
  font-size: .9rem;
  padding: .85rem 2rem;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.wyp-footer {
  background: var(--dark-bg2);
}
.wyp-footer .footer__one-cta {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.wyp-footer .footer__one-cta-title h2 {
  font-size: 2.2rem;
  color: #fff;
}
.wyp-footer .footer__one-cta-icon a {
  background: var(--primary-color-1) !important;
  border-color: var(--primary-color-1) !important;
  width: 56px;
  height: 56px;
}
.wyp-footer .footer-widget-menu ul li a {
  color: #aaa;
  font-size: .875rem;
  transition: color .2s;
}
.wyp-footer .footer-widget-menu ul li a:hover {
  color: var(--primary-color-1);
}
.wyp-footer .footer__one-widget h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.wyp-footer-social {
  margin-top: 1.25rem;
}
.wyp-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #aaa;
  font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.wyp-footer-social a:hover {
  background: var(--primary-color-1);
  border-color: var(--primary-color-1);
  color: #fff;
}

.wyp-copyright {
  background: #0e0e0e;
}
.wyp-copyright p {
  color: #666;
  font-size: .8rem;
}
.wyp-copyright .copyright__area-right ul li a {
  color: #666;
  font-size: .8rem;
}
.wyp-copyright .copyright__area-right ul li a:hover {
  color: var(--primary-color-1);
}

/* ─── SCROLL TO TOP ──────────────────────────────────────────── */
.wyp-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary-color-1);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s, background .2s;
  z-index: 9000;
  box-shadow: 0 4px 16px rgba(200,32,30,.4);
}
.wyp-scroll-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
}

/* ─── MARQUEE SCROLLING TEXT ─────────────────────────────────── */
.scroll__slider {
  background: #F2F2F2;
  overflow: hidden;
}
.text_scroll ul li a,
.text_scroll ul li span {
  color: #333 !important;
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ─── SECTION HEADINGS COLOR FIX ────────────────────────────── */
.title_split_anim, h2, h3, h4, h5 {
  color: var(--text-heading-color);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .wyp-hero__headline { font-size: clamp(2.8rem, 6vw, 5rem); }
  .wyp-about__img-secondary { display: none; }
  .wyp-chooseus-award { display: none; }
}

@media (max-width: 991px) {
  .wyp-hero { min-height: auto; }
  .wyp-hero__content { padding-top: 10rem; padding-bottom: 6rem; }
  .wyp-hero__headline { font-size: 3rem; }
  .wyp-about__images { padding-right: 0; margin-bottom: 3rem; }
  .wyp-about__img-main { width: 100%; }
  .wyp-about__badge-year { right: 1rem; }

  .wyp-chooseus-image-wrap { margin-right: 0 !important; }
  .wyp-chooseus-img { width: 100%; }
}

@media (max-width: 767px) {
  .wyp-hero__headline { font-size: 2.5rem; }
  .wyp-hero__sub { font-size: 1rem; }
  .wyp-hero__actions { flex-direction: column; align-items: flex-start; }
  .wyp-hero__badges { gap: .5rem; }
  .wyp-badge { height: 50px; }

  .wyp-trust__grid { grid-template-columns: 1fr 1fr; }
  .wyp-trust__item { border-right: 1px solid var(--border-color-1) !important; border-bottom: 1px solid var(--border-color-1); }
  .wyp-trust__item:nth-child(even) { border-right: none !important; }
  .wyp-trust__item:nth-child(5) { grid-column: 1 / -1; border-right: none !important; }

  .wyp-area-band__inner { flex-direction: column; text-align: center; }
  .wyp-area-pills { justify-content: center; }

  .wyp-form { padding: 1.5rem; }
  .footer__one-cta-title h2 { font-size: 1.5rem !important; }
}

@media (max-width: 480px) {
  .wyp-hero__headline { font-size: 2rem; }
  .wyp-hero__eyebrow { font-size: .75rem; }
  .wyp-trust__grid { grid-template-columns: 1fr; }
  .wyp-trust__item { border-right: none !important; }
}

/* ─── ACCESSIBILITY / FOCUS ──────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-color-1);
  outline-offset: 2px;
}

/* Skip link */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .wyp-hero__bg { animation: none; }
}
