/* Theme Name:   GeneratePress Child
 Description:  Customized for Topus | Exhibition Strategy
 Version:      0.9
*/

/* =========================================
   1. FONTS (INTER FAMILY)
   ========================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://topus.bg/wp-content/themes/generatepress_child/fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2');
}

/* Native Italic - Regular */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('https://topus.bg/wp-content/themes/generatepress_child/fonts/inter-v20-cyrillic_latin-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://topus.bg/wp-content/themes/generatepress_child/fonts/inter-v20-cyrillic_latin-500.woff2') format('woff2');
}

/* Native Italic - Medium (Used for Testimonials) */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('https://topus.bg/wp-content/themes/generatepress_child/fonts/inter-v20-cyrillic_latin-500italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://topus.bg/wp-content/themes/generatepress_child/fonts/inter-v20-cyrillic_latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('https://topus.bg/wp-content/themes/generatepress_child/fonts/inter-v20-cyrillic_latin-800.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('https://topus.bg/wp-content/themes/generatepress_child/fonts/inter-v20-cyrillic_latin-900.woff2') format('woff2');
}


/* =========================================
   2. GLOBAL RESET & UTILITIES
   ========================================= */
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
  font-family: 'Inter', sans-serif !important;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%;
}

::selection {
  background-color: #315762;
  color: #ffffff;
}

::-moz-selection {
  background-color: #315762;
  color: #ffffff;
}

.topus-section {
  padding: 80px 20px;
  box-sizing: border-box;
}
.topus-section * {
  box-sizing: border-box;
}

.topus-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.topus-relative { position: relative; z-index: 10; }

/* Colors */
.topus-bg-light { background-color: #f8fafc; }
.topus-bg-white { background-color: #ffffff; }
.topus-bg-dark { background-color: #315762; }
.topus-bg-slate-900 { background-color: #0f172a; }
.topus-text-center { text-align: center; }
.topus-text-white, .text-white { color: #ffffff !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.topus-text-accent { color: #e9631a !important; }

/* Global Typography */
.topus-title-section {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  color: #315762;
  margin: 0 0 20px 0;
}

.topus-subtitle {
  font-size: 20px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

/* Global Buttons */
/* Global Buttons & CF7 Fix */
.topus-btn-primary, 
input[type="submit"].wpcf7-submit.topus-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #e9631a !important; /* Force orange over theme defaults */
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 900;
    padding: 20px 40px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.topus-btn-primary svg { width: 24px; height: 24px; }
.topus-btn-primary:hover {
  background-color: #d15615;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(233, 99, 26, 0.4);
}
.topus-btn-large {
  font-size: 24px;
  padding: 24px 60px;
}

/* =========================================
   3. HEADER & NAVIGATION (GeneratePress)
   ========================================= */
.site-header, 
.main-navigation {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-navigation .main-nav ul li a {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b !important;
  transition: all 0.3s ease;
  background: transparent !important;
}

.main-navigation .main-nav ul li:not(.nav-button):hover > a {
  color: #0f172a;
}

@media (min-width: 769px) {
  .main-navigation .main-nav ul li.nav-button a {
    background-color: #e9631a !important;
    color: #ffffff !important;
    border-radius: 4px;
    line-height: 44px;
    padding: 0 24px;
    margin-top: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(233, 99, 26, 0.3);
  }

  .main-navigation .main-nav ul li.nav-button a:hover {
    background-color: #315762 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 87, 98, 0.3);
  }
}


/* Subtle Language Toggle in Menu */
.main-navigation .main-nav ul li.topus-nav-lang a {
    font-size: 11px !important;
    font-weight: 900 !important;
    color: #cbd5e1 !important; /* Very subtle grey */
    padding-left: 10px;
    padding-right: 10px;
}

.main-navigation .main-nav ul li.topus-nav-lang a:hover {
    color: #e9631a !important; /* Brand orange on hover */
}


/* =========================================
   4. HERO SECTION (Current Layout)
   ========================================= */
.topus-hero-wrapper {
  background-color: #f8fafc;
  padding: 120px 20px 100px 20px;
}

.topus-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.topus-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(49, 87, 98, 0.1);
  color: #315762;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 5px 15px;
  border-radius: 4px;
  margin-bottom: 25px;
}
.topus-badge svg { width: 16px; height: 16px; }

.topus-title-main {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.1;
  color: #315762;
  margin: 0 0 30px 0;
}

.topus-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.topus-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
}
.topus-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e9631a;
}

.topus-desc {
  font-size: 20px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 20px;
}

.topus-quote {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: #315762;
  border-left: 4px solid #e9631a;
  padding-left: 25px;
  margin-bottom: 40px;
  font-style: italic;
}

.topus-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.topus-mockup-box {
  background-color: #ffffff;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 450px;
  transform: rotate(2deg);
}

.topus-mockup-inner {
  background-color: #f1f5f9;
  aspect-ratio: 4/5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.topus-mockup-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topus-mockup-text {
  font-size: 80px;
  font-weight: 900;
  color: #cbd5e1;
  letter-spacing: -0.05em;
  opacity: 0.3;
  transform: rotate(-45deg);
}

/* =========================================
   5. PROBLEM SECTION (Pain Points)
   ========================================= */
.topus-leaks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.topus-leak-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.topus-leak-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #f1f5f9;
  font-weight: 400 !important;
}

.topus-leak-card:last-child:nth-child(7) { 
  grid-column: 2; 
}

.topus-icon-alert {
  width: 24px;
  height: 24px;
  color: #e9631a;
  flex-shrink: 0;
}

/* =========================================
   6. PREVENTION SECTION (Optimized with Icons)
   ========================================= */
.topus-prevention-box {
  background-color: #ffffff;
  color: #1e293b;
  padding: 60px;
  border-radius: 20px;
  margin: 80px auto 0;
  max-width: 1000px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.topus-prevention-box h3 {
  font-size: 28px;
  font-weight: 900;
  color: #315762;
  margin: 0 0 16px 0;
}

.topus-prevention-desc {
  font-size: 18px;
  color: #64748b;
  margin: 0 0 50px 0;
}

.topus-prevention-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
  border-top: 1px solid #f1f5f9;
  padding-top: 50px;
}

.topus-prevention-item h4 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 12px 0;
  color: #315762;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topus-prevention-icon {
  width: 36px;
  height: 36px;
  color: #e9631a;
  margin-bottom: 4px;
}

.topus-prevention-item p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* =========================================
   7. SERVICES SECTION (Editorial Clean)
   ========================================= */
.topus-section-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e9631a;
  margin-bottom: 8px;
}

.topus-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.topus-service-card {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.topus-service-card:hover { transform: translateY(-5px); }
.topus-border-primary { border-top: 8px solid #315762; }
.topus-border-secondary { border-top: 8px solid #e9631a; }

.topus-card-highlight {
  transform: scale(1.05);
  z-index: 10;
  position: relative;
  box-shadow: 0 25px 60px rgba(233,99,26,0.15);
}

.topus-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.topus-card-icon { width: 44px; height: 44px; }

.topus-card-number {
  font-size: 48px;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1;
}

.topus-card-title { 
  font-weight: 900; 
  font-size: 26px; 
  color: #1e293b; 
  margin: 0 0 5px 0;
  letter-spacing: -0.02em;
}

.topus-card-subtitle {
  font-weight: 800;
  text-transform: uppercase;
  color: #e9631a;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 25px;
}

/* Card Body Content */
.topus-card-desc p {
  color: #64748b;
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 15px;
}

.topus-card-desc p:last-child {
  margin-bottom: 25px;
}

.topus-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
  flex-grow: 1;
}

.topus-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 14px;
}

.topus-card-list li svg {
  width: 18px;
  height: 18px;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}

.topus-card-list li strong {
  color: #1e293b;
  font-weight: 700;
}

.topus-card-footer-text {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 25px;
  font-style: italic;
  line-height: 1.4;
}

/* Service Card Buttons */
.topus-btn-outline {
  display: block;
  text-align: center;
  padding: 16px;
  border: 2px solid #315762;
  color: #315762 !important;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.topus-btn-outline:hover { background-color: #315762; color: #fff !important; }

.topus-btn-solid {
  display: block;
  text-align: center;
  padding: 18px;
  background-color: #e9631a;
  color: #ffffff !important;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(233, 99, 26, 0.2);
}
.topus-btn-solid:hover { background-color: #d15615; box-shadow: 0 10px 20px rgba(233, 99, 26, 0.3); }

/* =========================================
   8. TEAM & FOUNDERS
   ========================================= */
.topus-team-heading { 
  font-weight: 900; 
  font-size: 42px; 
  color: #315762; 
  margin-bottom: 50px; 
}
.topus-team-member-space { margin-top: 30px; }

.topus-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.topus-founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-top: 60px;
}

.topus-founder-row {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.topus-founder-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.topus-founder-image-box {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.topus-founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.topus-founder-card:hover .topus-founder-img {
  transform: scale(1.05);
}

.topus-founder-bio h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 15px;
  color: #315762;
}

.topus-founder-bio p {
  color: #64748b;
  line-height: 1.7;
  font-size: 16px;
}

.topus-founder-name {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 8px 0;
  color: #1e293b;
}

.topus-founder-info p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.topus-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #cbd5e1;
  flex-shrink: 0;
  overflow: hidden;
}

/* =========================================
   9. TESTIMONIALS
   ========================================= */
.topus-testimonials {
  background: #f8fafc;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
}

.topus-quote-icon {
  width: 48px;
  height: 48px;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.topus-review {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

.topus-review:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.topus-review-text {
  font-size: 18px;
  font-style: italic;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.topus-review-author {
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 4px;
}

.topus-review-role {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

/* Standalone Testimonials Section */
.topus-testimonials-standalone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.topus-review-card-full {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.topus-review-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.topus-review-avatar-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f1f5f9;
  flex-shrink: 0;
}

.topus-review-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topus-review-author-name {
  font-weight: 900;
  color: #1e293b;
  font-size: 18px;
}

.topus-review-role-text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.topus-review-text-large {
  font-size: 18px;
  font-style: italic;
  color: #475569;
  line-height: 1.6;
}

.topus-testimonial-text {
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
}
.topus-testimonial-role {
  font-size: 12px;
  text-transform: uppercase;
  color: #94a3b8;
}

/* =========================================
   10. FINAL CTA SECTION
   ========================================= */
.topus-cta-wrap {
  position: relative;
  overflow: hidden;
}

.topus-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: rgba(99, 102, 241, 0.1);
  filter: blur(100px);
  border-radius: 50%;
  z-index: 1;
}

.topus-cta-desc {
  font-size: 20px;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.topus-cta-heading {
  font-weight: 900;
  font-size: 32px;
  margin-bottom: 20px;
}

.topus-cta-button {
  background: #e9631a;
  color: #fff;
  padding: 20px 50px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.topus-cta-button:hover {
  background: #d15615;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 99, 26, 0.4);
}

/* =========================================
   11. CONTACT FORM 7 
   ========================================= */
.wpcf7 { max-width: 800px; margin: 0 auto; z-index: 10; position: relative; }
.topus-form-grid p { margin: 0 !important; padding: 0 !important; }

.topus-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

.topus-form-full { grid-column: span 2; }
.wpcf7-form-control-wrap { display: block; width: 100%; }

.wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 16px 20px;
  color: #315762 !important;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wpcf7-form-control::placeholder { color: #94a3b8; opacity: 1; }
.wpcf7-form-control:not(.wpcf7-submit):hover { border-color: #cbd5e1; }
.wpcf7-form-control:focus {
  outline: none;
  border-color: #e9631a !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(233, 99, 26, 0.1);
}

/* Privacy Checkbox Fixes */
.topus-form-acceptance {
  grid-column: span 2;
  margin-top: 15px;
  display: block;
  text-align: center; 
  background: transparent !important; 
}

.topus-form-acceptance .wpcf7-acceptance,
.topus-form-acceptance .wpcf7-list-item {
  display: inline-block;
}

.topus-form-acceptance label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #94a3b8; 
  font-size: 13px; 
  font-weight: 500;
  cursor: pointer;
}

.topus-form-acceptance input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
  accent-color: #e9631a;
}

.topus-form-acceptance a {
  color: #e9631a;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}
.topus-form-acceptance a:hover { text-decoration: underline; opacity: 0.8; }

/* Submit Button */
.topus-form-submit {
  grid-column: span 2;
  margin-top: 15px;
  display: block;
  text-align: center;
}
.topus-form-submit p {
  display: flex;
  justify-content: center;
}
.topus-form-submit .wpcf7-submit { margin: 0 !important; }

/* Form Messages */
.wpcf7-response-output {
  border: none !important;
  background: #1e293b;
  color: #ffffff;
  border-radius: 4px;
  padding: 15px !important;
  font-weight: 600;
  margin: 20px 0 0 0 !important;
}
.wpcf7-not-valid-tip {
  color: #e9631a;
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
}

/* =========================================
   11. CUSTOM BRAND FOOTER (V1.1 UPDATE)
   ========================================= */
/* =========================================
   9. CUSTOM BRAND FOOTER
   ========================================= */
.topus-custom-footer {
    background-color: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #f1f5f9;
}

.topus-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    /* 3-column grid allows true centering of the middle content */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Align left column items nicely */
.topus-footer-col-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; /* Prevents text overflow on small mobile screens */
}

/* VAT & Bullet styling */
.topus-bullet-divider {
    color: #94a3b8; /* Subtle slate mute */
    font-size: 12px;
}

.topus-vat {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Mobile responsive stacking */
@media (max-width: 768px) {
    .topus-footer-col-left {
        justify-content: center;
    }
}

.topus-footer-col-center {
    justify-self: center;
}

.topus-footer-col-right {
    justify-self: end;
}

.topus-footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.topus-footer-link {
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.topus-footer-link:hover {
    color: #e9631a;
}

.topus-copyright {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
/* =========================================
   12. RESPONSIVE LOGIC (Fixes for Mobile)
   ========================================= */
@media (max-width: 1024px) {
  .topus-leaks-grid { grid-template-columns: repeat(2, 1fr); }
  .topus-services-grid { grid-template-columns: 1fr; gap: 40px; }
  .topus-card-highlight { transform: scale(1); }
  .topus-footer-info { gap: 20px; }
}

@media (max-width: 768px) {

  /* Footer Mobile Stacking */
    .topus-footer-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .topus-footer-links {
        order: 1;
        gap: 20px;
    }
    
    .topus-footer-col-left { order: 2; }
}

/* =========================================
   13. RESPONSIVE LOGIC
   ========================================= */
@media (max-width: 1024px) {
  .topus-hero-grid, 
  .topus-team-grid { grid-template-columns: 1fr; }
  .topus-leaks-grid { grid-template-columns: repeat(2, 1fr); }
  .topus-services-grid { grid-template-columns: 1fr; gap: 40px; }
  .topus-card-highlight { transform: scale(1); }
  .topus-hero-visual { display: none; } /* Used in older layout */
}

@media (max-width: 768px) {
  .topus-section { padding: 60px 20px; }
  .topus-title-main { font-size: 36px; }
  .topus-title-section { font-size: 32px; text-align: center; }
  
  /* Mobile Logo Size Fix */
  .site-branding-container .header-image {
    max-width: 160px;
    height: auto;
  }
  
   .site-logo img, 
    .header-image.is-logo-image {
        max-width: 160px !important;
        height: auto !important;
    }
  
  /* Consistent Left Alignment for ALL text on mobile */
    .topus-text-center { text-align: left !important; }
    .topus-title-section { text-align: left !important; font-size: 32px; }
    .topus-subtitle { text-align: left !important; }
    .topus-section-label { text-align: left !important; display: block; }
    .topus-prevention-box { text-align: left !important; padding: 30px 20px; }
    .topus-prevention-desc { text-align: left !important; }
  
  
  /* Hero Overrides */
  .topus-hero-wrapper { padding: 40px 20px; }
  .topus-hero-grid { display: flex; flex-direction: column; }
  .topus-hero-title { order: 1; margin-bottom: 20px; font-size: 34px; text-align: center; }
  .topus-hero-visual { order: 2; margin: 20px 0 30px 0; display: block !important; }
  .topus-pills { order: 1.5; justify-content: flex-start !important; }
  .topus-hero-desc { order: 3; text-align: left; }
  .topus-hero-quote { order: 4; text-align: left; }
  .topus-hero-cta { order: 5; }
  .topus-pills { order: 1.5; justify-content: center; }
  .topus-mockup-text { font-size: 40px; } /* Makes the mockup text subtler on mobile */

  /* Grids to 1 Col */
  .topus-leaks-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .topus-leak-card:last-child:nth-child(7) { grid-column: auto; } /* Fixes the 7th item forcing a 2nd column */
  .topus-prevention-grid { grid-template-columns: 1fr; }
  .topus-founders-grid, .topus-testimonials-standalone-grid, .topus-services-grid { grid-template-columns: 1fr; }
  .topus-form-grid { grid-template-columns: 1fr; }
  
  /* Padding Fixes */
  .topus-leak-card { padding: 20px; }
  .topus-prevention-box { padding: 30px; }
  .topus-founder-row { flex-direction: column; gap: 16px; }
  .topus-testimonials { padding: 30px; }
  
  /* Forms & Buttons */
  .topus-form-full, .topus-form-submit, .topus-form-acceptance { grid-column: span 1; }
  .topus-btn-primary { width: 100%; font-size: 18px; padding: 16px; }
  .topus-btn-large { font-size: 20px; padding: 20px; }

  /* Footer Stacking */
  .site-info .inside-site-info {
      flex-direction: column;
      gap: 30px;
      text-align: center;
  }
  .footer-bar ul {
      flex-direction: column;
      gap: 15px;
      align-items: center;
  }
}
