/*
 * Shell Construction & Remodeling LLC
 * Consolidated MVP stylesheet
 */

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

:root {
  --ink: #fafafa;
  --muted: #cbd5e1;
  --page-background: #000000;
  --surface: #0a0a0a;
  --logo-background: #fafafa;
  --line: #303030;
  --brand: #fafafa;
  --brand-ink: #000000;
  --danger: #fca5a5;
  --success: #86efac;
  --radius: 18px;
  --radius-large: 26px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  --container: 1180px;
}

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

html {
  min-height: 100%;
  color-scheme: dark;
  background: var(--page-background);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--page-background);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

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

/* Accessibility */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  color: #000;
  background: var(--logo-background);
  border: 2px solid #000;
  border-radius: 10px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #fafafa;
  outline-offset: 4px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #000;
  background: var(--logo-background);
  border-bottom: 1px solid #dedede;
}

.topbar__inner {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  overflow: hidden;
}

/* Use a tightly cropped logo image. The source artwork should not contain
   the original large blank canvas. */
.logo {
  width: min(280px, 72vw);
  height: auto;
  margin-inline: auto;
}

/* Main content */
main,
.page {
  color: var(--ink);
  background: var(--page-background);
}

main {
  padding-bottom: 54px;
}

.page {
  min-height: calc(100vh - 150px);
  padding-bottom: 70px;
}

/* Hero */
.hero {
  padding: 34px 0 20px;
  background: var(--page-background);
}

.hero__inner {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.hero__media {
  min-height: 500px;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.38) 0%,
      rgba(0, 0, 0, 0.48) 52%,
      rgba(0, 0, 0, 0.76) 100%
    ),
    url("images/basement_image.jpg");
  background-position: center;
  background-size: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 70px);
  color: var(--ink);
  text-align: center;
}

.hero__overlay .trust__title {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85);
}

.hero__overlay .trust__text {
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--ink);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.hero__overlay .trust__text strong {
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.motto {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 36px);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.motto span {
  font-weight: 800;
}

.motto--small {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px);
}

.verse {
  max-width: 42ch;
  margin: 8px auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.verse__ref {
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  color: inherit;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: var(--brand-ink);
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(250, 250, 250, 0.18);
}

.btn--primary:hover {
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(250, 250, 250, 0.25);
}

.btn--secondary {
  color: var(--ink);
  background: #000;
  border-color: var(--ink);
}

.btn--full {
  width: 100%;
  border-radius: 14px;
}

/* Sections and service cards */
.section {
  padding: 34px 0;
  color: var(--ink);
  background: var(--page-background);
}

.section--soft {
  padding-top: 42px;
  padding-bottom: 42px;
  color: var(--ink);
  background: var(--page-background);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover {
  border-color: #737373;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card span {
  display: flex;
  min-height: 68px;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 14px 12px 16px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.trust {
  padding: 8px 0 4px;
  color: var(--ink);
  text-align: center;
}

.trust__title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.trust__text {
  max-width: 58ch;
  margin: 0 auto 20px;
  color: var(--muted);
}

.section--soft .verse,
.section--soft .verse__ref {
  display: block;
  color: var(--ink);
}

/* Interior pages */
.page-hero {
  padding: 46px 0 20px;
  color: var(--ink);
  background: var(--page-background);
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.page-hero__text {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--muted);
}

/* Contact form */
.form-card {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(20px, 4vw, 36px);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 20px;
}

label,
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #000;
  border: 1px solid #525252;
  border-radius: 11px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

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

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #fafafa;
  outline: none;
  box-shadow: 0 0 0 3px rgba(250, 250, 250, 0.16);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fafafa;
  box-shadow: 0 0 0 1000px #000 inset;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.form-card button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  position: fixed;
  right: 16px;
  bottom: 90px;
  left: 16px;
  z-index: 1100;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 11px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.form-status--success {
  color: #052e16;
  background: var(--success);
  border: 1px solid #166534;
}

.form-status--error {
  color: #450a0a;
  background: var(--danger);
  border: 1px solid #991b1b;
}

/* About page */
.about-intro {
  padding: 46px 0 50px;
  color: var(--ink);
  background: var(--page-background);
}

.about-intro__inner {
  width: min(780px, 92vw);
  margin-inline: auto;
}

.about-intro__title {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  text-align: center;
}

.bio {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
}

.bio p {
  margin: 0 0 18px;
}

.bio p:last-child {
  margin-bottom: 0;
}

.about-trust {
  padding-top: 36px;
  padding-bottom: 48px;
}

/* Navigation: the existing footer navigation becomes a conventional
   header navigation on desktop and a fixed bottom navigation on mobile. */
.mobile-nav {
  position: fixed;
  top: 0;
  right: max(4vw, 28px);
  z-index: 30;
  display: flex;
  min-height: 150px;
  align-items: center;
  color: #000;
  background: transparent;
}

.mobile-nav__inner {
  display: flex;
  width: auto;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.mobile-nav__link {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  color: #1f2937;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.mobile-nav__link:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.08);
}

.mobile-nav__icon {
  font-size: 17px;
}

.mobile-nav__link.is-active {
  color: #fafafa;
  background: #000;
}

/* Tablet */
@media (max-width: 1020px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav__link {
    padding-inline: 10px;
    font-size: 13px;
  }

  .mobile-nav__icon {
    display: none;
  }
}

/* Mobile */
@media (max-width: 759px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar__inner {
    min-height: 125px;
    padding: 10px 20px;
  }

  .logo {
    width: min(230px, 68vw);
  }

  main,
  .page {
    padding-bottom: 102px;
  }

  .hero {
    padding: 18px 0 14px;
  }

  .hero__inner,
  .hero__media {
    min-height: 470px;
  }

  .hero__inner {
    border-radius: 20px;
  }

  .hero__overlay {
    padding: 24px 20px;
  }

  .hero__overlay .trust__title {
    font-size: clamp(27px, 8vw, 38px);
  }

  .hero__overlay .trust__text {
    font-size: 16px;
  }

  .btn {
    min-height: 52px;
    padding-inline: 20px;
  }

  .section {
    padding: 26px 0;
  }

  .card-grid {
    gap: 12px;
    margin-bottom: 34px;
  }

  .service-card {
    border-radius: 15px;
  }

  .service-card span {
    min-height: 60px;
    padding: 12px 8px;
    font-size: 14px;
  }

  .page-hero,
  .about-intro {
    padding-top: 30px;
  }

  .bio {
    font-size: 16px;
    line-height: 1.68;
  }

  .mobile-nav {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    min-height: 0;
    color: #000;
    background: var(--logo-background);
    border-top: 1px solid #dedede;
    padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
  }

  .mobile-nav__inner {
    display: flex;
    width: min(520px, 96vw);
    justify-content: space-between;
    gap: 3px;
    margin-inline: auto;
  }

  .mobile-nav__link {
    min-height: 54px;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 6px 3px;
    color: #334155;
    border-radius: 12px;
    font-size: 11px;
  }

  .mobile-nav__icon {
    display: block;
    font-size: 18px;
  }

  .mobile-nav__link.is-active {
    color: #000;
    background: rgba(0, 0, 0, 0.09);
  }
}

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

  .service-card img {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.logo {
  width: min(280px, 72vw);
  height: auto;
  margin-inline: auto;
}