:root {
  --navy: #0f3d6e;        /* logo deep roof blue */
  --navy-mid: #1a6aaf;    /* mid-blue for gradients */
  --orange: #2898d0;      /* logo bright sky blue — replaces orange throughout */
  --orange-dark: #1c7eb8; /* hover/active state */
  --text: #1e2a38;
  --text-light: #607080;
  --bg-light: #f1f7fc;
  --white: #ffffff;
  --red: #c0392b;
  --border: #ccd8e8;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo .sb { color: var(--orange); }
.logo .margan { color: var(--white); }
.logo .roofing {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 400;
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -4px;
}

.logo img {
  height: 96px;
  width: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul li { position: relative; }

.main-nav ul li a {
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  display: block;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.main-nav ul li a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 200px;
  padding: 8px 0;
  z-index: 100;
}

.main-nav li:hover .dropdown-menu { display: block; }

.main-nav .dropdown-menu li a {
  color: var(--text);
  padding: 10px 18px;
  font-size: 0.9rem;
  border-radius: 0;
}

.main-nav .dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--orange);
}

.header-phone {
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.header-phone:hover { color: var(--orange-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  color: var(--white);
  padding: 100px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
}

@keyframes kb1 {
  0%   { transform: scale(1.0) translate(0%, 0%); }
  100% { transform: scale(1.14) translate(-2%, -2%); }
}
@keyframes kb2 {
  0%   { transform: scale(1.08) translate(2%, 1%); }
  100% { transform: scale(1.0) translate(-1%, 2%); }
}
@keyframes kb3 {
  0%   { transform: scale(1.0) translate(-2%, 1%); }
  100% { transform: scale(1.12) translate(2%, -1%); }
}
@keyframes kb4 {
  0%   { transform: scale(1.1) translate(1%, -2%); }
  100% { transform: scale(1.0) translate(-2%, 1%); }
}
@keyframes kb5 {
  0%   { transform: scale(1.0) translate(2%, -1%); }
  100% { transform: scale(1.13) translate(-1%, 2%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(15, 61, 110, 0.62) 0%,
    rgba(15, 61, 110, 0.48) 45%,
    rgba(15, 61, 110, 0.68) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover { background: var(--orange-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover { background: #eef0f3; color: var(--navy); }

.trust-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.trust-badge .icon {
  width: 32px;
  height: 32px;
  background: rgba(40,152,208,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== TRUST BAR ===== */
/* Navy background with sky-blue numbers — matches logo palette exactly */
.trust-bar {
  background: var(--navy);
  color: var(--white);
  padding: 18px 20px;
  border-top: 3px solid var(--orange);
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.trust-bar-item strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange);
}

.trust-bar-item span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== SECTIONS ===== */
section { padding: 72px 20px; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ===== SERVICES GRID ===== */
.services-section { background: var(--bg-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  border-top-color: var(--orange);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(40,152,208,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-card .link-arrow {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== WHY US ===== */
.why-us-section { background: var(--white); }

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.why-us-icon {
  width: 48px;
  height: 48px;
  background: rgba(40,152,208,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.why-us-item h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.why-us-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== AREAS ===== */
.areas-section { background: var(--bg-light); }

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.area-pill {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.area-pill:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3060 100%);
  color: var(--white);
}

.testimonials-section .section-header h2 { color: var(--white); }
.testimonials-section .section-header p { color: rgba(255,255,255,0.7); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.12);
}

.stars {
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.testimonial-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-author {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-location {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ===== EMERGENCY CTA ===== */
.emergency-cta {
  background: linear-gradient(135deg, #b71c1c 0%, #c0392b 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.emergency-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.emergency-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.btn-emergency {
  background: var(--white);
  color: #b71c1c;
  font-size: 1.1rem;
  padding: 16px 36px;
}

.btn-emergency:hover { background: #fee; color: #b71c1c; }

/* ===== FOOTER ===== */
.site-footer {
  background: #071e3d;
  color: rgba(255,255,255,0.75);
  padding: 60px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer-contact-item .icon { color: var(--orange); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 60px 20px 50px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 16px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--orange); }

/* ===== TWO COLUMN LAYOUT ===== */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.content-main h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin: 32px 0 14px;
}

.content-main h2:first-child { margin-top: 0; }

.content-main h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 24px 0 10px;
}

.content-main p {
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.75;
}

.content-main ul, .content-main ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.content-main li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text);
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.sidebar-cta h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.sidebar-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.sidebar-cta .btn {
  display: block;
  margin-bottom: 10px;
  text-align: center;
  font-size: 0.95rem;
}

.sidebar-trust {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 24px;
  border-left: 4px solid var(--orange);
}

.sidebar-trust h4 {
  color: var(--navy);
  margin-bottom: 14px;
  font-size: 1rem;
}

.sidebar-trust ul { list-style: none; padding: 0; }

.sidebar-trust ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.sidebar-trust ul li::before {
  content: '\2713';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== CONTACT FORM ===== */
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-detail .icon {
  width: 44px;
  height: 44px;
  background: rgba(40,152,208,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.contact-detail p, .contact-detail a {
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}

.contact-detail a:hover { color: var(--orange); }

.contact-form-wrap h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== FAQ ===== */
.faq-list { margin-top: 8px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item h4 {
  padding: 16px 20px;
  color: var(--navy);
  font-size: 0.95rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.faq-item p {
  padding: 14px 20px;
  font-size: 0.9rem;
  margin: 0;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-section {
  background: var(--bg-light);
  padding: 60px 20px;
}

.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.portfolio-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.portfolio-img {
  height: 220px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

.portfolio-caption {
  padding: 14px 16px;
}

.portfolio-caption strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.portfolio-caption span {
  font-size: 0.82rem;
  color: var(--text-light);
}

.portfolio-cta {
  background: var(--white);
  padding: 72px 20px;
}

.portfolio-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.portfolio-cta p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-credentials {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 28px;
  margin: 28px 0;
  border-left: 4px solid var(--orange);
}

.about-credentials h3 {
  color: var(--navy);
  margin-bottom: 16px;
}

.about-credentials ul { list-style: none; padding: 0; }

.about-credentials ul li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.about-credentials ul li::before {
  content: '\2713';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== AREA PAGE ===== */
.service-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.service-link-card {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid var(--orange);
  text-decoration: none;
  display: block;
  transition: transform 0.2s;
}

.service-link-card:hover { transform: translateX(4px); }

.service-link-card h4 {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.service-link-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
}

.related-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.related-areas a {
  display: inline-block;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.related-areas a:hover { background: var(--navy); color: var(--white); }

/* ===== THANK YOU ===== */
.thankyou-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.thankyou-section .checkmark { font-size: 5rem; margin-bottom: 24px; }

.thankyou-section h1 {
  font-size: 2.4rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.thankyou-section p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SERVICES OVERVIEW ===== */
.service-overview-block {
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.service-overview-block:first-of-type { padding-top: 0; }
.service-overview-block:last-of-type { border-bottom: none; }

.service-overview-block h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 14px;
}

/* === REVIEWS CAROUSEL === */
.reviews-carousel-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3060 100%);
  color: var(--white);
}

.reviews-carousel-section .section-header h2 { color: var(--white); }
.reviews-carousel-section .section-header p { color: rgba(255,255,255,0.7); }

.rc-outer { max-width: 800px; margin: 0 auto; }

.rc-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rc-track {
  flex: 1;
  position: relative;
  transition: height 0.35s ease;
}

.rc-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.rc-slide.rc-active {
  opacity: 1;
  pointer-events: auto;
}

.rc-platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.rc-platform--google    { background: rgba(66,133,244,0.15);  color: #8ab4f8; border: 1px solid rgba(66,133,244,0.35); }
.rc-platform--checkatrade { background: rgba(0,153,51,0.15);   color: #6ee09a; border: 1px solid rgba(0,153,51,0.35); }
.rc-platform--trustatrader { background: rgba(100,150,255,0.15); color: #9db8ff; border: 1px solid rgba(100,150,255,0.35); }

.rc-stars {
  color: #f5a623;
  font-size: 1.15rem;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.rc-text {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 660px;
}

.rc-author {
  font-weight: 700;
  color: var(--orange);
  font-size: 0.95rem;
}

.rc-location {
  color: rgba(255,255,255,0.45);
  font-size: 0.83rem;
  font-weight: 400;
  display: block;
  margin-top: 3px;
}

.rc-arrow {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 0 2px;
  line-height: 1;
}

.rc-arrow:hover { background: rgba(255,255,255,0.18); color: var(--white); }

.rc-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.rc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}

.rc-dot.active {
  background: var(--orange);
  transform: scale(1.35);
}

/* === REVIEW PLATFORMS SECTION === */
.review-platforms-section { background: var(--white); }

.review-platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.rp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 32px 24px 28px;
  text-decoration: none;
  border: 1px solid var(--border);
  border-top: 4px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}

.rp-card--google { border-top-color: #4285F4; }
.rp-card--checkatrade { border-top-color: #009933; }
.rp-card--trustatrader { border-top-color: #003087; }

.rp-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.rp-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

.rp-icon--google { background: #4285F4; }
.rp-icon--checkatrade { background: #009933; font-size: 1.9rem; }
.rp-icon--trustatrader { background: #003087; font-size: 1.9rem; }

.rp-platform {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.rp-score {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.rp-stars {
  color: #f5a623;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.rp-count {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.rp-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-content { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-section { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav .dropdown-menu {
    position: static;
    display: block;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    padding: 4px 0 4px 16px;
  }

  .main-nav .dropdown-menu li a { color: rgba(255,255,255,0.75); }

  .logo img { height: 84px; }
  .header-phone { font-size: 0.82rem; }

  .site-header { position: relative; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: 1fr; }
  .dryseal-features { grid-template-columns: 1fr; }
  .service-links-grid { grid-template-columns: 1fr; }
  .review-platforms-grid { grid-template-columns: 1fr; }
  .rc-arrow { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 16px 50px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .trust-badges { flex-direction: column; align-items: center; }
  .trust-bar-inner { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .install-steps { grid-template-columns: 1fr; }
  .dryseal-features { grid-template-columns: 1fr; }
  .hd-badge { flex-direction: column; max-width: 100%; }
  .hd-badge-logo { min-width: unset; }
}

/* === DIFFERENTIATOR SECTION (homepage) === */
.differentiator-section { padding: 80px 0; background: var(--bg-light); }
.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.diff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 3px solid var(--orange);
  transition: box-shadow 0.2s ease;
}
.diff-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.diff-icon { font-size: 2rem; margin-bottom: 14px; }
.diff-card h3 { color: var(--navy); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.diff-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.diff-card a { color: var(--orange); font-size: 0.85rem; font-weight: 600; }

/* === WARRANTY CALLOUT === */
.warranty-callout {
  background: #f0f7fc;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.warranty-callout-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.warranty-callout p { color: var(--text); margin: 0; line-height: 1.6; }

/* === HAMBLESIDE DANELAW ACCREDITATION BADGE === */
.hd-badge {
  display: flex;
  align-items: stretch;
  border: 2px solid #401e6e;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  margin: 0 auto 32px;
  max-width: 420px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.hd-badge:hover { box-shadow: 0 4px 20px rgba(64,30,110,0.22); transform: translateY(-1px); }
.hd-badge-logo {
  background: #401e6e;
  color: #fff;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 140px;
}
.hd-brand { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.2px; line-height: 1.2; }
.hd-sub { font-size: 0.72rem; opacity: 0.75; font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; }
.hd-badge-cert {
  background: #fff;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border-left: 1px solid #e0d0f0;
}
.hd-cert-title { font-weight: 700; color: #401e6e; font-size: 0.92rem; line-height: 1.2; }
.hd-cert-sub { font-size: 0.75rem; color: var(--text-light); }

/* === INSTALLATION STEPS === */
.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.install-step {
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.install-step img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.install-step-body { padding: 18px; }
.install-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.install-step h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 6px; }
.install-step p { font-size: 0.85rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* === VIDEO EMBED === */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* === DRYSEAL FEATURES GRID === */
.dryseal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
.dryseal-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-light);
  padding: 16px 18px;
  border-radius: 8px;
  border-left: 3px solid var(--orange);
}
.dryseal-feature-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.dryseal-feature h4 { font-size: 0.9rem; color: var(--navy); margin-bottom: 4px; }
.dryseal-feature p { font-size: 0.83rem; color: var(--text-light); margin: 0; line-height: 1.45; }

/* === APPROVED INSTALLER BADGE (legacy, keep for other pages) === */
.installer-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.installer-badge span { color: var(--orange); }

/* === CREDENTIALS LIST === */
.credentials-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.credentials-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.credentials-list li:last-child { border-bottom: none; }
.credentials-list li::before {
  content: '\2713';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* === HOW WE WORK (about page) === */
.how-we-work { margin: 40px 0; }
.how-we-work h2 { color: var(--navy); font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.how-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.how-item:last-child { border-bottom: none; }
.how-number {
  background: var(--orange);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.how-item h3 { color: var(--navy); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.how-item p { color: var(--text); font-size: 0.92rem; line-height: 1.65; margin: 0; }
