/* PROJECT SOLUTIONS STUDIO - GLOBAL STYLES */

:root {
  --primary-color: #8b7355;
  --secondary-color: #d4c5b5;
  --accent-color: #6b8e7a;
  --text-color: #2d2520;
  --light-bg: #f5f3f0;
  --white: #ffffff;
  --border-color: #e0d5cc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
}

/* HEADER & NAVIGATION */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo span {
  color: var(--accent-color);
  font-size: 0.9rem;
  display: block;
  font-weight: 400;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

nav a.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, rgba(139,115,85,0.1) 0%, rgba(107,142,122,0.1) 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #6b4a3a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139,115,85,0.3);
}

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

.btn-secondary:hover {
  background-color: #5a7a6b;
  transform: translateY(-2px);
}

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

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

/* MAIN CONTENT */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.content-section {
  margin: 3rem 0;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

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

.subsection-title {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* BEFORE/AFTER GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.gallery-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 450px;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: auto;
  min-height: 350px;
  object-fit: contain;
  display: block;
  background-color: #f9f9f9;
  padding: 1rem;
  box-sizing: border-box;
  flex-grow: 1;
}

.gallery-caption {
  padding: 1rem;
  text-align: center;
  background: var(--white);
}

.gallery-caption p {
  color: #666;
  font-size: 0.95rem;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

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

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: #666;
  margin-bottom: 1rem;
}

.service-card ul {
  margin-left: 1.5rem;
  color: #666;
}

.service-card li {
  margin-bottom: 0.5rem;
}

/* FAQ SECTION */
.faq-container {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 1.5rem;
  background-color: var(--light-bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #ede6df;
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 1.5rem;
  color: #666;
  display: none;
  line-height: 1.8;
}

.faq-answer.active {
  display: block;
}

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

/* BLOG SECTION */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.blog-content {
  padding: 2rem;
}

.blog-date {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.blog-post {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  line-height: 1.9;
  margin: 2rem 0;
}

.blog-post h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.blog-post p {
  color: #555;
  margin-bottom: 1.5rem;
}

.blog-post img {
  width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
}

/* CITY PAGES */
.city-hero {
  background: linear-gradient(135deg, rgba(139,115,85,0.2) 0%, rgba(107,142,122,0.2) 100%);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
}

.city-hero h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.city-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.city-text h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.city-text p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.city-sidebar {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  height: fit-content;
}

.city-sidebar h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* CONTACT FORM */
.contact-section {
  background: var(--light-bg);
  padding: 3rem;
  border-radius: 8px;
  margin: 3rem 0;
}

.contact-section h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="phone"],
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

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

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(107,142,122,0.1);
}

/* FOOTER */
footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
  color: #999;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .city-content {
    grid-template-columns: 1fr;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 2rem;
  }

  nav a {
    padding: 0.5rem 0;
    border-bottom: none;
    display: block;
  }

  nav a.active {
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
  }
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 2rem;
}

.mb-3 {
  margin-bottom: 2rem;
}

.highlight {
  background-color: rgba(107,142,122,0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.hidden {
  display: none;
}

/* LOADING & TRANSITIONS */
* {
  transition: color 0.3s ease, background-color 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}