/*
Theme Name: Essex Laptop Repair
Theme URI: https://essexlaptoprepair.co.uk
Author: Essex Laptop Repair
Author URI: https://essexlaptoprepair.co.uk
Description: A professional single-page WordPress theme for laptop and MacBook repair businesses. Includes fixed header, premium AI-generated repair imagery, Sorin-style specialist messaging, editable page templates, block patterns, and compatibility with Elementor Free.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: essex-laptop-repair
*/

:root {
  --bg: #07111f;
  --bg-soft: #0d1b2d;
  --bg-card: #0f2035;
  --card: #ffffff;
  --text: #102033;
  --muted: #637388;
  --line: #d8e2ee;
  --primary: #f7c600;
  --primary-dark: #d6a900;
  --accent: #1fb4c9;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(6, 17, 33, 0.12);
  --shadow-lg: 0 30px 80px rgba(3, 12, 24, 0.28);
  --radius: 24px;
  --radius-lg: 34px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f5f8fc;
  line-height: 1.6;
}
body.admin-bar .elr-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .elr-header { top: 46px; } }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select, button {
  font: inherit;
}

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

.elr-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  background: rgba(7, 17, 31, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.elr-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.elr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 850;
  letter-spacing: -0.03em;
  font-size: 1.08rem;
}

.elr-logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #07111f;
  font-weight: 950;
  box-shadow: 0 10px 28px rgba(247,198,0,0.25);
}

.elr-mobile-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.elr-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255,255,255,0.84);
  font-weight: 650;
  font-size: 0.95rem;
}
.elr-menu a:hover, .current-menu-item > a { color: var(--primary); }

.elr-btn,
.elr-submit input[type="submit"],
.elr-form-wrap input[type="submit"],
.elr-form-wrap button[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--primary);
  color: #07111f;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(247,198,0,0.22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.elr-btn:hover,
.elr-form-wrap input[type="submit"]:hover,
.elr-form-wrap button[type="submit"]:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  background: #ffd52d;
  box-shadow: 0 18px 38px rgba(247,198,0,0.30);
}
.elr-btn-secondary {
  background: rgba(255,255,255,0.10);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}
.elr-btn-secondary:hover { background: rgba(255,255,255,0.16); color: var(--white); }

.elr-page main, .site-main, .entry-content { overflow-wrap: anywhere; }

.elr-hero {
  padding: 156px 0 80px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(31,180,201,0.26), transparent 28%),
    radial-gradient(circle at 12% 20%, rgba(247,198,0,0.20), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0c1d31 58%, #10243c 100%);
  overflow: hidden;
}
.elr-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 52px;
  align-items: center;
}
.elr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.88);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 750;
  font-size: .88rem;
}
.elr-dot {
  width: 9px;
  height: 9px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(52,211,153,0.15);
}
.elr-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: .94;
  letter-spacing: -0.07em;
}
.elr-hero p {
  max-width: 620px;
  color: rgba(255,255,255,0.80);
  font-size: 1.14rem;
}
.elr-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.elr-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.elr-trust-item {
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  font-weight: 720;
  font-size: .92rem;
}
.elr-hero-visual {
  position: relative;
}
.elr-image-card {
  position: relative;
  padding: 14px;
  border-radius: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg);
}
.elr-image-card img {
  border-radius: 24px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.elr-floating-card {
  position: absolute;
  right: -10px;
  bottom: 26px;
  width: min(280px, 85%);
  padding: 20px 18px;
  border-radius: 22px;
  background: rgba(10, 22, 37, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.90);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
.elr-floating-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}
.elr-floating-card span { color: rgba(255,255,255,0.76); font-size: .94rem; }
.elr-stat-pill {
  position: absolute;
  left: -18px;
  top: 32px;
  background: var(--primary);
  color: #07111f;
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 900;
  box-shadow: 0 20px 40px rgba(247,198,0,0.28);
}
.elr-stat-pill small { display:block; font-size:.72rem; font-weight:700; opacity:.8; text-transform:uppercase; letter-spacing:.08em; }
.elr-stat-pill span { display:block; font-size:1.35rem; line-height:1.05; }

.elr-section {
  padding: 88px 0;
}
.elr-section-light { background: #f5f8fc; }
.elr-section-dark {
  background: linear-gradient(180deg, #0a1728 0%, #081220 100%);
  color: var(--white);
}
.elr-section-head {
  max-width: 760px;
  margin-bottom: 34px;
}
.elr-section-head.center {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 40px;
}
.elr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(16,32,51,0.05);
  color: #0f6f7d;
  font-size: .86rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.elr-section-dark .elr-eyebrow {
  background: rgba(255,255,255,0.09);
  color: #9fe7f0;
}
.elr-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.elr-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}
.elr-section-dark .elr-section-head p,
.elr-section-dark .elr-card p,
.elr-section-dark .elr-card li,
.elr-section-dark p { color: rgba(255,255,255,0.75); }

.elr-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: center;
}
.elr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.elr-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.elr-section-dark .elr-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none;
}
.elr-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}
.elr-card p {
  margin: 0;
  color: var(--muted);
}
.elr-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff3b4;
  color: #8b6900;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.elr-service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.elr-service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #e6ecf4;
}
.elr-check-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.elr-check-list div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.elr-check-list strong { display: block; margin-bottom: 2px; }
.elr-check-list b {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(247,198,0,0.18);
  color: #ffd858;
}

.elr-process .elr-card {
  position: relative;
  padding-top: 56px;
}
.elr-step {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff3b4;
  color: #7a5d00;
  font-weight: 900;
}
.elr-section-dark .elr-step {
  background: rgba(247,198,0,0.14);
  color: #ffd858;
}

.elr-quote-wrap {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 32px;
  align-items: start;
}
.elr-mini-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.elr-mini-list div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.84);
}
.elr-mini-list b {
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(247,198,0,0.16);
  color: #ffe78f;
}
.elr-form-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 26px;
}
.elr-form-wrap input[type="text"],
.elr-form-wrap input[type="email"],
.elr-form-wrap input[type="tel"],
.elr-form-wrap textarea,
.elr-form-wrap select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.96);
  color: #132437;
}
.elr-form-wrap textarea { min-height: 140px; }
.elr-form-wrap p { margin: 0 0 14px; }
.elr-form-wrap h3 { margin-top: 0; }

.elr-faq {
  display: grid;
  gap: 16px;
  max-width: 940px;
  margin-inline: auto;
}
.elr-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.elr-faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
}
.elr-faq summary::-webkit-details-marker { display:none; }
.elr-faq p { margin: 12px 0 0; color: var(--muted); }

.elr-footer {
  background: #06101d;
  color: rgba(255,255,255,0.76);
  padding: 28px 0;
}
.elr-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}
.elr-footer strong { color: var(--white); }
.elr-footer a { color: var(--white); }

.site-main {
  padding: 120px 0 60px;
}
.entry-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
  margin: 0 0 14px;
}
.page-template-template-builder .site-main,
.page-template-template-fullwidth .site-main {
  padding: 0;
}
.elr-content-shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
}

/* Elementor compatibility */
.elementor-page .site-main,
.page-template-template-builder .elementor-location-single,
.page-template-template-builder .entry-content,
.page-template-template-builder article {
  padding: 0;
  margin: 0;
}
.elementor-page .entry-header { display: none; }

@media (max-width: 1040px) {
  .elr-hero-grid,
  .elr-grid-2,
  .elr-quote-wrap {
    grid-template-columns: 1fr;
  }
  .elr-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .elr-stat-pill { left: 16px; top: 16px; }
}

@media (max-width: 860px) {
  .elr-mobile-toggle { display: inline-flex; }
  .elr-menu {
    position: absolute;
    top: 78px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: 18px;
    background: rgba(8,19,33,0.98);
    border: 1px solid rgba(255,255,255,0.12);
  }
  .elr-menu.is-open { display: flex; }
  .elr-trust-strip,
  .elr-footer-grid,
  .elr-grid-3 {
    grid-template-columns: 1fr;
  }
  .elr-hero { padding-top: 132px; }
  .elr-section { padding: 72px 0; }
  .elr-floating-card { position: static; width: 100%; margin-top: 16px; }
}


/* Builder / Block Editor friendly homepage sections */
.elr-block-hero {
  padding: 156px 0 84px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(31,180,201,0.24), transparent 28%),
    radial-gradient(circle at 12% 20%, rgba(247,198,0,0.20), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0c1d31 58%, #10243c 100%);
  overflow: hidden;
}
.elr-block-hero .wp-block-columns,
.elr-block-section .wp-block-columns {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}
.elr-block-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: .93;
  letter-spacing: -0.07em;
  margin: 18px 0;
}
.elr-block-hero p {
  color: rgba(255,255,255,0.80);
  font-size: 1.16rem;
}
.elr-block-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.88);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 750;
  font-size: .88rem;
}
.elr-block-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(52,211,153,0.15);
}
.elr-block-image-frame {
  padding: 14px;
  border-radius: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg);
}
.elr-block-image-frame img {
  border-radius: 24px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.elr-block-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.elr-block-trust > * {
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  font-weight: 720;
  font-size: .92rem;
}
.elr-block-section {
  padding: 88px 0;
}
.elr-block-section.light { background: #f5f8fc; color: var(--text); }
.elr-block-section.dark { background: linear-gradient(180deg, #0a1728 0%, #081220 100%); color: var(--white); }
.elr-block-wrap {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}
.elr-block-center {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.elr-block-section h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 0 0 14px;
}
.elr-block-section p { color: var(--muted); }
.elr-block-section.dark p { color: rgba(255,255,255,0.76); }
.elr-block-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
}
.elr-block-section.dark .elr-block-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  box-shadow: none;
}
.elr-block-card h3 {
  margin-top: 0;
  letter-spacing: -0.03em;
}
.elr-block-card img {
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  margin-top: 16px;
}
.elr-block-quote {
  max-width: 520px;
  margin-left: auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 26px;
}
.elr-block-quote input,
.elr-block-quote textarea,
.elr-block-quote select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.96);
  color: #132437;
}
.elr-block-quote textarea { min-height: 130px; }
.elr-block-quote p { margin: 0 0 14px; }
.elr-page .wp-block-button__link {
  text-decoration: none;
}
.elr-template-note {
  padding: 16px 18px;
  border-left: 4px solid var(--primary);
  background: #fff8d8;
  border-radius: 12px;
}

@media (max-width: 860px) {
  .elr-block-trust { grid-template-columns: 1fr; }
  .elr-block-hero { padding-top: 132px; }
  .elr-block-section { padding: 72px 0; }
}
