/* =========================================================
   United Toughened Glass — Main Stylesheet
   ========================================================= */

/* ---------- Root Variables ---------- */
:root {
  --blue: #002e5f;
  --light-blue: #0071c2;
  --muted: #6b7280;
  --bg: #f7fafc;
  --card: #ffffff;
}

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

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#preloader img {
  width: clamp(140px, 15vw, 200px);
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f1724;
  background: var(--bg);
  line-height: 1.6;
  width: 100%;
  font-size: 16px;
  /* NO overflow-x: hidden on body — it breaks footer width */
}

a {
  color: var(--blue);
  text-decoration: none;
}

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

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 ;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---------- Header ---------- */
header {
  width: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #f5f8fb 100%);
  border-bottom: 2px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  width: 100%;
  max-width: 100%;
  margin: 0 ;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
}

nav li a {
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s;
}

nav li a:hover {
  color: var(--light-blue);
}

/* Hamburger - hidden on desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--blue);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero Section ---------- */
.hero-visual {
  width: 100%;
  height: 100vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.background-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.slide-track {
  display: flex;
  height: 100%;
  animation: scrollBackground 45s linear infinite;
  will-change: transform;
}

.slide-track img {
  height: 100%;
  width: auto;
  min-width: 600px;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes scrollBackground {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Hero content — perfectly centered */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Glassmorphism card — proper sizing */
.hero-card {
  width: 100%;
  max-width: 680px;
  padding: 3rem 3rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-card h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-card .tagline {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.92;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #119541;
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.btn-whatsapp:hover {
  background-color: #1da855;
  transform: translateY(-2px);
  color: white;
}

.icon-whatsapp {
  width: 20px;
  height: 20px;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(255,255,255,0.8);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.btn-explore:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
}

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

.section-divider {
  border-bottom: 1px solid #e1e8ed;
}

.heading {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  color: var(--blue);
  margin-bottom: 10px;
  font-weight: 700;
}

.sub {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1rem;
}

/* ---------- Why Choose UTG ---------- */
.why-choose-section {
  background: #f8fafc;
  padding: 80px 20px;
  margin: 60px 0;
  text-align: center;
}

.why-choose-section .heading {
  font-size: 2rem;
  margin-bottom: 10px;
}

.why-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 32px;
}
/* ---------- Grid Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product {
  background: var(--card);
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 46, 95, 0.14);
}

.product h4 {
  color: var(--blue);
  margin-bottom: 8px;
  font-size: 1rem;
}

.product p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 6px;
}

/* ---------- Products Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 46, 95, 0.14);
}

.product-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-image-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.08);
}

.product-hover-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem 1rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.product-card:hover .product-hover-info {
  opacity: 1;
}

.product-hover-info p {
  color: #f9fafb;
  font-size: 0.88rem;
  margin: 0 0 0.4rem;
}

.product-hover-sizes {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.product-card h4 {
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 4px;
}

.product-tags {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.product-dropdown {
  font-size: 0.84rem;
  margin-top: 6px;
}

.product-dropdown summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue);
  list-style: none;
  padding-right: 1.1rem;
  position: relative;
}

.product-dropdown summary::-webkit-details-marker { display: none; }

.product-dropdown summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.product-dropdown[open] summary::after { transform: rotate(180deg); }

.product-dropdown ul {
  margin: 6px 0 0;
  padding-left: 1rem;
}

.product-dropdown li {
  margin-bottom: 3px;
  color: #4b5563;
}

/* ---------- Applications ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.app:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 46, 95, 0.14);
}

.app-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.app-image-wrapper img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s;
}

.app:hover .app-image-wrapper img { transform: scale(1.05); }

.app-hover-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.35), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.app:hover .app-hover-info { opacity: 1; }

.app-hover-btn {
  align-self: flex-start;
  border: none;
  background: #fff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.app h4 {
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 4px;
}

.app-keywords {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.app-dropdown {
  font-size: 0.84rem;
  margin-top: 6px;
}

.app-dropdown summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue);
  list-style: none;
  padding-right: 1.1rem;
  position: relative;
}

.app-dropdown summary::-webkit-details-marker { display: none; }

.app-dropdown summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.app-dropdown[open] summary::after { transform: rotate(180deg); }

.app-dropdown ul {
  margin: 6px 0 0;
  padding-left: 1rem;
}

.app-dropdown li {
  margin-bottom: 3px;
  color: #4b5563;
}

/* ---------- Gallery ---------- */
.gallery-block {
  margin-bottom: 36px;
}

.gallery-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.process-grid video {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s;
}

.process-grid video:hover { transform: translateY(-4px); }

/* ---------- Social Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(11, 46, 72, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(11, 46, 72, 0.14);
}

.social-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-card.instagram .icon {
  background: linear-gradient(135deg, #f09433, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.social-card.facebook .icon {
  background: #1877f2;
  color: #fff;
}

.card-body h3 {
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 4px;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Contact Section ---------- */
.contact-sitemap {
  background: #f8fafc;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-form-box,
.sitemap-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 46, 95, 0.07);
}

.contact-form-box {
  border-top: 4px solid var(--blue);
}

.sitemap-box {
  border-top: 4px solid var(--light-blue);
}

.contact-form-box h2,
.sitemap-box h2 {
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 8px;
}

.utg-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 194, 0.12);
}

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

.btn-blue {
  background-color: var(--blue);
  color: white;
  padding: 11px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
  font-family: inherit;
}

.btn-blue:hover {
  background-color: var(--light-blue);
}

.map-embed {
  margin-top: 14px;
}

.map-embed iframe {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: 10px;
}

/* =========================================================
   FOOTER — DEFINITIVE FIX
   Must be direct child of <body>, never inside <main>
   ========================================================= */
footer {
  display: block;
  width: 100%;
  background: var(--blue);
  padding: 56px 0 0;
  box-sizing: border-box;
  color: #c8ddf5;
}

.footer-grid {
  width: 100%;
  max-width: 100%;
  margin: 0 ;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  box-sizing: border-box;
}

.footer-brand p {
  color: #a8c4e0;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 10px;
}

.footer-logo {
  width: 80px;
  height: auto;
}

footer h4 {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  color: #a8c4e0;
  font-size: 0.88rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Contact column */
.footer-contact ul { list-style: none; padding: 0; margin: 0; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: #a8c4e0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact i {
  color: #00bcd4;
  font-size: 1rem;
  min-width: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact a {
  color: #a8c4e0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #00d4ef;
}

/* Footer bottom bar */
.footer-bottom-wrapper {
  width: 100%;
  margin-top: 48px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-sizing: border-box;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: #7aa3c8;
  font-size: 0.85rem;
}

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

/* Tablet */
@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
    gap: 12px;
  }

  nav ul.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero-card h1 {
    font-size: 1.8rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 44px 0;
  }

  .grid-3,
  .products-grid,
  .apps {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 2rem 1.4rem;
  }

  .hero-card h1 {
    font-size: clamp(2.2rem, 3vw, 3rem);
  }

  .hero-card .tagline {
    font-size: clamp(1rem, 1.2vw, 1.3rem);
  }

  .cta-row {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

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

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

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

  .map-embed iframe {
    height: 220px;
  }

  .contact-form-box,
  .sitemap-box {
    padding: 20px 16px;
  }

  .nav {
    padding: 12px 16px;
  }

  .logo img {
    height: 44px;
  }
}
