/* =============================================
   IFMC - Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --brown-bg: #7a6450;
  --lime-green: #c8ff00;
  --lime-green-dark: #aade00;
  --dark-panel: #0d1e2c;
  --dark-panel-2: #0a1a24;
  --text-black: #000000;
  --text-white: #ffffff;
  --text-lime: #c8ff00;
  --nav-height: 60px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--brown-bg);
  color: var(--text-white);
  overflow-x: hidden;
}

.section-anchor {
  scroll-margin-top: 140px;
}

/* =============================================
   TOP HEADER BAR
   ============================================= */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  background-color: var(--lime-green);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  color: #000;
  cursor: pointer;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.88;
}

.header-logo {
  height: 56px;
  width: auto;
  display: block;
}

/* =============================================
   NAVIGATION
   ============================================= */
.main-nav {
  background-color: var(--dark-panel);
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 72px;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.main-nav::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  color: var(--lime-green);
  border-bottom-color: var(--lime-green);
  background: rgba(200, 255, 0, 0.07);
}

/* =============================================
   HERO SECTION – Image Background
   ============================================= */
.hero-section {
  background-color: var(--brown-bg);
  padding: 30px 30px 0;
}

.hero-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  max-height: 520px;
  border: 4px solid var(--lime-green);
}

.hero-bg-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 55%,
    rgba(0,0,0,0.10) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 50px;
}

.hero-overlay h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--lime-green);
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  max-width: 580px;
}

.hero-overlay p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 500px;
  line-height: 1.7;
}

/* =============================================
   ABOUT US SECTION
   ============================================= */
.about-section {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--lime-green);
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

/* =============================================
   SERVICES OVERVIEW SECTION
   ============================================= */
.services-overview-section {
  background-color: var(--brown-bg);
  padding: 30px 30px 40px;
}

.services-overview-inner {
  background-color: #0d1e2c;
  border-radius: 12px;
  padding: 28px 32px 32px;
}

.services-overview-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  align-items: start;
}

.services-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-pill {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  line-height: 1.3;
  min-height: 52px;
}

.service-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  filter: brightness(1.08);
}

/* Pill color variants matching the reference image */
.pill-light {
  background-color: #b8f06e;
  color: #111;
}

.pill-lime {
  background-color: #c8ff00;
  color: #111;
}

.pill-mid {
  background-color: #7dd87a;
  color: #111;
}

.pill-teal {
  background-color: #3db88a;
  color: #111;
}

/* =============================================
   DETAILED SERVICES LIST SECTION
   ============================================= */
.detailed-services-section {
  background-color: var(--lime-green);
  padding: 80px 40px;
}

.detailed-services-inner {
  background-color: var(--dark-panel-2);
  border-radius: 40px;
  padding: 20px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.ds-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-bottom: 2px solid rgba(200, 255, 0, 0.15);
}

.ds-row:last-child {
  border-bottom: none;
}

.ds-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ds-icon {
  font-size: 56px;
  color: var(--lime-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--lime-green);
  line-height: 1.35;
}

/* =============================================
   SERVICE SECTION WRAPPER
   ============================================= */
.service-section {
  padding: 40px 30px 60px;
  background-color: var(--brown-bg);
}

.service-inner {
  background-color: var(--lime-green);
  border-radius: 6px;
  overflow: hidden;
}

/* Section Title Block */
.service-title-block {
  padding: 28px 32px 24px;
  background-color: var(--lime-green);
  border-bottom: 3px solid rgba(0,0,0,0.12);
}

.service-title-block h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text-black);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.service-title-block h2 span {
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  font-weight: 700;
  display: inline;
}

/* Two-column content area */
.service-content {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0;
  min-height: 700px;
}

/* Left Panel */
.service-left {
  background-color: var(--dark-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-left-text {
  padding: 36px 28px 28px;
  flex: 1;
}

.service-left-text p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.service-left-text ul {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.service-left-text ul li {
  font-size: 13.5px;
  color: var(--lime-green);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.service-left-text ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--lime-green);
}

.service-left-image {
  height: 320px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-left-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right Panel */
.service-right {
  background-color: var(--dark-panel-2);
  padding: 32px 28px;
  overflow-y: auto;
}

.service-right p,
.service-right li {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
}

.service-right ul {
  list-style: none;
  padding: 0;
}

.service-right ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}

.service-right ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--lime-green);
  font-size: 16px;
  line-height: 1.6;
}

.service-right h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--lime-green);
  margin-top: 18px;
  margin-bottom: 6px;
}

/* =============================================
   FIRE & SAFETY SPECIAL LAYOUT
   ============================================= */
.fire-intro {
  padding: 28px 32px;
  background-color: var(--brown-bg);
}

.fire-intro p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-white);
  font-weight: 500;
  max-width: 640px;
}

.fire-mission-bar {
  background-color: var(--lime-green);
  padding: 18px 32px;
  margin: 0 30px;
  border-radius: 4px;
}

.fire-mission-bar p {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-black);
}

.fire-main-image {
  margin: 24px 30px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 4px solid var(--dark-panel);
}

.fire-main-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.fire-capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 30px 30px;
  background-color: var(--dark-panel);
  border: 4px solid var(--dark-panel);
  border-top: none;
}

.fire-cap-item {
  padding: 24px 22px;
  border-right: 1px solid rgba(200, 255, 0, 0.1);
  border-bottom: 1px solid rgba(200, 255, 0, 0.1);
}

.fire-cap-item:nth-child(even) {
  border-right: none;
}

.fire-cap-item h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--lime-green);
  margin-bottom: 8px;
  line-height: 1.4;
}

.fire-cap-item p {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* =============================================
   OPERATIONAL MANAGEMENT SPECIAL LAYOUT
   ============================================= */
.ops-intro {
  padding: 28px 32px;
  background-color: var(--brown-bg);
}

.ops-intro p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-white);
  font-weight: 500;
  max-width: 700px;
}

.ops-main-image {
  margin: 20px 30px;
  border-radius: 8px;
  overflow: hidden;
  border: 4px solid var(--dark-panel);
}

.ops-main-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 30px 30px;
  background-color: var(--dark-panel);
  border: 4px solid var(--dark-panel);
  border-top: none;
}

.ops-item {
  padding: 22px 20px;
  border-right: 1px solid rgba(200, 255, 0, 0.1);
  border-bottom: 1px solid rgba(200, 255, 0, 0.1);
}

.ops-item:nth-child(even) {
  border-right: none;
}

.ops-item h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--lime-green);
  margin-bottom: 8px;
}

.ops-item p {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* =============================================
   CLEANNOW SECTION
   ============================================= */
.cleannow-section {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.cleannow-full-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* =============================================
   PRODUCTS SECTION
   ============================================= */
.products-section {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.products-full-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* =============================================
   CLIENTS SECTION
   ============================================= */
.clients-section {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.clients-full-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
  background-color: var(--dark-panel-2);
  padding: 60px 40px 80px;
}

.contact-top-deco {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.deco-text {
  font-size: 12px;
  font-weight: 800;
  color: var(--lime-green);
  letter-spacing: 1px;
}

.deco-line {
  flex: 1;
  height: 2px;
  background-color: var(--lime-green);
}

.deco-logo {
  height: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(400px, 1.2fr);
  gap: 24px;
  align-items: stretch;
}

/* Left Column */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-web-pill {
  background-color: var(--lime-green);
  color: #111;
  padding: 24px 32px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  width: fit-content;
}

.contact-image-wrap {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  min-height: 500px;
}

.contact-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right Column */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background-color: var(--lime-green);
  color: #111;
  padding: 40px;
  border-radius: 20px 80px 20px 20px; /* Chamfered/Large rounded top right corner */
  display: flex;
  flex-direction: column;
}

.top-card {
  flex: 0 0 auto;
}

.bottom-card {
  flex: 1;
  justify-content: space-between;
  gap: 30px;
}

.contact-card-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 15px;
  color: #111;
}

.contact-link {
  display: block;
  color: #111;
  text-decoration: none;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.contact-link.light-text {
  font-weight: 400;
}

.contact-link.underline-text {
  font-weight: 400;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  display: inline-block;
}

.contact-card-line {
  height: 1px;
  background-color: #111;
  width: 100%;
  max-width: 400px;
  margin: 15px 0 25px;
}

.contact-black-logo {
  height: 48px;
  align-self: flex-start;
}

/* Bottom Card Details */
.qr-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.qr-code {
  width: 130px;
  height: 130px;
}

.qr-text {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}

.partner-text {
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 500;
  color: #111;
  max-width: 450px;
}

.address-block {
  margin-top: auto;
}

.address-text {
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 500;
  color: #111;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background-color: var(--dark-panel);
  padding: 40px 30px;
  text-align: center;
  border-top: 3px solid var(--lime-green);
}

.footer-logo {
  height: 70px;
  width: auto;
  border-radius: 6px;
  display: inline-block;
}

/* =============================================
   SECTION ANCHOR
   ============================================= */
.section-anchor {
  scroll-margin-top: 120px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  /* Layout constraints */
  .service-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-left-image {
    height: 240px;
  }
  
  .service-left-text {
    padding: 24px 20px;
  }
  
  .service-right {
    padding: 24px 20px;
  }

  /* Title texts */
  .service-title-block {
    padding: 20px;
  }
  .service-title-block h2 {
    font-size: 1.8rem;
  }

  /* Specific Sections */
  .fire-capabilities,
  .ops-grid {
    grid-template-columns: 1fr;
    margin: 0 16px 24px;
  }

  .fire-mission-bar,
  .fire-main-image,
  .ops-main-image {
    margin-left: 16px;
    margin-right: 16px;
  }
  
  .fire-cap-item,
  .ops-item {
    border-right: none;
    border-bottom: 1px solid rgba(200, 255, 0, 0.1);
  }

  .service-section {
    padding: 24px 16px 40px;
  }

  /* Header & Nav */
  .top-bar {
    padding: 10px 16px;
  }
  
  .header-logo {
    height: 48px;
  }

  .main-nav {
    padding: 0 10px;
  }

  /* Hero Section */
  .hero-section {
    padding: 0;
  }
  .hero-image-wrap {
    border-radius: 0;
    border: none;
    border-bottom: 4px solid var(--lime-green);
    max-height: 460px;
  }
  .hero-bg-img {
    height: 460px;
  }
  .hero-overlay {
    padding: 30px 20px;
    justify-content: flex-end;
  }
  
  /* Overview Grid */
  .services-overview-section {
    padding: 24px 16px;
  }
  .services-overview-inner {
    padding: 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-pill {
    padding: 14px 16px;
    font-size: 12px;
  }

  /* Detailed Services List */
  .detailed-services-section {
    padding: 40px 16px;
  }
  .detailed-services-inner {
    padding: 20px 24px;
    border-radius: 20px;
  }
  .ds-row {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0;
  }
  .ds-item {
    gap: 16px;
  }
  .ds-icon {
    font-size: 44px;
  }
  .ds-text {
    font-size: 15px;
  }

  /* About Section */
  .about-section {
    padding: 40px 16px;
  }
  .about-content h2 {
    font-size: 2.2rem;
  }
  .about-content p {
    font-size: 1.1rem;
  }

  /* Products Section */
  .products-section {
    padding: 40px 16px;
  }

  /* Clients Section */
  .clients-section {
    padding: 40px 16px;
  }

  /* Main Nav - Mobile Optimization */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 0;
    padding: 0;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--dark-panel);
    transition: height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 998;
  }

  .main-nav.open {
    height: auto;
    padding: 20px 0;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 18px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* Cleannow Section */
  .cleannow-section {
    padding: 40px 16px;
  }

  /* Contact Section */
  .contact-section {
    padding: 40px 16px 60px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-card {
    padding: 30px 24px;
    border-radius: 16px 40px 16px 16px;
  }
  .contact-card-title {
    font-size: 2.2rem;
  }
  .contact-link {
    font-size: 1.15rem;
    word-break: break-all;
  }
  .qr-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .address-block {
    margin-top: 10px;
  }
}

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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