/* ===========================
   ASET Fire Safety – Main CSS
   =========================== */

:root {
  --blue: #1a80b6;
  --blue-dark: #156a97;
  --blue-light: #2196d3;
  --red: #c0392b;
  --red-dark: #a93226;
  --dark: #2c3e50;
  --dark2: #34495e;
  --grey: #7f8c8d;
  --light-grey: #ecf0f1;
  --white: #ffffff;
  --text: #555555;
  --text-dark: #333333;
  --border: #e0e0e0;
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Raleway', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
  margin-left: 10px;
}
.btn-outline:hover { background: #fff; color: var(--blue); }

/* Outline variant for light/white backgrounds */
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.btn-white {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.btn-white:hover { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
  margin-left: 10px;
}
.btn-outline-white:hover { background: #fff; color: var(--blue); }

/* ===========================
   TOP BAR
   =========================== */

.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left span {
  margin-right: 20px;
}
.top-bar-left i, .top-bar-right i {
  margin-right: 6px;
  color: var(--blue);
}
.top-bar-right a {
  color: #ccc;
  margin-left: 12px;
  font-size: 14px;
  transition: color 0.2s;
}
.top-bar-right a:hover { color: var(--blue); }

/* ===========================
   HEADER
   =========================== */

.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.2;
}
/* Fixed height, width follows the natural aspect ratio – never stretched. */
.logo-img {
  height: 44px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.logo-tagline {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* NAV */
.nav-list {
  display: flex;
  gap: 0;
  align-items: center;
}
.nav-list li a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.nav-list li a:hover,
.nav-list li a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   HERO SLIDER
   =========================== */

.hero-slider {
  position: relative;
  height: 580px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  opacity: 0;
  /* opacity alone still leaves the slide clickable and focusable, so the last
     slide in the DOM swallows clicks meant for the visible one. */
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slide-content {
  padding: 0 60px;
  max-width: 700px;
  color: #fff;
  animation: fadeUp 0.8s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-content h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 46px;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.slide-content p {
  font-size: 17px;
  margin-bottom: 28px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1.6;
}

.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-prev:hover, .slider-next:hover { background: var(--blue); }

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: var(--blue); }

/* Fallback hero gradient when no images */
.slide:nth-child(1) { background-color: #1a3a5c; }
.slide:nth-child(2) { background-color: #1d3d60; }
.slide:nth-child(3) { background-color: #162f4a; }

/* ===========================
   SERVICES STRIP
   =========================== */

.services-strip {
  background: var(--blue);
  padding: 24px 0;
}
.services-strip .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.service-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.service-strip-item i {
  font-size: 26px;
  opacity: 0.85;
}
.service-strip-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===========================
   SECTIONS COMMON
   =========================== */

section { padding: 70px 0; }
.bg-light { background: var(--light-grey); }

.section-label {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  color: var(--dark);
  margin-bottom: 14px;
}
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--grey);
}

/* ===========================
   WELCOME SECTION
   =========================== */

.tick-list, .icon-list { margin: 18px 0 26px; }
.tick-list li, .icon-list li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: var(--text);
}
/* Same list as .tick-list, but each item carries its own icon in place of the tick. */
.icon-list li i {
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 14px;
  width: 16px;
  text-align: center;
}
.tick-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 13px;
}

/* ===========================
   SERVICES GRID
   =========================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: 6px;
  padding: 34px 28px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  border-top-color: var(--blue);
}
.service-icon {
  width: 58px;
  height: 58px;
  background: #e8f4fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon i { font-size: 22px; color: var(--blue); }
.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 12px;
}
.service-card p { color: var(--text); font-size: 14px; margin-bottom: 16px; }
.read-more {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.read-more:hover { gap: 10px; }

.services-all-link { text-align: center; margin-top: 40px; }

/* ===========================
   WHY ASET
   =========================== */

.section-why { background: var(--dark); color: #fff; }
.section-why .service-detail-body h2 { color: #fff; }
.section-why .service-detail-icon {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.why-item {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  transition: background 0.25s;
}
.why-item:hover { background: rgba(255,255,255,0.06); }
.why-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.6;
  margin-bottom: 10px;
}
.why-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}
.why-item p { color: rgba(255,255,255,0.7); font-size: 14px; }

/* ===========================
   CTA BANNER
   =========================== */

.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 60px 0;
  color: #fff;
}
.cta-content { text-align: center; }
.cta-content h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  margin-bottom: 14px;
}
.cta-content p {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 16px;
  opacity: 0.92;
  line-height: 1.6;
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */

.page-hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), linear-gradient(135deg, var(--blue-dark) 0%, var(--dark) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 40px;
  margin-bottom: 12px;
}
.page-hero p { font-size: 16px; opacity: 0.85; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.8;
}
.breadcrumb a { color: #fff; text-decoration: underline; }
.breadcrumb span { opacity: 0.6; }

/* ===========================
   ABOUT PAGE
   =========================== */

/* Matches the padding of the .service-detail sections either side of it. */
.section-team { padding: 60px 0; }
.section-team .team-grid { margin-top: 0; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 620px;
  margin: 40px auto 0;
}
.team-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  gap: 0;
}
.team-avatar {
  flex: 0 0 160px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: rgba(255,255,255,0.7);
  overflow: hidden;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  align-self: stretch;
}
.team-info { padding: 22px 20px; }
.team-info h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 4px;
}
.team-info .role {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.team-info p { font-size: 13.5px; color: var(--text); }

/* ===========================
   SERVICES PAGE
   =========================== */

/* Card grid directly under the hero, doubling as the page's navigation */
.service-nav-section { padding: 60px 0; }

.service-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-nav-card {
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 32px 26px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.07);
  border-top: 4px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, border-top-color 0.25s;
}
.service-nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  border-top-color: var(--blue);
}
.service-nav-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 10px;
}
.service-nav-card p {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 16px;
}
.service-nav-card .read-more { gap: 6px; }
.service-nav-card:hover .read-more { gap: 10px; }
.service-nav-card:hover .service-icon { background: var(--blue); }
.service-nav-card:hover .service-icon i { color: #fff; }
.service-icon { transition: background 0.25s; }
.service-icon i { transition: color 0.25s; }

.service-detail {
  padding: 60px 0;
  scroll-margin-top: 80px;
}
.service-detail-inner {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 34px;
  align-items: start;
}
.service-detail-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #e8f4fc;
  color: var(--blue);
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-detail.bg-light .service-detail-icon { background: #fff; }
.service-detail-body h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 14px;
}
.service-detail-body p { margin-bottom: 14px; color: var(--text); }
.service-detail-body .tick-list,
.service-detail-body .icon-list { margin-bottom: 24px; }
/* Navigator grid sits in a .service-detail-body, so it needs the same lead-in gap. */
.service-detail-body .service-nav-grid,
.service-detail-body .services-grid,
.service-detail-body .why-grid { margin-top: 22px; }

/* ===========================
   CONTACT PAGE
   =========================== */

/* Two-up inside the section body; .contact-detail keeps its own bottom margin. */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 34px;
  margin-top: 26px;
}
.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-detail-icon {
  width: 46px;
  height: 46px;
  background: #e8f4fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  font-size: 18px;
}
.contact-detail-text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  font-size: 14px;
  margin-bottom: 3px;
}
.contact-detail-text p, .contact-detail-text a {
  color: var(--text);
  font-size: 14px;
}
.contact-detail-text a:hover { color: var(--blue); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.contact-actions .btn i { margin-right: 8px; }

.map-embed {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(44,62,80,0.10);
  height: 420px;
  margin-top: 26px;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
}
.map-directions:hover { color: var(--blue-dark); }

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 38px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--blue); }

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}
.footer-col ul li {
  padding: 5px 0;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.2s, padding 0.2s;
  display: block;
}
.footer-col ul li a:hover { color: var(--blue); padding-left: 6px; }

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 14px;
}
.footer-contact li i { color: var(--blue); margin-top: 3px; flex-shrink: 0; }
.footer-contact li a { color: rgba(255,255,255,0.65); }
.footer-contact li a:hover { color: var(--blue); }

.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ===========================
   CONTENT EMPHASIS
   =========================== */

/* Inline emphasis for key terms – brand blue underline rather than plain bold. */
.key-term {
  font-weight: 600;
  color: var(--dark);
  border-bottom: 2px solid rgba(26, 128, 182, 0.3);
}

/* ===========================
   INFO BOXES
   =========================== */

.info-box {
  background: #e8f4fc;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  padding: 18px 22px;
  margin: 20px 0;
}
.info-box p { margin: 0; color: var(--text-dark); font-size: 14px; }

.warning-box {
  background: #fdf3e7;
  border-left: 4px solid #e67e22;
  border-radius: 4px;
  padding: 18px 22px;
  margin: 20px 0;
}
.warning-box p { margin: 0; color: var(--text-dark); font-size: 14px; }

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-slider { height: 420px; }
  .slide-content { padding: 0 30px; }
  .slide-content h1 { font-size: 30px; }
  .slide-content p { font-size: 15px; }

  .nav-toggle { display: flex; }
  .main-nav .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 100;
  }
  .main-nav .nav-list.open { display: flex; }
  .nav-list li a { padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .nav-list li a.active, .nav-list li a:hover { border-bottom-color: var(--border); }

  .site-header { position: relative; }
  .site-header .container { position: relative; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-details-grid { grid-template-columns: 1fr; }
  .map-embed { height: 320px; }
  .contact-actions .btn { flex: 1 1 100%; text-align: center; }
  .service-detail-inner { grid-template-columns: 1fr; gap: 20px; }
  .service-detail-icon { width: 70px; height: 70px; font-size: 26px; }
  .service-detail-body h2 { font-size: 24px; }
  .service-nav-grid { grid-template-columns: 1fr; }
  .service-nav-section { padding: 45px 0; }

  .services-strip .container { flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px; }

  .top-bar-right { display: none; }

  section { padding: 50px 0; }
  .section-header h2 { font-size: 26px; }
  .cta-content h2 { font-size: 26px; }

  .btn-outline { margin-left: 0; margin-top: 10px; display: inline-block; }
  .btn-outline-white { margin-left: 0; margin-top: 10px; display: inline-block; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .team-avatar { flex-basis: 110px; }
  .hero-slider { height: 350px; }
  .slide-content h1 { font-size: 24px; }
  .logo-img { height: 34px; }
}
