/* 
  Archive Nexus Solutions Ltd - Main Stylesheet
  Primary: #003333 (navy teal)
  Secondary: #ff9900 (orange accent)
  Text: #333333
  Background: #F5F2E9
  Support Teal: #15827C
  Gold: #D4AF37
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --primary-color: #003333;
  --secondary-color: #ff9900;
  --text-color: #333333;
  --bg-color: #F5F2E9;
  --support-teal: #15827C;
  --gold: #D4AF37;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --app-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Open Sans', sans-serif;
  
  --nav-height: 70px;
  --bottom-nav-height: 65px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  padding-top: var(--nav-height);
  padding-bottom: var(--bottom-nav-height); /* For mobile nav */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0; /* No bottom nav on desktop */
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--support-teal);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

p {
  margin-bottom: 1.5rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }
.bg-white { background-color: var(--white); }
.bg-primary { background-color: var(--primary-color); color: var(--white); }
.bg-primary h2, .bg-primary p { color: var(--white); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}
.btn-primary:hover {
  background-color: #e68a00;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* ================= HEADER / DESKTOP NAV ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo i {
  color: var(--secondary-color);
}
.nav-logo {
  height: 1.5rem;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.desktop-nav a {
  color: var(--text-color);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--border-radius);
}

.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--primary-color);
  background-color: rgba(0, 51, 51, 0.05);
}

@media (min-width: 769px) {
  .desktop-nav {
    display: block;
  }
}

/* ================= MOBILE BOTTOM NAV ================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background-color: var(--white);
  box-shadow: var(--app-shadow);
  z-index: 1000;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}
.mobile-bottom-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-item {
  flex: 0 0 auto;
  min-width: 75px; /* Ensures items don't shrink too much, allows scroll */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #888;
  padding: 8px 12px;
  scroll-snap-align: start;
  transition: var(--transition);
}

.nav-item i {
  font-size: 1.2rem;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.nav-item span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-item.active {
  color: var(--primary-color);
}
.nav-item.active i {
  color: var(--secondary-color);
  transform: scale(1.1);
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-image: linear-gradient(rgba(0, 51, 51, 0.8), rgba(0, 51, 51, 0.9)), url('https://images.unsplash.com/photo-1507676184212-d0c30a430b02?auto=format&fit=crop&q=80&w=1920');
}

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero {
    padding: 10rem 0;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* ================= SERVICES CARDS ================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--support-teal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  border-top-color: var(--secondary-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ================= ABOUT PREVIEW ================= */
.about-preview {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .about-preview {
    flex-direction: row;
  }
}

/* ================= CTA BANNER ================= */
.cta-banner {
  background-color: var(--support-teal);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}
.cta-banner h2 {
  color: var(--white);
}

/* ================= FOOTER ================= */
.site-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col p, .footer-col ul {
  color: rgba(255,255,255,0.8);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.8);
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* ================= FLOATING WHATSAPP ================= */
.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 80px; /* Above mobile nav */
  right: 20px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

@media (min-width: 769px) {
  .whatsapp-float {
    bottom: 40px;
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

/* ================= FORMS ================= */
.form-group {
  margin-bottom: 1.5rem;
}
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ================= VALUES LIST ================= */
.values-list {
  list-style: none;
  padding: 0;
}
.values-list li {
  background: var(--white);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
  font-weight: 600;
}

/* ================= PAGE HEADER ================= */
.page-header {
  background-color: var(--primary-color);
  padding: 4rem 0 2rem;
  text-align: center;
  color: var(--white);
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 0;
}

/* ================= INSTALL APP BUTTON ================= */
.install-app-btn {
  position: fixed;
  bottom: 80px; /* same as whatsapp-float on mobile */
  left: 20px;
  background: rgba(0, 51, 51, 0.6);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 999;
  opacity: 0;
  pointer-events: none; /* Prevent clicks when hidden */
  transition: opacity 0.6s ease;
  display: none; /* Hidden until installable */
}

@media (min-width: 769px) {
  .install-app-btn {
    bottom: 40px;
  }
}

@keyframes breathing {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.6; transform: scale(1); }
}

.install-app-btn.active {
  animation: breathing 3s ease-in-out infinite;
  pointer-events: auto; /* Clickable when active */
}

/* ================= APP INSTALLED BADGE ================= */
.app-installed-badge {
  position: fixed;
  bottom: 80px; /* same as whatsapp-float on mobile */
  left: 20px;
  background: rgba(0, 51, 51, 0.4);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  pointer-events: none; /* Never clickable */
}

@media (min-width: 769px) {
  .app-installed-badge {
    bottom: 40px;
  }
}
