/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

/* Hero */
.hero {
  background:
    linear-gradient(rgba(33, 39, 86, 0.6), rgba(33, 39, 86, 0.6)),
    url('hero-background.jpeg') center/cover no-repeat;
  background-attachment: fixed;
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, #FA9F23, #F3C587);
}
.hero::before { top: 0; }
.hero::after { bottom: 0; }

.hero-content { max-width: 800px; z-index: 2; }
.hero-logo { width: 180px; height: auto; margin-bottom: 1rem; animation: fadeInDown 1s ease; }
.hero h1 {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.3rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: #FA9F23;
  background: linear-gradient(90deg, #FA9F23 0%, #FA9F23 30%, #FFFFFF 50%, #FA9F23 70%, #FA9F23 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease 0.2s backwards, shimmer 6s linear infinite;
}
.tagline { font-size: 0.95rem; font-weight: 300; font-style: italic; letter-spacing: 0.05rem; color: #FFFFFF; animation: fadeInUp 1s ease 0.4s backwards; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px);} to { opacity: 1; transform: translateY(0);} }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: translateY(0);} }
@keyframes shimmer { 0% { background-position: 200% 0;} 100% { background-position: -200% 0;} }

/* Main */
.main-content { background: #212756; padding: 3.5rem 1.5rem 4rem; }
.container { max-width: 1400px; margin: 0 auto; }
.section-title {
  font-size: 1.9rem; font-weight: 500; text-align: center; letter-spacing: 0.05rem; margin-bottom: 1rem;
  background: linear-gradient(to right, #FA9F23, #F3C587);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* no orange in this paragraph */
.section-description {
  font-weight: 300; font-size: 0.95rem; text-align: center; max-width: 1100px; margin: 0 auto 2rem; line-height: 1.8; color: #FFFFFF;
}
.section-description--larger { font-size: 1.05rem; }
.section-description .company-name { color: inherit !important; }

/* Cards */
.cards-container {
  display: grid; grid-template-columns: repeat(3, minmax(280px, 320px));
  gap: 1.5rem; margin: 2rem 0; justify-content: center;
}
.card-flip { perspective: 1000px; height: auto !important; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-flip:hover { transform: scale(1.03); }
.card-flip:hover .card-front,
.card-flip:hover .card-back {
  box-shadow: 0 0 20px rgba(250, 159, 35, 0.6);
  background-image: linear-gradient(rgba(33, 39, 86, 0.95), rgba(33, 39, 86, 0.95)), linear-gradient(to right, #FA9F23, #F3C587);
}
.card-inner { position: relative; width: 100%; height: auto; transition: transform 0.8s ease; transform-style: preserve-3d; display: grid; min-height:650px !important; }
.card-flip.flipped .card-inner { transform: rotateY(180deg); }

.card-front, .card-back {
  position: relative; width: 100%; height: auto; backface-visibility: hidden;
  background: rgba(255, 255, 255, 0.05); border: 2px solid transparent;
  background-image: linear-gradient(rgba(33, 39, 86, 0.95), rgba(33, 39, 86, 0.95)), linear-gradient(to right, #FFFFFF, #999999);
  background-origin: border-box; background-clip: padding-box, border-box;
  border-radius: 8px; padding: 2rem 1.75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: all 0.3s ease; grid-area: 1 / 1;
}
.card-front { gap: 1.5rem; cursor: pointer; }
.card-back {
  transform: rotateY(180deg);
  text-align: left;
  justify-content: flex-start;
  cursor: pointer;
}

/* orange only on first paragraph in each card */
.card-back .card-lead { color: #F3C587 !important; font-weight: 400; text-align: center; margin: 0.25rem 0 0.8rem; }

/* body text */
.card-back p { font-size: 0.78rem; font-weight: 300; margin-bottom: 0.75rem; line-height: 1.74; color: #E5E5E5; width: 100%; }
.card-back strong { color: #FFFFFF; font-weight: 600; }

/* brand names orange inside cards */
.card-back .company-name { color: #FA9F23; font-weight: 300; }

/* lists */
.card-list { list-style: none; margin: 0.35rem 0 1rem 0.75rem; padding: 0; width: 100%; }
.card-list li { font-size: 0.78rem; font-weight: 300; line-height: 1.7; color: #E5E5E5; margin-bottom: 0.55rem; padding-left: 1.1rem; position: relative; }
.card-list li:before { content: "•"; color: #FA9F23; font-weight: bold; font-size: 1rem; position: absolute; left: 0; top: 0; }

/* FORMIS alignment ANNOYANCE be careful changing */
.formis-card .card-back { padding: 2rem 1.5rem 1.55rem; }
.formis-card .card-logo-small { width: 100px; margin-bottom: 0.6rem; }
.formis-card .card-lead { margin-bottom: 0.55rem !important; line-height: 1.5; }
.formis-card .key-products { font-size: 0.78rem; font-weight: 600; margin: 0.15rem 0 0.35rem; }
.formis-card .card-back p { margin-bottom: 0.6rem; line-height: 1.64; }
.formis-card .card-list { margin: 0.2rem 0 0.45rem 0.75rem; }
.formis-card .card-list li { font-size: 0.76rem; line-height: 1.55; margin-bottom: 0.28rem; }
.formis-card .card-actions { padding-top: 0.5rem; }

/* buttons */
.flip-btn, .btn {
  font-family: 'Outfit', sans-serif;
  background: transparent;
  color: #FFFFFF;
  padding: 0.6rem 1.1rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
  background-image: linear-gradient(#212756, #212756), linear-gradient(to right, #FA9F23, #F3C587);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.flip-btn:hover, .btn:hover { background-image: linear-gradient(to right, #FA9F23, #F3C587), linear-gradient(to right, #FA9F23, #F3C587); color: #212756; transform: scale(1.05); font-weight: 700; }
.card-actions { display: flex; gap: 0.75rem; margin-top: auto; width: 100%; justify-content: center; padding-top: 0.8rem; flex-shrink: 0; }

/* Footer */
.footer {
  background: #2d3464 !important;
  position: relative;
  padding: 1.1rem 0 0.9rem 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 4px;
  background: linear-gradient(to right, #FA9F23, #F3C587) !important;
}
.footer-container {
  max-width: 1600px; margin: 0 auto; padding: 0 2.25rem;
  display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 1.5rem; align-items: center;
}
.footer-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.contact-section { justify-self: start; padding-left: 0; }
.footer-section h4 { color: #FA9F23; font-size: 0.75rem; font-weight: 300; letter-spacing: 0.05rem; margin-bottom: 0; }
.social-link-inline { display: inline-flex; align-items: center; transition: transform 0.3s ease; }
.social-link-inline:hover { transform: scale(1.1); }
.contact-info { margin-bottom: 0.9rem; }
.contact-info p { font-size: 0.75rem; font-weight: 300; margin-bottom: 0.4rem; }
.contact-info a { color: #FFFFFF; text-decoration: none; transition: color 0.3s ease; }
.contact-info a:hover { color: #FA9F23; }
.website-links { margin-top: 0.75rem; font-size: 0.72rem; font-weight: 300; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.website-links a { color: #FFFFFF; text-decoration: none; transition: color 0.3s ease; }
.website-links a:hover { color: #FA9F23; }
.separator { background: linear-gradient(to right, #FA9F23, #F3C587); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: bold; margin: 0 0.5rem; }
.group-logo-section { display: flex; justify-content: center; align-items: center; justify-self: center; }
.hpe-group-logo { width: 100%; max-width: 340px; height: auto; }
.partners-section { display: flex; justify-content: flex-end; align-items: center; justify-self: end; padding-right: 0; }
.partners-content { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.partners-text { font-size: 0.72rem; font-weight: 300; text-align: right; line-height: 1.6; color: #FFFFFF; margin: 0; }
.partners-image { width: 100%; max-width: 340px; height: auto; }

.footer-divider {
  max-width: 1600px; height: 1px; background: rgba(255,255,255,0.12);
  margin: 1rem auto; width: calc(100% - 4.5rem);
}

/* Legal */
.legal-container { max-width: 1600px; margin: 0 auto; padding: 0.6rem 2.25rem 0.6rem; }
.legal-text { max-width: 1100px; margin: 0; text-align: left; }
.legal-title { color: #FA9F23; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.35rem; }
.legal-text p { font-size: 0.7rem; line-height: 1.7; color: #FFFFFF; margin: 0.25rem 0; }
.legal-text .company-name { color: inherit !important; }

/* Responsive */
@media (min-width: 768px) {
  .hero h1 { font-size: 2.6rem; }
  .tagline { font-size: 1.1rem; }
  .section-title { font-size: 2.25rem; }
  .cards-container { grid-template-columns: repeat(3, 1fr); }
  .footer-container { grid-template-columns: 1.3fr 1fr 1.3fr; align-items: center; }
}
@media (min-width: 1024px) {
  .hero { min-height: 34vh; }
  .hero-logo { width: 210px; }
  .hero h1 { font-size: 3rem; }
  .tagline { font-size: 1.3rem; }
  .cards-container { grid-template-columns: repeat(3, minmax(300px, 340px)); }
  .card-logo { width: 188px; }
  .card-logo-small { width: 120px; }
  .card-back p, .card-list li { font-size: 0.82rem; }
}
@media (min-width: 1200px) {
  .section-title { font-size: 2.6rem; }
  .hero h1 { font-size: 3.4rem; }
  .tagline { font-size: 1.5rem; }
  .cards-container { grid-template-columns: repeat(3, minmax(320px, 360px)); }
}
@media (max-width: 767px) {
  .hero { min-height: 35vh; padding: 2rem 1.5rem; }
  .hero-logo { width: 160px; }
  .hero h1 { font-size: 1.75rem; letter-spacing: 0.15rem; }
  .tagline { font-size: 1rem; }
  .main-content { padding: 3rem 1.5rem 4rem; }
  .section-title { font-size: 1.75rem; }
  .section-description { font-size: 1rem; }
  .cards-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-front, .card-back { padding: 2rem 1.5rem; }
  .card-logo { width: 160px; }
  .card-logo-small { width: 120px; }
  .card-back p, .card-list li { font-size: 0.9rem; }
  .card-actions { flex-direction: column; gap: 0.75rem; }
  .flip-btn, .btn { width: 100%; }
  .footer { padding: 1.5rem 1.5rem 1rem; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .partners-content { align-items: center; }
  .partners-text { text-align: center; }
  .footer-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .website-links { flex-direction: column; align-items: flex-start; }
  .separator { display: none; }
  .hpe-group-logo, .partners-image { max-width: 280px; }
  .footer-divider { width: calc(100% - 3rem); margin: 1rem auto; }
}
