/* ==========================================================================
   Royal Bird Netting — Main Stylesheet
   ========================================================================== */

:root {
  --primary: #0B6E4F;
  --primary-dark: #084d38;
  --primary-light: #0e8862;
  --secondary: #F5F7FA;
  --accent: #F4A300;
  --accent-dark: #d68e00;
  --dark: #14231d;
  --text-muted: #5c6b66;
  --radius: 16px;
  --shadow-sm: 0 4px 16px rgba(11, 110, 79, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 110, 79, 0.14);
  --shadow-lg: 0 20px 50px rgba(11, 110, 79, 0.18);
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background-color: #ffffff;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

p {
  color: var(--text-muted);
  line-height: 1.75;
}

a {
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.section-pad {
  padding: 90px 0;
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 60px 0;
  }
}

.bg-soft {
  background-color: var(--secondary);
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(11, 110, 79, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-heading {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.section-desc {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
}

@media (max-width: 575.98px) {
  .section-heading {
    font-size: 1.7rem;
  }
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 28px;
  transition: var(--transition);
  border: none;
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-accent-custom {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(244, 163, 0, 0.25);
}

.btn-accent-custom:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(244, 163, 0, 0.35);
}

.btn-outline-custom {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline-custom:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-sm-pill {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 50px;
  font-weight: 600;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.navbar {
  padding: 18px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.98);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
  height: 55px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
  height: 45px;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--dark) !important;
  margin: 0 12px;
  position: relative;
  padding: 8px 0 !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

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

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  margin-left: 10px;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

.nav-cta::after {
  display: none;
}

/* ==========================================================================
   Hero / Carousel
   ========================================================================== */
#home {
  position: relative;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100vh;
  min-height: 560px;
}

.hero-slide {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 40, 29, 0.88) 0%, rgba(11, 110, 79, 0.65) 55%, rgba(6, 40, 29, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
}

.hero-content .hero-badge {
  display: inline-block;
  background: rgba(244, 163, 0, 0.18);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content h1 {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.hero-content .btn {
  margin-right: 14px;
  margin-bottom: 10px;
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.5);
}

.hero-carousel .carousel-indicators .active {
  background-color: var(--accent);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  opacity: 0.8;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-carousel .carousel-control-prev {
  left: 30px;
}

.hero-carousel .carousel-control-next {
  right: 30px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: var(--accent);
  opacity: 1;
}

@media (max-width: 767.98px) {
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: 1.6rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -12px); }
  60% { transform: translate(-50%, -6px); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-img-wrap:hover img {
  transform: scale(1.06);
}

.about-experience-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 6px solid #fff;
}

.about-experience-badge span {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge small {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .about-experience-badge {
    width: 100px;
    height: 100px;
    bottom: -16px;
    right: 10px;
  }
  .about-experience-badge span {
    font-size: 1.4rem;
  }
}

.highlight-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(11, 110, 79, 0.08);
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.highlight-card .icon-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(11, 110, 79, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.highlight-card span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   Services
   ========================================================================== */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.12) rotate(1deg);
}

.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 110, 79, 0.55), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover .service-img::after {
  opacity: 1;
}

.service-img-icon {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  transition: transform 0.6s ease;
}

.service-card:hover .service-img-icon {
  transform: scale(1.08);
}

.service-img-icon i {
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.service-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.service-body {
  padding: 24px;
}

.service-body h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-body p {
  font-size: 0.92rem;
  margin-bottom: 20px;
  min-height: 66px;
}

.service-btns {
  display: flex;
  gap: 10px;
}

.service-btns .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.85rem;
  text-align: center;
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

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

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  background: rgba(11, 110, 79, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: var(--primary);
  color: #fff;
  transform: rotateY(360deg);
}

.why-card h5 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  height: 230px;
}

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

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

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 110, 79, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay i {
  color: #fff;
  font-size: 1.8rem;
  border: 2px solid #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Counters
   ========================================================================== */
.counter-box {
  text-align: center;
  color: #fff;
}

.counter-box .counter-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
}

.counter-box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  font-weight: 600;
}

.counter-section {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  position: relative;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-info-card {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  height: 100%;
}

.contact-info-card h3 {
  color: #fff;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-item .icon-circle {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item h6 {
  color: #fff;
  margin-bottom: 4px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item p, .contact-item a {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  font-size: 0.95rem;
}

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

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.map-wrap iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.map-wrap-large {
  min-height: 400px;
}

.map-wrap-large iframe {
  height: 100%;
  min-height: 400px;
}

.form-control, .form-select {
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #e1e5ea;
  font-size: 0.95rem;
  background-color: var(--secondary);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(11, 110, 79, 0.15);
  background-color: #fff;
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

/* ==========================================================================
   Modal Popup
   ========================================================================== */
.modal-content {
  border-radius: var(--radius);
  border: none;
  overflow: hidden;
}

.modal-header-custom {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 26px 30px;
  position: relative;
}

.modal-header-custom h5 {
  color: #fff;
  margin-bottom: 4px;
}

.modal-header-custom p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  font-size: 0.88rem;
}

.modal-header-custom .btn-close {
  filter: invert(1);
  position: absolute;
  top: 20px;
  right: 20px;
}

.modal-body {
  padding: 30px;
}

/* ==========================================================================
   Gallery Lightbox
   ========================================================================== */
.lightbox-dialog {
  max-width: 900px;
}

.lightbox-content {
  background: transparent;
  border: none;
  position: relative;
}

.lightbox-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: var(--dark);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  filter: invert(1);
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 8px;
  z-index: 3;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 3;
}

.lightbox-nav:hover {
  background: var(--accent);
}

.lightbox-prev {
  left: -20px;
}

.lightbox-next {
  right: -20px;
}

.lightbox-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .lightbox-prev {
    left: 4px;
  }
  .lightbox-next {
    right: 4px;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Floating Buttons
   ========================================================================== */
.floating-btns {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.floating-btns a {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.floating-btns a:hover {
  transform: scale(1.12);
}

.btn-call-float {
  background: var(--accent);
  animation: pulse-call 2s infinite;
}

/* Right-center floating Enquire Now button */
.floating-enquire {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 999;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 18px;
  border-radius: 50px 0 0 50px;
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.floating-enquire i {
  font-size: 1.2rem;
}

.floating-enquire:hover {
  background: var(--primary-dark);
  color: #fff;
  padding-right: 26px;
}

@media (max-width: 767.98px) {
  .floating-enquire span {
    display: none;
  }
  .floating-enquire {
    padding: 14px;
    border-radius: 50% 0 0 50%;
  }
}

@keyframes pulse-call {
  0% { box-shadow: 0 0 0 0 rgba(244, 163, 0, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(244, 163, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 163, 0, 0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--dark);
}

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 0.88rem;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.back-to-top:hover {
  background: var(--accent);
  color: #fff;
}

/* ==========================================================================
   Misc
   ========================================================================== */
.rounded-shadow-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader .spinner {
  width: 54px;
  height: 54px;
  border: 5px solid rgba(11, 110, 79, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
