/* ShovelNow – Blue/White Theme */
:root {
  --blue-700: #0d47a1;
  --blue-600: #1565c0;
  --blue-100: #bbdefb;
  --blue-50: #e3f2fd;
  --ink-900: #0b1220;
  --ink-700: #1f2b3d;
  --ink-500: #3b4a63;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 71, 161, 0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}
.brand {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
}
.brand-sub { color: var(--ink-900); font-weight: 600; font-size: 1.05rem; display: none; }
/* secondary header row */
.nav-subrow { background: var(--white); border-top: 0; border-bottom: 1px solid var(--blue-100); }
.nav-subrow__inner { height: 48px; display: flex; align-items: center; justify-content: space-between; }
.nav-tagline { color: var(--ink-900); font-size: 1rem; font-weight: 700; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--blue-700);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links { display: flex; gap: 14px; align-items: center; }
.nav-links a { color: var(--ink-700); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
/* Default nav link hover, excluding primary CTA */
.nav-links a:hover:not(.btn-primary) { background: var(--blue-50); color: var(--blue-700); }
/* Ensure primary button in nav stays white-on-blue and remove hover color swap */
.nav .btn-primary, .nav-links .btn-primary {
  color: var(--white) !important;
  background: var(--blue-700);
  border-color: var(--blue-700);
}
.nav .btn-primary:hover, .nav-links .btn-primary:hover {
  background: var(--blue-700);
  color: var(--white) !important;
}
.nav-cta { margin-left: auto; }
.nav-cta .btn-primary { padding: 11px 16px; font-size: 0.97rem; line-height: 1.1; border-radius: 8px; }
/* CTA container so call button can live outside hamburger */
/* removed nav-cta/tags for previous two-row layout */

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--blue-600); }
.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-700);
}
.btn-outline:hover { background: var(--blue-50); }

/* Make outline buttons readable on dark hero */
.hero .btn-outline {
  background: var(--white);
  color: #000;
  border-color: var(--white);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border-color: var(--white);
}

/* Filled buttons in hero */
.hero .btn-primary {
  background: var(--white);
  color: #000;
  border-color: var(--white);
  box-shadow: var(--shadow-md);
}
.hero .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border-color: var(--white);
}

/* Make the call button in the contact form blue with white text for contrast */
.form-actions .btn-outline[href^="tel:"] {
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
}
.form-actions .btn-outline[href^="tel:"]:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
}

/* Hero */
.hero {
  position: relative;
  min-height: 56vh;
  display: grid;
  align-items: center;
  color: var(--white);
  background: 
    url("assets/gallery/hero.jpg") center/cover no-repeat;
}
.hero__content { padding: 40px 20px; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.hero__copy { max-width: 65ch; }
.hero__media { display: none; }
.hero__media img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow-md); }
.hero h1 { font-size: clamp(1rem, 2.2vw, 1.8rem); margin: 0 0 12px; line-height: 1.08; letter-spacing: 0.005em; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45); white-space: nowrap; font-weight: 800; }
.hero__body { margin: 0 0 18px; max-width: 60ch; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem); color: var(--white); opacity: 0.98; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); line-height: 1.4; text-wrap: balance; font-weight: 600; }
.hero__subtitle { margin: 0 0 20px; font-size: 1.05rem; opacity: 0.95; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 56px 0; }
.section--light { background: var(--blue-50); }
.section h2 { margin: 0 0 20px; color: var(--blue-700); font-size: 1.6rem; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 8px; color: var(--ink-900); font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-500); }

/* Map */
/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery__item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); border: 1px solid var(--blue-100); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.gallery__item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.gallery__item img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 3; }

/* Contact */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-field { display: grid; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; color: var(--ink-700); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 12px;
  border: 1px solid var(--blue-100);
  border-radius: 10px;
  font: inherit;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 2px solid var(--blue-600); border-color: var(--blue-600); }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.form-hint { margin-top: 8px; color: var(--ink-500); font-size: 0.9rem; }

/* A11y helpers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--blue-100); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.back-to-top { color: var(--blue-700); text-decoration: none; }
.back-to-top:hover { text-decoration: underline; }

/* Toast */
#toast-container {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  z-index: 1000;
}
.toast {
  background: var(--ink-900);
  color: var(--white);
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  opacity: 0.98;
}
.toast--success { background: var(--ink-900); border: 2px solid var(--blue-600); }
.toast--error { background: var(--ink-900); border: 2px solid #1c1c1c; }

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (min-width: 769px) {
  .nav-toggle { display: none !important; }
  .brand-sub { display: inline; margin-left: 6px; font-size: 0.95rem; }
  .nav-subrow { display: none; }
  /* Improve vertical centering of all items in the desktop header */
  .nav { align-items: center; justify-content: flex-start; }
  .brand { display: flex; align-items: center; }
  .nav-links { align-items: center; margin-left: auto; }
  .nav-cta { display: flex; align-items: center; margin-left: 12px; }
  /* Show Home link on desktop */
  .nav-links a[href="#home"] { display: inline-flex; }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__content { grid-template-columns: 1fr; }
  .hero__media { display: none; }
}
@media (max-width: 768px) {
  .site-header { box-shadow: none; background: transparent; }
  .nav { height: auto; background: var(--white); flex-wrap: wrap; gap: 8px; padding: 8px 20px; }
  .nav-cta { order: 2; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: 0.95rem; }
  .nav-toggle { display: flex; }
  /* restore original single-row layout */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px; /* no vertical padding when closed to avoid white band */
    box-shadow: none;
    border: 0;
    line-height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    will-change: max-height, opacity, transform;
    transition: max-height 280ms ease, opacity 220ms ease, transform 220ms ease, padding 200ms ease, box-shadow 200ms ease;
    pointer-events: none;
  }
  .nav-links.active {
    padding: 12px 20px;
    box-shadow: var(--shadow-sm);
    max-height: 420px;
    line-height: 1.4;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .nav-links .btn-primary { margin-top: 8px; text-align: center; }
  /* ensure hero starts immediately under header */
  .hero { margin-top: 0; }
}
@media (max-width: 640px) {
  .nav { height: 58px; }
  .hero { min-height: auto; padding-top: 20px; }
  .hero__content { padding: 36px 20px 28px; gap: 12px; }
  .hero h1 { font-size: 1.4rem; white-space: normal; line-height: 1.2; }
  .hero__body { font-size: 1rem; line-height: 1.35; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 8px; padding: 12px 0; }
}


