/* Forest Stone Architecture Studio CSS */

:root {
  --primary-color: #2C5F2D;
  --secondary-color: #B8860B;
  --dark-stone: #4A4A4A;
  --light-stone: #E8E4D9;
  --forest-dark: #1a3a1b;
  --forest-light: #4a7c4b;
  --gold-light: #DAA520;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-stone);
  background-color: var(--light-stone);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--forest-dark) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(28, 47, 29, 0.98) !important;
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.8rem !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700 !important;
  transition: var(--transition);
}

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

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

.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='%23B8860B' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 1rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

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

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

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

.nav-link.active {
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
}

/* Hero Section */
.position-relative {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--primary-color) 100%);
}

.position-relative .position-absolute {
  opacity: 0.3;
  filter: brightness(0.7);
}

.position-relative .display-2 {
  color: var(--white) !important;
  font-weight: 800 !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
  letter-spacing: 2px;
}

.position-relative .fs-4 {
  color: var(--light-stone) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease;
  line-height: 1.8;
}

.display-3,
.display-4,
.display-5,
.display-6 {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600 !important;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

.btn-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
}

.btn:first-child {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  border: 2px solid var(--secondary-color) !important;
}

.btn:first-child:hover {
  background: var(--gold-light) !important;
  border-color: var(--gold-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(184, 134, 11, 0.4);
}

.btn:last-child {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid var(--white) !important;
}

.btn:last-child:hover {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

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

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

.btn-sm {
  padding: 0.4rem 1rem !important;
  font-size: 0.85rem !important;
}

.filter-btn {
  margin: 0.25rem;
  transition: var(--transition);
}

/* Card Styles */
.card {
  border: none !important;
  border-radius: 0 !important;
  transition: var(--transition);
  background: var(--white);
  overflow: hidden;
}

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

.card-body {
  padding: 2rem;
}

.card .h4,
.card .h5 {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

.shadow,
.shadow-lg,
.shadow-sm {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Image Styles */
.img-fluid {
  transition: var(--transition);
  width: 100%;
  height: auto;
}

.img-fluid:hover {
  transform: scale(1.05);
}

.rounded {
  border-radius: 0 !important;
}

.object-fit-cover {
  object-fit: cover;
  object-position: center;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 75%;
}

.portfolio-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 95, 45, 0.95) 0%, rgba(184, 134, 11, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: var(--transition);
  color: var(--white) !important;
}

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

.portfolio-item:hover .portfolio-image-wrapper img {
  transform: scale(1.1);
}

.portfolio-overlay .h4 {
  color: var(--white) !important;
  margin-bottom: 0.5rem;
}

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid var(--primary-color) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: var(--white) !important;
  color: var(--dark-stone) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25) !important;
  outline: none;
}

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

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  border-radius: 0 !important;
}

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

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

.text-danger {
  color: #dc3545 !important;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--primary-color) 100%) !important;
  color: var(--light-stone) !important;
  padding: 3rem 0 1rem;
}

footer .h5,
footer .h6 {
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: var(--transition);
}

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

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

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

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

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

/* Background Colors */
.bg-light {
  background-color: var(--light-stone) !important;
}

/* Badges */
.badge {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  font-weight: 600 !important;
  border-radius: 0 !important;
}

/* Icons */
.bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.bi-leaf,
.bi-grid-3x3,
.bi-hdd-stack,
.bi-clipboard-check,
.bi-building,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-calendar-check,
.bi-award,
.bi-search,
.bi-send,
.bi-check-circle-fill,
.bi-pencil-square,
.bi-chevron-down,
.bi-chat-dots,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

/* Accordion */
.accordion {
  border: none !important;
}

.accordion-item {
  border: 2px solid var(--primary-color) !important;
  border-radius: 0 !important;
  margin-bottom: 1rem;
  background: var(--white);
}

.accordion-header button {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 1rem 1.5rem;
}

.accordion-header button:not(.collapsed) {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
}

.accordion-header button:focus {
  box-shadow: none !important;
  border: none !important;
}

.accordion-body {
  padding: 1.5rem;
  color: var(--dark-stone);
}

/* Utilities */
.text-uppercase {
  text-transform: uppercase !important;
  letter-spacing: 1px;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--dark-stone);
}

.small {
  font-size: 0.875rem;
}

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

.text-end {
  text-align: right !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-90 {
  opacity: 0.9 !important;
}

.opacity-25 {
  opacity: 0.25 !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

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

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

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

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

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

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

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

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

section:nth-child(even) {
  background: var(--white);
}

section:nth-child(odd) {
  background: var(--light-stone);
}

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

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

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(28, 47, 29, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0;
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .position-relative {
    min-height: 70vh;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .fs-4 {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.95rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  section {
    padding: 2rem 0;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.3rem !important;
  }
  
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .filter-btn {
    width: 100%;
    margin: 0.25rem 0;
  }
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky Elements */
.position-sticky {
  position: sticky !important;
  top: 100px;
}

.fixed-top {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

/* Border Utilities */
.border-0 {
  border: 0 !important;
}

.border-bottom {
  border-bottom: 1px solid rgba(44, 95, 45, 0.2) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Selection */
::selection {
  background: var(--secondary-color);
  color: var(--white);
}

::-moz-selection {
  background: var(--secondary-color);
  color: var(--white);
}

/* Loading Animation */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

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

/* Contact Info Styles */
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill {
  color: var(--secondary-color) !important;
}

/* Button Group */
.btn-group .btn {
  margin: 0 0.25rem;
}

/* Text Colors */
.text-decoration-none {
  text-decoration: none !important;
}

/* Gaps */
.gap-3 {
  gap: 1rem !important;
}

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

/* Print Styles */
@media print {
  .navbar,
  footer,
  .btn {
    display: none;
  }
}