/* ============================= */
/* RESET & BASE */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: #111;
  background: #f7f7f8;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================= */
/* VARIABLES */
/* ============================= */

:root {
  --primary: #1f3a8a;
  --primary-dark: #172554;
  --text: #111111;
  --muted: #6b7280;
  --bg: #f7f7f8;
  --card: #ffffff;
  --border: rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.06);
}

/* ============================= */
/* LAYOUT */
/* ============================= */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 247, 248, 0.85);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.mobile-menu-btn {
  display: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  min-width: 0;
}

.logo img {
  display: block;
  height: 70px;
  width: auto;
  max-width: none;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin-left: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  position: relative;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ============================= */
/* LANGUAGE SWITCH */
/* ============================= */

.language-switcher {
  display: inline-flex;
  position: relative; 
  background-color: #f1f5f9; 
  padding: 4px;
  border-radius: 8px; 
  border: 1px solid #e2e8f0;
  gap: 2px;
  z-index: 1; 
}

.language-switcher .slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 40px; 
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); 
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
  z-index: -1; 
}

.language-switcher .lang-btn {
  background-color: transparent; 
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 0;
  width: 40px; 
  text-align: center;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.language-switcher .lang-btn:hover {
  color: #173b6c; 
}

.language-switcher .lang-btn.active {
  color: #046bfc;
  pointer-events: none;
}

.language-switcher:has(.lang-btn:nth-of-type(1).active) .slider {
  transform: translateX(0);
}

.language-switcher:has(.lang-btn:nth-of-type(2).active) .slider {
  transform: translateX(calc(100% + 2px));
}

.language-switcher:has(.lang-btn:nth-of-type(3).active) .slider {
  transform: translateX(calc(200% + 4px));
}

/* ============================= */
/* TYPOGRAPHY HELPERS */
/* ============================= */

.eyebrow,
.section-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ============================= */
/* HERO - DARK PANEL VERSION */
/* ============================= */

.hero {
  background-image: url('assets/images/Banner.png');
  background-size: cover; 
  background-position: right 40%; 
  background-repeat: no-repeat;
  background-color: #0d1117; 
  
  color: #ffffff; 
}


.hero-title {
  font-size: 3.5rem; 
  font-weight: 800; 
  line-height: 1.15; 
  color: #ffffff;
  letter-spacing: -0.02em; 
  margin: 0; 
}

.hero-subtext {
  font-size: 1.125rem; 
  line-height: 1.6; 
  color: rgba(255, 255, 255, 0.85); 
  margin: 0;
}

.hero-panel {
  display: flex;
  align-items: center; 
  min-height: 78vh; 
  padding: 120px 0 80px 0;
}

.hero-actions {
  margin-top: 16px; 
  display: flex;
  gap: 16px; 
}

.hero-actions .btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px; 
}


.hero-copy {
  max-width: 650px; 
  display: flex;
  flex-direction: column;
  gap: 20px; 
}


.btn.hero-secondary {
  border: 1px solid #ffffff;
  color: #ffffff;
  background: transparent;
}
.btn.hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}


@media (max-width: 768px) {
  .hero-panel {
    min-height: unset;
    padding: 32px 20px;
  }
  .hero-title {
    font-size: 22px !important; 
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .hero-subtext {
    font-size: 14px !important;
    margin-bottom: 12px;
  }
  .hero-actions {
    display: flex;
    flex-direction: column; 
    gap: 10px;
    width: 100%;
    margin-top: 20px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-copy {
    max-width: 100%; 
    background: rgba(0, 0, 0, 0.65); 
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(4px); 
  }
  
  .hero {
    background-position: 70% center; 
  }
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(31, 58, 138, 0.25);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  background: #fff;
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================= */
/* SECTION HEADINGS */
/* ============================= */
.section {
  padding: 48px 0; 
}

section-heading {
  text-align: center; 
  max-width: 800px; 
  margin: 0 auto 56px auto; 
  display: flex;
  flex-direction: column;
  align-items: center; 
}

section-label {
  color: #3b82f6; 
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-intro {
  color: #4b5563;
  line-height: 1.6;
  font-size: 1.1rem;
  margin: 0; 
}

/* ============================= */
/* TRUST CARDS */
/* ============================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.info-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid #f0f0f0;
  text-align: left;
  position: relative; 
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
  border-color: transparent;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.35rem; 
  padding-right: 80px; 
  min-height: 64px;
  transition: color 0.3s ease;
}

.info-card:hover h3 {
  color: #2960ac; 
}

.info-card p {
  margin: 0;
  color: #4b5563; 
  line-height: 1.6;
  flex-grow: 1; 
}

.card-icon {
  position: absolute;
  top: 24px;  
  right: 24px;
  box-sizing: content-box;
  width: 56px;  
  height: 56px;
  background-color:transparent;
  padding: 0;
  border-radius: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* =========================================
/* In-place Swap/
/* ========================================= */
.timeline-section {
  padding: 80px 0;
  background-color: #fafafa;
}

.horizontal-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0; 
}

.timeline-line {
  position: absolute;
  top: 50px; 
  left: 5%;
  right: 5%;
  height: 2px;
  background-color: #e2e8f0;
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%; 
  cursor: pointer; 
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border: 4px solid #173b6c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(23, 59, 108, 0.1);
  margin-bottom: 24px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item:hover .timeline-dot {
  background-color: #173b6c;
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(23, 59, 108, 0.15);
}

/* =========================================
Text Swap Magic
========================================= */
.timeline-text-container {
  position: relative;
  width: 100%;
  height: 120px; 
}

.timeline-front,
.timeline-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 12px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-front {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.timeline-back {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px); 
}

.timeline-item:hover .timeline-front {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px); 
}

.timeline-item:hover .timeline-back {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); 
}

.timeline-front .timeline-date {
  color: #173b6c;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.timeline-front h3 {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

.timeline-back p {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

@media screen and (max-width: 800px) {
  .horizontal-timeline {
    flex-direction: column;
    padding: 20px 0;
  }
  .timeline-line {
    top: 20px;
    bottom: 20px;
    left: 28px;
    width: 2px;
    height: auto;
  }
  .timeline-item {
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 40px;
  }
  .timeline-dot {
    margin-bottom: 0;
    margin-right: 24px;
    position: relative;
    left: 18px;
    flex-shrink: 0;
  }

  .timeline-text-container {
    height: auto;
  }
  .timeline-front,
  .timeline-back {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    text-align: left;
    padding: 0;
  }
  .timeline-front h3 {
    color: #111827;
  }
  .timeline-back {
    margin-top: 8px; 
  }
}

/* ============================= */
/* PRODUCT CARDS */
/* ============================= */

.product-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  overflow: hidden; 
  
  display: flex;
  flex-direction: column;
  height: 100%; 
  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

img.product-image {
  width: 100%;
  height: 240px; 
  object-fit: cover; 
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 32px; 
  margin-top: 48px; 
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr; 
  }
}

.product-content {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; 
}

.product-tag {
  margin: 0; 
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-content h3 {
  font-size: 1.5rem;
  margin: 0 0 16px 0;
  color: #111827;
  transition: color 0.3s ease;
}

.product-card:hover h3 {
  color: #2960ac; 
}

.product-content p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-footer {
  margin-top: auto; 
  display: flex;
  justify-content: space-between;
  align-items: center; 
  border-top: 1px solid #f3f4f6; 
  padding-top: 16px; 
}

.text-link { 
  font-weight: 600;
  color: #173b6c; 
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: #3b82f6; 
}

/* ============================= */
/* CERTIFICATION */
/* ============================= */

.cert-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 52px;
  box-shadow: var(--shadow-medium);
}

.cert-text h2 {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.cert-text p {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
}

.cert-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.certification-card {  
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.cert-badge {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  color: #173b6c; 
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-shadow: 
    0 12px 30px rgba(59, 130, 246, 0.15),
    inset 0 0 0 6px #ffffff;
  position: relative;
  flex-shrink: 0;
}

.cert-badge::before {
  content: '';
  position: absolute;
  top: -12px; 
  right: -12px; 
  bottom: -12px; 
  left: -12px;
  border-radius: 50%;
  border: 2px solid #93c5fd;
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

/* ============================= */
/* CTA */
/* ============================= */

.bravio-cta-section {
  padding: 100px 0;
  margin-top: 64px;
  width: 100%;
  
  background-color: #0f2646; 
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at center, #173b6c 0%, transparent 100%);
    
  background-size: 32px 32px, 32px 32px, 100% 100%;
  background-position: center center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content {
  max-width: 1250px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.bravio-cta-section h2 {
  color: #ffffff;
  font-size: 2.2rem; 
  margin: 16px 0 24px 0;
}

.bravio-cta-section p, 
.bravio-cta-section .section-label {
  color: #cbd5e1;
}

.bravio-cta-section .btn {
  background-color: #ffffff;
  color: #173b6c;
  border: none;
  margin-top: 32px;
  padding: 16px 40px; 
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.bravio-cta-section .btn:hover {
  background-color: #f1f5f9;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px; 
  margin-top: 40px; 
  flex-wrap: wrap; 
}

.bravio-cta-section .btn {
  margin-top: 0; 
}

.bravio-cta-section .btn-outline {
  background-color: transparent; 
  color: #ffffff; 
  border: 1px solid rgba(255, 255, 255, 0.6); 
}

.bravio-cta-section .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1); 
  border-color: #ffffff; 
  transform: translateY(-3px); 
  box-shadow: none; 
}

@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 16px;
  }
  .cta-buttons .btn {
    width: 100%;
  }
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer-inner {
  display: flex;
  justify-content: space-between; 
  align-items: flex-end; 
  flex-wrap: wrap; 
  padding-top: 40px; 
  padding-bottom: 40px;
}
.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #173b6c; 
}

@media (max-width: 768px) {
  .footer-inner {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center;
    gap: 24px;              
    padding: 32px 20px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ============================= */
/* LEGAL PAGES */
/* ============================= */

.legal-main {
  padding: 80px 0;
}

.legal-wrapper {
  max-width: 920px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-medium);
}

.legal-wrapper h1 {
  font-size: 48px;
  margin-bottom: 24px;
}

.legal-section + .legal-section {
  margin-top: 32px;
}

.legal-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.legal-section p {
  color: var(--muted);
  font-size: 15px;
}

.legal-topbar {
  margin-bottom: 20px;
}

.back-link {
  font-size: 14px;
  color: var(--muted);
}

.back-link:hover {
  color: #000;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {
  .hero-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 32px 28px;
  }

  .hero-title {
    max-width: 100%;
    font-size: 46px;
  }

  .hero-subtext {
    max-width: 100%;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual img {
    max-width: 100%;
  }

  .card-grid,
  .product-grid,
  .cert-box {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 40px 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .language-switcher {
    border-left: none;
    padding-left: 0;
  }

  .hero {
    padding: 40px 0 44px;
  }

  .hero-panel {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-subtext {
    font-size: 16px;
    line-height: 1.65;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2,
  .cert-text h2,
  .cta-box h2 {
    font-size: 28px;
  }

  .hero-visual img {
    border-radius: 20px;
  }

  .info-card,
  .product-content,
  .cert-box,
  .cta-box,
  .legal-wrapper {
    padding: 24px;
  }

  .cert-badge {
    width: 180px;
    height: 180px;
    font-size: 18px;
  }

  .legal-wrapper h1 {
    font-size: 34px;
  }
}

@media (max-width: 768px) {

  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
  }

  
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000; 
  }

  .hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #1b243b; 
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  
  .nav-right {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: #ffffff; 
    padding: 20px 5%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); 
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav-right.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px; 
    margin-bottom: 24px; 
  }

  .mobile-menu-btn.is-active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-menu-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}


