/* ============================================================
   Glass Media 360 — Global Stylesheet
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #222;
  background: #fff;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

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

.section-pad {
  padding: 72px 0;
}

.text-center { text-align: center; }
.text-white  { color: #fff; }

hr.solid {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  margin: 32px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  border: 2px solid transparent;
}

.btn-primary {
  background: #7ab317;
  color: #fff;
  border-color: #7ab317;
}

.btn-primary:hover {
  background: #5f8d0f;
  border-color: #5f8d0f;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #111;
}

/* ============================================================
   NAVIGATION / HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 5%;
}

.nav-logo img {
  height: 46px;
  width: auto;
}

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

.nav-links a {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #7ab317;
  transition: width 0.25s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

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

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-container {
  position: relative;
  min-height: 100vh;
  background-color: #000; /* fallback while video loads */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 68px;
  overflow: hidden;
}

/* ---- Video background ---- */
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* ---- Dark overlay for text legibility ---- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 1;
}

/* Ensure all hero children sit above the video and overlay */
.hero-container > *:not(.hero-video-bg):not(.hero-overlay) {
  /* position: relative; */
  z-index: 2;
}

/* Respect reduced-motion preference — fall back to static bg */
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg {
    display: none;
  }
  .hero-container {
    background-image: url('images/gm360-bg.webp');
    background-size: cover;
    background-position: center;
  }
}

.hero-inner {
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.hero-logo-center {
  text-align: center;
  padding: 28px 0 0;
}

.hero-logo-center img {
  height: 80px;
  margin: 0 auto;
}

.hero-text {
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1.5;
  margin-top: 40px;
  letter-spacing: 0.02em;
}

.hero-text strong {
  font-weight: 700;
  color: #7ab317;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-footer-img {
  position: absolute;
  right: 5%;
  bottom: 5%;
}

.hero-footer-img img {
  width: 220px;
}

/* ============================================================
   INDUSTRY ROW
   ============================================================ */
.industry-row {
  background-color: #e8e8e8;
  display: flex;
  flex-wrap: wrap;
}

.industry-column {
  flex: 1 1 33.33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.industry-column:hover {
  background: #d4d4d4;
}

.industry-column a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #222;
  text-decoration: none;
}

.industry-container {
  height: 160px;
  width: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 6px solid #111;
  font-size: 4.5rem;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}

.industry-column:hover .industry-container {
  border-color: #7ab317;
  color: #7ab317;
}

/* ============================================================
   BRIDGE / INTRO SECTION
   ============================================================ */
.bridge-section {
  padding: 80px 0;
  text-align: center;
}

.bridge-section img.bridge-img {
  width: 50%;
  max-width: 600px;
  margin: 0 auto 32px;
}

.bridge-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.bridge-section p {
  max-width: 720px;
  margin: 0 auto 12px;
  font-size: 1rem;
  color: #444;
}

/* ============================================================
   SERVICES LIST SECTION
   ============================================================ */
.services-list-section {
  padding: 60px 0;
  text-align: center;
  background: #f7f7f7;
}

.services-list-section h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #111;
}

.services-list-section .service-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #333;
  transition: color 0.2s;
}

.services-list-section .service-item:hover {
  color: #7ab317;
}

.services-list-section .service-item a {
  color: inherit;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 60px 0 20px;
  font-weight: 300;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  width: 80%;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 160px;
  min-width: 140px;
}

.footer-column h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #7ab317;
  font-weight: 600;
}

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

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

.footer-column ul li a {
  color: #bbb;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: #7ab317;
}

.copyright {
  text-align: center;
  margin-top: 48px;
  font-size: 0.72rem;
  color: #666;
  letter-spacing: 0.04em;
}

.copyright img {
  height: 40px;
  margin: 0 auto 12px;
}

/* ============================================================
   INNER PAGE HERO (page banner)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 380px;
  background-color: #000;
  background-image: url('images/gm360-bg.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-top: 68px;
}

.page-hero-content {
  padding: 60px 5% 48px;
  color: #fff;
}

.page-hero-content .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7ab317;
  margin-bottom: 12px;
}

.page-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 700px;
}

.page-hero-content p {
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 16px;
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: #f0f0f0;
  padding: 12px 5%;
  font-size: 0.78rem;
  color: #777;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: #7ab317;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================================
   CONTENT SECTIONS (inner pages)
   ============================================================ */
.content-section {
  padding: 72px 5%;
}

.content-section.bg-light {
  background: #f7f7f7;
}

.content-section.bg-dark {
  background: #111;
  color: #fff;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

.two-col img {
  border-radius: 6px;
  width: 100%;
  object-fit: cover;
}

.two-col .text-block h2 {
  font-size: 1.9rem;
  margin-bottom: 16px;
}

.two-col .text-block p {
  color: #555;
  font-size: 0.97rem;
}

.two-col .text-block.dark p {
  color: #ccc;
}

/* Three-column card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

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

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

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 0.88rem;
  color: #666;
  margin: 0;
}

/* Stat / highlight strip */
.stat-strip {
  background: #7ab317;
  color: #fff;
  padding: 48px 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-strip .stat-item h3 {
  font-size: 2.4rem;
  font-weight: 700;
}

.stat-strip .stat-item p {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.9;
}

/* Icon list */
.icon-list {
  list-style: none;
  margin-top: 24px;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #444;
}

.icon-list li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

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

.team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
  background: #ddd;
}

.team-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.8rem;
  color: #7ab317;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Contact form */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #222;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #7ab317;
}

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

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 3px solid #7ab317;
  margin-top: 40px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7ab317;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #7ab317;
}

.timeline-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 48px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, opacity 0.4s;
  opacity: 0.85;
}

.portfolio-item:hover img {
  transform: scale(1.06);
  opacity: 0.6;
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item .overlay h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.portfolio-item .overlay p {
  font-size: 0.8rem;
  color: #7ab317;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: #7ab317;
  transition: transform 0.3s;
}

.faq-question.open::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
}

.faq-answer.open {
  display: block;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  min-height: 100vh;
  background-image: url('images/404_background.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.page-404 .error-box h1 {
  font-size: 8rem;
  font-weight: 700;
  color: #222;
  line-height: 1;
}

.page-404 .error-box h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #333;
}

.page-404 .error-box p {
  color: #555;
  margin-bottom: 32px;
}

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
.hideme {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hideme.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .two-col.reverse {
    direction: ltr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    padding: 20px 5%;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .industry-column {
    flex: 1 1 100%;
  }

  .hero-text {
    font-size: 1.6rem;
  }

  .hero-footer-img {
    display: none;
  }

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

  .footer-content {
    width: 90%;
    flex-direction: column;
    gap: 28px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-text {
    font-size: 1.3rem;
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-404 .error-box h1 {
    font-size: 5rem;
  }
}
