/* Ember & Steel Architecture Studio - Custom Styles */

/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #D2691E;
  --secondary-color: #2F4F4F;
  --primary-dark: #B8601A;
  --secondary-light: #3A5F5F;
  --accent-gold: #DAA520;
  --charcoal: #36454F;
  --warm-white: #FEFEFE;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --dark-gray: #343A40;
  --shadow-light: rgba(210, 105, 30, 0.1);
  --shadow-medium: rgba(47, 79, 79, 0.2);
  --shadow-dark: rgba(0, 0, 0, 0.3);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

/* ===== BOOTSTRAP OVERRIDES ===== */
.btn-primary {
  background: var(--gradient-primary);
  border: 2px solid var(--primary-color);
  color: var(--warm-white);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
  color: var(--warm-white);
}

.btn-secondary {
  background: var(--gradient-secondary);
  border: 2px solid var(--secondary-color);
  color: var(--warm-white);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-dark);
  color: var(--warm-white);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-light);
}

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

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

html {
  scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--secondary-color);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--secondary-color);
}

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

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

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

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--medium-gray);
  line-height: 1.8;
}

/* ===== NAVIGATION ===== */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47, 79, 79, 0.1);
  padding: 1rem 0;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 25px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary-color) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

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

.navbar-nav .nav-link {
  color: var(--charcoal) !important;
  font-weight: 600;
  margin: 0 0.5rem;
  padding: 0.75rem 1rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(210, 105, 30, 0.1);
}

.navbar-toggler {
  border: 2px solid var(--primary-color);
  padding: 0.5rem;
}

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

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(47, 79, 79, 0.9), rgba(210, 105, 30, 0.8)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="steel" patternUnits="userSpaceOnUse" width="20" height="20"><rect width="20" height="20" fill="%23f8f9fa"/><path d="M0 0L20 20M20 0L0 20" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23steel)"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--warm-white);
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  margin-top: 2rem;
}

.hero-cta .btn {
  margin: 0.5rem;
  padding: 15px 35px;
  font-size: 1.1rem;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.card-custom {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  overflow: hidden;
  background: var(--warm-white);
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-custom .card-header {
  background: var(--gradient-primary);
  color: var(--warm-white);
  border: none;
  padding: 1.5rem;
  text-align: center;
}

.card-custom .card-body {
  padding: 2rem;
}

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

.card-custom .card-text {
  color: var(--medium-gray);
  line-height: 1.7;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: var(--warm-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  border: 1px solid rgba(47, 79, 79, 0.1);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--warm-white);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ===== PROJECT GALLERY ===== */
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  margin-bottom: 2rem;
}

.project-item:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(47, 79, 79, 0.9), rgba(210, 105, 30, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.project-info {
  text-align: center;
  color: var(--warm-white);
  padding: 2rem;
}

.project-info h4 {
  color: var(--warm-white);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.project-info p {
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* ===== FORMS ===== */
.form-control-custom {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: var(--warm-white);
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(210, 105, 30, 0.2);
  outline: none;
}

.form-control-custom.is-invalid {
  border-color: #dc3545;
}

.form-control-custom.is-valid {
  border-color: #28a745;
}

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

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ===== CONTACT SECTION ===== */
.contact-info {
  background: var(--gradient-secondary);
  color: var(--warm-white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--accent-gold);
  width: 40px;
  text-align: center;
}

.contact-details h5 {
  color: var(--warm-white);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-details p {
  margin: 0;
  opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gradient-secondary);
  color: var(--warm-white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--warm-white);
  margin-bottom: 1rem;
  font-weight: 700;
}

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

.footer a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

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

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

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease-out forwards;
}

/* ===== UTILITY CLASSES ===== */
.bg-primary-custom {
  background: var(--gradient-primary) !important;
}

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

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

.shadow-custom {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg-custom {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.rounded-custom {
  border-radius: var(--border-radius-lg) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    background-attachment: scroll;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .contact-info {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .hero-cta .btn {
    display: block;
    margin: 0.5rem 0;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .card-custom .card-body {
    padding: 1.5rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .project-info {
    padding: 1.5rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--warm-white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}