/* =========================================================
   Roofers of Surrey - Core Stylesheet
   ========================================================= */
:root {
  --bg-main: #121316;
  --bg-card: #1c1d22;
  --bg-card-hover: #23252b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #1d72fe;
  --accent-blue: #1473e6;
  --accent-blue-hover: #0f5bc2;
  --text-main: #ffffff;
  --text-muted: #9da3af;
  --text-dim: #6b7280;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container-max: 1200px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ================= Top Announcement / Contact Bar ================= */
.top-bar {
  background-color: #0b0c0e;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar a:hover {
  color: var(--accent-blue);
}
.top-bar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* ================= Header & Navigation ================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(18, 19, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-badge {
  background: linear-gradient(135deg, var(--accent-blue), #0b4594);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}
nav a:hover, nav a.active {
  color: var(--text-main);
}
nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-blue);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background-color: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ================= Hero Section ================= */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: radial-gradient(circle at 50% 10%, rgba(20, 115, 230, 0.15), transparent 70%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 115, 230, 0.1);
  border: 1px solid rgba(20, 115, 230, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: #60a5fa;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================= Trust Badges Strip ================= */
.trust-strip {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.01);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}
.trust-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.trust-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ================= Cards & Grid ================= */
.section-pad {
  padding: 5rem 0;
}
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}
.section-header h2 {
  font-size: 2.3rem;
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}
.card h3 {
  font-size: 1.35rem;
  margin: 1rem 0 0.5rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* ================= About Split Section ================= */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-image img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  object-fit: cover;
  width: 100%;
  max-height: 480px;
}
.split-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}
.split-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

/* ================= Testimonial Cards ================= */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}
.testimonial-card blockquote {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: normal;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2a2d36;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent-blue);
  border: 1px solid var(--border-color);
}
.author-name {
  font-weight: 600;
  font-size: 1rem;
}
.rating-stars {
  color: #f59e0b;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

/* ================= Footer & Contact ================= */
footer {
  background-color: #0d0e10;
  border-top: 1px solid var(--border-color);
  padding-top: 4.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}
.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.footer-col p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  background-color: #16171b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: #1a1c22;
}
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.copyright {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ================= Mobile Adjustments ================= */
@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  nav ul {
    display: none; /* Can be expanded with a small toggle */
  }
}