/* ========== BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary-color: #0b2e65;
  --secondary-color: #041d88;
  --dark-color: #212121;
  --light-color: #faf9f4;
  --text-color: #333;
  --text-light: #ffffff;
  --accent-color: #604b33;
  
  /* Spacing */
  --section-padding: 80px;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 72px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== UTILITY CLASSES ========== */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: var(--border-radius);
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Desktop-only utility class */
.desktop-only {
  display: inline-block;
}

.mobile-only {
  display: none;
}

/* ========== HEADER SECTION ========== */
.header {
  position: relative;
  min-height: 400px;
  background: 
    linear-gradient(180deg, rgba(135, 134, 134, 0.5) 53.37%, rgba(33, 33, 33, 0.7) 100%),
    url('../assets/images/services-hero-bg.jpg') center/cover no-repeat;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
}

.header-content {
  position: relative;
  z-index: 2;
  padding: 20px 72px;
  box-sizing: border-box;
  flex-direction: column;
  flex-grow: 1;
}

.logo-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
  flex-wrap: wrap;
  gap: 20px;
}

/* Logo Brand Styles */
.logo-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.logo {
  width: 102.5px;
  height: 55px;
  object-fit: contain;
}

.company-name {
  color: var(--text-light);
  text-align: left;
  white-space: nowrap;
  margin-left: -8px;
}

.company-name-main {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 18px;
  display: block;
  line-height: 1.2;
}

.company-name-sub {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: block;
  line-height: 1.2;
}

/* Navigation and Button Container */
.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-grow: 1;
}

.main-nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav li {
  flex-shrink: 0;
}

.main-nav a {
  color: var(--text-light);
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 16px;
  transition: color 0.3s;
  text-decoration: none;
  white-space: nowrap;
  display: block;
  padding: 8px 0;
}

.main-nav a.active {
  color: var(--secondary-color);
  font-weight: 900;
}

.main-nav a:hover {
  color: var(--secondary-color);
}

/* Dropdown Menu */
.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 4px;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 200px;
  display: none;
  z-index: 1000;
}

.main-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.main-nav .dropdown-menu li {
  padding: 8px 20px;
}

.main-nav .dropdown-menu li a {
  color: var(--dark-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.main-nav .dropdown-menu li a:hover {
  background-color: #f2f2f2;
  color: var(--primary-color);
}

/* Page Title */
.page-title {
  font-family: 'Mulish', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  text-align: center;
  text-transform: uppercase;
  margin: 100px auto 0;
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
  opacity: 1;
  transform: none;
  transition: all 0.8s ease-out;
}

.page-title.animate {
  transform: scale(1.1);
  transition: transform 0.8s ease-out;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 2px 0;
  background-color: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* ========== POLICY PAGE STYLES ========== */
.policy-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px 60px;
  background-color: var(--light-color);
  /* Remove initial opacity and transform */
  opacity: 1;
  transform: translateY(0);
}

.policy-container.animate {
  /* Keep this for animation if needed elsewhere */
  opacity: 1;
  transform: translateY(0);
}

.policy-header {
  text-align: center;
  margin-bottom: 40px;
}

.policy-header h1 {
  color: var(--primary-color);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 20px;
}

.last-updated {
  color: #666;
  font-style: italic;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  margin-bottom: 30px;
}

.policy-content {
  background: white;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.policy-section {
  margin-bottom: 30px;
}

.policy-section h2 {
  color: var(--primary-color);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.policy-section p, .policy-section li {
  line-height: 1.8;
  margin-bottom: 15px;
  color: #444;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

.policy-section ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.policy-section li {
  margin-bottom: 8px;
}

.policy-section strong {
  color: var(--primary-color);
}

.back-to-home {
  display: inline-block;
  margin-top: 30px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.back-to-home:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

@media (max-width: 992px) {
  .policy-container {
    padding: 80px 20px 50px;
  }
  
  .policy-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .policy-container {
    padding: 80px 15px 40px;
  }
  
  .policy-content {
    padding: 25px;
  }
  
  .policy-header h1 {
    font-size: 28px;
  }
  
  .policy-section h2 {
    font-size: 22px;
  }
  
  .policy-section p, .policy-section li {
    font-size: 15px;
  }
}

/* ===== EXTRA SMALL DEVICES (≤360px) ===== */
@media (max-width: 360px) {
  .footer {
    padding: 25px 12px 15px;
  }
  
  /* Tighten footer spacing and prevent overflow */
  .footer-content {
    padding: 0 8px;
    gap: 20px;
  }
  
  /* Mobile footer layout adjustments */
  .mobile-footer-layout {
    padding: 0 8px;
  }
  
  .mobile-footer-top {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
  }
  
  .mobile-quick-links,
  .mobile-right-section {
    width: 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }

  .mobile-quick-links {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    padding-right: 10px;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .mobile-right-section {
    padding-left: 10px;
    gap: 10px;
  }
  
  /* Quick links styling */
  .mobile-quick-links h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .mobile-quick-links ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .mobile-quick-links li {
    margin-right: 0;
  }
  
  .mobile-quick-links li a {
    font-size: 13px;
    padding: 4px 0;
  }
  
  /* Right section adjustments */
  .mobile-right-section {
    width: 100%;
    gap: 15px;
  }
  
  .mobile-follow-us h3,
  .mobile-contact-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .mobile-social-icons {
    gap: 12px;
    margin-bottom: 5px;
  }
  
  .mobile-social-icons a {
    font-size: 16px;
  }
  
  .mobile-contact-detail {
    font-size: 13px;
  }
  
  .mobile-contact-detail i {
    font-size: 13px;
  }
  
  /* Address section */
  .mobile-addresses {
    margin-top: 15px;
  }
  
  .mobile-addresses .contact-item {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.4;
    align-items: flex-start;
  }
  
  .mobile-addresses .contact-item i {
    font-size: 12px;
    margin-top: 3px;
    min-width: 12px;
  }
  
  /* Ensure long address lines wrap cleanly */
  .mobile-addresses .contact-item span {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  
  /* Copyright section */
  .footer-copyright {
    margin-top: 15px;
    padding-top: 12px;
    font-size: 11px;
    line-height: 1.4;
  }
  
  .footer-copyright a {
    font-size: 11px;
    margin: 0 3px;
  }
  
  /* Logo and company name adjustments */
  .mobile-logo-brand {
    margin-bottom: 15px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .mobile-logo {
    width: 65px;
    margin: 0 auto;
  }
  
  .mobile-company-name-main {
    font-size: 14px;
  }
  
  .mobile-company-name-sub {
    font-size: 12px;
  }
}

/* Additional adjustments for very small heights */
@media (max-width: 360px) and (max-height: 640px) {
  .footer {
    padding: 20px 12px 12px;
  }
  
  .mobile-addresses .contact-item {
    margin-bottom: 8px;
    font-size: 11px;
  }
}