/*
Theme Name: D&D Roofing SEO Starter
Theme URI: https://example.com/
Author: D&D Roofing Services Ltd
Description: Lightweight local SEO starter theme for a roofing company on WordPress and Hostinger.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: dd-roofing
*/

:root {
  --ink: #07090d;
  --ink-soft: #45515f;
  --bg: #f4f6f9;
  --panel: #ffffff;
  --line: #d5dbe4;
  --brand: #005ce6;
  --brand-dark: #003b99;
  --brand-glow: #0b7cff;
  --accent: #cfd5df;
  --white: #ffffff;
  --silver: #e8edf5;
  --black: #030407;
  --shadow: 0 18px 45px rgba(3, 4, 7, 0.2);
  --radius: 8px;
  --max: 1180px;
  font-synthesis-weight: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

p {
  color: var(--ink-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.45rem max(1rem, calc((100vw - var(--max)) / 2));
  background: rgba(3, 4, 7, 0.96);
  border-bottom: 1px solid rgba(0, 92, 230, 0.45);
  backdrop-filter: blur(12px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 170px;
  max-width: 170px;
  gap: 0.9rem;
  color: var(--white);
  text-decoration: none;
}

.site-header .brand img,
.site-header img.brand-logo,
.site-header .custom-logo,
.site-header .custom-logo-link img,
.brand-logo {
  display: block !important;
  width: min(150px, 42vw) !important;
  max-width: 150px !important;
  height: auto !important;
  max-height: 92px !important;
  object-fit: contain !important;
}

.brand strong,
.brand small {
  display: block;
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brand small {
  color: var(--silver);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--silver);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--brand-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.15rem;
  color: var(--white);
  background: linear-gradient(180deg, var(--brand-glow), var(--brand));
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button-small {
  min-height: 40px;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
}

.button-ghost {
  color: var(--white);
  background: rgba(3, 4, 7, 0.24);
  border-color: rgba(232, 237, 245, 0.78);
}

.button-light {
  color: var(--brand-dark);
  background: var(--white);
  border-color: var(--white);
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 4, 7, 0.9) 0%, rgba(3, 4, 7, 0.66) 46%, rgba(3, 4, 7, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 42, 112, 0.48), rgba(3, 4, 7, 0.04));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
  color: var(--white);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.86);
}

.hero-lede {
  max-width: 710px;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.cta-band .eyebrow {
  color: var(--silver);
}

.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--white);
  background: linear-gradient(90deg, var(--black), #061b42 50%, var(--black));
  font-weight: 800;
}

.trust-strip span {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 124, 255, 0.42);
  border-radius: 999px;
}

.section,
.split-section,
.cta-band,
.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 2rem;
}

.section-heading p {
  font-size: 1.05rem;
}

.service-grid,
.feature-grid,
.area-grid {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.feature-grid > div,
.faq-section details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(3, 4, 7, 0.08);
}

.service-card {
  min-height: 245px;
  padding: 1.4rem;
}

.service-card a {
  display: inline-block;
  margin-top: 0.45rem;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 2.5rem;
  align-items: center;
  padding: 4.5rem 0;
}

.split-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-copy {
  padding: 1rem 0;
}

.check-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.35rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.65rem;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 0.62rem;
  height: 0.62rem;
  background: var(--brand);
  border-radius: 50%;
}

.muted {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
  background: linear-gradient(180deg, #eef3fb, #e3eaf5);
}

.area-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.area-grid span {
  padding: 1rem;
  background: var(--white);
  border: 1px solid #c7d4e7;
  border-radius: var(--radius);
  font-weight: 800;
  text-align: center;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid > div {
  padding: 1.35rem;
}

.faq-section {
  padding-top: 2rem;
}

.faq-section details {
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.8rem;
}

.faq-section summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.faq-section details p {
  margin: 0.9rem 0 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 2.1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--black), #062b6d 55%, var(--brand));
  border: 1px solid rgba(0, 124, 255, 0.45);
  border-radius: var(--radius);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.86);
}

.cta-band h2 {
  margin-bottom: 0.55rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 92, 230, 0.28);
}

.site-footer p {
  margin: 0;
  font-size: 0.94rem;
}

.page-shell {
  width: min(880px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.page-shell .entry-content {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.page-shell .entry-content h2,
.page-shell .entry-content h3 {
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .service-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .cta-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.55rem;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding: 4rem 0 3.5rem;
  }

  .service-grid,
  .feature-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .brand {
    min-width: 0;
    max-width: 128px;
  }

  .brand-logo {
    width: 118px !important;
    max-width: 118px !important;
    max-height: 76px !important;
  }
}
