/* MikeFiberglass — global styles */
:root {
  --blue-dark: #0f2942;
  --blue: #1e5f8c;
  --blue-light: #3d8fc4;
  --blue-muted: #e8f2f9;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-300: #c5cdd6;
  --gray-600: #5c6778;
  --gray-800: #2d3748;
  --accent: #f59e0b;
  --shadow: 0 4px 24px rgba(15, 41, 66, 0.08);
  --radius: 10px;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-height: 72px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
}

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

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--blue-dark);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Netlify honeypot — keep off-screen */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--blue);
}

.logo span {
  color: var(--blue-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blue-dark);
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--gray-800);
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--blue-muted);
  color: var(--blue-dark);
  text-decoration: none;
}

.site-nav a.active {
  background: var(--blue-muted);
  color: var(--blue);
}

.header-cta {
  margin-left: 0.75rem;
}

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

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 420px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
  }

  .header-cta {
    display: none;
  }

  .site-nav .mobile-cta {
    display: block;
    margin-top: 0.5rem;
    text-align: center;
  }
}

@media (min-width: 881px) {
  .site-nav .mobile-cta {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.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);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(
      135deg,
      rgba(15, 41, 66, 0.92) 0%,
      rgba(30, 95, 140, 0.88) 100%
    ),
    url("assets/hero-pattern.svg") center/cover;
  color: var(--white);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255, 255, 255, 0.03) 12px,
    rgba(255, 255, 255, 0.03) 24px
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: 18ch;
}

.hero p.lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.hero .btn-primary:hover {
  background: var(--blue-muted);
  border-color: var(--blue-muted);
  color: var(--blue-dark);
}

.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

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

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

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

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue-dark);
}

.section-head p {
  margin: 0;
  color: var(--gray-600);
}

/* Intro block */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

.intro-text h2 {
  margin-top: 0;
  color: var(--blue-dark);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--blue-muted);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.intro-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Service cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--blue-light);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-muted);
  color: var(--blue);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--blue-dark);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.card .btn {
  margin-top: 1rem;
}

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

.quote-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow);
}

.quote-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--gray-800);
}

.quote-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.stars {
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.92;
}

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

.cta-band .btn-primary:hover {
  background: var(--blue-muted);
  border-color: var(--blue-muted);
}

/* Footer */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--white);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.social-links a:hover {
  background: var(--blue-light);
  text-decoration: none;
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--blue-muted) 0%,
    var(--gray-100) 100%
  );
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-bottom: 1px solid var(--gray-100);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  color: var(--blue-dark);
}

.page-hero p {
  margin: 0;
  color: var(--gray-600);
  max-width: 56ch;
}

/* About page */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.prose h2 {
  color: var(--blue-dark);
  margin-top: 2rem;
}

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

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.mission-box {
  background: var(--blue-muted);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
}

/* Services detail */
.service-block {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-100);
}

.service-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.service-block h2 {
  color: var(--blue-dark);
  margin-top: 0;
}

.service-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.meta-card {
  background: var(--gray-50);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}

.meta-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--blue);
}

.meta-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.gallery-item figure {
  margin: 0;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 1rem 1.25rem;
}

.gallery-caption h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--blue-dark);
}

.gallery-caption p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--gray-800);
}

.before-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.ba-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  background: rgba(15, 41, 66, 0.85);
  color: var(--white);
}

.gallery-thumb.ba-wrap {
  position: relative;
}

.gallery-thumb.ba-wrap .before-after {
  height: 100%;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.contact-card h2 {
  margin-top: 0;
  color: var(--blue-dark);
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}

.map-placeholder {
  margin-top: 1.5rem;
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, var(--gray-100), var(--gray-300));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-weight: 600;
  border: 2px dashed var(--gray-300);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(61, 143, 196, 0.2);
}

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

.form-error {
  color: #c53030;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.form-success {
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  color: #065f46;
  margin-bottom: 1rem;
  display: none;
}

.form-success.is-visible {
  display: block;
}

/* Layout wrapper */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrap main {
  flex: 1;
}

.thank-you-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
