/* Nordic Steel Architecture Studio - Custom Styles */

/* ========================================
   ROOT & VARIABLES
   ======================================== */
:root {
  --primary: #2E3440;
  --secondary: #88C0D0;
  --accent: #5E81AC;
  --light: #ECEFF4;
  --dark: #2E3440;
  --white: #FFFFFF;
  --steel-gray: #4C566A;
  --ice-blue: #D8DEE9;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background-color: rgba(46, 52, 64, 0.95) !important;
  backdrop-filter: blur(10px);
}

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

.navbar.navbar-light {
  background-color: var(--white) !important;
  border-bottom: 1px solid rgba(136, 192, 208, 0.2);
}

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

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

.navbar-light .navbar-brand {
  color: var(--primary) !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.25rem;
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

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

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

.navbar-light .nav-link {
  color: var(--primary) !important;
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(136, 192, 208, 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='%2388C0D0' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ========================================
   HERO SECTION
   ======================================== */
.carousel {
  height: 100vh;
  min-height: 600px;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 52, 64, 0.8) 0%, rgba(76, 86, 106, 0.6) 100%);
  z-index: 1;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.carousel .position-absolute {
  z-index: 2;
}

.hero-contact {
  background: linear-gradient(135deg, var(--primary) 0%, var(--steel-gray) 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(136, 192, 208, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--dark);
}

.text-white.display-1,
.text-white.display-2,
.text-white.display-3,
.text-white.display-4 {
  color: var(--white) !important;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
}

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

.text-muted {
  color: rgba(46, 52, 64, 0.6) !important;
}

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

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

h1, .h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2, .h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3, .h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4, .h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5, .h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6, .h6 {
  font-size: 1rem;
  font-weight: 600;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 0.9rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  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: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.8rem;
}

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

.btn-primary:hover,
.btn-submit:hover {
  background-color: transparent !important;
  color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(136, 192, 208, 0.3) !important;
}

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

.btn-outline-light:hover {
  background-color: var(--white) !important;
  color: var(--primary) !important;
  border-color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3) !important;
}

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

.btn-outline-primary:hover {
  background-color: var(--secondary) !important;
  color: var(--dark) !important;
  border-color: var(--secondary) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(136, 192, 208, 0.3) !important;
}

.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--steel-gray) !important;
  color: var(--steel-gray) !important;
  margin: 0.25rem;
  border-radius: 50px !important;
}

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

/* ========================================
   SECTIONS
   ======================================== */
section {
  position: relative;
}

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

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

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

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

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

/* ========================================
   CARDS & PROJECT CARDS
   ======================================== */
.card {
  border: none !important;
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--white);
  box-shadow: 0 5px 20px rgba(46, 52, 64, 0.08);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(46, 52, 64, 0.15);
}

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: rgba(46, 52, 64, 0.7);
  line-height: 1.8;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  height: 400px;
  background-color: var(--steel-gray);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(30%);
}

.project-card:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(46, 52, 64, 0.95) 0%, transparent 100%);
  padding: 2rem;
  transform: translateY(70%);
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

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

.project-overlay p {
  color: rgba(255, 255, 255, 0.8) !important;
  margin-bottom: 1rem;
}

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

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  background-color: var(--secondary) !important;
  color: var(--dark) !important;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* ========================================
   IMAGES
   ======================================== */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.shadow {
  box-shadow: 0 10px 30px rgba(46, 52, 64, 0.15) !important;
}

.shadow-sm {
  box-shadow: 0 3px 10px rgba(46, 52, 64, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 20px 50px rgba(46, 52, 64, 0.2) !important;
}

/* ========================================
   FORMS
   ======================================== */
.form-card {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(46, 52, 64, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.form-control,
.form-select {
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--ice-blue);
  border-radius: 0;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
  color: var(--dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 0.2rem rgba(136, 192, 208, 0.15) !important;
  background-color: var(--white);
  outline: none;
}

.form-control::placeholder {
  color: rgba(46, 52, 64, 0.4);
}

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

/* ========================================
   CONTACT GRID
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.info-card {
  background-color: var(--white);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--ice-blue);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(46, 52, 64, 0.12);
  border-color: var(--secondary);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}

.info-card h3,
.info-card .h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.info-card p,
.info-card a {
  color: rgba(46, 52, 64, 0.7);
  margin-bottom: 0;
}

.info-card a {
  text-decoration: none;
  transition: var(--transition);
}

.info-card a:hover {
  color: var(--secondary);
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-section {
  background-color: var(--light);
}

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

.team-member {
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.team-member:hover .team-photo {
  filter: grayscale(0%);
}

.team-member h4,
.team-member .h4 {
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.team-member p {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* ========================================
   MAP
   ======================================== */
.map-container {
  height: 500px;
  position: relative;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--steel-gray) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
}

/* ========================================
   PRIVACY CONTENT
   ======================================== */
.privacy-content {
  background-color: var(--white);
  padding: 3rem;
  box-shadow: 0 5px 20px rgba(46, 52, 64, 0.08);
}

.privacy-content h2,
.privacy-content .h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-size: 1.75rem;
}

.privacy-content h2:first-child,
.privacy-content .h2:first-child {
  margin-top: 0;
}

.privacy-content h3,
.privacy-content .h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
  font-size: 1.35rem;
}

.privacy-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: rgba(46, 52, 64, 0.8);
}

.privacy-content ul,
.privacy-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.privacy-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: rgba(46, 52, 64, 0.8);
}

/* ========================================
   ICONS
   ======================================== */
.bi {
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
}

.bi-sun,
.bi-droplet,
.bi-recycle,
.bi-thermometer-half,
.bi-geo-alt,
.bi-telephone,
.bi-envelope {
  color: var(--secondary);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

footer h5,
footer .h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
}

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

footer .list-unstyled a,
footer a.text-decoration-none {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  transition: var(--transition);
  display: inline-block;
}

footer .list-unstyled a:hover,
footer a.text-decoration-none:hover {
  color: var(--secondary) !important;
  padding-left: 5px;
}

footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

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

.small {
  font-size: 0.875rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-sticky {
  position: sticky;
}

.position-fixed {
  position: fixed;
}

.overflow-hidden {
  overflow: hidden;
}

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

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

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

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mb-lg-0 {
  margin-bottom: 3rem;
}

.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

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

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

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

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

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

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

.m-3 { margin: 1rem !important; }

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

.ps-lg-5,
.pe-lg-5 {
  padding: 0;
}

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

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

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

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

/* ========================================
   CAROUSEL FADE
   ======================================== */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

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

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

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

/* Tablets and up */
@media (min-width: 768px) {
  .text-lg-end {
    text-align: right !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
  
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

/* Desktop and up */
@media (min-width: 992px) {
  html {
    font-size: 17px;
  }
  
  .navbar-expand-lg .navbar-nav {
    align-items: center;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .pe-lg-5 {
    padding-right: 3rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .flex-lg-row-reverse {
    flex-direction: row-reverse !important;
  }
  
  .offset-lg-1 {
    margin-left: 8.333333% !important;
  }
  
  .offset-lg-2 {
    margin-left: 16.666667% !important;
  }
  
  .project-card {
    height: 450px;
  }
  
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  html {
    font-size: 18px;
  }
  
  .container {
    max-width: 1200px;
  }
  
  .display-1 {
    font-size: 5rem;
  }
  
  .display-3 {
    font-size: 3.5rem;
  }
}

/* Mobile specific */
@media (max-width: 767px) {
  .carousel {
    height: 100vh;
    min-height: 500px;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .nav-link {
    padding: 0.75rem 0 !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .form-card {
    padding: 2rem 1.5rem;
  }
  
  .privacy-content {
    padding: 2rem 1.5rem;
  }
  
  .project-card {
    height: 300px;
  }
  
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .info-card {
    padding: 2rem 1.5rem;
  }
  
  .map-container {
    height: 350px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background-color: white;
    color: black;
  }
}