/* ==============================
   Brisbane Cleaning Services - Main Stylesheet
   ============================== */

/* ==============================
   CSS Variables
   ============================== */
:root {
  /* Colors */
  --primary-color: #4CAF50;
  --secondary-color: #2196F3;
  --accent-color: #FF9800;
  --light-color: #FFFFFF;
  --light-bg: #F5F5F5;
  --dark-color: #333333;
  --gray-color: #757575;
  --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --border-radius: 4px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* ==============================
   Reset & Base Styles
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==============================
   Typography
   ============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-color);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color);
}

.section-title {
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 50px;
  background-color: var(--primary-color);
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ==============================
   Layout & Containers
   ============================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-sm {
  padding: var(--spacing-lg) 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  flex: 1;
}

/* Grid System */
.grid {
  display: grid;
  grid-gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ==============================
   Buttons
   ============================== */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-align: center;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
}

.btn-accent {
  background-color: var(--accent-color);
}

.btn-accent:hover {
  background-color: var(--primary-color);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* ==============================
   Header & Navigation
   ============================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--box-shadow);
  z-index: 100;
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 40px;
  width: auto;
  margin-left: 10px;
}

.nav-menu {
  display: flex;
}

.nav-item {
  margin-left: var(--spacing-md);
}

.nav-link {
  color: var(--dark-color);
  font-weight: 600;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* ==============================
   Hero Section
   ============================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--light-bg);
  overflow: hidden;
  padding-top: 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--spacing-md);
  width: 100%;
  align-items: center;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: -1;
}

.hero-content {
  max-width: 700px;
  z-index: 1;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-side-image {
  max-width: 100%;
  max-height: 500px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--gray-color);
}

.hero-btns {
  display: flex;
  gap: var(--spacing-sm);
}

/* ==============================
   Cards & Service Items
   ============================== */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: var(--spacing-md);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card {
  text-align: center;
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.service-title {
  margin-bottom: var(--spacing-xs);
}

.service-desc {
  margin-bottom: var(--spacing-sm);
}

/* ==============================
   Testimonials
   ============================== */
.testimonial {
  position: relative;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.testimonial-content {
  position: relative;
  padding: var(--spacing-md);
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: var(--spacing-md);
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 25px;
  width: 20px;
  height: 20px;
  background-color: white;
  transform: rotate(45deg);
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.05);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: var(--spacing-sm);
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 0;
}

.testimonial-role {
  color: var(--gray-color);
  font-size: 0.9rem;
}

.testimonial-quote {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.05);
}

/* ==============================
   Forms
   ============================== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ==============================
   Footer
   ============================== */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding-top: var(--spacing-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: var(--spacing-md);
}

.footer-title {
  color: white;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 30px;
  background-color: var(--accent-color);
}

.footer-links a {
  color: #bbb;
  display: block;
  margin-bottom: var(--spacing-xs);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-contact li {
  display: flex;
  margin-bottom: var(--spacing-xs);
  color: #bbb;
}

.footer-contact i {
  margin-right: var(--spacing-sm);
  color: var(--accent-color);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md) 0;
  margin-top: var(--spacing-lg);
  text-align: center;
  font-size: 0.9rem;
  color: #bbb;
}

/* ==============================
   Utility Classes
   ============================== */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
} 

/* ==============================
   Page Banner
   ============================== */
.page-banner {
  padding: 120px 0 60px;
  text-align: center;
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  color: white;
}

.banner-content h1 {
  color: white;
  margin-bottom: var(--spacing-xs);
  font-size: 2.8rem;
}

.banner-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-sm);
}

.breadcrumbs {
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--accent-color);
} 

/* ==============================
   Before-After Image Slider
   ============================== */
.img-comp-container {
  position: relative;
  height: 400px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.img-comp-before, .img-comp-after {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.img-comp-before {
  z-index: 2;
  width: 50%; /* Default to show half of each image */
  left: 0;
}

.img-comp-after {
  z-index: 1;
  right: 0;
}

.img-comp-before img, .img-comp-after img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.img-comp-slider {
  position: absolute;
  z-index: 10;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.img-comp-slider::before,
.img-comp-slider::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: white;
}

.img-comp-slider::before {
  transform: translateX(-5px);
}

.img-comp-slider::after {
  transform: translateX(5px);
}

.img-comp-slider::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: white;
  left: 50%;
  top: 0;
  transform: translateX(-1px);
  z-index: 5;
} 

/* Contact Section */
.contact-details {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;  /* Reduced from what was likely a higher value */
}

.contact-details i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
}

.contact-details h4 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.contact-details p {
  margin: 0;
  color: #666;
} 

/* Alert Messages */
.alert {
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
  position: relative;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
} 

/* ==============================
   FAQ Section
   ============================== */
.faq-section {
  background-color: var(--light-bg);
  padding: var(--spacing-lg) 0;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25rem;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 var(--spacing-md);
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 2000px; /* Much larger to accommodate all content */
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
  opacity: 1;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  padding-left: 20px;
  margin-bottom: var(--spacing-sm);
  list-style-type: disc;
}

.faq-answer ul li {
  margin-bottom: 8px;
}

/* Visual feedback for active FAQ items */
.faq-item.active {
  border-left: 4px solid var(--primary-color);
}

.faq-item.active .faq-question {
  background-color: rgba(76, 175, 80, 0.1);
}

/* ==============================
   Terms of Service Page
   ============================== */
.terms-content {
  max-width: 1000px;
  margin: 0 auto;
}

.terms-intro {
  margin-bottom: 3rem;
}

.terms-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.terms-section {
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background: white;
  transition: var(--transition);
}

.terms-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.terms-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.terms-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  margin-right: 1rem;
  color: white;
  font-size: 1.2rem;
}

.terms-header h3 {
  color: var(--dark-color);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.terms-content p {
  margin-bottom: 1rem;
  color: var(--gray-color);
  line-height: 1.7;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.terms-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  padding-left: 0;
  line-height: 1.6;
}

.terms-list li i {
  margin-right: 0.8rem;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.terms-list li i.fa-check {
  color: var(--primary-color);
}

.terms-list li i.fa-exclamation-triangle {
  color: var(--accent-color);
}

.terms-list li i.fa-info-circle {
  color: var(--secondary-color);
}

.terms-list li i.fa-award,
.terms-list li i.fa-plus {
  color: var(--primary-color);
}

.terms-list li i.fa-clock {
  color: var(--secondary-color);
}

.terms-contact {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: none;
  padding: 2.5rem;
}

.terms-contact h3 {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.terms-contact p {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive Design for Terms */
@media (max-width: 768px) {
  .terms-section {
    padding: 1.5rem;
  }
  
  .terms-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .terms-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-buttons .btn {
    width: 100%;
    max-width: 250px;
  }
}