/* ============================================
   Sweet Home Residential — Shared Components
   ============================================ */

/* ========== ANNOUNCEMENT BAR ========== */
.announcement-bar {
  background: var(--gold);
  color: var(--white);
  font-size: 0.8rem;
  padding: 8px 0;
}
.announcement-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.announcement-bar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--white);
}
.announcement-bar__phone:hover { text-decoration: underline; }

/* ========== NAVIGATION ========== */
.nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  padding: 12px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.nav__logo-sweet { color: var(--gold); }
.nav__logo-home { color: var(--navy); }
.nav__links { display: none; gap: 24px; }
.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s;
  position: relative;
}
.nav__link:hover, .nav__link.active { color: var(--gold); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__cta { display: none; }
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999; pointer-events: none; }
.mobile-nav.active { pointer-events: all; }
.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav.active .mobile-nav__overlay { opacity: 1; }
.mobile-nav__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-xl);
}
.mobile-nav.active .mobile-nav__drawer { transform: translateX(0); }
.mobile-nav__link {
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.mobile-nav__link:hover { background: var(--off-white); color: var(--gold); }
.mobile-nav__cta { margin-top: 16px; text-align: center; }

/* ========== TRUST BAR ========== */
.trust-bar {
  background: var(--off-white);
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}
.trust-bar__label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-500);
  margin-bottom: 20px;
  font-weight: 600;
}
.trust-bar__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-bar__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: 80px 0;
  background: var(--white);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}
.testimonial-card__text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial-card__author strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}
.testimonial-card__author span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ========== FAQ ========== */
.faq {
  padding: 80px 0;
  background: var(--off-white);
}
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}
.faq__item:hover { border-color: var(--gold); }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: color 0.2s;
}
.faq__question:hover { color: var(--gold); }
.faq__chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq__item.active .faq__chevron { transform: rotate(180deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq__item.active .faq__answer { max-height: 300px; }
.faq__answer p {
  padding: 0 24px 20px;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand .footer__logo {
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
  gap: 6px;
}
.footer__brand .nav__logo-sweet { color: var(--gold); }
.footer__brand .nav__logo-home { color: var(--white); }
.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.footer__description { font-size: 0.9rem; line-height: 1.6; }
.footer__links h4,
.footer__contact h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer__links a,
.footer__contact a,
.footer__contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ========== STICKY MOBILE CTA BAR ========== */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  display: flex;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  z-index: 900;
  padding: 8px;
  gap: 8px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.mobile-cta-bar.visible { transform: translateY(0); }
.mobile-cta-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}
.mobile-cta-bar__btn--call {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}
.mobile-cta-bar__btn--offer {
  background: var(--cta);
  color: var(--white);
}

/* ========== PAGE HERO (compact, for inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 48px 0;
  text-align: center;
}
.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero__subtitle {
  color: rgba(255,255,255,0.8);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== RESPONSIVE — TABLET (768px+) ========== */
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
  .footer__bottom-inner { flex-direction: row; justify-content: space-between; }
}

/* ========== RESPONSIVE — DESKTOP (1024px+) ========== */
@media (min-width: 1024px) {
  .container { padding: 0 40px; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__hamburger { display: none; }
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-cta-bar { display: none; }
  .footer { padding-bottom: 0; }
}

/* ========== RESPONSIVE — LARGE DESKTOP (1280px+) ========== */
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}
