/* ============================================================
   Northeast Deck and Dock — site styles
   Built on Bootstrap 5.  All custom rules live in this file.

   Color tokens are defined as CSS variables in :root below —
   change them in one place and the whole site updates.
   ============================================================ */

:root {
  /* Brand palette */
  --color-navy:        #14385c;
  --color-navy-dark:   #0d2840;
  --color-blue:        #2c6694;
  --color-wood:        #b8895a;
  --color-wood-light:  #d4a574;
  --color-wood-dark:   #a37748;
  --color-cream:       #faf6ef;
  --color-sand:        #ede5d3;
  --color-dark:        #1a2332;
  --color-body:        #4a5568;
  --color-muted:       #718096;

  /* Bootstrap variable overrides */
  --bs-primary:        #14385c;
  --bs-primary-rgb:    20, 56, 92;
  --bs-link-color:     #14385c;
  --bs-link-hover-color: #2c6694;
  --bs-body-color:     #4a5568;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* -----------------------------------
   Typography
   ----------------------------------- */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-body);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.display-4, .display-5 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* -----------------------------------
   Buttons
   ----------------------------------- */
.btn-primary {
  --bs-btn-bg: var(--color-navy);
  --bs-btn-border-color: var(--color-navy);
  --bs-btn-hover-bg: var(--color-navy-dark);
  --bs-btn-hover-border-color: var(--color-navy-dark);
  --bs-btn-active-bg: var(--color-navy-dark);
  --bs-btn-active-border-color: var(--color-navy-dark);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
}
.btn-outline-light {
  font-weight: 600;
  padding: 0.65rem 1.5rem;
}
.btn-lg {
  padding: 0.85rem 1.75rem;
}

/* -----------------------------------
   Navbar
   ----------------------------------- */
.navbar {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.navbar-brand {
  color: var(--color-navy) !important;
  font-size: 1.25rem;
}
.navbar .nav-link {
  font-weight: 500;
  color: var(--color-dark) !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-blue) !important;
}

/* -----------------------------------
   Image placeholders
   ---
   Drop these <div>s and replace with an <img> when you have
   photography, e.g.:
     <img src="images/your-photo.jpg"
          alt="Description"
          class="img-fluid rounded">
   ----------------------------------- */
.img-placeholder {
  background: repeating-linear-gradient(
    45deg,
    #ede5d3,
    #ede5d3 12px,
    #e3d8be 12px,
    #e3d8be 24px
  );
  border: 2px dashed var(--color-wood);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7a6646;
  font-family: 'SF Mono', Monaco, Inconsolata, 'Courier New', monospace;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  padding: 2rem;
  min-height: 280px;
}
.img-placeholder.placeholder-tall {
  min-height: 450px;
}
.img-placeholder.placeholder-hero {
  min-height: 520px;
  border-radius: 0;
  border: none;
}

/* -----------------------------------
   Hero
   ---
   To use a real background image: in this rule, replace the
   .img-placeholder element in the HTML with an <img class="hero-bg-image">
   styled with object-fit:cover — or set background-image on .hero here
   and delete the placeholder element.
   ----------------------------------- */
.hero {
  position: relative;
  background-color: var(--color-navy);
  color: white;
  overflow: hidden;
}
.hero .img-placeholder {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  z-index: 0;
  margin: 0;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,56,92,0.40) 0%, rgba(13,40,64,0.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  text-align: center;
}
.hero-content h1 {
  color: white;
  font-size: 3.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-content .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

/* -----------------------------------
   Page banner (used on non-home pages)
   ----------------------------------- */
.page-banner {
  background-color: var(--color-navy);
  color: white;
  padding: 5rem 0 4rem;
  text-align: center;
}
.page-banner h1 {
  color: white;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.page-banner p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

/* -----------------------------------
   Sections
   ----------------------------------- */
section {
  padding: 5rem 0;
}
.section-light {
  background-color: var(--color-cream);
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-title p {
  color: var(--color-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* -----------------------------------
   Service cards (home page)
   ----------------------------------- */
.service-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.service-card h3 {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}
.service-card ul {
  padding-left: 1.2rem;
  margin: 0;
}
.service-card li {
  margin-bottom: 0.5rem;
}

/* -----------------------------------
   CTA band
   ----------------------------------- */
.cta-band {
  background-color: var(--color-navy);
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.cta-band p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.cta-band .btn-primary {
  --bs-btn-bg: var(--color-wood);
  --bs-btn-border-color: var(--color-wood);
  --bs-btn-hover-bg: var(--color-wood-dark);
  --bs-btn-hover-border-color: var(--color-wood-dark);
}

/* -----------------------------------
   Footer
   Scoped to body > footer so this doesn't bleed into any
   <footer> elements nested inside content (e.g. blockquotes).
   ----------------------------------- */
body > footer {
  background-color: var(--color-navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}
body > footer h5 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
body > footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
body > footer a:hover {
  color: white;
}
body > footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
body > footer ul li {
  margin-bottom: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

/* -----------------------------------
   Contact form
   ----------------------------------- */
.contact-form .form-label {
  font-weight: 600;
  color: var(--color-dark);
}
.contact-form .form-control,
.contact-form .form-select {
  padding: 0.75rem 1rem;
  border-color: #e2e8f0;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 0.2rem rgba(44,102,148,0.15);
}

/* -----------------------------------
   About page — quote block
   ----------------------------------- */
.founder-quote {
  border-left: 3px solid var(--color-wood);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

/* -----------------------------------
   Responsive tweaks
   ----------------------------------- */
@media (max-width: 768px) {
  .hero-content { padding: 5rem 0; }
  .hero-content h1 { font-size: 2.25rem; }
  section { padding: 3.5rem 0; }
  .page-banner { padding: 3.5rem 0 3rem; }
  .page-banner h1 { font-size: 2.1rem; }
}

/* ---------- Contact form (wired to the shared relay) ---------------------- */
/* Honeypot: must be invisible without display:none, which some bots detect. */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-contact-status] { min-height: 1.4em; margin-top: 1rem; margin-bottom: 0; font-weight: 500; }
[data-contact-status][data-state="error"] { color: #b3261e; }
[data-contact-status][data-state="success"] { color: var(--color-blue); }
