/* Boca Handyman & Construction - Custom styles */
/* Tailwind CDN provides utilities; this file is for overrides and custom components */

:root {
  --color-primary: #1a1a1a;
  --color-accent: #c9a227;
  --color-dark: #0d0d0d;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: #2d2d2d;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Header logo sizing: 8rem mobile, 9rem desktop */
.header-logo {
  height: 8rem;
}
@media (min-width: 768px) {
  .header-logo {
    height: 9rem;
  }
}

/* Hero overlay gradient for text readability (desktop overlay mode) */
.hero-overlay {
  display: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.60) 100%);
}

/* Hero: mobile = image above, text below. Desktop = overlay (except .no-overlay) */
.hero-section {
  display: flex;
  flex-direction: column;
}
.hero-image {
  width: 100%;
  flex-shrink: 0;
  position: relative;
  aspect-ratio: 16/9;
  min-height: 200px;
  background-size: cover;
  background-position: center;
}
.hero-content {
  background: white;
  padding: 2rem 1rem;
  text-align: center;
}
.hero-content-inner {
  max-width: 56rem;
  margin: 0 auto;
}
.hero-content-text {
  color: #171717;
}
.hero-content-subtext {
  color: #525252;
}

@media (min-width: 768px) {
  /* Default desktop overlay hero */
  .hero-section:not(.no-overlay) {
    display: block;
    height: 80vh;
    min-height: 80vh;
    position: relative;
  }
  .hero-section.services-hero:not(.no-overlay) {
    height: 60vh;
    min-height: 60vh;
  }
  /* LED hero: force minimum 800px height on desktop */
  .hero-section.led-hero:not(.no-overlay) {
    min-height: 800px;
  }
  /* LED hero: no full-image tint; use text shadow instead */
  .hero-section.led-hero:not(.no-overlay) .hero-overlay {
    display: none !important;
  }
  .hero-section.led-hero:not(.no-overlay) .hero-content-text,
  .hero-section.led-hero:not(.no-overlay) .hero-content-subtext {
    text-shadow:
      0 -2px 6px rgba(0,0,0,0.65),
      0 2px 10px rgb(0, 0, 0),
      0 10px 5px rgba(0,0,0,0.85);
  }
  .hero-section.led-hero:not(.no-overlay) .hero-content-subtext {
    color: #fff;
  }
  .hero-section.led-hero:not(.no-overlay) .hero-content-subtext {
    display: inline-block;
    padding: 0.6rem 0.9rem;
    border-radius: 0.85rem;
    background: rgba(0,0,0,0.35);
    box-shadow: 0 14px 40px rgba(0,0,0,0.45);
    max-width: 46rem;
  }
  .hero-section.led-hero:not(.no-overlay) .hero-btn-phone,
  .hero-section.led-hero:not(.no-overlay) .hero-btn-quote {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .hero-section.led-hero:not(.no-overlay) .hero-btn-quote {
    text-shadow: 0 2px 10px rgb(0, 0, 0), 0 5px 5px rgba(0,0,0,0.85);
  }
  .hero-section:not(.no-overlay) .hero-image {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    min-height: 0;
  }
  .hero-section:not(.no-overlay) .hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
  }
  .hero-section:not(.no-overlay) .hero-content {
    position: absolute;
    inset: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }
  .hero-section:not(.no-overlay) .hero-content-text {
    color: white;
  }
  .hero-section:not(.no-overlay) .hero-content-subtext {
    color: rgba(255,255,255,0.95);
  }

  /* Desktop no-overlay hero (e.g., LED lighting page) */
  .hero-section.no-overlay {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    position: static;
  }
  .hero-section.no-overlay .hero-image {
    position: relative;
    inset: auto;
    aspect-ratio: auto;
    min-height: 95vh;
  }
  .hero-section.no-overlay .hero-content {
    position: static;
    background: white;
    padding: 3rem 1rem;
    display: block;
  }
}

/* Hero buttons */
.hero-btn-phone {
  background: #171717;
  color: white;
  border: 2px solid #171717;
}
.hero-btn-phone:hover {
  background: #262626;
  border-color: #262626;
}
.hero-btn-quote {
  background: #e5e5e5;
  color: #171717;
  border: 2px solid #a3a3a3;
}
.hero-btn-quote:hover {
  background: #d4d4d4;
  border-color: #737373;
}

@media (min-width: 768px) {
  /* Desktop overlay hero button styles */
  .hero-section:not(.no-overlay) .hero-btn-phone {
    background: #171717;
    border-color: white;
  }
  .hero-section:not(.no-overlay) .hero-btn-quote {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: white;
  }
  .hero-section:not(.no-overlay) .hero-btn-quote:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
  }
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
