/* ===== BLACKPOOL ROOFING — MAIN STYLESHEET ===== */
:root {
  --primary: #1e3a5f;
  --primary-dark: #15293f;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #d97706;
  --amber-50: #fffbeb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --red: #ef4444;
  --green: #22c55e;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --transition: all .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--slate-800);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-amber { color: var(--amber); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem;
  border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-amber { background: var(--amber); color: var(--slate-900); border-color: var(--amber); }
.btn-amber:hover { background: var(--amber-light); border-color: var(--amber-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 800; font-size: 1.3rem; color: var(--primary);
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
  padding: 8px 14px; border-radius: 6px; font-size: .9rem; font-weight: 500;
  transition: var(--transition);
}
.main-nav > a:hover { background: var(--slate-100); }
.header-right { display: flex; align-items: center; gap: 12px; }
.phone-link {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .9rem; color: var(--primary);
}
.phone-link:hover { color: var(--amber-dark); }
.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 6px; color: var(--slate-700);
}
.menu-btn:hover { background: var(--slate-100); }

/* ===== DROPDOWNS ===== */
.dropdown { position: relative; }
.dropdown-trigger {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 6px; font-size: .9rem; font-weight: 500;
  background: none; border: none; cursor: pointer; color: var(--slate-800);
  transition: var(--transition);
}
.dropdown-trigger:hover { background: var(--slate-100); }
.dropdown-content {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 16px; z-index: 50; margin-top: 8px;
  animation: fadeIn .15s ease;
}
.dropdown.open > .dropdown-content { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-4px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.mega { min-width: 500px; gap: 24px; }
.mega-col h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); margin-bottom: 8px; }
.mega-col a { display: block; padding: 6px 10px; border-radius: 6px; font-size: .85rem; white-space: nowrap; transition: var(--transition); }
.mega-col a:hover { background: var(--amber-50); color: var(--amber-dark); }

.areas-mega { min-width: 600px; }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.areas-grid a { display: block; padding: 6px 10px; border-radius: 6px; font-size: .85rem; white-space: nowrap; transition: var(--transition); }
.areas-grid a:hover { background: var(--amber-50); color: var(--amber-dark); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 320px; max-width: 90vw; height: 100vh;
  background: var(--white); z-index: 200;
  transition: right .3s ease; overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
.mobile-nav.open { right: 0; }
.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--slate-200);
}
.close-btn { background: none; border: none; cursor: pointer; padding: 4px; color: var(--slate-600); }
.mobile-nav-body { padding: 16px 20px; }
.mobile-link { display: block; padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--slate-100); }
.mobile-link.cta-link {
  display: inline-block; margin-top: 16px; padding: 12px 24px;
  background: var(--amber); color: var(--slate-900); border-radius: var(--radius); font-weight: 600; border: none;
}
.mobile-section { margin-top: 16px; }
.mobile-section h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); margin-bottom: 8px; }
.mobile-section a { display: block; padding: 8px 0; font-size: .9rem; border-bottom: 1px solid var(--slate-50); }
.mobile-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 199;
}
.mobile-overlay.show { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 540px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1632759145354-523a21e3e58e?w=1400&h=600&fit=crop') center/cover;
  opacity: .15;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 60px 0; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(245,158,11,.15); color: var(--amber-light);
  border-radius: 100px; font-size: .8rem; font-weight: 600;
  margin-bottom: 20px; border: 1px solid rgba(245,158,11,.25);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 900; color: var(--white);
  line-height: 1.15; margin-bottom: 20px;
}
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 32px; max-width: 550px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== USP BAR ===== */
.usp-bar { background: var(--slate-900); padding: 20px 0; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usp-item {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  color: var(--white); font-size: .9rem;
}
.usp-icon { color: var(--amber); display: flex; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.bg-light { background: var(--slate-50); }
.bg-slate { background: var(--slate-100); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 12px;
}
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--slate-500); max-width: 600px; margin: 0 auto 40px; }

/* ===== CARD GRID ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.service-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  transition: var(--transition); display: block;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card-img {
  height: 200px; background-size: cover; background-position: center;
  position: relative;
}
.service-card-body { padding: 20px; }
.service-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.service-card-body p { font-size: .85rem; color: var(--slate-500); margin-bottom: 12px; line-height: 1.5; }
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 600; color: var(--amber-dark);
}

/* ===== AREA TAGS ===== */
.areas-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.areas-tags.compact { justify-content: flex-start; }
.area-tag {
  display: inline-block; padding: 8px 16px;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 100px; font-size: .85rem; font-weight: 500;
  transition: var(--transition);
}
.area-tag:hover { background: var(--amber); color: var(--slate-900); border-color: var(--amber); transform: translateY(-1px); }

/* ===== WHY CHOOSE US ===== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why-list { margin-top: 24px; }
.why-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--slate-200);
  font-size: .95rem; color: var(--slate-700);
}
.why-list li svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.why-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 64px 0; text-align: center;
}
.cta-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 12px;
}
.cta-inner p { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 48px 0;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 900; color: var(--white); margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,.8); max-width: 600px; font-size: 1.05rem; }
.back-link {
  display: inline-block; color: rgba(255,255,255,.6); font-size: .85rem;
  margin-bottom: 12px; transition: var(--transition);
}
.back-link:hover { color: var(--white); }
.distance-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; color: var(--amber-light); font-size: .85rem; font-weight: 500;
}

/* ===== SERVICE DETAIL ===== */
.service-detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.service-main h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin: 28px 0 16px; }
.service-main h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 12px; }
.service-main p { color: var(--slate-600); line-height: 1.7; }
.service-hero-img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); }
.feature-list { margin: 16px 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--slate-100);
  font-size: .95rem;
}
.feature-list li svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.service-cta-box {
  margin-top: 32px; padding: 28px;
  background: var(--slate-50); border-radius: var(--radius);
  border: 1px solid var(--slate-200);
}
.service-cta-box h3 { margin-top: 0; }
.service-cta-box p { margin-bottom: 16px; }

/* Sidebar */
.card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 24px; }
.card.mt { margin-top: 20px; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.sidebar-nav li a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: .85rem; transition: var(--transition);
}
.sidebar-nav li a:hover, .sidebar-nav li a.active { background: var(--amber-50); color: var(--amber-dark); font-weight: 600; }

/* ===== RELATED SERVICES ===== */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  display: block; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
}
.related-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.related-img { height: 140px; background-size: cover; background-position: center; }
.related-card h4 { padding: 14px 16px; font-size: .95rem; }

/* ===== AREA PAGE — SERVICES LIST ===== */
.services-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service-card-sm {
  display: flex; gap: 14px; padding: 20px;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); transition: var(--transition);
}
.service-card-sm:hover { border-color: var(--amber); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.scs-icon { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.service-card-sm h4 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.service-card-sm p { font-size: .8rem; color: var(--slate-500); line-height: 1.4; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.contact-form-wrap .card { padding: 32px; }
.contact-form-wrap h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--red); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--slate-300); border-radius: 8px;
  font-family: inherit; font-size: .9rem; color: var(--slate-800);
  transition: var(--transition); background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.error-msg {
  padding: 12px 16px; background: #fef2f2; color: var(--red);
  border: 1px solid #fecaca; border-radius: 8px; font-size: .85rem; margin-bottom: 16px;
}
.success-msg { text-align: center; padding: 48px 20px; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #dcfce7;
  color: var(--green); font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.success-msg h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 8px; }
.success-msg p { color: var(--slate-500); margin-bottom: 24px; }

/* Contact sidebar */
.contact-info-card h3 { font-size: 1.1rem; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--slate-100); }
.info-row:last-child { border-bottom: none; }
.info-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon.amber { background: var(--amber-50); color: var(--amber-dark); }
.info-label { font-size: .8rem; font-weight: 500; color: var(--slate-400); margin-bottom: 2px; }
.info-value { font-size: .9rem; font-weight: 600; }
a.info-value { color: var(--amber-dark); }
a.info-value:hover { text-decoration: underline; }
.info-value.muted { font-weight: 400; color: var(--slate-500); line-height: 1.5; }

/* ===== FOOTER ===== */
.site-footer { background: var(--slate-900); color: var(--slate-300); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white); font-size: 1.2rem; margin-bottom: 16px;
}
.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: 12px; }
.footer-col p { font-size: .85rem; line-height: 1.6; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: .85rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--amber); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a, .footer-contact span {
  display: flex; align-items: center; gap: 8px; font-size: .85rem;
}
.footer-contact a:hover { color: var(--amber); }
.hours li { font-size: .85rem; margin-bottom: 8px; }
.badges { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--amber); font-weight: 500;
}
.footer-bottom {
  margin-top: 48px; padding: 20px 0;
  border-top: 1px solid var(--slate-800);
  text-align: center; font-size: .8rem; color: var(--slate-500);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-detail { grid-template-columns: 1fr; }
  .service-sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .service-sidebar .card.mt { margin-top: 0; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .phone-link { display: none; }
  .header-right .btn { display: none; }
  .menu-btn { display: block; }

  .hero h1 { font-size: 2rem; }
  .hero-content { padding: 40px 0; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .usp-item { font-size: .8rem; }

  .card-grid, .card-grid.four { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .service-sidebar { grid-template-columns: 1fr; }
  .mega, .areas-mega { min-width: 90vw; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; justify-content: center; max-width: 300px; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.service-card, .area-tag, .service-card-sm, .related-card { animation: slideUp .4s ease both; }