/* ============================================
   AI For Tampa Bay — Main Stylesheet
   Green theme: growth, trust, local business
   ============================================ */

:root {
  --green-primary: #16A34A;
  --green-dark:    #14532D;
  --green-mid:     #15803D;
  --green-light:   #DCFCE7;
  --green-xlight:  #F0FDF4;
  --text-dark:     #111827;
  --text-mid:      #374151;
  --text-light:    #6B7280;
  --white:         #FFFFFF;
  --border:        #E5E7EB;
  --shadow:        0 4px 24px rgba(0,0,0,0.08);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.2s ease;
  --max-width:     1120px;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { color: var(--text-mid); }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section--alt { background: var(--green-xlight); }
.section--dark { background: var(--green-dark); color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.85); }
.text-center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-primary);
  background: var(--green-light);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section--dark .section-label {
  color: var(--green-light);
  background: rgba(255,255,255,0.12);
}
.section-headline {
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-outline-green {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}
.btn-outline-green:hover {
  background: var(--green-primary);
  color: var(--white);
}
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__logo-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}
.nav__logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--green-primary); }
.nav__cta { margin-left: 8px; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
}
.nav__mobile a {
  display: block;
  padding: 12px 24px;
  font-weight: 500;
  color: var(--text-mid);
  transition: background var(--transition);
}
.nav__mobile a:hover { background: var(--green-xlight); color: var(--green-primary); }
.nav__mobile .btn { margin: 12px 24px 0; display: flex; justify-content: center; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(145deg, var(--green-dark) 0%, #1a5c33 50%, #0f3d22 100%);
  color: var(--white);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(22,163,74,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22,163,74,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--green-light);
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero h1 span { color: #4ADE80; }
.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
.hero__trust-item svg { color: #4ADE80; flex-shrink: 0; }

/* ============================================
   OPPORTUNITY
   ============================================ */
.opportunity__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.opportunity__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.opportunity__card:hover {
  border-color: var(--green-primary);
  box-shadow: 0 8px 32px rgba(22,163,74,0.12);
  transform: translateY(-2px);
}
.opportunity__icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green-primary);
}
.opportunity__card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text-dark); }
.opportunity__card p  { font-size: 0.9rem; }
.opportunity__transition {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-dark);
  padding-top: 16px;
}

/* ============================================
   SERVICES
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 12px;
}
.service-card h3 { margin-bottom: 12px; }
.service-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.metric-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}
.metric-tag--up {
  background: var(--green-light);
  color: var(--green-dark);
}
.metric-tag--down {
  background: #FEF2F2;
  color: #991B1B;
}
.service-card p { font-size: 0.92rem; line-height: 1.65; }
.service-card__bullets {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-card__bullets li {
  font-size: 0.88rem;
  color: var(--text-mid);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-card__bullets li::before {
  content: '✓';
  color: var(--green-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
}
.step {
  text-align: center;
  padding: 8px;
}
.step__num {
  width: 56px;
  height: 56px;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.93rem; }

/* ============================================
   ABOUT
   ============================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.about__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}
.about__img-wrap {
  background: linear-gradient(145deg, var(--green-light), var(--white));
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border);
}
.about__avatar {
  width: 120px;
  height: 120px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 3rem;
}
.about__name { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.about__title { color: var(--text-light); font-size: 0.9rem; }

/* ============================================
   CLOSING CTA
   ============================================ */
.cta-section {
  background: linear-gradient(145deg, var(--green-dark), #0f3d22);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(22,163,74,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section__inner { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 20px; }
.cta-section p  { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 560px; margin: 0 auto 36px; }
.cta-section__trust {
  margin-top: 28px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.footer__brand-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer__phone {
  font-size: 0.95rem;
  color: var(--green-light);
  font-weight: 600;
}
.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer__bottom a { transition: color var(--transition); }
.footer__bottom a:hover { color: var(--white); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.open { display: flex; }

  .hero { padding: 120px 0 72px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__trust { gap: 16px; }

  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__img-wrap { order: -1; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: 1fr; }
}
