/* ==========================================================
   Doorstep Cleaning Services – Landing Page Styles
   Palette taken from the logo: purple, yellow, charcoal
   ========================================================== */

:root {
  --primary: #9C3A8D;        /* logo purple */
  --primary-dark: #7A2B6E;
  --primary-deep: #3B1236;
  --accent: #F6B92F;         /* logo yellow */
  --accent-dark: #E0A214;
  --charcoal: #333333;       /* logo charcoal */
  --whatsapp: #25D366;
  --white: #FFFFFF;
  --soft: #FAF6FA;
  --text: #252B33;
  --muted: #5d5a63;
  --border: #ece3eb;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(59, 18, 54, .08);
  --shadow-hover: 0 14px 36px rgba(59, 18, 54, .16);
  --header-h: 80px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
/* Safety net against sideways scrolling on phones; clip keeps the sticky header working */
html, body { overflow-x: clip; }

h1, h2, h3, h4 { color: var(--charcoal); font-weight: 700; line-height: 1.25; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* Visible focus states */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  font-weight: 600; border-radius: 50px; padding: .6rem 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn-sm { padding: .45rem 1rem; font-size: .875rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }

.btn-brand { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.btn-brand:hover, .btn-brand:focus { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--charcoal); border: 2px solid var(--accent); }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--charcoal); }
.btn-whatsapp { background: var(--whatsapp); color: #0b3d1f; border: 2px solid var(--whatsapp); }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #1ebe5a; border-color: #1ebe5a; color: #0b3d1f; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(59, 18, 54, .08);
  border-bottom: 3px solid var(--accent);
  z-index: 1030;
}
.navbar { min-height: var(--header-h); padding: .5rem 0; }
.navbar-brand img { height: 56px; width: auto; border-radius: 10px; }
.navbar .nav-link {
  font-weight: 500; color: var(--charcoal); padding: .5rem .9rem !important; position: relative;
}
.navbar .nav-link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem;
  height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s ease;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(156, 58, 141, .35); }

@media (max-width: 991.98px) {
  .navbar-brand img { height: 46px; }
  .navbar-collapse { border-top: 1px solid var(--border); margin-top: .5rem; }
  .navbar .nav-link::after { display: none; }
  .navbar .nav-link { padding: .65rem .25rem !important; border-bottom: 1px solid var(--soft); }
}

/* ---------- Hero ---------- */
.hero-slide {
  min-height: clamp(520px, 86vh, 760px);
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(45, 12, 41, .9) 0%, rgba(80, 22, 72, .72) 45%, rgba(80, 22, 72, .3) 100%);
}
.carousel-item.hero-slide { display: none; }
.carousel-item.hero-slide.active,
.carousel-item-next.hero-slide,
.carousel-item-prev.hero-slide { display: flex; align-items: center; }

.hero-content { position: relative; z-index: 2; color: #fff; padding-top: 4rem; padding-bottom: 5rem; }
.hero-content h1, .hero-content .hero-title {
  color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); max-width: 720px; margin-bottom: 1rem;
}
.hero-content p { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 600px; opacity: .95; margin-bottom: 2rem; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(246, 185, 47, .18); border: 1px solid rgba(246, 185, 47, .8);
  color: #ffe3a3; padding: .35rem 1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 500; margin-bottom: 1.25rem;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero .carousel-item.active .hero-content > * { animation: heroUp .8s ease both; }
.hero .carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .1s; }
.hero .carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .2s; }
.hero .carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .3s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; z-index: 3; }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, .15); border-radius: 50%;
  width: 3rem; height: 3rem; background-size: 45%;
}
.hero .carousel-indicators { z-index: 3; margin-bottom: 1.5rem; }
.hero .carousel-indicators [data-bs-target] {
  width: 12px; height: 12px; border-radius: 50%; border: 0; margin: 0 6px; opacity: .55;
}
.hero .carousel-indicators .active { background-color: var(--accent); opacity: 1; width: 30px; border-radius: 6px; }

@media (max-width: 767.98px) {
  .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
  .hero-slide::before { background: rgba(45, 12, 41, .78); }
  .hero-btns .btn { flex: 1 1 auto; }
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.bg-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 1rem; color: var(--primary); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; color: var(--charcoal); font-weight: 600;
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }

.icon-circle {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(156, 58, 141, .12); color: var(--primary); font-size: 1.15rem;
}
.icon-circle.icon-alt { background: rgba(246, 185, 47, .22); color: #9a6a00; }
.icon-circle.icon-lg { width: 60px; height: 60px; font-size: 1.5rem; }

/* ---------- About ---------- */
.about-media { position: relative; padding: 0 0 2rem 2rem; }
.about-media::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%;
  background: var(--accent); opacity: .35; border-radius: var(--radius);
}
.about-media img {
  position: relative; border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; aspect-ratio: 9 / 10; object-fit: cover;
}
.since-badge {
  position: absolute; right: 1.25rem; bottom: 0;
  background: var(--primary); color: #fff; border-radius: var(--radius);
  padding: 1rem 1.5rem; text-align: center; box-shadow: var(--shadow-hover);
  border-bottom: 4px solid var(--accent);
}
.since-badge span { display: block; opacity: .85; }
.since-badge strong { font-size: 2rem; line-height: 1.1; }
.about-highlights { margin: 1.5rem 0 2rem; display: grid; gap: .85rem; }
.about-highlights li { display: flex; align-items: center; gap: .85rem; font-weight: 500; }

/* ---------- Services ---------- */
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  border-bottom: 4px solid transparent;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-bottom-color: var(--accent); }
.service-img { overflow: hidden; aspect-ratio: 10 / 7; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--primary); }
.service-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.service-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.service-btns .btn { flex: 1 1 auto; }

/* ---------- Why Choose Us ---------- */
.feature-card {
  display: flex; gap: 1.1rem; align-items: flex-start; height: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- Gallery ---------- */
.gallery-item {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in;
}
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s ease; display: block; }
.gallery-zoom {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(156, 58, 141, .55); color: #fff; font-size: 1.8rem; opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; }
.gallery-modal { border-radius: var(--radius); overflow: hidden; border: 0; }

/* ---------- Contact ---------- */
.contact-action {
  display: flex; align-items: center; gap: 1.1rem; height: 100%;
  padding: 1.4rem 1.6rem; border-radius: var(--radius); text-decoration: none;
  color: #fff; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.contact-action:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: #fff; }
.action-call { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); }
.action-whatsapp { background: linear-gradient(120deg, #25D366, #128C4A); }
.action-icon {
  flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255, 255, 255, .2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.action-label { display: block; font-size: .85rem; opacity: .9; }
.action-value { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; }
.action-arrow { margin-left: auto; font-size: 1.3rem; transition: transform .25s ease; }
.contact-action:hover .action-arrow { transform: translateX(4px); }

.contact-card {
  background: var(--soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; height: 100%;
}
.contact-card h3 { font-size: 1.3rem; margin-bottom: 1.25rem; color: var(--primary); }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-list .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list address { font-style: normal; }
.map-wrap { border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 360px; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

@media (max-width: 575.98px) {
  .contact-card { padding: 1.4rem; }
  .contact-action { padding: 1.1rem 1.2rem; }
  .action-value { font-size: 1.15rem; }
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative; color: #fff; padding: 90px 0;
  background: linear-gradient(rgba(122, 43, 110, .93), rgba(59, 18, 54, .95)), url('../images/cta-bg.webp') center / cover no-repeat;
  border-top: 5px solid var(--accent);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.cta-banner p { max-width: 620px; margin: 0 auto 2rem; opacity: .9; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-deep); color: rgba(255, 255, 255, .78); padding: 70px 0 0; font-size: .94rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-logo img { background: #fff; border-radius: 12px; padding: 6px; height: 72px; width: auto; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .8rem; }
.footer-contact i { color: var(--accent); margin-top: .2rem; }
.social-link {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.social-link:hover { background: var(--whatsapp); color: #fff !important; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem;
  padding: 1.4rem 0; text-align: center; font-size: .88rem;
}

/* ---------- Floating Call & WhatsApp ---------- */
.floating-actions {
  position: fixed; right: 18px; bottom: 18px; z-index: 1040;
  display: flex; flex-direction: column; gap: 12px;
  transition: opacity .25s ease, transform .25s ease;
}
.floating-actions.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.fab {
  width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem; text-decoration: none; position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); color: #fff; }
.fab-whatsapp { background: var(--whatsapp); font-size: 1.7rem; }
.fab-call { background: var(--primary); }
.fab-whatsapp::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp); animation: pulse 2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }

@media (max-width: 575.98px) {
  .floating-actions { right: 14px; bottom: 14px; }
  .fab { width: 52px; height: 52px; font-size: 1.35rem; }
}
