/* Base Styles */
:root {
  /* Modern earth tone color palette */
  --primary: #E07A5F; /* Terracotta - warm and modern */
  --primary-dark: #C0614A; /* Deeper terracotta for depth */
  --primary-light: #F2A082; /* Light terracotta for highlights */
  --secondary: #E9C46A; /* Warm sand - sunny and inviting */
  --accent: #F4E9CD; /* Light cream - soft and clean */
  --light: #F8F9FA; /* Off-white - clean and modern */
  --dark: #3A506B; /* Soft slate - sophisticated and muted */
  --white: #FFFFFF;
  --gray: #7D8A9C; /* Modern gray */
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

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

body {
  font-family: var(--font-secondary);
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: 30px;
  padding: 14px 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(224, 122, 95, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(139, 69, 19, 0.2);
}

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
  background-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  background-color: transparent;
  box-shadow: 0 4px 15px rgba(224, 122, 95, 0.2);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-light {
  background-color: var(--light);
  border-color: var(--light);
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(248, 249, 250, 0.3);
}

.btn-light:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}


/* Navigation */
.navbar {
  background-color: rgba(47, 79, 79, 0.9);
  padding: 15px 0;
  transition: all 0.3s ease;
  z-index: 1000;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.navbar-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50%;
  height: 2px;
  background-color: var(--secondary);
}

.navbar-brand .logo-img {
  height: 60px;
  width: 60px;
  display: block;
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 15px;
  background-color: white;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar-brand .brand-text {
  color: var(--white);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--white) !important;
  padding: 12px 18px !important;
  margin: 0 8px;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--primary);
  color: var(--white) !important;
  border-color: var(--white);
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.4);
}

.nav-links {
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

#language-toggle {
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

#language-toggle:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile navigation toggle button */
.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(224, 122, 95, 0.25);
  outline: none;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(47, 79, 79, 0.7), rgba(47, 79, 79, 0.7)), url('../images/hero-bg.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding-top: 80px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  color: var(--white);
  animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.hero-buttons .btn {
  margin-top: 10px;
}

/* Sections */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 1.2rem;
  color: var(--primary);
  animation: fadeIn 1s ease-out;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  max-width: 100%;
  margin: 0 auto 2rem;
  text-align: center;
}

/* Services */
.services {
  background-color: var(--white);
}

.service-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.4s ease;
  border: 2px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  padding: 30px 20px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* About */
.about {
  background-color: var(--light);
}

/* Reviews */
.review-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.review-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.review-author {
  font-family: var(--font-primary);
  color: var(--primary);
}

.review-rating .material-icons {
  font-size: 2rem;
}

/* Gallery Preview */
.gallery-preview {
    background-color: var(--white);
}

/* Google Maps */
.map {
    background-color: var(--accent);
}

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.map-container iframe {
    border: none;
    width: 100%;
    height: 450px;
    display: block;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .map-container iframe {
        height: 300px;
    }
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  height: 150px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 10px;
  transition: border-color 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery-item:hover::before {
  border-color: var(--primary);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Contact CTA */
.contact-cta {
  background: linear-gradient(rgba(139, 69, 19, 0.9), rgba(139, 69, 19, 0.9)), url('../images/cta-bg.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding: 70px 0;
}

.contact-cta .section-title {
  color: var(--white);
}

.contact-cta .section-subtitle {
  color: var(--accent);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding: 60px 0 30px;
}

.footer-title {
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 1.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.footer-links li, .contact-info li {
  margin-bottom: 10px;
}

.footer-links a, .contact-info li {
  color: var(--accent);
  transition: all 0.3s ease;
}

.footer-links a:hover, .contact-info li:hover {
  color: var(--white);
}

.social-link {
  display: inline-block;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  margin-right: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  border-color: var(--white);
}

.copyright {
  color: var(--accent);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .gallery-item {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
    padding-top: 60px;
  }
  
  .hero-subtitle {
    margin: 0 auto 1.5rem;
  }
  
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    margin: 0;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .service-card {
    margin-bottom: 20px;
  }
  
  .gallery-item {
    height: 150px;
  }
  
  /* Form improvements for mobile */
  .form-control, .form-select {
    font-size: 16px; /* Prevents zoom on iOS Safari */
    padding: 12px 15px;
  }
  
  .form-label {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  /* Contact section improvements for mobile */
  .contact-info {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .contact-info-item {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .contact-form .btn {
    width: 100%;
    padding: 12px;
  }
  
  /* Footer improvements for mobile */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 30px;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  /* Mobile navigation improvements */
  .nav-links {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Mobile navigation toggle button adjustments */
  .navbar-toggler {
    padding: 10px 15px;
    font-size: 1.25rem;
    line-height: 1;
    margin-right: 10px;
  }
}

/* Small screens (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .service-card {
    padding: 20px 15px;
  }
  
  .review-card {
    padding: 20px 15px;
  }
  
  .gallery-item {
    height: 120px;
  }
  
  .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 10px 0;
  }
  
  .navbar-brand .logo-img {
    height: 50px;
    width: 50px;
    margin-right: 10px;
  }
  
  .navbar-brand .brand-text {
    font-size: 1.2rem;
  }
  
  .hero {
    height: auto;
    padding: 80px 0 40px;
  }
  
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    margin: 0 auto 1.5rem;
  }
  
  .service-card {
    margin-bottom: 15px;
    padding: 20px !important;
  }
  
  .service-title {
    font-size: 1.3rem;
  }
  
  .gallery-item {
    height: 120px;
  }
  
  .contact-cta .section-title {
    font-size: 1.6rem;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  /* Mobile navigation improvements for small screens */
  .nav-links {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Mobile navigation toggle button adjustments for small screens */
  .navbar-toggler {
    padding: 8px 12px;
    font-size: 1.15rem;
    margin-right: 8px;
  }
}

/* Extra small devices (portrait phones) */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .gallery-item {
    height: 100px;
  }
  
  /* Mobile navigation improvements for extra small screens */
  .nav-links {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Mobile navigation toggle button adjustments for extra small screens */
  .navbar-toggler {
    padding: 6px 10px;
    font-size: 1.1rem;
    margin-right: 6px;
  }
}