/* ====================================================
   DJ Mex Corp — main.css
   Design system: teal #13b1cd · navy #0f1923 · Inter
   ==================================================== */

/* 1. Reset & Variables */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --teal:       #13b1cd;
  --teal-dark:  #0e8fa5;
  --teal-light: #e8f8fc;
  --navy:       #0f1923;
  --navy-mid:   #1a2a38;
  --bg:         #f8fafc;
  --white:      #ffffff;
  --text:       #1a202c;
  --muted:      #4a5568;
  --border:     #e2e8f0;
  --shadow-sm:  0 2px 12px rgba(0,0,0,.07);
  --shadow-md:  0 8px 30px rgba(0,0,0,.12);
  --r-card:     10px;
  --r-btn:      6px;
  --r-input:    6px;
  --container:  1200px;
  --font:       'Inter', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* 2. Typography */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem,5vw,3.25rem); }
h2 { font-size: clamp(1.5rem,3.5vw,2.25rem); }
h3 { font-size: clamp(1.1rem,2.5vw,1.35rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}

/* 3. Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark p, .section--dark h2 { color: var(--white); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { max-width: 640px; margin: 0 auto; }

/* 4. Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .3s, box-shadow .3s;
  padding: 0 1.5rem;
}
.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.header-logo img { height: 60px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--teal); }
.header-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: white;
}
.header-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  margin: 5px 0;
  transition: .3s;
}

/* 5. Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: var(--navy);
  z-index: 999;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  font-weight: 600;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--teal); }

/* 6. Hero (full-viewport slider) */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero .swiper, .hero .swiper-wrapper, .hero .swiper-slide { height: 100%; }
.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,25,35,.55);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  color: white;
}
.hero-content .eyebrow { color: var(--teal); }
.hero-content h1 { color: white; margin-bottom: 1rem; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-content p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 2rem; max-width: 560px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero .swiper-pagination-bullet { background: white; opacity: .5; }
.hero .swiper-pagination-bullet-active { background: var(--teal); opacity: 1; }

/* 7. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.6rem;
  border-radius: var(--r-btn);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--teal); color: white; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: white; }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: white; color: var(--navy); border-color: white; }
.btn-outline-dark { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline-dark:hover { background: var(--teal); color: white; }

/* 8. Stats bar */
.stats-bar {
  background: var(--navy);
  padding: 2.5rem 0;
}
.stats-bar .container { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.stat-item {
  text-align: center;
  padding: 1rem 3rem;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label { font-size: .85rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; }

/* 9. Feature cards */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; }

/* 10. Announcement slider */
.announce-section { background: var(--bg); padding: 4rem 0; }
.announce-slider-wrap { position: relative; }
.announce-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.announce-slide.active { display: flex; }
.announce-eyebrow { color: var(--teal); }
.announce-slide h3 { font-size: clamp(1.2rem,3vw,1.6rem); margin-bottom: 1rem; max-width: 700px; }
.announce-slide p { max-width: 640px; margin: 0 auto 1.5rem; }
.announce-slide img { border-radius: var(--r-card); max-height: 360px; object-fit: cover; margin: 1.5rem auto; box-shadow: var(--shadow-md); }
.announce-nav { display: flex; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.announce-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.announce-dot.active { background: var(--teal); transform: scale(1.3); }

/* 11. Event cards (homepage recent + events page) */
.event-card {
  background: var(--white);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.event-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.event-card:hover .event-card__img img { transform: scale(1.04); }
.event-card__body { padding: 1.25rem; }
.event-card__meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.event-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--teal-light);
  color: var(--teal-dark);
}
.event-card__date { font-size: .8rem; color: var(--muted); }
.event-card h3 { font-size: 1rem; color: var(--text); }
.event-card__body a.event-card-link { display: block; }
.event-card__body a.event-card-link:hover h3 { color: var(--teal); }

/* 12. Events page filter */
.events-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; justify-content: center; }
.filter-btn {
  padding: .4rem 1.1rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  color: var(--muted);
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.active { background: var(--teal); border-color: var(--teal); color: white; }
.event-card.hidden { display: none; }

/* 13. Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  padding: 9rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(19,177,205,.18) 0%, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: white; margin-bottom: .75rem; }
.breadcrumb-nav { font-size: .85rem; color: rgba(255,255,255,.55); }
.breadcrumb-nav a { color: rgba(255,255,255,.65); }
.breadcrumb-nav a:hover { color: var(--teal); }

/* 14. Process CTA band */
.cta-band {
  background: var(--navy);
  background-image: url('../img/djl/factory.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 6rem 0;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,25,35,.72);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: white; margin-bottom: 1.5rem; }

/* 15. Portfolio gallery */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1rem; }
.portfolio-item {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.portfolio-item:hover img { transform: scale(1.07); }
.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,25,35,.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  color: white;
  text-align: center;
  padding: 1rem;
}
.portfolio-item:hover .overlay { opacity: 1; }
.overlay-title { font-size: .9rem; font-weight: 600; }
.overlay-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; }
.portfolio-item.hidden { display: none; }
.portfolio-item > a.glightbox {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: zoom-in;
}
.portfolio-section-label {
  grid-column: 1/-1;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  padding-bottom: .5rem;
  margin-top: 1rem;
}

/* 16. Process sections */
.process-bullets { list-style: none; }
.process-bullets li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
  margin-bottom: .4rem;
  font-size: .9rem;
}
.process-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--teal);
}
.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.process-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.process-card-body { padding: 1.25rem; }
.process-card-body h3 { margin-bottom: .5rem; }
.overview-bullet {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--teal);
  background: var(--teal-light);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  margin-bottom: .75rem;
}
.overview-bullet p { margin: 0; color: var(--text); font-size: .9rem; }
video { border-radius: var(--r-card); }
.video-container video { width: 100%; }
.process-video-label { font-weight: 600; color: var(--text); margin-bottom: .75rem; text-align: center; }

/* 17. Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.office-info { margin-bottom: 1.5rem; }
.office-name { font-weight: 700; color: var(--teal); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.office-info p { font-size: .9rem; line-height: 1.8; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19,177,205,.12);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.map-embed { border-radius: var(--r-card); overflow: hidden; margin-bottom: 1.5rem; }
.map-embed iframe { width: 100%; height: 240px; border: none; display: block; }

/* 18. Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); }
.footer-main {
  padding: 3.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img { height: 46px; margin-bottom: 1rem; }
.footer-brand p { font-size: .85rem; max-width: 260px; line-height: 1.7; }
.footer-col h4 { color: white; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .875rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-col address { font-style: normal; font-size: .875rem; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-partners { display: flex; align-items: center; gap: 1rem; }
.footer-partners img { height: 40px; width: auto; transition: opacity .2s; }
.footer-partners img:hover { opacity: .8; }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.4); }
.epa-id { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: .25rem; }

/* 19. About page */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.about-images img { border-radius: var(--r-card); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-text .block + .block { margin-top: 2rem; }
.about-text h2 { margin-bottom: .75rem; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1rem; }
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.partner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.partner-card h4 { font-size: .95rem; color: var(--text); }
.partner-card p { font-size: .8rem; }

/* 20. Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* 21. Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  z-index: 900;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(19,177,205,.4);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top svg { width: 18px; height: 18px; }

/* 22. Event detail pages */
.event-meta-block {
  border-left: 4px solid var(--teal);
  background: var(--teal-light);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--r-card) var(--r-card) 0;
  margin-bottom: 2rem;
}
.event-meta-block h3 { margin-bottom: .25rem; }
.event-meta-block p { font-size: .9rem; color: var(--muted); margin: 0; }
.back-link { font-size: .9rem; font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: .3rem; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--teal-dark); }

/* 23. Utilities */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* 24. Responsive */
@media (max-width: 991px) {
  .header-nav { display: none; }
  .header-hamburger { display: block; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stat-item { padding: .75rem 1.5rem; }
}
@media (max-width: 767px) {
  .section { padding: 3rem 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-bar .container { flex-direction: column; gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat-item:last-child { border-bottom: none; }
  .hero-content p { font-size: 1rem; }
  .about-images { grid-template-columns: 1fr 1fr; }
  .cta-band { background-attachment: scroll; }
  .portfolio-grid { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); }
}
@media (max-width: 480px) {
  .about-images { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
}
