/* =============================================
   SMARTLIVINGZ — Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* === TOKENS === */
:root {
  --navy:     #0F1C2E;
  --navy-mid: #1A2F4A;
  --orange:   #FF6B35;
  --orange-dk:#E85A25;
  --white:    #FFFFFF;
  --grey-bg:  #F5F7FA;
  --grey-mid: #8A95A3;
  --grey-dark:#3D4F63;
  --text:     #1A2F4A;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(15,28,46,0.10);
  --shadow-lg:0 12px 40px rgba(15,28,46,0.16);
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-family: 'Poppins', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--grey-dark); }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 90px 0; }
.section--grey { background: var(--grey-bg); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 20px rgba(255,107,53,0.35);
}
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,53,0.45); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); }

/* === BADGE === */
.badge {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,107,53,0.12); color: var(--orange); margin-bottom: 16px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(15,28,46,0.25);
}
.navbar__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.navbar__logo {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--white);
}
.navbar__logo span { color: var(--orange); }
.navbar__links { display: flex; align-items: center; gap: 36px; }
.navbar__links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.navbar__links a:hover { color: var(--orange); }
.navbar__actions { display: flex; align-items: center; gap: 12px; }
.navbar__actions .btn { padding: 10px 22px; font-size: 0.88rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e3a5f 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 120px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero__bg-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 80px 0 140px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,53,0.15); color: var(--orange);
  padding: 6px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 24px; border: 1px solid rgba(255,107,53,0.25);
}
.hero__eyebrow::before { content: '●'; font-size: 0.5rem; animation: pulse 1.5s infinite; }
.hero__title { color: var(--white); margin-bottom: 20px; }
.hero__title em { color: var(--orange); font-style: normal; }
.hero__subtitle { color: rgba(255,255,255,0.72); font-size: 1.1rem; margin-bottom: 40px; max-width: 480px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero__stats { display: flex; gap: 36px; }
.hero__stat-value { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--white); }
.hero__stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* Hero visual */
.hero__visual { position: relative; }
.hero__card-main {
  background: var(--white); border-radius: 20px; padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative; z-index: 2;
}
.hero__card-main h4 { font-family: 'Poppins', sans-serif; font-size: 0.9rem; color: var(--grey-mid); margin-bottom: 16px; }
.hero__service-list { display: flex; flex-direction: column; gap: 12px; }
.hero__service-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px; background: var(--grey-bg);
  transition: var(--transition); cursor: pointer;
}
.hero__service-item:hover { background: rgba(255,107,53,0.08); transform: translateX(4px); }
.hero__service-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.hero__service-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.hero__service-price { margin-left: auto; font-size: 0.82rem; color: var(--orange); font-weight: 600; }

.hero__card-float {
  position: absolute; background: var(--white); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  animation: float 3s ease-in-out infinite;
}
.hero__card-float--1 { top: -24px; right: -20px; }
.hero__card-float--2 { bottom: 30px; left: -24px; animation-delay: 1.5s; }
.hero__card-float .icon { font-size: 1.3rem; }

/* =============================================
   SEARCH BAR
   ============================================= */
.search-section { padding: 32px 0; background: var(--white); }
.search-box {
  background: var(--white); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(15,28,46,0.14);
  padding: 8px 8px 8px 24px;
  display: flex; align-items: center; gap: 16px;
  border: 2px solid transparent; transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--orange); }
.search-box input {
  flex: 1; border: none; outline: none; font-size: 1rem;
  font-family: 'Inter', sans-serif; color: var(--text); background: transparent;
}
.search-box input::placeholder { color: var(--grey-mid); }
.search-box select {
  border: none; outline: none; font-family: 'Inter', sans-serif; font-size: 0.9rem;
  color: var(--text); background: var(--grey-bg); padding: 10px 14px; border-radius: 10px;
  cursor: pointer;
}
.search-box .btn { flex-shrink: 0; border-radius: 10px; padding: 12px 24px; }

/* =============================================
   SERVICES
   ============================================= */
.section__header { text-align: center; margin-bottom: 60px; }
.section__header p { max-width: 540px; margin: 12px auto 0; font-size: 1.05rem; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow); border: 2px solid transparent;
  transition: var(--transition); cursor: pointer; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-dk));
  opacity: 0; transition: opacity var(--transition);
}
.service-card:hover { border-color: var(--orange); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 0.04; }
.service-card__icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; transition: var(--transition);
}
.service-card:hover .service-card__icon { transform: scale(1.1) rotate(-4deg); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.service-card p { font-size: 0.88rem; color: var(--grey-mid); margin-bottom: 20px; }
.service-card__link {
  font-size: 0.85rem; font-weight: 600; color: var(--orange);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.service-card:hover .service-card__link { gap: 8px; }

/* color variants */
.icon-cleaning  { background: #FFF0EB; color: #FF6B35; }
.icon-electric  { background: #FFFBE6; color: #F5A623; }
.icon-plumbing  { background: #E8F4FD; color: #2196F3; }
.icon-carpenter { background: #FDF3E7; color: #8B5E3C; }
.icon-ac        { background: #E8FBF5; color: #00BF8F; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
  position: relative;
}
.how-it-works-grid::before {
  content: '';
  position: absolute; top: 40px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(to right, var(--orange), transparent);
  opacity: 0.2;
}
.step-card { text-align: center; padding: 20px; }
.step-card__number {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dk));
  color: var(--white); font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(255,107,53,0.3);
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; }

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-features { display: grid; gap: 24px; margin-top: 32px; }
.why-feature {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow); transition: var(--transition);
}
.why-feature:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.why-feature__icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-dk));
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.why-feature h4 { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.why-feature p { font-size: 0.88rem; }

.why-image-wrap { position: relative; }
.why-image-wrap img { border-radius: 20px; width: 100%; object-fit: cover; height: 500px; }
.why-badge {
  position: absolute; bottom: 30px; left: -24px;
  background: var(--white); border-radius: 14px; padding: 16px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.why-badge__number { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 800; color: var(--orange); }
.why-badge__text { font-size: 0.82rem; color: var(--grey-dark); line-height: 1.4; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: var(--transition); position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before {
  content: '"'; position: absolute; top: 16px; right: 24px;
  font-family: 'Poppins', sans-serif; font-size: 5rem; color: var(--orange);
  opacity: 0.12; line-height: 1;
}
.testimonial-stars { color: #F5A623; font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.93rem; line-height: 1.75; margin-bottom: 20px; color: var(--grey-dark); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dk));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.93rem; color: var(--text); }
.testimonial-service { font-size: 0.8rem; color: var(--orange); font-weight: 500; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,107,53,0.08); pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.68); font-size: 1.05rem; margin-bottom: 36px; }
.cta-banner .btn-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer__brand .navbar__logo { display: block; margin-bottom: 16px; }
.footer__brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: background var(--transition);
}
.footer__social a:hover { background: var(--orange); }
.footer__col h5 { font-family: 'Poppins', sans-serif; color: var(--white); font-size: 0.95rem; font-weight: 600; margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a { font-size: 0.88rem; transition: color 0.2s; }
.footer__col ul li a:hover { color: var(--orange); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}
.footer__bottom span { color: var(--orange); }

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(10,20,35,0.65); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); border-radius: 20px; width: 100%; max-width: 480px;
  padding: 40px; position: relative; animation: slideUp 0.3s ease;
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grey-bg); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; transition: background 0.2s;
}
.modal__close:hover { background: #e0e4ea; }
.modal h2 { font-size: 1.6rem; margin-bottom: 6px; }
.modal .subtitle { color: var(--grey-mid); font-size: 0.9rem; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; font-size: 0.88rem; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid #e8ecf0;
  border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 0.93rem;
  color: var(--text); transition: border-color 0.2s; outline: none; background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal .btn { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; border-radius: 12px; }
.modal-switch { text-align: center; margin-top: 16px; font-size: 0.88rem; color: var(--grey-mid); }
.modal-switch a { color: var(--orange); font-weight: 600; cursor: pointer; }

/* =============================================
   MOBILE NAV DRAWER
   ============================================= */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--navy); flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a { color: var(--white); font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 600; }
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav__close {
  position: absolute; top: 20px; right: 24px;
  font-size: 1.8rem; color: var(--white); cursor: pointer;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease both; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .hero__inner   { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__subtitle { margin: 0 auto 40px; }
  .hero__actions { justify-content: center; }
  .hero__stats   { justify-content: center; }
  .why-grid      { grid-template-columns: 1fr; }
  .why-image-wrap { display: none; }
  .footer__grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar__links, .navbar__actions { display: none; }
  .hamburger { display: flex; }
  .section { padding: 64px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .how-it-works-grid::before { display: none; }
  .search-box { flex-direction: column; padding: 16px; }
  .search-box select { width: 100%; }
}
@media (max-width: 480px) {
  .hero__card-float { display: none; }
  .hero__stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
}
