/* ==========================================================================
   1. COLOR TOKENS & VARIABLES
   ========================================================================== */
:root {
  --color-primary: #1e293b;      /* Dark Slate */
  --color-secondary: #2d6a4f;    /* Lawn Green */
  --color-cta-red: #dc2626;      /* Bright Red CTA */
  --color-cta-red-hover: #b91c1c;
  
  --color-nav-bg: #f8fafc;       /* Near White / Light Gray Header */
  --color-bg-dark: #0f172a;
  --color-bg-light: #f1f5f9;
  --color-surface: #ffffff;
  
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-surface);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-red {
  background-color: var(--color-cta-red);
  color: #ffffff !important;
}

.btn-red:hover {
  background-color: var(--color-cta-red-hover);
}

.btn-outline-light {
  border: 2px solid #ffffff;
  color: #ffffff;
  background-color: transparent;
}

.btn-outline-light:hover {
  background-color: var(--color-cta-red);
  border-color: var(--color-cta-red);
  color: #ffffff;
}

.full-width {
  width: 100%;
}

/* ==========================================================================
   4. NAVIGATION BAR & DESKTOP MENU
   ========================================================================== */
.navbar {
  background-color: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  position: relative;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Base Nav Links Styling */
.nav-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

/* Exclude button elements from getting the hover line effect */
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-cta-red);
  transition: width 0.25s ease-in-out;
}

/* Smooth expanding red underline on hover */
.nav-links a:not(.btn):hover::after {
  width: 100%;
}

/* Mobile Toggle Buttons */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-close {
  display: none;
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1;
  margin-bottom: 1rem;
}

/* Dark dimming backdrop */
.menu-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-backdrop.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   5. HERO SECTION & BACKGROUND VIDEO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-image-fallback {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1558904541-efa8c196b27d?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 4rem 1.5rem;
  max-width: 800px;
}

/* --- ANIMATED METALLIC SILVER HERO TITLE --- */
.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #94a3b8 25%,
    #ffffff 50%,
    #94a3b8 75%,
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6))
          drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
          
  animation: shimmerGradient 6s linear infinite;
}

@keyframes shimmerGradient {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.hero-location {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  opacity: 0.95;
  font-weight: 500;
}

.hero-details {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hero-license {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Cursive Tagline Styling using Dancing Script */
.hero-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 2.1rem;
  color: #ffffff;
  margin: 1.5rem 0 2rem 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   6. SERVICES SECTION
   ========================================================================== */
.services {
  padding: 5rem 0;
  background-color: var(--color-bg-light);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--color-surface);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

/* Service Card Images Styling */
.card-img {
  width: 100%;
  max-width: 140px;      /* Restricts image width to 50% scale */
  height: 90px;          /* Cuts image render height in half */
  object-fit: contain;   /* Ensures whole image scales without cropping */
  margin: 0 auto 1.25rem auto;
  display: block;
}

.card h3 {
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   7. PROJECT FEED (INSTAGRAM) SECTION
   ========================================================================== */
.instagram-section {
  padding: 5rem 0;
}

.elfsight-container {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  border: 2px dashed var(--color-border);
  border-radius: 8px;
}

.placeholder-text {
  color: var(--color-text-muted);
}

/* ==========================================================================
   8. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
  padding: 5rem 0;
  background-color: var(--color-surface);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   9. CONTACT FORM & SOCIAL CONNECT
   ========================================================================== */
.contact {
  padding: 5rem 0;
  background-color: var(--color-bg-light);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--color-surface);
  transition: border-color 0.2s ease, outline 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-secondary);
  border-color: transparent;
}

/* Social Media Subsection Below Form */
.social-section {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-main);
  font-weight: 500;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.25rem;
  font-size: 1.6rem;
  vertical-align: middle;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.fb-link {
  color: var(--color-cta-red);
}

.msg-link {
  color: var(--color-cta-red);
}

.social-icon-link:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-muted);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.875rem;
}

/* ==========================================================================
   11. MOBILE RESPONSIVE & SIDE DRAWER NAVIGATION
   ========================================================================== */
@media (max-width: 768px) {
  .logo-img {
    max-height: 40px;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-close {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.5rem;
    z-index: 999;
    
    /* Transparent Frosted Glass Effect */
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    
    /* Off-screen slide animation */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.15rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1.65rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .social-section {
    font-size: 1rem;
  }
}