/*
	Theme Name: Hello Elementor
	Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
	Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
	Author: Elementor Team
	Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
	Version: 3.4.9
	Stable tag: 3.4.9
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/

/*
Theme Name: Ace London Roofing
Theme URI: https://acelondonroofing.co.uk
Author: ACE London Roofing
Author URI: https://acelondonroofing.co.uk
Description: Custom theme for Ace London Roofing
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ace-roofing
*/

/* =====================================================
   GLOBAL CSS VARIABLES
   ===================================================== */
:root {
  --gold: #E8A020;
  --gold-light: #FFB800;
  --gold-pale: #FFF3D6;
  --dark: #0D0D0D;
  --dark2: #141414;
  --dark3: #1a1a1a;
  --white: #ffffff;
  --off-white: #F7F4EE;
  --text-muted: #8A8A8A;
}

/* =====================================================
   SERVICE PAGE — HERO BANNER
   ===================================================== */

.svc-hero {
  position: relative;
  height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 72px;
}

.svc-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.1);
  transform: scale(1.04);
  animation: heroZoom 8s ease forwards;
}

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

.svc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.3)  60%,
    rgba(10,10,10,0.1)  100%);
}

.svc-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 72px 56px;
  width: 100%;
}

/* Breadcrumb */
.svc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 18px;
}

.svc-breadcrumb a            { color: #777; text-decoration: none; transition: color 0.2s; }
.svc-breadcrumb a:hover      { color: var(--gold); }
.svc-breadcrumb span         { color: var(--gold); }
.svc-breadcrumb-sep          { color: #444; }

/* Location tag */
.svc-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,160,32,0.14);
  border: 1px solid rgba(232,160,32,0.4);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.svc-hero-tag-dot {
  width: 6px; height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: badgePulse 1.8s ease-in-out infinite;
}

/* H1 */
.svc-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 20px;
}

.svc-hero h1 span {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Meta badges */
.svc-hero-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.svc-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.svc-meta-item strong { color: var(--gold); font-weight: 600; }

/* =====================================================
   SERVICE PAGE — MAIN LAYOUT (2-column)
   ===================================================== */

.svc-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 72px;
  align-items: start;
}

/* =====================================================
   SERVICE PAGE — CONTENT AREA
   ===================================================== */

.svc-intro {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  line-height: 1.85;
  margin-bottom: 48px;
  border-left: 3px solid var(--gold);
  padding-left: 24px;
}

.svc-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.svc-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(232,160,32,0.2);
}

.svc-body-text {
  font-size: 15px;
  color: #888;
  line-height: 1.85;
  margin-bottom: 28px;
}

/* =====================================================
   SERVICE PAGE — SERVICES GRID LIST
   ===================================================== */

.svc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 48px;
}

.svc-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(232,160,32,0.12);
  padding: 16px 18px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, background 0.3s;
}

.svc-list-item.vis              { opacity: 1; transform: translateY(0); }
.svc-list-item:hover            { border-color: rgba(232,160,32,0.35); background: rgba(232,160,32,0.05); }
.svc-list-item:nth-child(2)     { transition-delay: 0.05s; }
.svc-list-item:nth-child(3)     { transition-delay: 0.10s; }
.svc-list-item:nth-child(4)     { transition-delay: 0.15s; }
.svc-list-item:nth-child(5)     { transition-delay: 0.20s; }
.svc-list-item:nth-child(6)     { transition-delay: 0.25s; }
.svc-list-item:nth-child(7)     { transition-delay: 0.30s; }
.svc-list-item:nth-child(8)     { transition-delay: 0.35s; }

.svc-list-icon {
  width: 32px; height: 32px;
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.svc-list-text { font-size: 13px; font-weight: 600; color: #ccc; line-height: 1.4; }
.svc-list-sub  { font-size: 11px; color: #666; margin-top: 2px; }

/* =====================================================
   SERVICE PAGE — PROCESS STEPS
   ===================================================== */

.svc-process { margin-bottom: 56px; }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(232,160,32,0.1));
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.process-step.vis           { opacity: 1; transform: translateX(0); }
.process-step:nth-child(2)  { transition-delay: 0.10s; }
.process-step:nth-child(3)  { transition-delay: 0.20s; }
.process-step:nth-child(4)  { transition-delay: 0.30s; }
.process-step:nth-child(5)  { transition-delay: 0.40s; }

.step-num {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: #000;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(232,160,32,0.15);
  position: relative;
  z-index: 1;
}

.step-title { font-size: 15px; font-weight: 700; color: #eee; margin-bottom: 4px; }
.step-desc  { font-size: 13px; color: #666; line-height: 1.65; }

/* =====================================================
   SERVICE PAGE — GALLERY
   ===================================================== */

.svc-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 56px;
}

.svc-gallery-item {
  position: relative;
  overflow: hidden;
  height: 200px;
  cursor: pointer;
}

.svc-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.8) saturate(1.1);
  transition: transform 0.5s ease, filter 0.4s;
}

.svc-gallery-item:hover img { transform: scale(1.07); filter: brightness(0.6) saturate(1.2); }

.svc-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.svc-gallery-label {
  position: absolute;
  bottom: 12px; left: 14px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* =====================================================
   SERVICE PAGE — FAQ ACCORDION
   ===================================================== */

.svc-faq { margin-bottom: 56px; }

.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); overflow: hidden; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
  transition: color 0.25s;
  gap: 16px;
}

.faq-q:hover { color: var(--gold); }

.faq-icon {
  width: 24px; height: 24px;
  border: 1px solid rgba(232,160,32,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--gold); color: #000; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 13px;
  color: #777;
  line-height: 1.8;
}

.faq-a-inner          { padding: 0 0 18px; }
.faq-item.open .faq-a { max-height: 200px; }

/* =====================================================
   SERVICE PAGE — SIDEBAR
   ===================================================== */

.svc-sidebar { position: sticky; top: 92px; }

.sidebar-card {
  background: #111;
  border: 1px solid rgba(232,160,32,0.15);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 32px 28px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 20px;
}

/* Sidebar form fields */
.sidebar-form .hfp-field              { margin-bottom: 10px; }

.sidebar-form .hfp-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 5px;
  font-weight: 600;
}

.sidebar-form .hfp-field input,
.sidebar-form .hfp-field select,
.sidebar-form .hfp-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,160,32,0.2);
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  border-radius: 2px;
  transition: border-color 0.25s;
  -webkit-appearance: none;
}

.sidebar-form .hfp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23E8A020'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-color: rgba(255,255,255,0.04);
  cursor: pointer;
}

.sidebar-form .hfp-field select option                  { background: #1a1a1a; }
.sidebar-form .hfp-field input:focus,
.sidebar-form .hfp-field select:focus,
.sidebar-form .hfp-field textarea:focus                 { border-color: var(--gold); }
.sidebar-form .hfp-field input::placeholder,
.sidebar-form .hfp-field textarea::placeholder          { color: #444; }
.sidebar-form .hfp-field textarea                       { resize: none; height: 72px; }

.sidebar-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000;
  border: none;
  padding: 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(232,160,32,0.3);
}

.sidebar-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,160,32,0.5); }

/* Sidebar phone links */
.sidebar-phone-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: padding-left 0.25s;
}

.sidebar-phone-link:last-child  { border-bottom: none; }
.sidebar-phone-link:hover       { padding-left: 6px; }

.sidebar-phone-ico {
  width: 36px; height: 36px;
  background: rgba(232,160,32,0.1);
  border: 1px solid rgba(232,160,32,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-phone-label { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.sidebar-phone-num   { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: #fff; letter-spacing: 1px; }

/* Trust badges */
.trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trust-badge {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(232,160,32,0.12);
  border-radius: 4px;
  padding: 14px 12px;
  text-align: center;
  transition: border-color 0.3s;
}

.trust-badge:hover  { border-color: rgba(232,160,32,0.35); }
.trust-icon         { font-size: 24px; margin-bottom: 6px; }
.trust-label        { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #666; line-height: 1.4; }

/* Related services */
.related-services { display: flex; flex-direction: column; gap: 6px; }

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  text-decoration: none;
  color: #aaa;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s;
}

.related-link:hover {
  border-color: rgba(232,160,32,0.3);
  color: var(--gold);
  padding-left: 20px;
  background: rgba(232,160,32,0.04);
}

.related-link-arrow { color: var(--gold); font-size: 12px; }

/* =====================================================
   SERVICE PAGE — COVERAGE AREAS
   ===================================================== */

.svc-areas {
  background: #111;
  padding: 72px;
  border-top: 1px solid rgba(232,160,32,0.1);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 40px;
}

.area-tag {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(232,160,32,0.12);
  padding: 10px 14px;
  text-align: center;
  font-size: 12px;
  color: #888;
  border-radius: 2px;
  transition: all 0.25s;
  cursor: default;
}

.area-tag:hover { border-color: var(--gold); color: var(--gold); background: rgba(232,160,32,0.06); }

/* =====================================================
   SERVICE PAGE — CTA STRIP
   ===================================================== */

.svc-cta-strip {
  background: linear-gradient(135deg, #1a1200, #0D0D0D 40%, #0D0D0D 60%, #140e00);
  border-top: 1px solid rgba(232,160,32,0.2);
  border-bottom: 1px solid rgba(232,160,32,0.2);
  padding: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.svc-cta-strip::before {
  content: '';
  position: absolute;
  left: -100px; top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,160,32,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.svc-cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: #fff;
  line-height: 1;
  letter-spacing: 2px;
}

.svc-cta-title span  { color: var(--gold-light); }
.svc-cta-sub         { font-size: 15px; color: #777; margin-top: 10px; }
.svc-cta-btns        { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

.svc-cta-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000;
  padding: 15px 44px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(232,160,32,0.3);
}

.svc-cta-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(232,160,32,0.5); }

.svc-cta-phone {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--gold-light);
  text-align: center;
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.25s;
}

.svc-cta-phone:hover { color: #fff; }

/* =====================================================
   SCROLL REVEAL — SHARED ANIMATION CLASS
   ===================================================== */

.rv2       { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.rv2.vis   { opacity: 1; transform: translateY(0); }
.rv2.d1    { transition-delay: 0.1s; }
.rv2.d2    { transition-delay: 0.2s; }
.rv2.d3    { transition-delay: 0.3s; }

/* =====================================================
   SERVICE PAGE — RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  .svc-layout          { grid-template-columns: 1fr; padding: 56px 40px; }
  .svc-sidebar         { position: static; }
  .svc-hero-content    { padding: 0 40px 48px; }
  .svc-areas           { padding: 56px 40px; }
  .areas-grid          { grid-template-columns: repeat(3, 1fr); }
  .svc-cta-strip       { padding: 56px 40px; grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .svc-hero                        { height: 420px; }
  .svc-hero-content                { padding: 0 24px 40px; }
  .svc-hero h1                     { font-size: 40px; }
  .svc-layout                      { padding: 40px 24px; gap: 32px; }
  .svc-list                        { grid-template-columns: 1fr; }
  .svc-gallery                     { grid-template-columns: 1fr 1fr; }
  .svc-gallery-item:last-child     { display: none; }
  .areas-grid                      { grid-template-columns: repeat(2, 1fr); }
  .svc-areas                       { padding: 48px 24px; }
  .svc-cta-strip                   { padding: 48px 24px; }
  .svc-cta-title                   { font-size: 38px; }
  .trust-badges                    { grid-template-columns: repeat(4, 1fr); }
  .svc-hero-meta                   { gap: 16px; }
}