/**
 * Florida Sealcoating - Homepage Overrides
 * Version: 2.10
 *
 * Consolidates all inline <style> blocks from index.html
 * into a single external stylesheet per dev team guidelines.
 * Loaded after modern-redesign.css and interior.css.
 */

/* ============================================
   Form & Utility
   ============================================ */
#success {
  color: rgb(0, 248, 0);
}

.text-danger {
  color: red;
}

/* ============================================
   Typography: Oswald headings
   ============================================ */
h1, h2, h3, h4, h5, h6,
.hero-title,
.card-title,
.section-header h2,
.about-promise-content h2,
.stat-number {
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-subtitle,
.card-text,
p {
  text-transform: none;
  letter-spacing: normal;
}

/* ============================================
   Hero with Form (Design A)
   ============================================ */
.hero-with-form {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
  margin: 0;
  width: 100%;
}

.hero-with-form .hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-with-form .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(29, 29, 30, 0.85) 0%,
    rgba(29, 29, 30, 0.7) 50%,
    rgba(29, 29, 30, 0.5) 100%
  );
  z-index: -1;
}

.hero-with-form .hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

.hero-with-form .hero-text {
  color: #fff;
}

.hero-with-form .hero-tagline {
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.hero-with-form .hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-with-form .hero-title span {
  color: var(--color-primary);
}

.hero-with-form .hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero-with-form .hero-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hero-with-form .hero-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.hero-with-form .hero-features li i {
  color: var(--color-primary);
  font-size: 0.9rem;
}

/* ============================================
   Hero Form Box
   ============================================ */
.hero-form-box {
  background: var(--color-dark-medium);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-dark-light);
}

.hero-form-box h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-form-box h3 i {
  color: var(--color-primary);
}

.hero-form-box .form-group {
  margin-bottom: 1rem;
}

.hero-form-box input,
.hero-form-box select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-dark-light);
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.hero-form-box input:focus,
.hero-form-box select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.hero-form-box input::placeholder {
  color: var(--color-gray-medium);
}

.hero-form-box select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23fee900' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.hero-form-box select option {
  background: var(--color-dark);
  color: #fff;
}

.hero-form-box .form-note {
  text-align: center;
  color: var(--color-gray-medium);
  font-size: 0.85rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ============================================
   Hero Responsive
   ============================================ */
@media screen and (max-width: 900px) {
  .hero-with-form .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-with-form .hero-features {
    grid-template-columns: 1fr;
  }

  /* Hide the form on mobile — let users see trust signals first;
     the sticky footer CTA handles conversions on small screens */
  .hero-form-box {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .hero-with-form {
    padding-top: 110px;
    min-height: 500px;
  }

  .hero-with-form .hero-inner {
    padding: 1.5rem 1rem;
  }

  .hero-with-form .hero-title {
    font-size: 1.75rem;
  }

  .hero-form-box {
    padding: 1.5rem;
  }
}

/* Responsive: Promise & Testimonials */
@media screen and (max-width: 900px) {
  .promise-section-a > div > div {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }

  .promise-section-a .promise-image {
    order: -1;
  }
}

@media screen and (max-width: 600px) {
  .testimonials-section-a > div > div:last-child {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   V2 Client Feedback Overrides
   ============================================ */

/* 1. Bigger logo & header */
.modern-header {
  padding: 1rem 0 !important;
}
.modern-header .header-inner {
  min-height: 60px;
}
.modern-header .logo img {
  height: 80px !important;
  width: auto !important;
}
.modern-header.scrolled {
  padding: 0.75rem 0 !important;
}
.modern-header.scrolled .logo img {
  height: 65px !important;
}
.modern-header .modern-nav a,
.modern-header .modern-nav summary {
  font-size: 1.05rem;
}
.header-phone {
  font-size: 1.2rem !important;
}

/* 2. Vanity phone banner */
.vanity-phone-bar {
  background: var(--color-dark-medium, #2c2c2e);
  text-align: center;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 10001;
}
.vanity-phone-bar .vanity-label {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 0.15rem;
}
.vanity-phone-bar .vanity-number {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary, #fee900);
  letter-spacing: 2px;
}

/* Push fixed header down for vanity bar */
.modern-header {
  top: 0 !important;
}
body.redesign-page.has-vanity-bar .modern-header {
  top: 65px !important;
}
body.redesign-page.has-vanity-bar .hero-with-form {
  padding-top: 160px;
}

@media screen and (max-width: 768px) {
  .vanity-phone-bar {
    padding: 0.35rem 1rem;
  }
  .vanity-phone-bar .vanity-label {
    font-size: 0.6rem;
  }
  .vanity-phone-bar .vanity-number {
    font-size: 1.05rem;
  }
  /* Scale logo down on mobile */
  .modern-header .logo img {
    height: 50px !important;
  }
  .modern-header.scrolled .logo img {
    height: 42px !important;
  }
  body.redesign-page.has-vanity-bar .modern-header {
    top: 46px !important;
  }
  body.redesign-page.has-vanity-bar .hero-with-form {
    padding-top: 120px;
  }
  /* Fix mobile nav dropdown position */
  .modern-nav {
    top: 70px !important;
  }
}

/* 5. CTA Banner badge/icon */
.cta-heading-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cta-badge {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-badge i {
  font-size: 1.6rem;
  color: var(--color-primary);
}
.cta-subtext {
  font-size: 0.9rem;
  color: var(--color-dark);
  opacity: 0.75;
  margin: 0.25rem 0 0 0;
  font-family: 'Open Sans', sans-serif !important;
  text-transform: none !important;
}
.cta-banner h3 {
  margin-bottom: 0 !important;
}

@media screen and (max-width: 768px) {
  .cta-heading-group {
    flex-direction: column;
    text-align: center;
  }
  .cta-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
  .cta-badge i {
    font-size: 1.3rem;
  }
}

/* ============================================
   Commercial / Residential Grid
   ============================================ */
.comm-res-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.comm-res-grid .service-card {
  text-decoration: none;
}
@media screen and (max-width: 768px) {
  .comm-res-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   Results Badges
   ============================================ */
.results-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.results-badge-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.results-badge-center {
  max-width: 200px;
  max-height: 200px;
}

@media screen and (max-width: 900px) {
  .results-badges-row {
    gap: 2rem;
  }

  .results-badge-img {
    max-width: 170px;
  }
}

@media screen and (max-width: 600px) {
  .results-badges-row {
    gap: 1.5rem;
  }

  .results-badge-img {
    max-width: 140px;
  }
}

/* ============================================
   Area Pills (light background)
   ============================================ */
.area-pill-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border: 2px solid #333;
  border-radius: 50px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.area-pill-light:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #000;
}

.area-pill-light:hover i {
  color: #000 !important;
}

/* ============================================
   Testimonials Grid
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.testimonial-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

/* ============================================
   Promise Section Grid
   ============================================ */
.promise-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.promise-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .promise-main-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .promise-icon {
    justify-content: center;
    order: -1;
  }

  .promise-icon img {
    max-width: 150px;
  }

  .promise-content > div:last-child {
    justify-content: center;
  }
}
