/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0e14;
  color: #e5e7eb;
  line-height: 1.6;
}

a {
  color: #fbbf24;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fcd34d;
}

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

/* ===== LAYOUT UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fbbf24;
}

.section-subtitle {
  color: #9ca3af;
  margin-bottom: 2.5rem;
}

/* ===== STICKY NAVIGATION ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.96);
  border-bottom: 1px solid #1f2933;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

/* ===== LOGO STYLES ===== */
.logo-link {
  display: flex;
  align-items: center;
  /* Limits how wide the logo area can be so it doesn't push nav items */
  max-width: 220px;
  height: auto;
  flex-shrink: 0; /* Prevents the logo from getting squished by the menu */
}

.logo-img {
  display: block;
  max-height: 70px;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  /* Invert black logo to white on dark header, add amber glow to match brand */
  filter: invert(1) drop-shadow(0 0 6px rgba(251, 191, 36, 0.35));
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  color: #e5e7eb;
}

.nav-link:hover {
  color: #fbbf24;
}

.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #1f2933;
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.phone-cta:hover {
  background: #111827;
  color: #fcd34d;
}

.phone-icon {
  width: 16px;
  height: 16px;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: #fbbf24;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile nav */
@media (max-width: 840px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #111827;
    border-bottom: 1px solid #1f2933;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: 0.4rem 0;
  }

  .phone-cta {
    justify-content: center;
    width: 100%;
  }

  /* Adjust logo size on small mobile screens */
  .logo-link {
    max-width: 160px;
  }
  .logo-img {
    max-height: 50px;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background: radial-gradient(circle at top right, #1f2933, #0b0e14);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #fbbf24;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #f9fafb;
}

.hero-text {
  max-width: 34rem;
  color: #d1d5db;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: #fbbf24;
  color: #020617;
}

.btn-primary:hover {
  background: #fcd34d;
}

.btn-outline {
  background: transparent;
  border: 1px solid #fbbf24;
  color: #fbbf24;
}

.btn-outline:hover {
  background: rgba(251, 191, 36, 0.12);
}

.btn:active {
  transform: scale(0.98);
}

.hero-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

.hero-phones strong {
  color: #fbbf24;
}

.hero-visual {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 25px 50px -10px rgba(0,0,0,0.6);
  border: 1px solid #1f2933;
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0b0e14 0%, transparent 40%, transparent 60%, #0b0e14 100%);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-phones {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    max-width: 640px;
    margin-inline: auto;
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  background: #0b0e14;
  border-top: 1px solid #111827;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.about-visual {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #1f2933;
  background: #111827;
}

.about-visual img {
  width: 100%;
  height: auto;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-content p {
  color: #d1d5db;
  margin-bottom: 1.25rem;
}

.about-features {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
}

.about-features li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #e5e7eb;
  padding: 0.6rem 0.75rem;
  background: #111827;
  border: 1px solid #1f2933;
  border-radius: 0.5rem;
  width: 100%;
  text-align: left;
}

.about-features span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fbbf24;
}

@media (max-width: 840px) {
  .about-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-visual {
    order: -1;
  }
}

/* ===== SERVICES CARDS ===== */
.services {
  background: radial-gradient(circle at bottom left, #111827, #0b0e14);
  border-top: 1px solid #111827;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #111827;
  border-radius: 0.875rem;
  border: 1px solid #1f2933;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #fbbf24;
  box-shadow: 0 20px 40px -6px rgba(0,0,0,0.5);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.1rem;
  color: #f9fafb;
}

.card p {
  font-size: 0.9rem;
  color: #d1d5db;
}

.card-link {
  margin-top: auto;
  font-size: 0.85rem;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===== PROJECT GALLERY ===== */
.gallery {
  background: #0b0e14;
  border-top: 1px solid #111827;
}

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

.gallery-item {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111827;
  border: 1px solid #1f2933;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: rgba(11, 14, 20, 0.9);
  font-size: 0.8rem;
  color: #e5e7eb;
  text-align: center;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: radial-gradient(circle at top right, #111827, #0b0e14);
  border-top: 1px solid #111827;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: #111827;
  border-radius: 0.875rem;
  border: 1px solid #1f2933;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.4);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.5rem;
  color: #fbbf24;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-text {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #374151;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-meta {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.testimonial-role {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: #0b0e14;
  border-top: 1px solid #111827;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fbbf24;
}

.contact-info p {
  color: #d1d5db;
  max-width: 34rem;
}

.contact-block {
  border-left: 3px solid #fbbf24;
  padding-left: 1rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 1.05rem;
  color: #f9fafb;
}

.contact-form {
  background: #111827;
  border-radius: 0.875rem;
  border: 1px solid #1f2933;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 18px 45px -10px rgba(0,0,0,0.5);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8rem;
  color: #9ca3af;
}

.form-control {
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  background: #0b0e14;
  border: 1px solid #374151;
  color: #f9fafb;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.4);
}

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

.form-footer {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

@media (max-width: 840px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-info {
    align-items: flex-start;
    text-align: left;
  }

  .contact-form {
    max-width: 100%;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #020617;
  border-top: 1px solid #111827;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

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

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #fbbf24;
}

/* ===== ACCESSIBILITY FOCUS ===== */
:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* Instagram banner */
.instagram-banner {
  width: 100%;
  text-align: center;
  padding: 60px 0;
  background-color: #f7f7f7;
}

.instagram-banner h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
}

.instagram-banner h2 a {
  color: #e0b44c;
  text-decoration: none;
  font-weight: 700;
}

.instagram-banner h2 a:hover {
  text-decoration: underline;
}

/* Grid Styling */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.instagram-item img {
  width: 100%;
  aspect-ratio: 1 / 1; /* FIXED: Ensures items take up physical space even if files are missing */
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s;
  background: #111827; /* Fallback background color */
}
.instagram-item img:hover {
  transform: scale(1.02);
}

/* Modal Overlay Styling */
.custom-modal {
  display: none; 
  position: fixed;
  z-index: 99999; /* Boosted to ensure it sits over your sticky header */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

/* Modal Content Box */
.modal-content {
  background-color: #fff;
  padding: 30px 20px 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  z-index: 10;
}