/* =============================================
   FRAMECRETE — Global Template Styles v6
   Enhanced with animations & micro-interactions
   ============================================= */

/* Google Fonts loaded via <link> in HTML head for faster rendering */

/* === CSS Variables === */
:root {
  --red: #B21F1F;
  --red-hover: #8a1818;
  --dark: #101014;
  --dark-gray: #28282C;
  --medium-text: #3D3D47;
  --light-text: #D0D1DB;
  --off-white: #FAFAFA;
  --white: #FFFFFF;
  --overlay-light: rgba(16, 16, 20, 0.3);
  --overlay-dark: rgba(16, 16, 20, 0.75);
  --card-bg: rgba(208, 209, 219, 0.15);

  --font-body: 'Manrope', sans-serif;
  --font-product: 'Orbitron', sans-serif;

  --container: 1200px;
  --container-wide: 1400px;
  --section-py: 120px;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 100px;

  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Enhanced easing curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--medium-text);
  background: var(--off-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.2;
  color: var(--dark);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}

/* === Page Loader === */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === Scroll Progress Bar === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  z-index: 1001;
  width: 0;
  will-change: width;
}

/* === Badge (pill label) === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

/* === CTA Button === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn--light { background: var(--off-white); color: var(--dark); }
.btn--light:hover { background: var(--white); }
.btn--dark  { background: var(--dark-gray); color: var(--white); }
.btn--dark:hover  { background: var(--dark); }

.btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  margin-left: 12px;
  transition: transform 0.4s var(--ease-out-back);
}

.btn:hover .btn__arrow {
  transform: translateX(6px);
}

.btn__arrow svg { width: 18px; height: 18px; }

/* =============================================
   1. NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(16, 16, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
}

.nav.menu-open {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px 0 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav__logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.nav__logo-location {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

.nav__links { display: flex; align-items: center; gap: 40px; }

.nav__link {
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--white);
  transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 28px; height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile menu overlay */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--dark);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(178, 31, 31, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(178, 31, 31, 0.1) 0%, transparent 50%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 9999;
  padding: 80px 40px 40px;
}

.nav__mobile.active { display: flex; }

.nav__mobile a {
  color: var(--white);
  font-size: 24px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
  padding: 16px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  letter-spacing: 0.5px;
}

.nav__mobile a:first-child {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav__mobile a:hover {
  color: var(--red);
}

.nav__mobile.active a {
  opacity: 1;
  transform: none;
}

.nav__mobile.active a:nth-child(1) { transition-delay: 0.1s; }
.nav__mobile.active a:nth-child(2) { transition-delay: 0.15s; }
.nav__mobile.active a:nth-child(3) { transition-delay: 0.2s; }
.nav__mobile.active a:nth-child(4) { transition-delay: 0.25s; }
.nav__mobile.active a:nth-child(5) { transition-delay: 0.3s; }

/* =============================================
   2. HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--red);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 60px 80px 80px;
  max-width: 700px;
}

.hero__content .btn {
  align-self: flex-start;
}

/* Hero entrance animations */
.hero__badge,
.hero__title,
.hero__text,
.hero__content .btn {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.hero--loaded .hero__badge        { opacity: 1; transform: none; transition-delay: 0.2s; }
.hero--loaded .hero__title        { opacity: 1; transform: none; transition-delay: 0.4s; }
.hero--loaded .hero__text         { opacity: 1; transform: none; transition-delay: 0.6s; }
.hero--loaded .hero__content .btn { opacity: 1; transform: none; transition-delay: 0.8s; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.hero__badge-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

.hero__badge-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
}

.hero__title {
  font-size: 58px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 28px;
  min-height: 220px;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--white);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  transition: opacity 0.5s ease;
}

@keyframes blink { 50% { opacity: 0; } }

.hero__text {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero__image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 80px 20px 20px 0;
}

.hero__image {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__review {
  position: absolute;
  bottom: 40px; right: 40px;
  max-width: 320px;
  background: rgba(34, 34, 34, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero__review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.hero__review-star { color: #FFD700; font-size: 18px; }

.hero__review-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
}

/* =============================================
   3. ABOUT
   ============================================= */
.about {
  padding: var(--section-py) 0;
  background: var(--off-white);
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.about__title {
  font-size: 50px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.15;
}

.about__text { font-size: 18px; line-height: 1.8; color: var(--medium-text); }
.about__text p { margin-bottom: 20px; }
.about__text p:last-child { margin-bottom: 0; }

/* =============================================
   4. IMAGE GALLERY / TICKER
   ============================================= */
.gallery {
  padding: 0 0 40px;
  overflow: hidden;
  position: relative;
}

/* Edge fade effect */
.gallery::before,
.gallery::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.gallery::before {
  left: 0;
  background: linear-gradient(90deg, var(--off-white), transparent);
}

.gallery::after {
  right: 0;
  background: linear-gradient(270deg, var(--off-white), transparent);
}

.gallery__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: gallery-scroll 40s linear infinite;
}

.gallery__track:hover { animation-play-state: paused; }

.gallery__item {
  flex: 0 0 340px;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

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

/* =============================================
   5. STATISTICS
   ============================================= */
.stats {
  padding: var(--section-py) 0;
  background: var(--off-white);
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat__number {
  font-size: 72px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 12px;
  transition: transform 0.3s var(--ease-out-back);
}

/* Red accent line under stat number */
.stat__number::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-top: 16px;
  border-radius: 2px;
}

.stat__label {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.stat__desc {
  font-size: 16px;
  color: var(--medium-text);
  line-height: 1.6;
}

/* =============================================
   6. SERVICES / ADVANTAGE (Accordion)
   ============================================= */
.services {
  padding: var(--section-py) 0;
  background: var(--off-white);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.services__header {
  text-align: center;
  margin-bottom: 64px;
}

.services__title {
  font-size: 50px;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 16px;
}

.services__subtitle {
  font-size: 18px;
  color: var(--medium-text);
}

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

.services__image {
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 120px;
}

.services__image img { width: 100%; height: auto; }

/* Accordion */
.accordion { display: flex; flex-direction: column; }

.accordion__item { border-bottom: 1px solid rgba(0,0,0,0.08); }

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  color: var(--dark);
  transition: background 0.3s ease;
  border-radius: 8px;
}

.accordion__header:hover {
  background: rgba(0,0,0,0.02);
}

.accordion__icon-title {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.accordion__icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-back);
}

.accordion__item.active .accordion__icon {
  transform: scale(1.1);
}

.accordion__icon svg { width: 26px; height: 26px; }

.accordion__item-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--dark);
}

.accordion__toggle {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--dark);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out-back);
}

.accordion__item.active .accordion__toggle { transform: rotate(45deg); }

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion__item.active .accordion__body { max-height: 300px; }

.accordion__body-inner {
  padding: 0 0 24px 52px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--medium-text);
}

/* =============================================
   7. TECHNOLOGY
   ============================================= */
.technology {
  padding: var(--section-py) 0;
  background: var(--off-white);
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

.technology__header {
  text-align: center;
  margin-bottom: 64px;
}

.technology__title {
  font-size: 50px;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.technology__text {
  font-size: 18px;
  color: var(--medium-text);
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* Tech Cards (Steel Framing / AAC Panels) */
.tech-card {
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto 40px;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.tech-card--light { background: var(--card-bg); }
.tech-card--dark  { background: var(--red); color: var(--white); }

.tech-card__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}

.tech-card__image {
  overflow: hidden;
  padding: 32px;
}

.tech-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.6s var(--ease-out-expo);
}

.tech-card:hover .tech-card__image img {
  transform: scale(1.05);
}

.tech-card__content {
  padding: 48px 48px 48px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-card__title {
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--dark);
}

.tech-card--dark .tech-card__title { color: var(--white); }

.tech-card__desc {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--medium-text);
}

.tech-card--dark .tech-card__desc { color: rgba(255,255,255,0.85); }

.tech-card__tags { display: flex; gap: 12px; margin-bottom: 28px; }

.tech-card__tag {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s var(--ease-out-back);
}

.tech-card__tag:hover {
  transform: scale(1.05);
}

.tech-card__quote { padding-left: 0; }

.tech-card__quote-mark {
  font-size: 36px;
  font-weight: 700;
  color: var(--medium-text);
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.5;
}

.tech-card--dark .tech-card__quote-mark { color: var(--white); }

.tech-card__quote-text {
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  color: var(--medium-text);
  margin-bottom: 16px;
}

.tech-card--dark .tech-card__quote-text { color: rgba(255,255,255,0.85); }

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

.tech-card__citation-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--dark-gray);
}

.tech-card__citation-avatar img { width: 100%; height: 100%; object-fit: cover; }

.tech-card__citation-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
}

.tech-card--dark .tech-card__citation-name { color: var(--white); }

/* =============================================
   8. PRODUCTS
   ============================================= */
.products {
  padding: var(--section-py) 0;
  background: var(--off-white);
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}

.products__header {
  text-align: center;
  margin-bottom: 64px;
}

.products__title {
  font-size: 50px;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 16px;
}

.products__text {
  font-size: 18px;
  color: var(--medium-text);
  max-width: 620px;
  margin: 0 auto;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 16px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: default;
}

.product-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover .product-card__image { transform: scale(1.08); }

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.product-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-card:hover .product-card__desc {
  opacity: 1;
  transform: none;
}

.product-card__name {
  font-family: var(--font-product);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: letter-spacing 0.4s var(--ease-out-expo);
}

.product-card:hover .product-card__name {
  letter-spacing: 3px;
}

/* =============================================
   9. FAQ
   ============================================= */
.faq {
  padding: var(--section-py) 0;
  background: var(--off-white);
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.faq__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.faq__left {
  position: sticky;
  top: 120px;
}

.faq__title {
  font-size: 50px;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 16px;
  line-height: 1.15;
}

.faq__subtitle {
  font-size: 18px;
  color: var(--medium-text);
  margin-bottom: 32px;
}

/* FAQ CTA button — high visibility variant */
.faq__left .btn {
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(178, 31, 31, 0.3);
}

.faq__left .btn:hover {
  background: var(--red-hover);
  box-shadow: 0 6px 24px rgba(178, 31, 31, 0.4);
  transform: translateY(-2px);
}

.faq__left .btn .btn__arrow {
  background: var(--white);
  color: var(--red);
}

.faq__accordion .accordion__item {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: none;
  padding: 0 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq__accordion .accordion__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.faq__accordion .accordion__header { padding: 20px 0; }
.faq__accordion .accordion__item-title { font-size: 18px; }
.faq__accordion .accordion__body-inner { padding: 0 0 20px 0; font-size: 15px; }

/* =============================================
   10. CONTACT
   ============================================= */
.contact {
  background: var(--red);
  padding: var(--section-py) 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

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

.contact__left { color: var(--white); }

.contact .badge { background: rgba(255,255,255,0.2); }

.contact__title {
  font-size: 50px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.contact__text {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact__info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.contact__info-label { font-size: 16px; font-weight: 600; color: var(--white); }
.contact__info-value { font-size: 16px; color: rgba(255,255,255,0.8); text-align: right; }

.contact__social-title { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.contact__social-links { display: flex; gap: 16px; }

.contact__social-link {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.3s var(--ease-out-back), opacity 0.3s ease;
}

.contact__social-link:hover {
  opacity: 0.7;
  transform: translateY(-3px);
}

.contact__social-link svg { width: 24px; height: 24px; fill: currentColor; }

/* Contact Form */
.contact__form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 15px; font-weight: 500; color: var(--white); }
.form-group .required { color: rgba(255,255,255,0.6); }

.form-group input,
.form-group textarea {
  padding: 16px 20px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 4px rgba(16, 16, 20, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #999; }

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

.form__submit {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--dark-gray);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.form__submit:hover { background: var(--dark); transform: translateY(-2px); }
.form__submit:active { transform: translateY(0); }

.form__success {
  display: none;
  text-align: center;
  padding: 48px 32px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 18px;
}

.form__success.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: successFadeIn 0.6s var(--ease-out-expo);
}

@keyframes successFadeIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: none; }
}

.form__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 4px;
}

.form__success h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
}

.form__success p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 320px;
}

/* =============================================
   11. FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  padding: 80px 0 40px;
  color: var(--light-text);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer__logo { margin-bottom: 20px; }
.footer__logo-img { height: 100px; width: auto; opacity: 0.8; }

.footer__links-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
}

.footer__links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer__link {
  font-size: 16px;
  color: var(--light-text);
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s var(--ease-out-expo);
}

.footer__link:hover { color: var(--white); }
.footer__link:hover::after { width: 100%; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__copyright { font-size: 14px; color: var(--light-text); }
.footer__credit    { font-size: 14px; color: var(--light-text); }

/* =============================================
   12. SCROLL ANIMATIONS
   ============================================= */
/* Default: fade up */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Directional variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   13. RESPONSIVE — TABLET (<=1024px)
   ============================================= */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }

  .container, .container-wide { padding: 0 24px; }

  .hero__inner {
    grid-template-columns: 1fr;
    position: relative;
  }
  .hero__content { padding: 120px 40px 60px; max-width: 100%; position: relative; z-index: 2; }
  .hero__title { font-size: 42px; min-height: auto; }
  .hero__image-wrapper { height: 400px; border-radius: 20px; margin: 0 20px 20px; }
  .hero__review { bottom: 20px; right: 20px; max-width: 260px; padding: 16px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__logo-img { height: 18px; }
  .nav__logo-location { font-size: 14px; letter-spacing: 1.5px; }
  .nav__inner { padding: 0 24px; }

  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__title { font-size: 36px; }

  .services__title { font-size: 36px; }
  .services__content { grid-template-columns: 1fr; }
  .services__image { position: relative; top: auto; max-height: 400px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .stat__number { font-size: 48px; }

  .tech-card__inner { grid-template-columns: 1fr; }
  .tech-card__content { padding: 32px; }
  .tech-card__title { font-size: 32px; }
  .tech-card:hover { transform: none; }

  .products__grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 240px); }
  .products__title { font-size: 36px; }

  .faq__inner { grid-template-columns: 1fr; gap: 40px; }
  .faq__left { position: relative; top: auto; }
  .faq__title { font-size: 36px; }

  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__title { font-size: 36px; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .technology__title { font-size: 36px; }

  .gallery::before,
  .gallery::after { width: 60px; }
}

/* =============================================
   14. RESPONSIVE — MOBILE (<=640px)
   ============================================= */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .container-wide { padding: 0 20px; }

  /* Nav — compact logo */
  .nav__logo-img { height: 16px; }
  .nav__logo-location { font-size: 12px; letter-spacing: 1px; }
  .nav__logo { gap: 8px; }
  .nav__inner { padding: 0 20px; }

  /* Hero — image as background with overlay */
  .hero { min-height: 100svh; }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }

  .hero__content {
    padding: 120px 24px 60px;
    min-height: 100svh;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
  }

  .hero__image-wrapper {
    position: absolute;
    inset: 0;
    height: 100%;
    margin: 0;
    border-radius: 0;
    z-index: 0;
  }

  .hero__image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(178, 31, 31, 0.85) 0%,
      rgba(178, 31, 31, 0.5) 25%,
      rgba(16, 16, 20, 0.35) 50%,
      rgba(16, 16, 20, 0.82) 100%
    );
    z-index: 1;
  }

  .hero__title { font-size: 32px; }
  .hero__text { font-size: 16px; color: rgba(255,255,255,0.85); }

  .hero__review {
    display: none;
  }

  .about__title { font-size: 28px; }

  .gallery {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .gallery::before,
  .gallery::after { display: none; }
  .gallery__track {
    gap: 12px;
    padding: 0 16px;
    animation: none !important;
  }
  .gallery__item {
    flex: 0 0 260px;
    height: 240px;
    scroll-snap-align: start;
  }

  .stats__grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .stat__number { font-size: 36px; }
  .stat__label { font-size: 16px; }

  .services__title { font-size: 28px; }
  .accordion__item-title { font-size: 18px; }
  .accordion__header {
    color: var(--dark) !important;
    -webkit-appearance: none;
    appearance: none;
  }
  .accordion__icon svg {
    stroke: var(--dark) !important;
  }

  .technology__title { font-size: 28px; }
  .tech-card__image { padding: 20px; }
  .tech-card__content { padding: 24px 20px; }
  .tech-card__title { font-size: 26px; }

  .products__title { font-size: 28px; }
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 180px);
    gap: 12px;
  }

  /* Product cards — tap to reveal on touch */
  .product-card__name {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .product-card__desc {
    font-size: 12px;
    line-height: 1.4;
  }

  .product-card__overlay {
    padding: 14px;
  }

  /* On touch devices, tap toggles the active state */
  .product-card.active .product-card__desc {
    opacity: 1;
    transform: none;
  }

  .product-card.active .product-card__image {
    transform: scale(1.08);
  }

  .product-card.active .product-card__name {
    letter-spacing: 2px;
  }

  .faq__title { font-size: 28px; }
  .faq__left .btn { width: 100%; justify-content: center; }

  .contact { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .contact__title { font-size: 28px; }
  .contact__info-row { flex-direction: column; gap: 4px; }
  .contact__info-value { text-align: left; }

  .footer__inner { gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  .product-card__desc { font-size: 11px; }
  .product-card__name { font-size: 12px; }
}

/* =============================================
   15. REDUCED MOTION (Accessibility)
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__badge, .hero__title, .hero__text, .hero__content .btn {
    opacity: 1 !important;
    transform: none !important;
  }

  .gallery__track { animation: none !important; }
  .page-loader { display: none !important; }
}
