/*
Theme Name: 8 Signs
Theme URI: https://8signs.co.uk/
Author: 8 Signs
Description: Bespoke WordPress theme for 8 Signs, Whyteleafe.
Version: 0.3.0
Text Domain: eight-signs
*/

:root {
  --es-purple: #3a2979;
  --es-purple-dark: #281d56;
  --es-gold: #b39a63;
  --es-ink: #17151d;
  --es-muted: #6f6b78;
  --es-soft: #f5f3f8;
  --es-white: #fff;
  --es-border: #e8e5ed;
  --es-radius: 3px;
  --es-shadow: 0 18px 50px rgba(35, 25, 70, .12);
  --es-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--es-ink);
  background: var(--es-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: min(calc(100% - 40px), var(--es-max)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--es-gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid var(--es-purple);
  border-radius: var(--es-radius);
  background: var(--es-purple);
  color: white;
  font-weight: 750;
  transition: background .2s, color .2s, transform .2s;
}
.button:hover, .button:focus-visible { background: var(--es-purple-dark); transform: translateY(-1px); }
.button--outline { background: transparent; color: var(--es-purple); }
.button--outline:hover { color: white; }
.button--light { border-color: white; background: white; color: var(--es-purple); }
.button--light:hover { background: transparent; color: white; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(58, 41, 121, .09);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; min-height: 76px; align-items: center; gap: 32px; }
.site-logo { margin-right: auto; }
.site-logo img { width: 115px; max-height: 57px; object-fit: contain; object-position: left center; }
.primary-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: #403b47; font-size: .94rem; font-weight: 650; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--es-purple); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-link { padding: 10px 18px; border: 1px solid var(--es-purple); color: var(--es-purple); font-weight: 750; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--es-purple); font-size: 1.8rem; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-block: 24px 70px; }
.service-card { position: relative; min-height: 375px; overflow: hidden; background: var(--es-purple-dark); color: white; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(16, 10, 33, .8)); }
.service-card__content { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 32px; }
.service-card h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.2; }
.service-card p { margin: 0; color: rgba(255,255,255,.84); }
.service-card:hover img { transform: scale(1.035); }

.about-strip { padding: 90px 0 100px; text-align: center; }
.about-strip__inner { max-width: 850px; }
.about-strip h2 { margin: 0 0 35px; color: var(--es-purple); font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.28; }
.about-strip .button { margin-top: 10px; }

.cta { position: relative; overflow: hidden; padding: 110px 0; background: var(--es-purple); color: white; text-align: center; }
.cta::before, .cta::after { content: "8"; position: absolute; color: rgba(255,255,255,.035); font-size: 420px; font-weight: 900; line-height: 1; }
.cta::before { top: -120px; left: -40px; }
.cta::after { right: -30px; bottom: -170px; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { margin: 0 0 32px; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.page-hero { padding: 90px 0 70px; background: var(--es-soft); }
.page-hero h1 { max-width: 900px; margin: 0; color: var(--es-purple); font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.045em; }
.page-hero p { max-width: 720px; margin: 28px 0 0; color: var(--es-muted); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.content-section { padding: 85px 0; }
.prose { max-width: 790px; font-size: 1.13rem; }
.prose h2 { color: var(--es-purple); font-size: 2rem; }

.service-hero { position: relative; height: 50vh; min-height: 340px; display: flex; align-items: center; justify-content: center; color: white; background: var(--es-purple-dark); }
.service-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-hero::after { content: ""; position: absolute; inset: 0; background: rgba(26,19,51,.5); }
.service-hero__inner { position: relative; z-index: 2; padding-block: 40px; text-align: center; }
.service-hero h1 { max-width: 920px; margin: 0 auto; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .96; letter-spacing: -.05em; }
.service-intro { padding: 32px 0 42px; background: var(--es-purple); color: white; text-align: center; }
.service-intro p { max-width: 900px; margin: 0 auto; color: rgba(255,255,255,.82); font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 400; line-height: 1.65; }

.gallery-section { padding: 48px 0 64px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; color: var(--es-purple); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; }
.gallery-grid { columns: 4 240px; column-gap: 16px; }
.gallery-item { display: inline-block; width: 100%; margin: 0 0 16px; break-inside: avoid; cursor: zoom-in; background: var(--es-soft); }
.gallery-item img { width: 100%; height: auto; transition: opacity .25s ease; }
.gallery-item:hover img { opacity: .9; }
.gallery-empty { padding: 35px; border: 1px dashed #c9c3d4; color: var(--es-muted); background: var(--es-soft); }
.lightbox { position: fixed; z-index: 1000; inset: 0; display: none; place-items: center; padding: 30px; background: rgba(10,6,22,.93); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1200px, 95vw); max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; top: 20px; right: 24px; border: 0; background: transparent; color: white; font-size: 2.5rem; cursor: pointer; }

.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-form .field--wide { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 7px; font-size: .84rem; font-weight: 750; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #d9d5df; border-radius: 0; background: white;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-details { padding: 38px; background: var(--es-soft); }
.contact-details h2 { margin-top: 0; color: var(--es-purple); }
.contact-details dl { margin: 0; }
.contact-details dt { margin-top: 24px; color: var(--es-gold); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.contact-details dd { margin: 5px 0 0; }
.form-notice { margin-bottom: 25px; padding: 14px 18px; background: #edf8ef; color: #225c2e; }
.form-notice--error { background: #fff0f0; color: #8a2929; }

.location-map { width: 100%; height: clamp(320px, 50vh, 560px); background: var(--es-soft); }
.location-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.site-footer { padding: 76px 0 26px; border-top: 1px solid var(--es-border); background: white; color: var(--es-muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: 40px; padding-bottom: 58px; }
.footer-logo { width: 125px; margin-bottom: 20px; }
.footer-title { margin: 0 0 17px; color: var(--es-purple); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; border: 1px solid var(--es-border); color: var(--es-purple); font-size: .72rem; font-weight: 800; }
.site-footer a:hover { color: var(--es-purple); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; border-top: 1px solid var(--es-border); font-size: .82rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 20px; border-top: 1px solid var(--es-border); background: white; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 8px; }
  .primary-nav a { display: block; padding: 9px; }
  .header-actions .phone-link { display: none; }
  .service-card { min-height: 320px; }
  .contact-layout, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--es-max)); }
  .header-actions .button { display: none; }
  .site-logo img { width: 98px; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 14px; }
  .service-card { min-height: 300px; }
  .service-card__content { padding: 24px; }
  .about-strip { padding-block: 70px; }
  .page-hero, .content-section, .gallery-section { padding-block: 65px; }
  .gallery-grid { columns: 2 145px; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
  .contact-layout, .contact-form, .footer-grid { grid-template-columns: 1fr; }
  .contact-form .field--wide { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}


/* 8 Signs layout refresh — 2026-09-07 */
.header-inner { gap: 24px; }
.primary-nav ul { gap: 28px; }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu { position: absolute; top: calc(100% + 18px); left: -20px; display: block; min-width: 245px; padding: 10px; border: 1px solid var(--es-border); background: white; box-shadow: var(--es-shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.primary-nav .sub-menu::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 20px; }
.primary-nav .sub-menu a { display: block; padding: 10px 12px; white-space: nowrap; }
.primary-nav .sub-menu a:hover { background: var(--es-soft); }
.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.header-socials { display: flex; align-items: center; gap: 7px; }
.header-socials a, .footer-socials a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--es-border); color: var(--es-purple); }
.header-socials svg, .footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-block: 20px 46px; }
.service-card { height: min(29vw, 300px); min-height: 245px; }
.service-card h2 { font-size: clamp(1.1rem, 1.55vw, 1.42rem); }
.service-card p { font-size: .88rem; line-height: 1.45; }
.about-strip { padding: 58px 0 68px; }
.about-strip__inner { max-width: 760px; }
.about-strip h2 { margin-bottom: 28px; font-size: clamp(1.45rem, 2.5vw, 2.25rem); line-height: 1.35; }
.about-strip .button { margin-top: 10px; }
.service-showcase { overflow: hidden; background: var(--es-purple-dark); }
.showcase-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.showcase-grid figure { margin: 0; aspect-ratio: 1 / .82; overflow: hidden; }
.showcase-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.showcase-grid figure:hover img { transform: scale(1.04); }
.footer-socials a { width: 40px; height: 40px; }
@media (max-width: 900px) {
  .primary-nav .sub-menu { position: static; display: block; min-width: 0; margin-left: 18px; padding: 0 0 4px 12px; border: 0; border-left: 2px solid var(--es-border); box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .primary-nav .sub-menu::before { display: none; }
  .header-socials { margin-left: auto; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { height: 320px; min-height: 0; }
  .showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { height: 300px; min-height: 0; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* 8 Signs 2x2 services and balanced carousel */
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card { height: clamp(340px, 34vw, 455px); min-height: 0; }
.service-card h2 { font-size: clamp(1.35rem, 2.1vw, 1.9rem); }
.service-card p { font-size: 1rem; line-height: 1.45; }
.service-showcase { overflow: hidden; }
.showcase-track { display: flex; width: max-content; animation: showcase-scroll 80s linear infinite; }
.showcase-group { display: flex; flex-shrink: 0; }
.showcase-group figure { width: clamp(220px, 20vw, 340px); margin: 0; aspect-ratio: 1 / .82; overflow: hidden; }
.showcase-group img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.showcase-group figure:hover img { transform: scale(1.04); }
.service-showcase:hover .showcase-track { animation-play-state: paused; }
@keyframes showcase-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .showcase-track { animation-play-state: paused; } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } .service-card { height: 300px; } }
