/* Architectural Studio - Harbor Teal & Mist Theme */

:root {
  --primary-color: #2C5F5D;
  --secondary-color: #E8F4F8;
  --accent-color: #4A8886;
  --dark-teal: #1A3F3D;
  --light-teal: #A5C9C8;
  --white: #FFFFFF;
  --text-dark: #2C3E50;
  --text-light: #7F8C8D;
  --shadow: rgba(44, 95, 93, 0.15);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

.lead {
  font-size: 1.25rem !important;
  color: var(--text-light) !important;
  font-weight: 400 !important;
}

.fs-4, .fs-5 {
  color: var(--text-dark) !important;
}

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

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

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

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

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

.fst-italic {
  font-style: italic !important;
}

.text-uppercase {
  text-transform: uppercase !important;
  letter-spacing: 0.1em;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-teal) 100%) !important;
  padding: 1rem 0 !important;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
  z-index: 1050;
}

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

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

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

.navbar-nav {
  align-items: center;
}

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

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

.nav-link:hover {
  color: var(--white) !important;
  transform: translateY(-2px);
}

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

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

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

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: scale(1.05);
}

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition) !important;
  border-radius: 0.5rem !important;
  border: none !important;
  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-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
  background-color: var(--dark-teal) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px var(--shadow);
}

.btn-light {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-light:hover {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px var(--shadow);
}

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

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

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

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

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

.btn-outline-secondary:hover {
  background-color: var(--accent-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
}

/* Hero Section */
.position-relative {
  position: relative !important;
}

.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--light-teal) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%232C5F5D" width="1200" height="600"/><g fill="none" stroke="%23FFFFFF" stroke-width="1" opacity="0.1"><path d="M0 300h1200M0 150h1200M0 450h1200M150 0v600M300 0v600M450 0v600M600 0v600M750 0v600M900 0v600M1050 0v600"/></g></svg>');
  background-size: cover;
  opacity: 0.3;
}

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

.hero-section .display-2 {
  color: var(--white) !important;
  animation: fadeInUp 1s ease-out;
}

.hero-section .fs-4 {
  color: var(--secondary-color) !important;
  animation: fadeInUp 1.2s ease-out;
}

.hero-section .btn {
  animation: fadeInUp 1.4s ease-out;
}

/* Badge */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 2rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 1rem !important;
  transition: var(--transition) !important;
  overflow: hidden;
  background-color: var(--white) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow) !important;
}

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

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

.card-text {
  color: var(--text-dark) !important;
  line-height: 1.7 !important;
}

.border-0 {
  border: none !important;
}

/* Shadows */
.shadow {
  box-shadow: 0 8px 30px var(--shadow) !important;
}

.shadow-sm {
  box-shadow: 0 4px 15px var(--shadow) !important;
}

.shadow-lg {
  box-shadow: 0 15px 50px var(--shadow) !important;
}

/* Backgrounds */
.bg-light {
  background-color: var(--secondary-color) !important;
}

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

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

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
}

/* Images */
.img-fluid {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 1rem;
  transition: var(--transition);
}

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

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

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

/* Portfolio Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.portfolio-item:hover::before {
  opacity: 0.85;
}

.portfolio-item img {
  transition: var(--transition);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.portfolio-item .portfolio-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
  width: 90%;
}

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

.portfolio-item.residential,
.portfolio-item.commercial,
.portfolio-item.marina,
.portfolio-item.restoration {
  display: block;
  animation: fadeIn 0.6s ease-out;
}

.portfolio-item.hidden {
  display: none;
}

/* Filter Buttons */
.filter-btn {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  border-radius: 2rem !important;
  text-transform: uppercase;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow);
}

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

.form-control,
.form-select {
  border: 2px solid var(--light-teal) !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition) !important;
  color: var(--text-dark) !important;
  background-color: var(--white) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(44, 95, 93, 0.15) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--text-light) !important;
  opacity: 0.7;
}

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  cursor: pointer;
}

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

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

/* Icons */
.bi,
.fas {
  transition: var(--transition);
}

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock-history,
.bi-chat-dots,
.bi-shield-check,
.bi-house-door,
.bi-check-circle-fill,
.bi-water,
.bi-tree,
.bi-map,
.bi-award,
.bi-gear-wide-connected,
.bi-globe2 {
  color: var(--primary-color) !important;
}

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

.fs-3 {
  font-size: 1.75rem !important;
}

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

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

/* Lists */
.list-unstyled {
  padding-left: 0 !important;
  list-style: none !important;
}

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

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

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

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

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

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

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

.p-5 {
  padding: 3rem !important;
}

.p-4 {
  padding: 2rem !important;
}

.p-3 {
  padding: 1.5rem !important;
}

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

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

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

.mb-4 {
  margin-bottom: 2rem !important;
}

.mb-3 {
  margin-bottom: 1.5rem !important;
}

.mb-2 {
  margin-bottom: 1rem !important;
}

.mb-1 {
  margin-bottom: 0.5rem !important;
}

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

.mt-4 {
  margin-top: 2rem !important;
}

.mt-3 {
  margin-top: 1.5rem !important;
}

.mt-2 {
  margin-top: 1rem !important;
}

.ms-3,
.ms-4 {
  margin-left: 1.5rem !important;
}

.me-2,
.me-3 {
  margin-right: 1rem !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-21x9 {
  --bs-aspect-ratio: 42.857143%;
}

/* Borders */
.border-bottom {
  border-bottom: 1px solid var(--light-teal) !important;
}

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

/* Flex */
.flex-shrink-0 {
  flex-shrink: 0 !important;
}

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

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

@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-fadeIn {
  animation: fadeIn 0.8s ease-out;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

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

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

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky Elements */
.sticky-top,
.sticky-lg-top {
  position: sticky !important;
  top: 100px !important;
  z-index: 1020;
}

/* Text Alignment */
.text-center {
  text-align: center !important;
}

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

.text-md-start {
  text-align: left !important;
}

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

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

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

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

footer h3,
footer h4 {
  color: var(--white) !important;
  margin-bottom: 1.5rem;
}

.small {
  font-size: 0.875rem !important;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 95, 93, 0.98);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 20px var(--shadow);
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link::after {
    display: none;
  }

  .display-2 {
    font-size: 2.5rem !important;
  }

  .display-3 {
    font-size: 2.25rem !important;
  }

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

  .display-5 {
    font-size: 1.75rem !important;
  }

  .display-6 {
    font-size: 1.5rem !important;
  }

  .hero-section {
    min-height: 80vh;
  }

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

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

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

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

  .text-lg-end,
  .text-md-end {
    text-align: center !important;
  }

  .text-lg-start,
  .text-md-start {
    text-align: center !important;
  }

  .sticky-lg-top {
    position: relative !important;
    top: 0 !important;
  }

  .order-lg-1,
  .order-lg-2 {
    order: 0 !important;
  }

  .ps-lg-5,
  .pe-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .mb-lg-0 {
    margin-bottom: 1rem !important;
  }

  .w-lg-auto {
    width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }

  .display-3 {
    font-size: 1.75rem !important;
  }

  .display-4 {
    font-size: 1.5rem !important;
  }

  .col-md-6,
  .col-md-4,
  .col-md-8 {
    width: 100% !important;
  }

  .flex-md-row {
    flex-direction: column !important;
  }

  .flex-sm-row {
    flex-direction: column !important;
  }

  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .col-sm-6 {
    width: 100% !important;
  }

  .gap-3 {
    gap: 0.5rem !important;
  }

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

  .col-6 {
    width: 100% !important;
  }

  .filter-btn {
    font-size: 0.75rem !important;
    padding: 0.4rem 1rem !important;
  }
}

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

  body {
    background: white !important;
    color: black !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !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(--accent-color) !important;
  outline-offset: 2px !important;
}

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--secondary-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.overflow-hidden {
  overflow: hidden !important;
}

.position-absolute {
  position: absolute !important;
}

.top-0 {
  top: 0 !important;
}

.bottom-0 {
  bottom: 0 !important;
}

.start-0 {
  left: 0 !important;
}

.top-50 {
  top: 50% !important;
}

.start-50 {
  left: 50% !important;
}

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.d-flex {
  display: flex !important;
}

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

.align-items-start {
  align-items: flex-start !important;
}

.align-items-stretch {
  align-items: stretch !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-row-reverse {
  flex-direction: row-reverse !important;
}

.ms-auto {
  margin-left: auto !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.p-0 {
  padding: 0 !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !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;
}

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

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

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

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

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

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