/* ============================================================
   Tullycarragh Electrical Ltd — landing page
   Palette: near-black #0A0A0A · panel #111214 · gold #F5B301
   Type: Oswald (headings) · Barlow (body)
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #0A0A0A;
  color: #9CA3AF;
  font-family: Barlow, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #F5B301; }
a:hover { color: #FFC72C; }

:focus-visible {
  outline: 2px solid #F5B301;
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: 1080px; margin: 0 auto; }
.section { padding: clamp(64px, 10vw, 104px) clamp(20px, 5vw, 32px); }
.section-panel {
  background: #111214;
  border-top: 1px solid #1B1E23;
  border-bottom: 1px solid #1B1E23;
}

h2 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(28px, 4.5vw, 40px);
  background: linear-gradient(180deg, #F3F4F6, #9CA3AF);
  -webkit-background-clip: text;
  background-clip: text;
  color: #E5E7EB;
  -webkit-text-fill-color: transparent;
}

.underline {
  width: 56px;
  height: 3px;
  background: #F5B301;
  margin-top: 14px;
  border-radius: 2px;
}

/* Build-note chips: questions for the client, visible in the draft.
   Delete these elements (or this rule) before launch. */
.build-note {
  display: inline-block;
  align-self: flex-start;
  font: 500 11px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F5B301;
  background: rgba(245, 179, 1, 0.07);
  border: 1px dashed rgba(245, 179, 1, 0.4);
  border-radius: 6px;
  padding: 3px 9px;
  max-width: 100%;
  box-sizing: border-box;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 32px;
  border-radius: 8px;
  text-decoration: none;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-solid {
  background: #F5B301;
  color: #0A0A0A;
  border: none;
  transition: background 0.2s ease, box-shadow 0.25s ease;
}
.btn-solid:hover {
  background: #FFC72C;
  color: #0A0A0A;
  box-shadow: 0 0 30px rgba(245, 179, 1, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid #3B4046;
  color: #E5E7EB;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}
.btn-ghost:hover {
  border-color: rgba(245, 179, 1, 0.6);
  color: #FFC72C;
  box-shadow: 0 0 24px rgba(245, 179, 1, 0.12);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: radial-gradient(ellipse 85% 55% at 50% -5%, rgba(245, 179, 1, 0.07), transparent), #0A0A0A;
  padding: clamp(64px, 10vw, 110px) clamp(20px, 5vw, 32px) 0;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  display: block;
  width: clamp(120px, 26vw, 168px);
  height: auto;
}

.wordmark {
  margin-top: 28px;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
}
.wordmark-top {
  font-size: clamp(21px, 4.4vw, 28px);
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: #F3F4F6;
}
.wordmark-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 7px;
}
.wordmark-sub {
  font-size: clamp(13px, 2.6vw, 16px);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: #F5B301;
}
.wordmark-ltd { color: #F3F4F6; }
.rule { height: 1px; width: 34px; }
.rule-in { background: linear-gradient(90deg, transparent, #F5B301); }
.rule-out { background: linear-gradient(90deg, #F5B301, transparent); }

.hero h1 {
  margin: clamp(36px, 6vw, 54px) 0 0;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.14;
  font-size: clamp(30px, 6.4vw, 54px);
  /* gradient ends on the hot logo's body gold (sampled mean of its golds) */
  background: linear-gradient(180deg, #FFFFFF 25%, #FFBE0A);
  -webkit-background-clip: text;
  background-clip: text;
  color: #FFFFFF;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.hero-sub {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.65;
  color: #9CA3AF;
}

.hero-ctas {
  margin-top: clamp(30px, 5vw, 42px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.bolt-divider {
  max-width: 520px;
  margin: clamp(60px, 9vw, 92px) auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.bolt-divider .line { height: 1px; flex: 1; }
.bolt-divider .line-in { background: linear-gradient(90deg, transparent, #2E2E2E); }
.bolt-divider .line-out { background: linear-gradient(90deg, #2E2E2E, transparent); }

/* ============ Services ============ */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(32px, 6vw, 52px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}

.card {
  background: #111214;
  border: 1px solid #1E2126;
  border-radius: 12px;
  padding: 26px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover {
  border-color: rgba(245, 179, 1, 0.45);
  transform: translateY(-2px);
}
.card h3 {
  margin: 16px 0 8px;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E5E7EB;
}
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: #9CA3AF; }

/* ============ Emergency strip ============ */
.emergency {
  background: linear-gradient(90deg, rgba(245, 179, 1, 0.06), rgba(245, 179, 1, 0.02)), #0D0D0F;
  border-top: 1px solid rgba(245, 179, 1, 0.18);
  border-bottom: 1px solid rgba(245, 179, 1, 0.18);
  padding: clamp(28px, 5vw, 40px) clamp(20px, 5vw, 32px);
}
.emergency-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3vw, 28px);
}
.emergency-bolt { flex: none; }
.emergency-copy { flex: 1 1 320px; }
.emergency-title {
  margin: 0 0 6px;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 3vw, 23px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  color: #F5B301;
  -webkit-text-fill-color: #F5B301;
}
.emergency-copy p { margin: 0; font-size: 15px; line-height: 1.6; color: #9CA3AF; }
.emergency-copy .build-note { margin-top: 10px; }

/* ============ How it works ============ */
.steps {
  margin-top: clamp(32px, 6vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(20px, 4vw, 32px);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 179, 1, 0.35);
  background: rgba(245, 179, 1, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #F5B301;
}
.step h3 {
  margin: 16px 0 8px;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E5E7EB;
}
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: #9CA3AF; }

/* ============ FAQ ============ */
.faq-container { max-width: 760px; margin: 0 auto; }
.faq-list {
  margin-top: clamp(28px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #111214;
  border: 1px solid #1E2126;
  border-radius: 12px;
  transition: border-color 0.25s ease;
}
.faq-item:hover, .faq-item[open] { border-color: rgba(245, 179, 1, 0.45); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #E5E7EB;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: #F5B301;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: #9CA3AF;
}
.faq-item .build-note { margin-top: 8px; }

/* ============ Why choose us ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.why-list {
  margin-top: clamp(28px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.why-item { display: flex; gap: 18px; align-items: flex-start; }

.why-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 179, 1, 0.35);
  background: rgba(245, 179, 1, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon .euro {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #F5B301;
}

.why-item h3 {
  margin: 0 0 6px;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #E5E7EB;
}
.why-item p { margin: 0; font-size: 15px; line-height: 1.65; color: #9CA3AF; }
.why-item .build-note { margin-top: 10px; }

.photo-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px dashed #2E333A;
  border-radius: 14px;
  background: repeating-linear-gradient(45deg, #0D0E10, #0D0E10 12px, #101114 12px, #101114 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.photo-slot span {
  font: 500 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #565E68;
  padding: 0 16px;
  text-align: center;
}

/* ============ Service area ============ */
.area { padding: clamp(56px, 9vw, 88px) clamp(20px, 5vw, 32px); text-align: center; }
.area-inner {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.kicker {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  text-transform: uppercase;
  color: #F5B301;
}
.area p {
  margin: 0;
  font-size: clamp(17px, 2.6vw, 20px);
  line-height: 1.7;
  color: #9CA3AF;
  text-wrap: pretty;
}
.area strong { color: #E5E7EB; font-weight: 600; }
.area em { color: #E5E7EB; font-style: normal; }

/* ============ Contact ============ */
.contact { border-bottom: none; }
.contact-intro {
  margin: 18px 0 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: #9CA3AF;
}

.contact-grid {
  margin-top: clamp(32px, 6vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}

.contact-details { display: flex; flex-direction: column; gap: 28px; }

.label {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7C838C;
  margin-bottom: 8px;
}

.phone-big {
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 6vw, 42px);
  letter-spacing: 0.04em;
  color: #F5B301;
  text-decoration: none;
  line-height: 1.15;
}
.phone-big:hover { color: #FFC72C; }

.email-link {
  font-size: 18px;
  color: #F5B301;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 179, 1, 0.35);
  padding-bottom: 2px;
}
.email-link:hover { color: #FFC72C; border-bottom-color: #FFC72C; }

.address { margin: 0; font-size: 16px; line-height: 1.6; color: #9CA3AF; }

/* ============ Form ============ */
#quote-form {
  background: #0B0C0E;
  border: 1px solid #1E2126;
  border-radius: 14px;
  padding: clamp(22px, 4vw, 30px);
  display: grid;
  gap: 16px;
}

#quote-form label {
  display: block;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8B929B;
  margin-bottom: 6px;
}

#quote-form input,
#quote-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #0A0A0A;
  border: 1px solid #262A30;
  border-radius: 8px;
  padding: 12px 14px;
  color: #E5E7EB;
  font: 400 15px Barlow, sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}
#quote-form textarea { resize: vertical; }
#quote-form input:focus,
#quote-form textarea:focus { border-color: #F5B301; }
#quote-form ::placeholder { color: #565E68; opacity: 1; }

/* honeypot — visually removed, still in the DOM for bots */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  background: #0B0C0E;
  border: 1px solid #1E2126;
  border-radius: 14px;
  padding: clamp(32px, 6vw, 48px) clamp(22px, 4vw, 30px);
  text-align: center;
}
.success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(245, 179, 1, 0.4);
  background: rgba(245, 179, 1, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 {
  margin: 18px 0 8px;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E5E7EB;
}
.form-success p { margin: 0; font-size: 15px; line-height: 1.65; color: #9CA3AF; }
.form-success .demo-note {
  margin: 14px 0 0;
  font: 400 12px ui-monospace, "SF Mono", Menlo, monospace;
  color: #565E68;
}

/* Scroll progress — gold "charge" line across the top of the viewport.
   Width driven by script.js (inside the .fx gate); stays empty without JS. */
.scroll-charge {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
}
.scroll-charge-fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(245, 179, 1, 0.75), #F5B301 55%, #FFC72C);
  box-shadow: 0 0 10px rgba(245, 179, 1, 0.55);
  border-radius: 0 3px 3px 0;
}

/* current shimmer — a light band travelling along the live section */
.scroll-charge-fill.live::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  background-size: 160px 100%;
  background-repeat: no-repeat;
  animation: current-flow 1.8s ease-in-out infinite;
}
@keyframes current-flow {
  0% { background-position: -160px 0; }
  100% { background-position: calc(100% + 160px) 0; }
}

/* spark head — glowing tip at the leading edge */
.scroll-charge-fill.live::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #FFF3C4;
  animation: spark-pulse 1.1s ease-in-out infinite;
}
@keyframes spark-pulse {
  0%, 100% { box-shadow: 0 0 6px 2px rgba(255, 199, 44, 0.9), 0 0 16px 5px rgba(245, 179, 1, 0.5); }
  50% { box-shadow: 0 0 9px 3px rgba(255, 199, 44, 1), 0 0 26px 9px rgba(245, 179, 1, 0.65); }
}

/* ============ Scroll micro-interactions ============
   Gated behind .fx on <html>, added by script.js only when the visitor
   hasn't asked for reduced motion. Without JS nothing is ever hidden. */
.fx .underline {
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.fx .underline.charged {
  width: 56px;
  animation: underline-spark 0.9s ease 0.4s 1;
}
@keyframes underline-spark {
  0% { box-shadow: 0 0 0 rgba(245, 179, 1, 0); }
  55% { box-shadow: 0 0 16px rgba(245, 179, 1, 0.9); }
  100% { box-shadow: 0 0 0 rgba(245, 179, 1, 0); }
}

.fx .card, .fx .step, .fx .why-item, .fx .faq-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.fx .card.charged, .fx .step.charged, .fx .why-item.charged, .fx .faq-item.charged {
  opacity: 1;
  transform: none;
}

@keyframes bolt-flicker {
  0%, 100% { opacity: 1; filter: none; }
  10% { opacity: 0.2; }
  25% { opacity: 1; filter: drop-shadow(0 0 6px rgba(245, 179, 1, 0.9)); }
  40% { opacity: 0.35; }
  55% { opacity: 1; filter: drop-shadow(0 0 10px rgba(245, 179, 1, 0.9)); }
  75% { opacity: 0.6; }
  90% { opacity: 1; filter: drop-shadow(0 0 4px rgba(255, 199, 44, 0.8)); }
}
.fx .bolt-flicker { animation: bolt-flicker 0.9s linear 1; }

/* ============ Footer ============ */
footer {
  border-top: 1px solid #1B1E23;
  padding: clamp(40px, 7vw, 64px) clamp(20px, 5vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-name {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  text-transform: uppercase;
  color: #F3F4F6;
}
.footer-name span { color: #F5B301; }
.footer-phone {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: #F5B301;
  text-decoration: none;
}
.footer-phone:hover { color: #FFC72C; }
.footer-legal { font-size: 13px; line-height: 1.6; color: #565E68; }
