/* Forest Heritage Architecture Studio - CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C5530;
  --secondary-color: #A8C090;
  --dark-green: #1a3a1e;
  --light-green: #d4e5d0;
  --accent-gold: #d4af37;
  --text-dark: #2d2d2d;
  --text-light: #ffffff;
  --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
* {
  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-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--primary-color) !important;
  transition: var(--transition);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(44, 85, 48, 0.3);
}

.navbar.scrolled {
  background: var(--dark-green) !important;
  padding: 0.5rem 0;
}

.navbar-brand {
  color: var(--text-light) !important;
  font-size: 1.5rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: var(--transition);
  position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-toggler {
  border-color: var(--secondary-color) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(168, 192, 144, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(168, 192, 144, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--dark-green), var(--primary-color));
  min-height: 100vh;
}

.hero-slider {
  z-index: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  filter: brightness(0.6);
}

.hero-slide.active {
  opacity: 1;
}

.hero-section .container {
  z-index: 1;
  position: relative;
}

.display-1 {
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.lead {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease;
}

.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-lg {
  background: var(--secondary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

.btn-lg:hover {
  background: var(--primary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(44, 85, 48, 0.3);
}

.btn-outline-dark {
  border: 2px solid var(--text-dark) !important;
  color: var(--text-dark) !important;
  background: transparent !important;
}

.btn-outline-dark:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
}

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

.btn-outline-secondary:hover {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
}

.btn-outline-light {
  border: 2px solid var(--text-light) !important;
  color: var(--text-light) !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: var(--text-light) !important;
  border-color: var(--text-light) !important;
  color: var(--primary-color) !important;
}

.btn-light {
  background: var(--text-light) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--text-light) !important;
}

.btn-light:hover {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border-color: var(--secondary-color) !important;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

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

/* ===== SECTIONS ===== */
.py-5 {
  padding: 4rem 0;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

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

.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
  color: var(--primary-color);
}

.text-uppercase {
  color: var(--secondary-color) !important;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* ===== CARDS ===== */
.card {
  transition: var(--transition);
  border-radius: 15px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(44, 85, 48, 0.2) !important;
}

.card-body {
  background: var(--text-light);
}

.rounded-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--text-light) !important;
  font-size: 1.8rem;
  transition: var(--transition);
}

.card:hover .rounded-circle {
  transform: scale(1.1) rotate(360deg);
}

/* ===== PORTFOLIO/MASONRY ===== */
.filter-btn {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  margin: 0.5rem;
  border-radius: 25px;
  transition: var(--transition);
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

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

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.masonry-item.show {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.portfolio-card img {
  transition: var(--transition);
  width: 100%;
  display: block;
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  background: linear-gradient(to top, rgba(44, 85, 48, 0.95), transparent);
  opacity: 0;
  transition: var(--transition);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text-light) !important;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3,
.portfolio-overlay .h3 {
  color: var(--text-light) !important;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: var(--secondary-color) !important;
}

.badge {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 20px;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  border: 2px solid var(--secondary-color) !important;
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  cursor: pointer;
  background: var(--text-light);
  height: 100%;
}

.service-card:hover {
  border-color: var(--primary-color) !important;
  box-shadow: 0 10px 30px rgba(44, 85, 48, 0.2);
  transform: translateY(-5px);
}

.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.service-card.expanded .service-details {
  max-height: 500px;
  margin-top: 1rem;
}

.expand-btn {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border: none !important;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: var(--transition);
}

.expand-btn:hover {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
}

/* ===== IMAGES ===== */
.img-fluid {
  border-radius: 15px;
  transition: var(--transition);
}

.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(44, 85, 48, 0.3);
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(44, 85, 48, 0.2) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(44, 85, 48, 0.1) !important;
}

.shadow {
  box-shadow: 0 5px 20px rgba(44, 85, 48, 0.15) !important;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid var(--secondary-color) !important;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: var(--text-light) !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(44, 85, 48, 0.15) !important;
  background: var(--text-light) !important;
}

.form-label {
  font-weight: 600;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem;
}

.invalid-feedback {
  color: #dc3545 !important;
  font-weight: 500;
}

.form-check-input {
  border: 2px solid var(--secondary-color) !important;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-label {
  cursor: pointer;
  color: var(--text-dark) !important;
}

.needs-validation .form-control:invalid {
  border-color: #dc3545 !important;
}

.needs-validation .form-control:valid {
  border-color: var(--primary-color) !important;
}

/* ===== BACKGROUND COLORS ===== */
.bg-light {
  background-color: #f8f9fa !important;
}

.bg-white {
  background-color: var(--text-light) !important;
}

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

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

/* ===== TEXT COLORS ===== */
.text-white {
  color: var(--text-light) !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.text-muted {
  color: #6c757d !important;
}

.text-dark {
  color: var(--text-dark) !important;
}

/* ===== ICONS ===== */
.bi {
  font-size: 1.2rem;
  vertical-align: middle;
}

.bi-geo-alt,
.bi-geo-alt-fill,
.bi-telephone,
.bi-telephone-fill,
.bi-envelope,
.bi-envelope-fill,
.bi-send-fill,
.bi-chat-dots-fill,
.bi-lightbulb-fill,
.bi-file-text-fill {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-green);
  color: var(--text-light) !important;
}

footer a {
  color: var(--secondary-color) !important;
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--text-light) !important;
  padding-left: 5px;
}

.list-unstyled li {
  margin-bottom: 0.5rem;
}

/* ===== UTILITIES ===== */
.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-90 {
  opacity: 0.9;
}

.opacity-25 {
  opacity: 0.25;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.position-sticky {
  position: sticky;
  top: 80px;
}

.ratio {
  position: relative;
  width: 100%;
}

.ratio-16x9 {
  padding-top: 56.25%;
}

.ratio iframe,
.ratio video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 15px;
}

/* ===== PRIVACY/LEGAL ===== */
.privacy-container {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-content {
  background: var(--text-light);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(44, 85, 48, 0.1);
}

.legal-text {
  line-height: 1.8;
  color: var(--text-dark);
}

.legal-text h2,
.legal-text h3,
.legal-text h4,
.legal-text h5,
.legal-text h6 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--dark-green);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  .display-1 {
    font-size: 3rem;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .hero-section {
    padding-top: 80px;
  }

  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .py-5 {
    padding: 3rem 0;
  }

  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem;
  }

  .display-3 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }

  .fs-4 {
    font-size: 1rem !important;
  }

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

  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .privacy-content {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .btn-lg {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .service-card {
    padding: 1.5rem;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-green);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-green);
}

/* ===== ACCESSIBILITY ===== */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }

  body {
    color: #000;
  }

  .hero-section {
    min-height: auto;
  }
}