/**
 * NglTailor - Main Stylesheet
 * Bootstrap 5 + Tailwind CSS + Custom Styles
 */

/* ================================
   CSS VARIABLES
   ================================ */
:root {
  /* Primary Palette */
  --primary: #0F766E;
  --primary-dark: #0B4F4A;
  --primary-light: #2DD4BF;
  
  /* Accent Palette */
  --accent: #F97316;
  --accent-light: #FB923C;
  --accent-warm: #FFEDD5;
  
  /* Neutral Palette */
  --bg-light: #F4FAF8;
  --bg-section: #EAF4F1;
  --text-dark: #102A2B;
  --text-medium: #3E5D5F;
  --text-light: #6D8A8C;
  --white: #FFFFFF;
  
  /* Bootstrap Overrides */
  --bs-primary: var(--primary);
  --bs-primary-rgb: 15, 118, 110;
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-dark);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.4; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-medium);
}

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

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

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

/* ================================
   LAYOUT
   ================================ */
.container-custom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 4rem 0;
}

.section-padding-sm {
  padding: 2.5rem 0;
}

.section-light {
  background-color: var(--bg-section);
}

.section-white {
  background-color: var(--white);
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.75rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ================================
   BUTTONS
   ================================ */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

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

.btn-whatsapp {
  background-color: #25D366;
  border-color: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  border-color: #128C7E;
  color: var(--white);
}

.btn-gold {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-dark);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  background: linear-gradient(125deg, #0B4F4A 0%, #0F766E 45%, #14B8A6 100%);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: 84vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 15%, rgba(251, 146, 60, 0.36) 0%, transparent 42%),
    radial-gradient(circle at 14% 80%, rgba(255, 255, 255, 0.18) 0%, transparent 38%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg-light), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

.hero-copy {
  max-width: 640px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 79, 74, 0.36);
}

.hero-kicker i {
  color: var(--accent);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--white);
  text-shadow: 0 10px 35px rgba(2, 25, 24, 0.28);
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 2rem;
  max-width: 580px;
  text-shadow: 0 4px 16px rgba(2, 25, 24, 0.2);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: flex-start;
}

.hero .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #18261f;
  font-size: 1rem;
  padding: 1rem 2rem;
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.3);
}

.hero .btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(251, 146, 60, 0.35);
}

.hero .btn-outline-primary {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  font-size: 1rem;
  padding: 1rem 2rem;
}

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

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  padding: 0.65rem 1.05rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
}

.trust-chip i {
  color: var(--accent);
  font-size: 1rem;
}

.hero-image-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 24px 48px rgba(2, 24, 24, 0.26);
  min-height: 430px;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 45, 42, 0.45), transparent 55%),
    linear-gradient(to right, rgba(255, 255, 255, 0.08), transparent 35%);
}

/* ================================
   SERVICE CARDS
   ================================ */
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-link {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ================================
   PROCESS SECTION
   ================================ */
.process-step {
  text-align: center;
  padding: 2rem 1rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.process-step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* ================================
   FEATURES/VALUE LIST
   ================================ */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 10px;
}

.feature-list li i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.feature-list li span {
  color: var(--text-medium);
}

/* ================================
   PRICING SECTION
   ================================ */
.pricing-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

.pricing-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-item span:first-child {
  color: var(--text-dark);
}

.pricing-item span:last-child {
  color: var(--primary);
  font-weight: 600;
}

.pricing-note {
  background: var(--bg-section);
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-top: 1rem;
}

/* ================================
   GALLERY
   ================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-overlay span {
  color: var(--white);
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ================================
   TESTIMONIALS
   ================================ */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
}

.testimonial-stars {
  color: var(--accent);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-dark);
}

/* ================================
   FAQ ACCORDION
   ================================ */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.accordion-button {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--white);
  border: none;
}

.accordion-button:not(.collapsed) {
  background: var(--primary);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  filter: brightness(0.2);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(10);
}

.accordion-body {
  padding: 1.5rem;
  background: var(--white);
  color: var(--text-medium);
}

/* ================================
   CTA BANNER
   ================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  color: var(--white);
  margin: 3rem 0;
}

.cta-banner h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-light {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
}

.cta-banner .btn-light:hover {
  background: var(--accent-warm);
}

/* ================================
   MOBILE STICKY BAR
   ================================ */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 0.75rem;
}

.mobile-sticky-bar .btn {
  flex: 1;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-bottom: 0;
}

.footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer p,
.footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

/* ================================
   CONTACT PAGE
   ================================ */
.contact-info-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  width: 40px;
  height: 40px;
  background: var(--bg-section);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-control {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.12);
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
}

/* ================================
   BREADCRUMBS
   ================================ */
.breadcrumb-section {
  background: var(--bg-section);
  padding: 1.5rem 0;
}

.breadcrumb {
  margin: 0;
  background: none;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--text-medium);
}

.breadcrumb-item.active {
  color: var(--primary);
}

/* ================================
   SECTION HEADERS
   ================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-section { background-color: var(--bg-section) !important; }

.mt-6 { margin-top: 4rem; }
.mb-6 { margin-bottom: 4rem; }

/* ================================
   RESPONSIVE STYLES
   ================================ */
@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 4.75rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    max-width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta,
  .trust-chips {
    justify-content: center;
  }

  .hero-image-wrap {
    max-width: 560px;
    margin: 0 auto;
    min-height: 400px;
  }

  .hero-image-wrap img {
    min-height: 400px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .mobile-sticky-bar {
    display: flex;
    gap: 0.5rem;
  }
  
  body {
    padding-bottom: 70px;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 3.25rem 0 3.5rem;
  }
  
  .hero h1 {
    font-size: 1.95rem;
  }

  .hero-kicker {
    font-size: 0.72rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
  }

  .hero-image-wrap {
    min-height: 340px;
  }

  .hero-image-wrap img {
    min-height: 340px;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .cta-banner {
    padding: 2rem 1.5rem;
  }
  
  .cta-banner h3 {
    font-size: 1.375rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 575.98px) {
  .container-custom {
    padding: 0 1.25rem;
  }
  
  .trust-chips {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-chip {
    justify-content: center;
  }

  .hero-image-wrap {
    min-height: 280px;
  }

  .hero-image-wrap img {
    min-height: 280px;
  }
  
  .pricing-card {
    padding: 1.5rem;
  }
  
  .footer {
    padding: 3rem 0 1.5rem;
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
