/* ============================================
   DG Repairs — dgrepairs.co.uk
   Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1C2B3A;
  --navy-mid:  #243447;
  --sky:       #3A9BDC;
  --sky-dark:  #2680BB;
  --sky-light: #D6EEFA;
  --off-white: #F8F7F4;
  --section-bg:#E8EFF5;
  --grey:      #6B7A8A;
  --grey-light:#C4CDD6;
  --text:      #1C2B3A;
  --white:     #FFFFFF;

  --font-head: 'Nunito', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 2px 12px rgba(28,43,58,0.10);
  --shadow-md: 0 4px 24px rgba(28,43,58,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Utility --- */
.text-sky    { color: var(--sky); }
.text-grey   { color: var(--grey); }
.text-white  { color: var(--white); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

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

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--sky);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 22px; height: 22px; fill: white; }

.nav-logo span.brand { color: var(--white); }
.nav-logo span.tld { color: var(--sky); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
  font-family: var(--font-head);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(58,155,220,0.18);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-phone svg { width: 16px; height: 16px; fill: var(--sky); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

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

/* --- Section spacing --- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-tinted { background: var(--section-bg); }
.section-off-white { background: var(--off-white); }

.section-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.5rem;
}

.section-heading { margin-bottom: 1rem; }
.section-sub {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 640px;
}

/* --- Wave divider --- */
.wave-divider { display: block; line-height: 0; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-body { padding: 1.5rem; }

/* --- Trust bar --- */
.trust-bar {
  background: var(--navy-mid);
  color: var(--white);
  padding: 1.25rem 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  fill: var(--sky);
  flex-shrink: 0;
}

/* --- Services grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--section-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--sky-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon svg { width: 26px; height: 26px; fill: var(--sky-dark); }

.service-card h3 { font-size: 1.05rem; margin: 0; }
.service-card p { font-size: 0.9rem; color: var(--grey); margin: 0; line-height: 1.5; }

.service-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--sky);
  margin-top: auto;
  padding-top: 0.25rem;
}

.service-card .arrow-link:hover { gap: 0.6rem; }

/* --- Why choose us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.why-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--sky);
  line-height: 1;
}

.why-item h3 { font-size: 1.1rem; }
.why-item p { font-size: 0.92rem; color: var(--grey); }

/* --- Areas list --- */
.areas-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.area-tag {
  background: var(--sky-light);
  color: var(--sky-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
}

/* --- Testimonials --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-stars { color: #F59E0B; font-size: 1.1rem; letter-spacing: 2px; }
.review-text { font-size: 0.92rem; color: var(--text); font-style: italic; line-height: 1.6; }
.review-author { font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; color: var(--grey); }

/* --- FAQ accordion --- */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
  border: 1.5px solid var(--section-bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--navy);
  gap: 1rem;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--off-white); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--sky);
  transition: transform 0.25s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.93rem;
  color: var(--grey);
  line-height: 1.65;
}

.faq-item.open .faq-answer { display: block; }

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}

.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 1.5rem; }

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Contact form --- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

.form-group label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  width: 100%;
}

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

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col ul a { font-size: 0.875rem; transition: color 0.15s; }
.footer-col ul a:hover { color: var(--sky); }

.footer-contact p { font-size: 0.875rem; line-height: 1.7; }
.footer-contact a { color: var(--sky); font-weight: 600; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); margin-left: 1rem; }
.footer-bottom a:hover { color: var(--sky); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1A3650 100%);
  color: var(--white);
  padding: 5rem 0 0;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
}

.phone-link svg { width: 20px; height: 20px; fill: var(--sky); }

.hero-badges {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-head);
  font-weight: 600;
}

.badge svg { width: 14px; height: 14px; fill: var(--sky); }

/* Hero image side */
.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.hero-img-frame {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Placeholder graphic for hero (glass pane illustration) */
.glass-illustration {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-wave { display: block; line-height: 0; }
.hero-wave svg { display: block; width: 100%; }

/* --- Page hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1A3650 100%);
  padding: 3rem 0;
  color: var(--white);
}

.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 640px; }

.breadcrumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* --- Two-col layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* --- Icon list --- */
.icon-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.icon-list li svg {
  width: 18px;
  height: 18px;
  fill: var(--sky);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Price box --- */
.price-box {
  background: var(--sky-light);
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.price-box .price-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky-dark);
  margin-bottom: 0.25rem;
}

.price-box .price-amount {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse { direction: ltr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-phone .phone-text { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-mid);
    padding: 1rem;
    gap: 0.25rem;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
