/* ==========================================================================
   AMM STONE POLISHING PTY LTD - OFFICIAL STYLESHEET
   Brand Colors:
   - Primary Crimson Red: #F20D35
   - Dark Background: #101215
   - Secondary Dark: #17191D
   - Text Dark: #292D33
   - Muted Text: #656B73
   ========================================================================== */

:root {
  --primary-red: #F20D35;
  --primary-red-hover: #D4092C;
  --primary-red-glow: rgba(242, 13, 53, 0.25);
  --dark-bg: #101215;
  --dark-bg-secondary: #17191D;
  --dark-card: #1E2127;
  --dark-border: #2B2F38;
  --body-text: #292D33;
  --muted-text: #656B73;
  --light-bg: #F7F7F8;
  --border-light: #E5E7EB;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--body-text);
  background-color: #FFFFFF;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography & Helpers */
.text-crimson {
  color: var(--primary-red) !important;
}

.bg-crimson {
  background-color: var(--primary-red) !important;
}

.bg-dark-main {
  background-color: var(--dark-bg) !important;
}

.bg-dark-secondary {
  background-color: var(--dark-bg-secondary) !important;
}

.eyebrow-dash {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
  letter-spacing: -1px;
}

.section-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.accent-bar-red {
  width: 44px;
  height: 4px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

/* Header & Navigation */
.site-header {
  background-color: var(--dark-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background-color: rgba(16, 18, 21, 0.98);
  backdrop-filter: blur(8px);
}

.navbar-brand-logo {
  height: 70px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

.nav-link {
  color: #E2E8F0 !important;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.5rem 1.1rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red) !important;
}

.header-phone-link {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.header-phone-link:hover {
  color: #FFFFFF;
  opacity: 0.88;
}

/* Buttons */
.btn-crimson {
  background-color: var(--primary-red);
  color: #FFFFFF !important;
  border: none;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-crimson:hover {
  background-color: var(--primary-red-hover);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--primary-red-glow);
}

.btn-crimson:active {
  transform: translateY(0);
}

.btn-outline-quote {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-quote:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Hero Section & Slider */
.hero-section {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  padding: 5.5rem 0;
  overflow: hidden;
}

.hero-carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 7s ease-out;
}

.carousel-item.active .hero-slide-bg {
  transform: scale(1.04);
}

.hero-carousel-indicators {
  z-index: 3;
  margin-bottom: 2rem;
  justify-content: flex-end;
  margin-right: 3rem;
  gap: 8px;
}

.hero-carousel-indicators [data-bs-target] {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  margin: 0;
  transition: all 0.3s ease;
}

.hero-carousel-indicators .active {
  background-color: var(--primary-red);
  width: 48px;
}

.hero-carousel-control {
  z-index: 3;
  width: 56px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-section:hover .hero-carousel-control {
  opacity: 0.65;
}

.hero-carousel-control:hover {
  opacity: 1 !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 18, 21, 0.96) 0%,
    rgba(16, 18, 21, 0.90) 42%,
    rgba(16, 18, 21, 0.62) 68%,
    rgba(16, 18, 21, 0.25) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-location-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #D1D5DB;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Service Cards & Slider */
.services-section {
  background-color: #FFFFFF;
  padding: 5.5rem 0;
}

.services-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: var(--dark-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.services-nav-btn:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: #FFFFFF;
  transform: scale(1.05);
}

.carousel-indicators-services {
  position: static;
  margin-top: 2.5rem;
  margin-bottom: 0;
  gap: 8px;
}

.carousel-indicators-services [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #D1D5DB;
  border: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.carousel-indicators-services .active {
  background-color: var(--primary-red);
  width: 28px;
  border-radius: 5px;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07);
  border-color: #D1D5DB;
}

.service-img-wrapper {
  height: 190px;
  overflow: hidden;
  background-color: #F3F4F6;
  position: relative;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img {
  transform: scale(1.04);
}

.service-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon-wrap {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.85rem;
}

.service-icon-wrap i {
  font-size: 1.85rem;
  color: var(--primary-red);
}

.service-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--muted-text);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-arrow-wrap {
  display: flex;
  justify-content: flex-end;
  color: var(--primary-red);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.service-card:hover .service-arrow-wrap {
  transform: translateX(4px);
}

/* Before and After Comparison Section */
.comparison-section {
  background-color: var(--dark-bg);
  padding: 6rem 0;
  color: #FFFFFF;
}

.ba-slider-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  user-select: none;
  background-color: #17191D;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ba-img-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after-layer {
  z-index: 1;
}

.ba-before-layer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  overflow: hidden;
  clip-path: polygon(0 0, var(--slider-pos, 50%) 0, var(--slider-pos, 50%) 100%, 0 100%);
}

.ba-badge {
  position: absolute;
  bottom: 16px;
  background-color: rgba(16, 18, 21, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ba-badge-before {
  left: 16px;
}

.ba-badge-after {
  right: 16px;
}

/* Before and After Project Switcher Controls */
.ba-project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.ba-project-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #D1D5DB;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ba-project-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.ba-project-btn.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #FFFFFF;
  box-shadow: 0 2px 10px var(--primary-red-glow);
}

.ba-project-meta {
  font-size: 0.88rem;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos, 50%);
  width: 2px;
  background-color: #FFFFFF;
  z-index: 4;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: var(--slider-pos, 50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: #101215;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  cursor: ew-resize;
  border: 2px solid var(--primary-red);
  font-size: 0.85rem;
}

.ba-slider-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
  margin: 0;
}

/* Company Highlights Section */
.highlights-section {
  background-color: #FFFFFF;
  padding: 4.5rem 0;
  border-top: 1px solid #EFEFEF;
  border-bottom: 1px solid #EFEFEF;
}

.highlight-box {
  display: flex;
  align-items: flex-start;
  padding: 1rem 1.5rem;
  position: relative;
}

.highlight-separator {
  position: relative;
}

@media (min-width: 992px) {
  .highlight-separator:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #E5E7EB;
  }
}

.highlight-icon-wrap {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  margin-right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-icon-wrap i {
  font-size: 2.5rem;
  color: var(--primary-red);
}

.highlight-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 0.35rem;
}

.highlight-desc {
  font-size: 0.92rem;
  color: var(--muted-text);
  line-height: 1.45;
  margin-bottom: 0;
}

/* Reviews / Testimonials Section */
.reviews-section {
  background-color: #F8F9FA;
  padding: 5.5rem 0;
  border-bottom: 1px solid #EAEAEA;
}

.review-badge-rating {
  display: inline-flex;
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.review-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  position: relative;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  border-color: #D1D5DB;
}

.review-quote-icon {
  font-size: 2.2rem;
  color: rgba(242, 13, 53, 0.18);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.review-stars {
  color: #F59E0B;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.review-text {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #374151;
  font-style: normal;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #F3F4F6;
  padding-top: 1rem;
}

.review-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #101215;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-avatar-circle.avatar-crimson {
  background: var(--primary-red);
}

.review-author-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--dark-bg);
  margin-bottom: 2px;
}

.review-author-sub {
  font-size: 0.82rem;
  color: var(--muted-text);
  line-height: 1.3;
}

.reviews-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: var(--dark-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reviews-nav-btn:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: #FFFFFF;
  transform: scale(1.05);
}

.carousel-indicators-reviews {
  position: static;
  margin-top: 2rem;
  margin-bottom: 0;
  gap: 6px;
}

.carousel-indicators-reviews [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #D1D5DB;
  border: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.carousel-indicators-reviews .active {
  background-color: var(--primary-red);
  width: 26px;
  border-radius: 5px;
}

/* Free Quote Section */
.quote-section {
  position: relative;
  background-color: var(--dark-bg);
  background-position: center;
  background-size: cover;
  padding: 6.5rem 0;
  color: #FFFFFF;
}

.quote-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 18, 21, 0.92);
  z-index: 1;
}

.quote-container {
  position: relative;
  z-index: 2;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  width: 36px;
  color: var(--primary-red);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-text a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-detail-text a:hover {
  color: var(--primary-red);
}

/* Quote Form Styling */
.quote-form-card {
  background: transparent;
}

.quote-input,
.quote-select {
  background-color: #FFFFFF !important;
  color: #1F2937 !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  padding: 0.85rem 1.15rem !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease;
}

.quote-input:focus,
.quote-select:focus {
  outline: none !important;
  border-color: var(--primary-red) !important;
  box-shadow: 0 0 0 3px rgba(242, 13, 53, 0.2) !important;
}

.quote-input::placeholder {
  color: #9CA3AF;
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: #FFFFFF;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2.5rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  max-width: 250px;
}

.footer-col-divider {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 2rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.15rem;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background-color: var(--primary-red);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  text-align: center;
  color: #8E95A2;
  font-size: 0.88rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.65rem;
  }
  .ba-slider-container {
    height: 320px;
  }
  .footer-col-divider {
    border-left: none;
    padding-left: 0;
    margin-top: 1.5rem;
  }
  .site-header .header-phone-link {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .ba-slider-container {
    height: 250px;
  }
  .highlight-box {
    padding: 0.85rem 0.5rem;
  }
}
