/* Base Styles */
:root {
  --color-background: #09090b;
  --color-background-alt: #18181b;
  --color-text: #f4f4f5;
  --color-text-muted: #a1a1aa;
  --color-border: #27272a;
  --color-primary: #dc2626;
  --color-primary-hover: #b91c1c;
  --color-accent: #3f3f46;
  --color-accent-hover: #52525b;
  --color-star: #eab308;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  text-decoration: none;
}

.btn i {
  margin-right: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
}

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-text-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(8px);
  height: 7rem; /* Significantly increased height to accommodate larger logo */
  display: flex;
  align-items: left;
}

.site-header .container {
  display: flex;
  align-items: left;
  justify-content: space-between;
  height: 100%;
  position: relative; /* Added for absolute positioning of logo */
}

.logo {
  position: absolute; /* Absolute positioning for more control */
  top: 1rem; /* Position from top */
  text-decoration: none;
  color: var(--color-text);
}

.logo img {
  width: auto;
  height: 5rem; /* Set logo height to 10rem as requested */
  object-fit: contain;
  object-position: left;
}

.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto; /* Push to right side */
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--color-accent);
  color: var(--color-text);
  transition: background-color 0.2s ease;
}

.social-icon:hover {
  background-color: var(--color-accent-hover);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5);
}

.hero-content {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero p {
  font-size: 1.25rem;
  color: #d4d4d8;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Services Section */
.services {
  background-color: var(--color-background-alt);
  padding: 4rem 0;
}

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

.service-card {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--color-background-alt);
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1rem;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-icon {
  color: var(--color-primary);
}

.service-title h3 {
  font-weight: 700;
}

.service-content p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Gallery Section */
.gallery {
  padding: 4rem 0;
  background-color: var(--color-background);
}

.gallery-container {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  overflow: hidden;
}

.gallery-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

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

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.gallery-control {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-control:hover {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.gallery-more {
  text-align: center;
  margin-top: 3rem;
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(to bottom, var(--color-background-alt), var(--color-background));
  padding: 4rem 0;
}

/* Reviews Widget Styles */
.reviews-widget {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.review-card {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-background-alt);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.fb-embed-container {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

/* Style for empty embed containers before Facebook loads */
.fb-embed-container:empty::before {
  content: "Facebook review will appear here";
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

/* Make Facebook embeds fill the container */
.fb-embed-container .fb-post {
  width: 100% !important;
}

.fb-embed-container iframe {
  width: 100% !important;
  min-height: 200px;
  border: none;
}

.reviews-more {
  text-align: center;
  margin-top: 2rem;
}

/* Make sure Facebook content is properly sized */
.fb_iframe_widget,
.fb_iframe_widget span,
.fb_iframe_widget span iframe[style] {
  width: 100% !important;
  min-height: 200px !important;
}

/* Facebook Feed Styles */
.facebook-feed-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto 2rem;
  padding: 0;
}

.fb-page-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-background-alt);
}

.fb-page {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block !important;
}

.fb-page iframe {
  margin: 0 auto;
  display: block;
  border-radius: 8px;
}

/* Make sure Facebook content is centered */
.fb_iframe_widget,
.fb_iframe_widget span,
.fb_iframe_widget span iframe[style] {
  width: 100% !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Loading state */
.fb-page:not(.fb_iframe_widget) {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-page:not(.fb_iframe_widget)::before {
  content: "Loading Facebook content...";
  color: var(--color-text-muted);
}

/* Fallback gallery */
.fallback-gallery {
  margin-bottom: 2rem;
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background-color: var(--color-background-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-info > p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--color-accent);
}

.contact-icon i {
  color: var(--color-primary);
}

.contact-details h3 {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-details p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-details a {
  font-size: 0.875rem;
}

.contact-card {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-background);
  padding: 1.5rem;
}

.contact-image {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-background);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.footer-logo img {
  width: auto;
  height: 3rem; /* Increased footer logo size */
  object-fit: contain;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--color-text);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Media Queries */
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-widget {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .site-header {
    height: 9rem; /* Slightly smaller on medium screens */
  }

  .logo img {
    height: 4rem; /* Slightly smaller logo on medium screens */
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .reviews-widget {
    grid-template-columns: 1fr;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 7rem; /* Adjusted to match new header height */
    left: 0;
    width: 100%;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 40;
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .social-links {
    justify-content: center;
  }

  .site-header {
    height: 7rem; /* Smaller on mobile */
  }

    .logo {
    display: none; /* Hide logo on mobile */
  }
}
