/* ============================================
   FOREST GREEN PROFESSIONAL ARCHITECTURE STUDIO
   Theme Colors: #2C5530 (Primary), #8FBC8F (Secondary)
   ============================================ */

/* ============================================
   ROOT VARIABLES & TYPOGRAPHY
   ============================================ */
:root {
  --primary-color: #2C5530;
  --secondary-color: #8FBC8F;
  --dark-green: #1a3a1d;
  --light-green: #a8d5a8;
  --accent-sage: #c9ddc9;
  --text-dark: #1f2d20;
  --text-light: #f8f9f8;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(44, 85, 48, 0.1);
  --shadow-md: 0 4px 16px rgba(44, 85, 48, 0.15);
  --shadow-lg: 0 8px 32px rgba(44, 85, 48, 0.2);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark) !important;
  line-height: 1.7;
  background-color: #fafafa;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background-color: rgba(44, 85, 48, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  padding: 1rem 0 !important;
}

.navbar.sticky-top {
  background-color: rgba(44, 85, 48, 0.98) !important;
}

.navbar-dark .navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: var(--transition-smooth);
}

.navbar-dark .navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateX(3px);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
  position: relative;
}

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

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(143, 188, 143, 0.15);
}

.navbar-dark .navbar-nav .nav-link:hover::after {
  width: 70%;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.3) !important;
}

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

/* ============================================
   HERO SLIDESHOW
   ============================================ */
.hero-slideshow {
  position: relative;
  height: 100vh;
  min-height: 600px;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  height: 100vh;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
}

.carousel-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 85, 48, 0.85) 0%, rgba(26, 58, 29, 0.7) 50%, rgba(44, 85, 48, 0.85) 100%);
  z-index: 1;
}

.hero-slideshow .text-white {
  color: #ffffff !important;
}

.hero-slideshow h1 {
  color: #ffffff !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-slideshow .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out 0.2s both;
  max-width: 700px;
  margin: 0 auto 2rem;
}

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

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--dark-green) !important;
  border-color: var(--dark-green) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--light-green) !important;
  border-color: var(--light-green) !important;
  color: var(--dark-green) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 600;
}

.btn-light:hover {
  background-color: var(--accent-sage) !important;
  border-color: var(--accent-sage) !important;
  color: var(--dark-green) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.9) !important;
  color: #ffffff !important;
  background-color: transparent !important;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 700;
}

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

.btn-sm {
  padding: 0.5rem 1.2rem !important;
  font-size: 0.875rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  background-color: #ffffff;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .card-img-top {
  transform: scale(1.08);
}

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

.card-title {
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-dark) !important;
  line-height: 1.8;
  font-size: 1rem;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
}

.portfolio-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.15);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 85, 48, 0.95) 0%, rgba(44, 85, 48, 0.6) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

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

.portfolio-content {
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-content {
  transform: translateY(0);
}

.portfolio-content h4 {
  color: #ffffff !important;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.filter-btn {
  margin: 0.3rem;
  border-radius: 25px;
  padding: 0.6rem 1.5rem;
  transition: var(--transition-smooth);
}

.filter-btn.active {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

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

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

.bg-light {
  background-color: var(--accent-sage) !important;
  color: var(--primary-color) !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.rounded-pill {
  border-radius: 50rem !important;
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background-color: #ffffff;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.2) !important;
  outline: none;
}

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

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--secondary-color);
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.2) !important;
}

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

/* ============================================
   BOOTSTRAP ICONS
   ============================================ */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.bi-check-circle-fill {
  color: var(--secondary-color) !important;
}

.bi-award,
.bi-award-fill,
.bi-leaf,
.bi-tree-fill,
.bi-house-heart-fill {
  color: var(--primary-color) !important;
}

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

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

.pt-5 {
  padding-top: 4rem !important;
}

.pb-4 {
  padding-bottom: 3rem !important;
}

.bg-light {
  background-color: #f8f9f8 !important;
}

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

.text-white {
  color: #ffffff !important;
}

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

/* ============================================
   DISPLAY & HEADINGS
   ============================================ */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary-color) !important;
}

.display-2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.display-3 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}

.display-4 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.display-5 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.display-6 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color) !important;
}

/* ============================================
   UTILITIES
   ============================================ */
.rounded {
  border-radius: 12px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.rounded-top {
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.object-fit-cover {
  object-fit: cover !important;
}

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

.z-1 {
  z-index: 1 !important;
}

.z-2 {
  z-index: 2 !important;
}

.z-3 {
  z-index: 3 !important;
}

/* ============================================
   LINKS
   ============================================ */
a {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--dark-green) !important;
  text-decoration: none;
}

.text-decoration-none {
  text-decoration: none !important;
}

/* ============================================
   LIST GROUPS
   ============================================ */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  padding: 0.5rem 0;
}

.list-unstyled a {
  color: var(--text-dark) !important;
  transition: var(--transition-smooth);
}

.list-unstyled a:hover {
  color: var(--primary-color) !important;
  padding-left: 5px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--primary-color) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 3rem 0 1rem;
}

footer h5,
footer h6,
footer .h5,
footer .h6 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

footer .bi {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

footer .bi:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

footer p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   PRIVACY HERO
   ============================================ */
.privacy-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
  padding: 6rem 0 4rem;
  margin-top: 76px;
}

.privacy-hero h1 {
  color: #ffffff !important;
}

.privacy-content {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.privacy-content h2,
.privacy-content h3 {
  color: var(--primary-color) !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p {
  color: var(--text-dark) !important;
  line-height: 1.8;
}

/* ============================================
   RATIO (Aspect 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-21x9 {
  --bs-aspect-ratio: 42.857143%;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@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);
  }
}

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

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile First - Base styles above are mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  section {
    padding: 6rem 0;
  }
  
  .portfolio-masonry {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .navbar-expand-lg .navbar-collapse {
    justify-content: flex-end;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .portfolio-masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile specific styles */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: rgba(44, 85, 48, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .hero-slideshow h1 {
    font-size: 2.5rem;
  }
  
  .hero-slideshow .lead {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .portfolio-img {
    height: 250px;
  }
}

@media (max-width: 767px) {
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2.2rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .privacy-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 575px) {
  .hero-slideshow {
    min-height: 500px;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .filter-btn {
    width: 100%;
    margin: 0.3rem 0;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .btn,
  footer,
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

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