/* ========== BASIC RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== THEME COLORS ========== */
:root {
  --mgl-dark: #103f01;   /* dark green from logo */
  --mgl-light: #89b979;  /* soft green accent */
  --mgl-bg: #f5f5f5;     /* page background */
  --mgl-text: #1f2933;   /* main text */
}

/* ========== BASE ========== */
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--mgl-text);
  background-color: var(--mgl-bg);
}

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

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

/* ========== LAYOUT ========== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
/* ===== HEADER & NAV ===== */

header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 40;
}

/* main header bar */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, nav/right */
  padding: 0.9rem 0;
}

/* nav container (right side) */
.nav {
  display: flex;
  align-items: center;
}
/* brand logo */
.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--mgl-dark);
}

.logo span {
  color: var(--mgl-light);
  font-weight: 700;
}

/* nav links (desktop) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.95rem;
}

/* animated underline */
.nav-links a {
  position: relative;
  padding-bottom: 0.25rem;
  color: var(--mgl-text);
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--mgl-dark);
  border-radius: 999px;
  transition: width 0.25s ease;
}

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

/* mobile burger button */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
}

/* ===== NAV – RESPONSIVE ===== */

@media (max-width: 900px) {
  .nav {
    padding: 0.7rem 0;
  }

  .nav-links {
    position: absolute;
    right: 5%;
    top: 64px; /* about header height */
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: 1.4rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    gap: 0.8rem;
    font-size: 0.9rem;

    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }
}

/* ========== HERO (HOME) ========== */
.hero {
  position: relative;
  padding: 88px 0;
  color: #ffffff;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.06) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(11, 77, 31, 0.75) 0, rgba(4, 33, 12, 0.98) 55%, #021609 100%),
    url("images/mgl-sandblasting-worker.jpg") center/cover no-repeat;
  animation: fadeInUp 0.7s ease-out;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.09), transparent 60%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.hero-image {
  border-radius: 0.9rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.hero-title {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.02rem;
  max-width: 520px;
  margin-bottom: 1.75rem;
  color: #e5e7eb;
}
.hero-text {
  margin-bottom: 32px; /* increase to 32px if you want more space */
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(15, 75, 8, 0.4);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: #fefefe;
  color: var(--mgl-dark);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn:hover {
  background: #f9fafb;
}

/* ========== SECTIONS & CARDS ========== */
section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2.2rem;
  color: var(--mgl-dark);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.4rem 1.35rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
  color: var(--mgl-dark);
}

.card p {
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--mgl-dark);
}

/* product image cards */
.product-card img {
  border-radius: 0.7rem;
  margin-bottom: 0.9rem;
}

/* ========== ABOUT PAGE ========== */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-layout h1 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: var(--mgl-dark);
}

.about-layout p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.about-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
}

.about-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  color: var(--mgl-dark);
}

.about-card p {
  margin-bottom: 0.5rem;
}

/* ========== SERVICES PAGE ========== */
.page-intro {
  max-width: 650px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  text-align: center;
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.contact-panel {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  font-size: 0.93rem;
}

.contact-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--mgl-dark);
}

.contact-panel p {
  margin-bottom: 0.6rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.45rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

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

/* ========== FOOTER ========== */
footer {
  background: var(--mgl-dark);
  color: #f9fafb;
  padding: 1.3rem 0;
  margin-top: 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 0;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-inner p {
  margin-bottom: 0.15rem;
}

.footer-inner span {
  display: block;
}

.footer-inner a {
  color: #f9fafb;
  font-weight: 500;
}

/* Footer layout + animated logo */
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* BIGGER logo, still smooth */
.footer-logo {
  width: 110px;      /* was 52px */
  height: 110px;
  border-radius: 50%;
  animation: floatLogo 3.5s ease-in-out infinite alternate;
}

/* Make it still neat on small screens */
@media (max-width: 600px) {
  .footer-logo {
    width: 85px;
    height: 85px;
  }
}

@keyframes floatLogo {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-6px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(0.97);
    opacity: 0.9;
  }
}
/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 60px 0 auto 0;
    background: #ffffff;
    flex-direction: column;
    padding: 0.9rem 1.5rem 1rem;
    gap: 0.9rem;
    border-bottom: 1px solid #e5e7eb;
    display: none;
  }

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

  .hero {
    padding: 3.2rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .about-layout,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}