/* Global styles and CSS variables */
:root {
  --max-width: 1200px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --header-height: 80px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);

  /* Category header colors */
  --cat-1: #0ea5e9; /* Sky */
  --cat-2: #22c55e; /* Green */
  --cat-3: #f59e0b; /* Amber */
  --cat-4: #ef4444; /* Red */
  --cat-5: #8b5cf6; /* Violet */

  --bg: #000000; /* true black for dark theme */
  --panel: #0b1220; /* darker panel */
  --text: #e5e7eb; /* gray-200 */
  --muted: #94a3b8; /* slate-400 */
  --accent: #38bdf8; /* sky-400 */
}

/* Enforce dark color scheme for form controls, scrollbars, etc. */
html { color-scheme: dark; background: var(--bg); }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg); /* solid black background */
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--header-height);
}

/* Utility to force light text on dark backgrounds */
.base-font-color { color: var(--text); }

/* Link colors on dark theme */
a { color: var(--text); }
a:hover { color: #fff; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Header and navigation */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,18,32,.55); /* more translucent */
  backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Ensure consistent left/right padding in header across pages */
.header .container {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  /* Center content around current logo height (32px) */
  padding: calc((var(--header-height) - 32px)/2) 0;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0; /* image-only brand: no extra gap */
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-logo {
  height: 32px; /* smaller navbar logo */
  width: auto;
  display: block;
}

.brand .logo {
  display: grid;
  place-items: center;
  width: 44px; height: 44px; /* larger for taller bar */
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: .65rem .9rem; /* a bit taller/larger */
  border-radius: 8px;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(148,163,184,.15);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(148,163,184,.25);
  padding: .4rem .55rem;
  color: var(--text);
  border-radius: 8px;
}

/* Hero / page header */
.page-hero {
  padding: var(--space-6) 0 var(--space-5);
}
.page-hero h1 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.6rem);
}
.page-hero p { margin: 0; color: var(--muted); }

/* Page hero with banner background */
.page-hero.has-banner {
  position: relative;
  padding: min(30vh, 360px) 0 min(22vh, 260px);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(148,163,184,.18);
  min-height: clamp(480px, 65vh, 860px);
  display: flex;
  align-items: flex-end;
}
.page-hero.has-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,.35), rgba(2,6,23,.65) 40%, rgba(2,6,23,.82));
}
.page-hero.has-banner.no-overlay::before { background: none; }
.page-hero.has-banner .container { position: relative; z-index: 1; }
.page-hero.has-banner h1 { text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.page-hero.has-banner p { color: #e2e8f0; opacity: .95; }

.hero.section.dark-background {
  position: relative;
  min-height: calc(100vh + var(--header-height)); /* compensate for pull-up */
  display: flex;
  align-items: center;
  background-color: var(--bg);
  /* Background image is set inline; ensure proper defaults here too */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover; /* full width/height; may crop to fill */
  /* Pull hero up so its background begins at the very top behind fixed header */
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
}

/* Helper: raise hero content towards top (page-specific) */
.hero.raise {
  align-items: flex-start; /* pin content to top of hero */
}
.hero.raise .container {
  padding-top: calc(var(--header-height) + var(--space-1)); /* even tighter spacing under header */
}
.hero.raise .banner-wrapper {
  margin-top: 0; /* ensure no extra offset */
}
.hero.raise .banner-caption {
  margin-top: var(--space-1); /* even tighter gap under title */
}

/* Page-specific alignment helper: pull hero text further left */
.hero.tight-left .container {
  /* use a small gutter so content isn't flush-left */
  padding-left: var(--space-2);
}

/* Ensure hero text is readable on dark background */
.hero.section.dark-background .banner-title,
.hero.section.dark-background .banner-caption { color: var(--text); }

/* Optional spacer if needed by layout */
.continer-gap { height: 0; }

.banner-wrapper { width: 100%; }
.banner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-5);
  align-items: center;
  justify-items: start; /* ensure content starts from left edge */
}

.col-md-5, .col-md-6 { /* neutralize any unintended defaults */
  padding: 0;
}
/* Ensure all col-md-* helpers don't introduce offset/padding */
[class^="col-md-"] {
  padding: 0;
  margin: 0;
}

.banner-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.6rem);
  line-height: 1.2;
  /* Gradient text effect */
  background: linear-gradient(135deg, #32CD32, #FFD700); /* limegreen to yellow */
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.banner-caption {
  margin: var(--space-3) 0 0;
  color: var(--text);
  opacity: .95;
}

@media (max-width: 1024px) {
  .banner { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: var(--space-5) 0; }
.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
}

/* Larger sub-headers inside the homepage News & Events section */
#news-events h3 {
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2.2rem);
  margin-bottom: var(--space-2);
}

/* Reusable gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #32CD32, #FFD700); /* limegreen to yellow */
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
/* Force single-column stacking when card-stack helper is used */
.card-grid.card-stack {
  grid-template-columns: 1fr;
}
.card {
  background: rgba(15,23,42,.6);
  border: 1px solid rgba(148,163,184,.15);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }

  /* Gradient border utility (works on any element) */
  .gradient-border { position: relative; border-color: transparent; }
  .gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px; /* border thickness */
    background: linear-gradient(135deg, var(--cat-1), var(--cat-5));
    mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
  }
  /* Slight variations by order */
  .gradient-border:nth-child(2)::before {
    background: linear-gradient(135deg, var(--cat-2), var(--cat-3));
  }
  .gradient-border:nth-child(3)::before {
    background: linear-gradient(135deg, var(--cat-4), var(--cat-1));
  }

/* Accordion */
.accordion { display: grid; gap: var(--space-3); }

.acc-item {
  border: 1px solid rgba(148,163,184,.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(11,18,32,.6);
}

.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
}
.acc-title {
  display: flex;
  flex-direction: column;
}
.acc-title .title { font-weight: 700; }
.acc-title .subtitle { color: #e2e8f0; opacity: .95; font-size: .95rem; }

/* Category colored borders or backgrounds */
.acc-header.cat-1 { background: linear-gradient(90deg, rgba(14,165,233,.18), transparent 60%); border-left: 6px solid var(--cat-1); }
.acc-header.cat-2 { background: linear-gradient(90deg, rgba(34,197,94,.18), transparent 60%); border-left: 6px solid var(--cat-2); }
.acc-header.cat-3 { background: linear-gradient(90deg, rgba(245,158,11,.18), transparent 60%); border-left: 6px solid var(--cat-3); }
.acc-header.cat-4 { background: linear-gradient(90deg, rgba(239,68,68,.18), transparent 60%); border-left: 6px solid var(--cat-4); }
.acc-header.cat-5 { background: linear-gradient(90deg, rgba(139,92,246,.18), transparent 60%); border-left: 6px solid var(--cat-5); }

.acc-icon { color: var(--muted); }

.acc-panel {
  display: grid;
  grid-template-columns: 1fr; /* stack cards vertically */
  gap: var(--space-3);
  padding: var(--space-3);
}

/* Closed by default; open when parent has .open */
.acc-panel { display: none; }
.acc-item.open .acc-panel { display: grid; }

/* Minor affordances */
.acc-header:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-header { transition: background-color .2s ease-in-out; }

.product-card {
  background: rgba(2,6,23,.5);
  border: 1px solid rgba(148,163,184,.15);
  border-radius: calc(var(--radius) - 2px);
  padding: var(--space-3);
  padding-bottom: calc(var(--space-3) + 56px); /* reserve space for fixed CTA */
  display: grid;
  grid-template-columns: 1fr; /* mobile: image on top */
  grid-template-rows: auto 1fr; /* image row then details that can stretch */
  gap: var(--space-3);
  position: relative; /* for absolute CTA */
}

.product-card h4 { margin: 0 0 .15rem; }
.product-card .meta { color: var(--muted); font-size: .9rem; }
.product-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; border: 1px solid rgba(148,163,184,.12); }
.product-card .desc { color: var(--text); opacity: .95; margin-top: 0; }
.product-card .media { grid-column: 1; grid-row: 1; }
.product-card .details { grid-column: 1; grid-row: 2; display: grid; grid-template-rows: auto 1fr; gap: var(--space-2); }
.product-card .details .bottom { position: absolute; right: var(--space-3); bottom: var(--space-3); display: flex; justify-content: flex-end; }

@media (min-width: 720px) {
  .product-card {
    grid-template-columns: 280px 1fr; /* desktop: image left, content right */
    align-items: stretch; /* allow details to fill card height */
  }
  .product-card img { height: 100%; aspect-ratio: auto; }
  .product-card .media { grid-column: 1; grid-row: 1; }
  .product-card .details { grid-column: 2; grid-row: 1; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  border: none;
  padding: .55rem .9rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.btn:hover { filter: brightness(1.05); }

/* Footer */
.footer {
  background: linear-gradient(135deg, rgba(11,18,32,.8), rgba(15,23,42,.9));
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--cat-1), var(--cat-5)) 1;
  color: var(--text);
  padding: var(--space-6) 0 var(--space-4);
  margin-top: var(--space-6);
  position: relative;
  backdrop-filter: blur(10px);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cat-1), var(--cat-5), transparent);
}

/* Footer contact section styling */
.footer #contact-us h3 {
  background: linear-gradient(135deg, #32CD32, #FFD700);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  font-weight: 700;
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  margin-bottom: var(--space-4);
  text-align: left;
}

/* New contact info styling class */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-top: 0;
}

.contact-info-icon i {
  color: var(--cat-1);
  font-size: 1.2rem;
}

.contact-info-text {
  flex: 1;
  line-height: 1.5;
}

.contact-info-text h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  font-weight: 600;
}

.contact-info-text p {
  margin: 0;
  color: var(--text);
}

.footer .social-media {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer .social-media-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cat-1), var(--cat-5));
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer .social-media-item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.footer .social-media-item i {
  font-size: 1.1rem;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0;
  padding: .65rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 140, 126, 0.35);
}

.whatsapp-button i {
  font-size: 1.2rem;
}

/* Footer copyright section */
.footer .container:last-child {
  text-align: left;
  padding-top: var(--space-4);
  margin-top: var(--space-4);
}

.footer .container:last-child small {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Contact section with background image */
#contact.contact-bg {
  position: relative;
  background-position: left var(--space-4) center; /* align image with container left */
  background-repeat: no-repeat;
  background-size: cover; /* crop to fill area */
  min-height: 520px; /* ensure there's space to display the image */
  background-color: var(--bg); /* fallback color around the contained image */
  margin-top: var(--space-6); /* more gap from About section above */
}
#contact.contact-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,.35), rgba(2,6,23,.65) 40%, rgba(2,6,23,.82));
}
#contact.contact-bg .container {
  position: relative;
  z-index: 1;
}
#contact.contact-bg .section-title { text-align: right; }
#contact.contact-bg .card { margin: 0; }
/* Right-align the contact content block (title + form) */
#contact.contact-bg .contact-content {
  margin-left: auto;
  max-width: 720px;
  display: grid;
  gap: var(--space-4);
  padding-right: var(--space-4);
}

/* Two-column Contact layout (image left, form right) */
#contact .contact-grid {
  display: grid;
  grid-template-columns: 680px 1fr; /* image width matches About card/form width */
  gap: var(--space-5);
  align-items: stretch;
  margin-top: var(--space-6); /* extra gap from previous section */
}
#contact .contact-image {
  background-image: url('../images/banners/contact.jpg'); /* relative to styles.css */
  background-repeat: no-repeat;
  background-position: left center; /* align with container */
  background-size: cover; /* crop to fill column */
  min-height: 520px; /* visible image height */
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,.15);
}
#contact .contact-pane {
  display: grid;
  align-content: start;
  gap: var(--space-4);
}
#contact .contact-pane .section-title { text-align: right; }

@media (max-width: 1024px) {
  #contact .contact-grid { gap: var(--space-4); grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  #contact .contact-grid { grid-template-columns: 1fr; }
  #contact .contact-pane .section-title { text-align: left; }
}

/* New standalone centered gradient H1 class with premium font */
.centered-gradient-title {
  /* Reset all inherited styles */
  all: unset;
  
  /* Display and positioning */
  display: block;
  width: 100%;
  text-align: center;
  
  /* Typography with premium font stack */
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  font-feature-settings: 'kern' 1, 'liga' 1;
  
  /* Gradient text effect */
  background: linear-gradient(135deg, #32CD32, #FFD700);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  
  /* Spacing with larger gaps */
  margin: calc(var(--space-6) * 1.5) auto;
  padding: var(--space-4) 0;
  
  /* Ensure centering */
  box-sizing: border-box;
  
  /* Text rendering optimization */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2-column layout for content-section cards */
#content-section .card-grid.content-cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

/* Numbered card styling */
.numbered-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: var(--space-3) !important;
}

.numbered-card .card-number {
  flex-shrink: 0;
  margin-top: var(--space-1);
}

.numbered-card .card-content {
  flex: 1;
}

.numbered-card .card-content h3 {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.numbered-card .card-content p {
  margin-bottom: 0;
}

/* Circular filled number boxes */
.num-rounded {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cat-1), var(--cat-5)); /* Default: Blue to violet gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  text-align: center;
}

/* Gradient variations for numbered cards to match border patterns */
.numbered-card:nth-child(2) .num-rounded {
  background: linear-gradient(135deg, var(--cat-2), var(--cat-3)); /* Green to amber */
}

.numbered-card:nth-child(3) .num-rounded {
  background: linear-gradient(135deg, var(--cat-4), var(--cat-1)); /* Red to sky */
}

.numbered-card:nth-child(4) .num-rounded {
  background: linear-gradient(135deg, var(--cat-5), var(--cat-2)); /* Violet to green */
}

.numbered-card:nth-child(5) .num-rounded {
  background: linear-gradient(135deg, var(--cat-3), var(--cat-4)); /* Amber to red */
}

.numbered-card:nth-child(6) .num-rounded {
  background: linear-gradient(135deg, var(--cat-1), var(--cat-3)); /* Sky to amber */
}

.numbered-card:nth-child(7) .num-rounded {
  background: linear-gradient(135deg, var(--cat-2), var(--cat-5)); /* Green to violet */
}

.numbered-card:nth-child(8) .num-rounded {
  background: linear-gradient(135deg, var(--cat-4), var(--cat-5)); /* Red to violet */
}

/* We Provide section - Different gradient colors */
.we-provide-numbers .num-rounded {
  background: linear-gradient(135deg, var(--cat-2), var(--cat-4)); /* Green to red gradient */
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  #content-section .card-grid.content-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; }
  .menu-toggle { display: inline-flex; }
  .card-grid, .acc-panel { grid-template-columns: 1fr; }
  
  /* Force content-section cards to stack on mobile */
  #content-section .card-grid.content-cards {
    grid-template-columns: 1fr;
  }
}

/* Desktop layout for product cards: image left, content right */
@media (min-width: 720px) {
  .product-card { grid-template-columns: 280px 1fr; align-items: start; }
  .product-card img { height: 100%; aspect-ratio: auto; }
}
