/* Bay Repair Lab – Modern single-page site
   Palette: slate navy + blue accent (#2563eb from logo) */

:root {
  --navy: #0f172a;
  --navy-800: #1e293b;
  --slate: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --success: #059669;
  --danger: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  height: 72px;
  width: auto;
}

@media (min-width: 800px) {
  .logo {
    height: 88px;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.main-nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--slate);
  text-decoration: none;
}

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

.header-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.6rem 0.5rem;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover {
  background: var(--bg);
}

.mobile-nav .btn {
  margin-top: 0.5rem;
  text-align: center;
}

@media (min-width: 800px) {
  .main-nav {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
}

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

.btn-secondary:hover {
  border-color: var(--slate);
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: center;
    gap: 3rem;
  }
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  color: var(--slate);
  max-width: 36rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--danger);
}

.hero-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.hero-card-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
}

.fact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9375rem;
}

.fact-list li:last-child {
  border-bottom: none;
}

.fact-label {
  color: rgba(255, 255, 255, 0.7);
}

.fact-value {
  font-weight: 600;
  text-align: right;
}

.hero-card-note {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* Scope bar */
.scope-bar {
  background: var(--navy-800);
  color: var(--white);
  padding: 1.25rem 0;
}

.scope-inner {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .scope-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.scope-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.scope-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
}

.scope-yes .scope-icon {
  background: rgba(5, 150, 105, 0.25);
  color: #34d399;
}

.scope-no .scope-icon {
  background: rgba(220, 38, 38, 0.25);
  color: #f87171;
}

.scope-item strong {
  display: block;
  font-size: 0.9375rem;
}

.scope-item span {
  display: block;
  font-size: 0.8125rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg);
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.section-alt .service-card {
  background: var(--white);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.service-card > p {
  margin: 0 0 0.85rem;
  color: var(--slate);
  font-size: 0.9375rem;
}

.service-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--slate);
  font-size: 0.9375rem;
}

.service-list li {
  margin-bottom: 0.3rem;
}

.service-photos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
}

.service-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}

.text-link {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: auto;
}

.exclusion-banner {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: 0.9375rem;
}

/* Process */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: none;
}

@media (min-width: 800px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.process-steps li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.process-steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
}

.process-steps p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Forms */
.forms-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .forms-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.form-card-header {
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  color: var(--white);
}

.form-card-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.form-card-header p {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.8;
}

.enquiry-form {
  padding: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
}

.req {
  color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.checkbox-group {
  margin-bottom: 1.25rem;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: var(--slate) !important;
  cursor: pointer;
}

.checkbox-label input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-success {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  color: #065f46;
  font-size: 0.875rem;
}

.form-error {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: 0.875rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
  }
}

.about-grid h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.about-grid p {
  color: var(--slate);
  margin: 0 0 1rem;
}

.trust-list {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
  color: var(--slate);
}

.trust-list li {
  margin-bottom: 0.4rem;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.about-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.about-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.about-card hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.about-card .small,
.small {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Contact section */
.contact-section {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .contact-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.contact-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.contact-section p {
  margin: 0;
  opacity: 0.85;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-section .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.contact-section .btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Footer */
.site-footer {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  margin: 0;
}

.footer-meta {
  text-align: left;
}

@media (min-width: 700px) {
  .footer-meta {
    text-align: right;
  }
}

.footer-meta p {
  margin: 0 0 0.35rem;
}

.footer-meta .small {
  opacity: 0.6;
}
