/* ============================================
   AGSC – Anchor Guards & Security Company
   Style Sheet – Navy Blue & Gold Theme
   ============================================ */

/* ---- RESET & VARIABLES ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0a1f5c;
  --navy-dark: #071440;
  --navy-mid:  #0d2a7a;
  --gold:      #d4a017;
  --gold-light:#f0c040;
  --gold-dark: #b8860b;
  --white:     #ffffff;
  --off-white: #f5f7ff;
  --gray:      #6b7280;
  --light-gray:#e5e7eb;
  --shadow:    0 4px 24px rgba(10,31,92,0.13);
  --radius:    12px;
  --transition:0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #1a1a2e;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 0; }

/* ---- SECTION LABELS ---- */
.section-tag {
  display: inline-block;
  background: rgba(212,160,23,0.12);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc { color: var(--gray); font-size: 1.05rem; }
.section-header { text-align: center; margin-bottom: 56px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(212,160,23,0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212,160,23,0.5);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.full-width { width: 100%; text-align: center; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}

.navbar.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  border: 2px solid var(--gold);
  background: #0a1f5c;
  padding: 2px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--gold-light);
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-links a:hover { color: var(--gold-light); background: rgba(255,255,255,0.08); }

.nav-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy-dark) !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212,160,23,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(7,20,64,0.92) 0%, rgba(10,31,92,0.85) 60%, rgba(13,42,122,0.8) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><rect fill="%230a1f5c" width="800" height="600"/><circle cx="400" cy="300" r="200" fill="%230d2a7a" opacity="0.5"/></svg>');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,160,23,0.08) 0%, transparent 70%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.015) 60px,
      rgba(255,255,255,0.015) 61px
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 120px 24px 60px;
}

.hero-badge {
  display: inline-block;
  background: rgba(212,160,23,0.2);
  border: 1px solid rgba(212,160,23,0.5);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-title span {
  color: var(--gold-light);
  display: block;
}

.hero-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-anchor {
  position: absolute;
  right: 8%;
  bottom: 10%;
  font-size: 12rem;
  opacity: 0.05;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-20px); }
}

@keyframes cfPop {
  0%   { transform: scale(0);   opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 48px 0;
  border-top: 3px solid var(--gold);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item { padding: 16px; }

.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-light);
}

.stat-plus {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}

.stat-item p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  text-align: center;
}

.about-logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  border: 5px solid var(--gold);
  background: #0a1f5c;
  padding: 12px;
  box-shadow: 0 0 0 12px rgba(212,160,23,0.12), var(--shadow);
  margin: 0 auto 20px;
}

.about-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
}

.about-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 32px;
}

.feature-item {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(10,31,92,0.15);
  border-color: rgba(212,160,23,0.3);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '⚓';
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22rem;
  opacity: 0.04;
  pointer-events: none;
}

.why-us .section-title { color: var(--white); }
.why-us .section-tag { color: var(--gold-light); background: rgba(212,160,23,0.15); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 36px 24px;
  transition: all var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(212,160,23,0.4);
  transform: translateY(-4px);
}

.why-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 16px;
}

.why-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.why-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--off-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  border: 1px solid var(--light-gray);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(212,160,23,0.15);
  transform: translateX(4px);
}

.contact-icon {
  font-size: 1.6rem;
  min-width: 44px;
  text-align: center;
}

.contact-card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 3px;
}

.contact-card p, .contact-card a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-card a:hover { color: var(--gold-dark); }

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-gray);
}

.contact-form h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-gray);
}

.form-group { margin-bottom: 16px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  color: #1a1a2e;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,160,23,0.12);
}

.form-group textarea { resize: vertical; }

/* ============================================
   APPLY BANNER
   ============================================ */
.apply-banner {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  padding: 72px 0;
  text-align: center;
}

.apply-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.apply-content p {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 32px;
  opacity: 0.85;
}

.apply-banner .btn-gold {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.apply-banner .btn-gold:hover {
  background: var(--navy-dark);
  box-shadow: 0 6px 20px rgba(10,31,92,0.35);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  border: 2px solid var(--gold);
  background: #071440;
  padding: 4px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.footer-trust {
  color: var(--gold-light) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-tagline {
  color: rgba(255,255,255,0.5) !important;
  font-style: italic;
  margin-top: 10px !important;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,160,23,0.3);
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-contact p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.4s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.5s; }
.why-grid .why-card:nth-child(2) { transition-delay: 0.1s; }
.why-grid .why-card:nth-child(3) { transition-delay: 0.2s; }
.why-grid .why-card:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .stats-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    border-bottom: 3px solid var(--gold);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; }

  /* Hero */
  .hero-anchor { font-size: 6rem; }
  .hero-btns   { flex-direction: column; align-items: center; }

  /* About */
  .about-grid  { grid-template-columns: 1fr; gap: 36px; }
  .about-logo  { width: 200px; height: 200px; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why */
  .why-grid { grid-template-columns: 1fr 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  /* Footer */
  .footer-grid  { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .stats-container { grid-template-columns: repeat(2, 1fr); }
  .contact-form  { padding: 28px 20px; }
}

/* ============================================
   APPLICATION PAGE SPECIFIC
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  padding: 120px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p { color: rgba(255,255,255,0.75); font-size: 1rem; }

.app-form-section { background: var(--off-white); padding: 80px 0; }

.app-form-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 56px 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-gray);
}

.form-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 32px 0 20px;
  padding: 10px 16px;
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-row.one   { grid-template-columns: 1fr; }

.app-form-wrap label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  text-align: right;
  direction: rtl;
}

.app-form-wrap input,
.app-form-wrap select,
.app-form-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-size: 0.92rem;
  color: #1a1a2e;
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  direction: rtl;
  font-family: 'Open Sans', sans-serif;
}

.app-form-wrap input:focus,
.app-form-wrap select:focus,
.app-form-wrap textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,160,23,0.1);
}

.form-submit-wrap {
  text-align: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--light-gray);
}

.form-submit-wrap p {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .app-form-wrap { padding: 36px 24px; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
}


/* ============================================
   UNIFORM SECTION
   ============================================ */

.uniform-section {
  background: linear-gradient(160deg, #f5f7ff 0%, #eef1fb 100%);
}

.uniform-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  margin-top: 48px;
}

/* Image side */
.uniform-img-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(10, 31, 92, 0.16);
  border: 2px solid rgba(212, 160, 23, 0.3);
  position: relative;
}

.uniform-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, transparent 70%, rgba(10, 31, 92, 0.08) 100%);
  pointer-events: none;
  z-index: 1;
}

.uniform-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  transition: transform 0.5s ease;
}

.uniform-img-wrap:hover .uniform-img {
  transform: scale(1.02);
}

/* Details side */
.uniform-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.uniform-details-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 2px;
}

.uniform-details-desc {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.8;
}

.uniform-details-desc strong {
  color: var(--navy);
}

/* Feature grid */
.uniform-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.uniform-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  padding: 13px 14px;
  box-shadow: 0 2px 10px rgba(10, 31, 92, 0.05);
  transition: box-shadow 0.25s, transform 0.25s;
}

.uniform-feature:hover {
  box-shadow: 0 6px 22px rgba(10, 31, 92, 0.11);
  transform: translateY(-2px);
}

.uf-icon {
  font-size: 1.45rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.uniform-feature div strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 3px;
}

.uniform-feature div p {
  font-size: 0.76rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

/* Bottom tagline strip */
.uniform-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold-light);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.85rem;
  margin-top: 6px;
}

.uniform-tagline span {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.uniform-tagline em {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .uniform-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .uniform-img-wrap {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 540px) {
  .uniform-features-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   GALLERY PAGE – gallery.php
   ============================================ */

/* ── Hero ── */
.gallery-hero {
  position: relative;
  background: linear-gradient(135deg, #071440 0%, #0a1f5c 55%, #0d2a7a 100%);
  padding: 130px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.gallery-hero::before {
  content: '⚓';
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18rem;
  opacity: 0.04;
  pointer-events: none;
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(7,20,64,0.55) 100%);
  pointer-events: none;
}

.gallery-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.gallery-hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  margin: 14px 0 16px;
  line-height: 1.15;
}

.gallery-hero-content h1 span {
  color: #f0c040;
}

.gallery-hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto 28px;
}

.gallery-hero-sub strong {
  color: #f0c040;
}

.gallery-hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ghs-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* ── Intro strip ── */
.gallery-intro-strip {
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  padding: 22px 0;
}

.gallery-intro-strip p {
  text-align: center;
  color: #4b5563;
  font-size: 0.93rem;
  line-height: 1.8;
  max-width: 820px;
  margin: 0 auto;
}

.gallery-intro-strip strong {
  color: var(--navy);
}

/* ── Gallery section ── */
.gallery-section {
  background: #f5f7ff;
  padding: 80px 0 100px;
}

/* ── Gallery grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* ── Gallery card ── */
.gallery-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 3px 18px rgba(10,31,92,0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(10,31,92,0.15);
}

.gallery-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

.gallery-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-card:hover .gallery-card-img-wrap img {
  transform: scale(1.06);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,31,92,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gc-zoom {
  background: rgba(212,160,23,0.92);
  color: #071440;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.gallery-card-info {
  padding: 20px 22px 24px;
}

.gallery-tag {
  display: inline-block;
  background: rgba(212,160,23,0.12);
  color: #b8860b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.gallery-card-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 9px;
  line-height: 1.35;
}

.gallery-card-info p {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}

/* ── Training Highlights ── */
.training-highlights {
  background: linear-gradient(135deg, #071440 0%, #0a1f5c 100%);
  padding: 80px 0;
}

.th-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.th-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}

.th-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.th-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.th-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #f0c040;
  margin-bottom: 10px;
}

.th-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}

.th-card p strong {
  color: #f0c040;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 40, 0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 75vh;
  overflow: hidden;
}

.lb-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  display: block;
}

.lb-caption {
  margin-top: 18px;
  text-align: center;
  max-width: 680px;
}

.lb-caption strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #f0c040;
  margin-bottom: 6px;
}

.lb-caption p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 8px;
}

#lbCounter {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-close:hover { background: rgba(212,160,23,0.8); color: #071440; }

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover,
.lb-next:hover { background: rgba(212,160,23,0.8); color: #071440; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .th-grid      { grid-template-columns: 1fr 1fr; }
  .lb-prev      { left: 8px; }
  .lb-next      { right: 8px; }
}

@media (max-width: 480px) {
  .th-grid           { grid-template-columns: 1fr; }
  .gallery-hero-stats { flex-direction: column; align-items: center; }
}
