/* style.css — SPG PROTECTION SERVICES */

/* =========================================
   RESET & BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================
   TOP BAR (Dark bar with logo + icons)
   ========================================= */
.top-bar {
  background: #1a1a2e;
  padding: 0;
  height: 52px;
  position: relative;
  z-index: 101;
}

.top-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  flex-wrap: nowrap;
  gap: 0;
}

/* Left side: logo badge + brand block */
.top-bar-left {
  display: flex;
  align-items: center;
}

/* Logo badge — spans across both bars */
.logo-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #c0392b;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 102;
  margin-bottom: -35px;
  overflow: hidden;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Brand name + query line */
.brand-block {
  display: flex;
  flex-direction: column;
  margin-left: 16px;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.query-line {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.menu-toggle {
  display: none;
  /* hide button on large screens on pc*/
}

/* Right side: icon buttons */
/* Right side: icon buttons */
.top-bar-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
  color: #fff;
  font-size: 16px;
}

.icon-btn i {
  font-size: 16px;
}

.icon-btn:hover {
  opacity: 0.85;
}

.icon-btn.whatsapp {
  background: #25D366;
}

.icon-btn.email {
  background: #c0392b;
}

.icon-btn.maps {
  background: #4285F4;
}

.icon-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* =========================================
   RED STRIPE DIVIDER
   ========================================= */
.red-stripe {
  height: 3px;
  background: #c0392b;
  width: 100%;
}

/* =========================================
   MAIN HEADER / NAV BAR (White bar)
   ========================================= */
.main-header {
  background: #ffffff;
  padding: 0;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #eee;
}

.main-header .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  padding-left: 108px;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: color 0.3s;
  padding-bottom: 2px;
}

nav a:hover,
nav a.active {
  color: #c0392b;
  border-bottom: 2px solid #c0392b;
}

.menu-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
}

/* Get a Quote CTA button */
.btn-quote {
  background: #c0392b;
  color: #fff;
  padding: 7px 16px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s;
}

.btn-quote:hover {
  background: #a93226;
  color: #fff;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)),
    url('https://images.unsplash.com/photo-1501555088652-021faa106b9b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: #c9a03d;
  color: #0a192f;
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #b38f2e;
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features {
  padding: 4rem 0;
}

.features .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.feature-card {
  flex: 1 1 250px;
  background: #f4f4f4;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
  font-size: 2.5rem;
  color: #c9a03d;
  margin-bottom: 1rem;
}

/* =========================================
   PAGE HEADER (inner pages)
   ========================================= */
.page-header {
  background: #0a192f;
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* =========================================
   CONTENT AREA
   ========================================= */
.content {
  padding: 3rem 0;
}

/* =========================================
   CARD GRID
   ========================================= */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  flex: 1 1 300px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  color: #0a192f;
  margin-bottom: 0.5rem;
}

.card .date {
  color: #c9a03d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card-grid .card p {
  flex: 1;
}

.card i {
  display: block;
  text-align: center;
}

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c9a03d;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

button[type="submit"] {
  background: #c9a03d;
  color: #0a192f;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

button[type="submit"]:hover {
  background: #b38f2e;
}

/* =========================================
   TWO COLUMN LAYOUT
   ========================================= */
.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.two-column .text,
.two-column .image-placeholder {
  flex: 1 1 300px;
}

.two-column.reverse {
  flex-direction: row-reverse;
}

/* =========================================
   VALUES ICONS GRID
   ========================================= */
.values-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.icon-item {
  flex: 0 0 120px;
  text-align: center;
  padding: 1rem;
  background: #f4f4f4;
  border-radius: 8px;
  transition: transform 0.3s;
}

.icon-item:hover {
  transform: translateY(-5px);
}

.icon-item i {
  font-size: 2rem;
  color: #c9a03d;
  margin-bottom: 0.5rem;
  display: block;
}

.icon-item span {
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
}

/* =========================================
   LOGO AREA (inside nav if needed)
   ========================================= */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  color: #fff;
}

.logo p {
  font-size: 0.8rem;
  opacity: 0.8;
  color: #fff;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #0a192f;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */
@media (max-width: 768px) {

  /* Top bar */
  .top-bar {
    height: auto;
    padding: 10px 0 15px;
    /* Was 40px – change to 15px */
  }

  .logo-badge {
    margin-bottom: 0 !important;
    /* Remove negative margin on mobile */
    width: 60px;
    /* Slightly smaller on mobile */
    height: 60px;
  }

  .logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the circle without distortion */
  }

  .top-bar-left {
    align-items: center;
    /* Center align logo and text */
    gap: 10px;
  }

  .brand-block {
    margin-left: 0;
    text-align: left;
  }

  .top-bar-icons {
    margin-top: 12px;
    justify-content: flex-end;
    width: 100%;
  }

  /* Main nav */
  .main-header {
    height: auto;
    padding: 0.5rem 0;
  }

  .main-header .container {
    padding-left: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
  }

  /* Initially hide the navigation menu */
  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  /* When the 'show' class is added, expand the menu */
  nav.show {
    max-height: 500px;
    /* enough to show all links */
  }

  /* Stack links vertically */
  nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
  }

  nav li {
    text-align: center;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  /* Mobile dropdown for Services */
  .dropdown {
    position: relative;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    background: #f8f9fa;
    margin-top: 0.5rem;
    border: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown>a .fa-chevron-down {
    transition: transform 0.2s;
  }

  .dropdown.open>a .fa-chevron-down {
    transform: rotate(180deg);
  }
}

/* Desktop dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 280px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 200;
  border: 1px solid #eee;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1.2rem;
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;
}

.dropdown-content a i {
  width: 20px;
  color: #c0392b;
}

.dropdown-content a:hover {
  background: #f8f9fa;
  color: #c0392b;
}

/* Hero */
.hero h2 {
  font-size: 1.8rem;
}

.hero p {
  font-size: 1rem;
}

/* Two column */
.two-column,
.two-column.reverse {
  flex-direction: column;
}

/* Logo area */
.logo-area {
  flex: 1;
}
}

.services-list a {
  display: inline-block;
  background: #0a192f;
  color: white;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.services-list a:hover {
  background: #c9a03d;
  color: #0a192f;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to hero elements */
.hero h2,
.hero p,
.hero .btn {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Slight delay for each element for a staggered effect */
.hero h2 {
  animation-delay: 0.1s;
}

.hero p {
  animation-delay: 0.3s;
}

.hero .btn {
  animation-delay: 0.5s;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== SERVICES DROPDOWN ==================== */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown>a {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown>a .fa-chevron-down {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.nav-dropdown.open>a .fa-chevron-down {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 280px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
  border: 1px solid #eee;
  padding: 8px 0;
  margin-top: 4px;
}

.main-header .nav-dropdown.open .dropdown-menu {
  display: block;
}

/* Dropdown Items */
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.dropdown-menu a i {
  width: 20px;
  color: #c0392b;
  font-size: 1.1rem;
}

.dropdown-menu a:hover {
  background: #f8f9fa;
  color: #c0392b;
  padding-left: 24px;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: #f8f9fa;
    margin-top: 0;
    width: 100%;
    padding: 0;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 14px 20px;
    font-size: 1rem;
  }
}