/* ============================================================
   eclipzdigital — Global Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #00b4d8; text-decoration: none; transition: color .25s; }
a:hover { color: #48cae4; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: transform .3s, opacity .3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ccc;
  transition: color .25s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2d2e2d;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: .45;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-label {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00b4d8;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.1rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Hero Slider */
.hero-slides { position: relative; width: 100%; min-height: 100vh; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: background .3s;
}

.hero-dot.active { background: #00b4d8; border-color: #00b4d8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 2px solid #00b4d8;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: background .3s, color .3s, transform .2s;
}

.btn:hover {
  background: #00b4d8;
  color: #1a1a1a;
  transform: translateY(-2px);
}

.btn-fill {
  background: #00b4d8;
  color: #1a1a1a;
}

.btn-fill:hover {
  background: #48cae4;
  color: #1a1a1a;
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-dark { background: #2d2e2d; }
.section-darker { background: #1a1a1a; }

.section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-subtitle {
  text-align: center;
  color: #999;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

.section-label {
  display: block;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00b4d8;
  margin-bottom: 12px;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: #2d2e2d;
  border-radius: 4px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card p {
  color: #aaa;
  font-size: .95rem;
}

/* ---------- Case Studies Grid ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.case-card {
  background: #333;
  border-radius: 4px;
  padding: 32px;
  text-align: center;
  transition: transform .3s, box-shadow .3s, background .3s;
}

.case-card:hover {
  transform: translateY(-4px);
  background: #3a3a3a;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.case-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(0,180,216,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #00b4d8;
}

.case-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-card p {
  color: #999;
  font-size: .9rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2e2d 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cta-banner p {
  color: #aaa;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 24px;
  border: 4px solid #00b4d8;
}

.team-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.team-role {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00b4d8;
  margin-bottom: 16px;
}

.team-card p {
  color: #aaa;
  font-size: .95rem;
  max-width: 420px;
  margin: 0 auto;
}

.team-details {
  margin-top: 16px;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.team-details h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00b4d8;
  margin: 16px 0 6px;
}

.team-details p {
  font-size: .9rem;
  color: #aaa;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-block h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-block p {
  color: #aaa;
  margin-bottom: 24px;
  font-size: .95rem;
}

.contact-form label {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ccc;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: #333;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: .95rem;
  margin-bottom: 20px;
  transition: border-color .3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00b4d8;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Mission Quote ---------- */
.mission-quote {
  background: #2d2e2d;
  border-left: 4px solid #00b4d8;
  padding: 32px 40px;
  margin: 40px 0;
  font-size: 1.15rem;
  color: #ccc;
  font-style: italic;
  line-height: 1.8;
}

/* ---------- Inner Page Hero ---------- */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: #2d2e2d;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.page-hero p {
  color: #999;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Services Detail (inner) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.service-detail:last-child { border-bottom: none; }

.service-detail:nth-child(even) .service-detail-img { order: 2; }
.service-detail:nth-child(even) .service-detail-text { order: 1; }

.service-detail-img img {
  border-radius: 4px;
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.service-detail-text h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-detail-text p {
  color: #aaa;
  margin-bottom: 16px;
  font-size: .95rem;
}

.service-detail-text ul {
  list-style: none;
  margin-bottom: 24px;
}

.service-detail-text ul li {
  color: #aaa;
  font-size: .95rem;
  padding: 4px 0;
}

.service-detail-text ul li::before {
  content: '//';
  color: #00b4d8;
  font-weight: 700;
  margin-right: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  padding: 60px 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

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

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #777;
  font-size: .9rem;
  max-width: 340px;
}

.footer-col h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

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

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

.footer-col ul li a,
.footer-col p {
  color: #777;
  font-size: .9rem;
  transition: color .25s;
}

.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: #555;
  font-size: .8rem;
}

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Map Embed ---------- */
.map-wrap {
  width: 100%;
  height: 350px;
  margin-top: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: .9rem;
  border: 1px solid #444;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail-img { order: 0; }
  .service-detail:nth-child(even) .service-detail-text { order: 0; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(26, 26, 26, .98);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }

  .nav-links.open { max-height: 320px; }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .hero h1 { font-size: 2rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
}
