/* 
==================================
MAIN CSS FILE - Accessible Housing Audit Center
================================== 
*/

:root {
  /* Color Palette */
  --primary-color-1: #5a6f80; /* Muted blue-gray */
  --primary-color-2: #d3a971; /* Warm gold */
  --primary-color-3: #486b5c; /* Forest green */
  --primary-color-4: #b7654f; /* Terracotta */
  --primary-color-5: #545872; /* Dusty navy */
  
  /* Light/dark variations */
  --primary-color-1-light: #8295a5;
  --primary-color-1-dark: #3d4f60;
  --primary-color-2-light: #eac796;
  --primary-color-2-dark: #b68b53;
  --primary-color-3-light: #6d8f7f;
  --primary-color-3-dark: #2e4a3e;
  --primary-color-4-light: #d18e7a;
  --primary-color-4-dark: #954735;
  --primary-color-5-light: #787b98;
  --primary-color-5-dark: #383a4c;
  
  /* Neutral colors */
  --white: #ffffff;
  --light-gray: #f7f7f7;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --black: #1a1a1a;
  
  /* Typography */
  --body-font: 'Inter', sans-serif;
  --heading-font: 'Montserrat', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  color: var(--dark-gray);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

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-gray);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary-color-1);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-color-1-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius-md);
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary-color-2);
  color: var(--white);
  border: 1px solid var(--primary-color-2);
}

.btn-primary:hover {
  background-color: var(--primary-color-2-dark);
  border-color: var(--primary-color-2-dark);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--primary-color-1);
  color: var(--white);
  border: 1px solid var(--primary-color-1);
}

.btn-secondary:hover {
  background-color: var(--primary-color-1-dark);
  border-color: var(--primary-color-1-dark);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color-2);
  color: var(--primary-color-2);
}

.btn-outline:hover {
  background-color: var(--primary-color-2);
  color: var(--white);
}

/* Section Styles */
.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  text-align: center;
  color: var(--primary-color-2);
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

/* Card Styles */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-md);
  height: 100%;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  margin-bottom: var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.card-price {
  color: var(--primary-color-2);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.card-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--spacing-sm);
}

.card-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-features li:before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-color-3);
}

/* Header & Navigation */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color-1);
  z-index: 1001;
}

.navbar-collapse {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-direction: row;
}

.nav-item {
  margin-left: var(--spacing-md);
  position: relative;
}

.nav-link {
  color: var(--dark-gray);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
  display: block;
}

.close-menu {
  display: none;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color-2);
  transition: var(--transition-fast);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color-2);
}

.navbar-toggler {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--dark-gray);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 76px; /* Header height compensation */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title-1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-1 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-desc-1 {
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  height: 150px;
  background-color: var(--white);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0% 100%);
  z-index: 3;
}

/* About Section */
.about {
  position: relative;
  overflow: hidden;
}

.about-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background-color: var(--primary-color-3-light);
  opacity: 0.1;
  border-radius: 50%;
  top: -300px;
  right: -200px;
  z-index: -1;
}

.about-feature {
  margin-bottom: var(--spacing-md);
}

.about-feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color-2-light);
  color: var(--primary-color-2-dark);
  font-size: 1.5rem;
  border-radius: 50%;
  margin-bottom: var(--spacing-sm);
}

/* Services Section */
.services {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.services-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background-color: var(--primary-color-1-light);
  opacity: 0.1;
  border-radius: 50%;
  bottom: -250px;
  left: -150px;
  z-index: 0;
}

.services-grid {
  position: relative;
  z-index: 1;
}

/* Features Section */
.features {
  position: relative;
}

.features-item {
  display: flex;
  margin-bottom: var(--spacing-md);
}

.features-item-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color-3-light);
  color: var(--primary-color-3-dark);
  font-size: 1.25rem;
  border-radius: var(--border-radius-sm);
  margin-right: var(--spacing-sm);
}

.features-item-content {
  flex-grow: 1;
}

/* Price Plan Section */
.priceplan {
  background-color: var(--light-gray);
  position: relative;
}

.priceplan-card {
  text-align: center;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.priceplan-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.priceplan-card.featured {
  border: 2px solid var(--primary-color-2);
  transform: scale(1.05);
}

.priceplan-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.priceplan-name {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.priceplan-price {
  font-size: 2.5rem;
  color: var(--primary-color-2);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.priceplan-price span {
  font-size: 1rem;
  color: var(--dark-gray);
  font-weight: 400;
}

.priceplan-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--spacing-md);
  min-height: 150px;
}

.priceplan-features li {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--medium-gray);
}

.priceplan-features li:last-child {
  border-bottom: none;
}

/* Team Section */
.team {
  position: relative;
}

.team-card {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.team-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-sm);
  border: 5px solid var(--light-gray);
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--primary-color-2);
  margin-bottom: var(--spacing-sm);
}

/* Reviews Section */
.reviews {
  background-color: var(--light-gray);
  position: relative;
}

.reviews .swiper {
  padding-bottom: var(--spacing-lg);
}

.review-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  height: auto;
}

.review-text {
  position: relative;
  padding: var(--spacing-md) 0;
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.review-text:before,
.review-text:after {
  content: '"';
  font-size: 2rem;
  color: var(--primary-color-2-light);
  position: absolute;
  line-height: 1;
}

.review-text:before {
  top: 0;
  left: 0;
}

.review-text:after {
  bottom: 0;
  right: 0;
}

.review-author {
  font-weight: 700;
  color: var(--primary-color-1);
}

/* Core Info Section */
.coreinfo {
  position: relative;
}

.coreinfo-item {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.coreinfo-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color-4-light);
  color: var(--primary-color-4-dark);
  font-size: 2rem;
  border-radius: 50%;
  margin: 0 auto var(--spacing-sm);
}

/* Contact Section */
.contact {
  background-color: var(--light-gray);
  position: relative;
}

.contact-form {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color-2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 169, 113, 0.25);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.form-check-input {
  margin-right: var(--spacing-xs);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Blog Section */
.blog {
  position: relative;
}

.blog-grid {
  margin-bottom: var(--spacing-lg);
}

.blog-card {
  height: 100%;
  overflow: hidden;
}

.blog-img {
  height: 200px;
  overflow: hidden;
  margin: -1.5rem -1.5rem 1.5rem;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.blog-card:hover .blog-img img {
  transform: scale(1.1);
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  min-height: 3rem;
}

.blog-excerpt {
  margin-bottom: var(--spacing-sm);
  min-height: 4.8rem;
}

.blog-link {
  color: var(--primary-color-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.blog-link i {
  margin-left: 0.25rem;
  transition: var(--transition-fast);
}

.blog-link:hover i {
  margin-left: 0.5rem;
}

/* FAQ Section */
.faq {
  background-color: var(--light-gray);
  position: relative;
}

.accordion {
  margin-bottom: var(--spacing-md);
}

.accordion-item {
  margin-bottom: var(--spacing-sm);
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.accordion-header {
  background-color: var(--white);
  padding: var(--spacing-sm);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.accordion-header:hover {
  background-color: var(--light-gray);
}

.accordion-header.active {
  background-color: var(--primary-color-1-light);
  color: var(--white);
  border-bottom: 1px solid var(--medium-gray);
}

.accordion-header i {
  transition: var(--transition-fast);
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.accordion-body-inner {
  padding: var(--spacing-sm);
}

/* Gallery Section */
.gallery {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-item:hover a {
  opacity: 1;
}

/* Footer */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: var(--spacing-lg) 0;
}

.footer a {
  color: var(--medium-gray);
}

.footer a:hover {
  color: var(--primary-color-2);
}

.footer .site-name {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.footer .site-description {
  margin-bottom: var(--spacing-md);
}

.footer-heading {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color-2);
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--spacing-md);
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.contact-info {
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
}

.contact-info i {
  color: var(--primary-color-2);
  margin-right: var(--spacing-xs);
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
}

#site-copyright {
  text-align: center;
  color: var(--medium-gray);
  font-size: 0.875rem;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color-2);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 999;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--primary-color-2-dark);
} 