/* ============================================
   SpecSoft.DEV - Static Refactor
   Converted from WordPress (Startupzy Theme)
   ============================================ */

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

:root {
  /* Brand Colors */
  --primary: #1e70ea;
  --secondary: #07295a;
  --bodytext: #717c90;
  --text-footer: #b7bfcb;
  --bg-soft: #f1f5fd;
  --border: #dbe0e9;
  --border-2: #213349;
  --quote: rgba(254,254,254,0.2);
  --bg-overlay: #02132d;
  --bg-footer: #031530;
  --white: #ffffff;

  /* Typography */
  --font-heading: Helvetica, Arial, sans-serif;
  --font-body: 'Heebo', Helvetica, Arial, sans-serif;

  /* Layout */
  --content-width: 1170px;
  --header-height: 90px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--bodytext);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--secondary); }

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

/* ----- Animations ----- */
@keyframes fadeInLeft  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); }  to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInUp    { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }

.fade-in-left  { animation: fadeInLeft  .8s ease both; }
.fade-in-right { animation: fadeInRight .8s ease both; }
.fade-in-up    { animation: fadeInUp    .8s ease both; }
.fade-in       { animation: fadeIn      .8s ease both; }
.delay-200 { animation-delay: .2s; }
.delay-400 { animation-delay: .4s; }
.delay-600 { animation-delay: .6s; }
.delay-700 { animation-delay: .7s; }
.delay-900 { animation-delay: .9s; }
.slow { animation-duration: 1.4s; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  background: rgba(255,255,255,0.19);
  margin-bottom: -91px;
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}

.header-logo { flex: 0 0 18%; padding-left: 10px; }
.header-logo img { width: 100%; max-width: 200px; }

.header-nav { flex: 1 1 64%; display: flex; justify-content: center; }
.header-cta { flex: 0 0 18%; display: flex; justify-content: flex-end; padding-right: 10px; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.nav-list a {
  color: var(--white);
  padding: 10px 0;
  display: block;
  position: relative;
}
.nav-list a:hover { color: var(--primary); }
.nav-list a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width .3s ease;
}
.nav-list a:hover::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px 0 10px 0;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 20px 0 20px 0;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--white); color: var(--primary); }

.btn-sm { padding: 12px 30px; font-size: 12px; }

.btn-header {
  background: var(--primary);
  color: var(--white);
}
.btn-header:hover { background: var(--secondary); color: var(--white); }
.btn-header i { font-size: 14px; }

.btn-footer {
  background: var(--white);
  color: var(--primary);
}
.btn-footer:hover { background: var(--secondary); color: var(--white); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  background: url('../assets/images/CodeBG.png') center center / cover no-repeat;
  padding: 260px 0 300px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--bg-overlay);
  opacity: 0.72;
}
.hero .container { position: relative; z-index: 2; }

.hero-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-left { flex: 1 1 50%; }
.hero-right { flex: 1 1 50%; text-align: right; }
.hero-right img { display: inline-block; }

.hero h1 {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 strong { color: var(--primary); }
.hero p {
  color: var(--white);
  font-size: 16px;
  line-height: 1.7;
  max-width: 540px;
  padding-right: 180px;
  margin-bottom: 30px;
}
.hero p strong { color: var(--white); font-weight: 600; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: 120px 0;
}
.about-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}
.about-image {
  flex: 0 0 40%;
  max-width: 460px;
  margin: 10px 40px 10px 10px;
  padding: 10px;
  position: relative;
  border-radius: 50px 0 50px 0;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 40px 0 40px 0;
}
.about-quote-box {
  position: absolute;
  bottom: 20px; left: 80px; right: -40px;
  background: var(--primary);
  border-radius: 20px;
  padding: 40px 60px 40px 30px;
  margin-top: 20px;
  max-width: 320px;
}
.about-quote-box p {
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}
.about-quote-box::before {
  content: '\201C';
  position: absolute;
  top: -108%; right: 65%;
  font-size: 140px;
  color: var(--quote);
  font-family: serif;
  line-height: 1;
}

.about-content { flex: 0 1 600px; max-width: 600px; padding-left: 70px; }

.section-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--secondary);
  margin-bottom: 20px;
}
.about-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.about-content p strong { color: var(--secondary); font-weight: 600; }

.about-list {
  list-style: none;
  margin-bottom: 40px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 6px 0;
  font-size: 16px;
}
.about-list li i { color: var(--primary); font-size: 18px; }

.signature {
  width: auto;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
  margin: 40px 0 5px;
  display: block;
}
@media (max-width: 1024px) {
  .signature { max-width: 150px; }
}
@media (max-width: 480px) {
  .signature { max-width: 130px; }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: var(--bg-soft);
  padding: 100px 0;
  text-align: center;
}
.services .section-label,
.services .section-title { text-align: center; }
.services .section-title { margin-bottom: 40px; }

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.service-card {
  flex: 1 1 calc(50% - 10px);
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 30px 0 30px 0;
  padding: 40px 40px 0 40px;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.service-card.solid {
  background: var(--primary);
  border-color: var(--primary);
}
.service-card.solid .service-title,
.service-card.solid .service-desc { color: var(--white); }
.service-card.solid .service-icon { color: var(--white); }
.service-card.solid .service-watermark { color: rgba(255,255,255,0.1); }

.service-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  padding-top: 0; padding-bottom: 40px;
}
.service-card:hover .service-title,
.service-card:hover .service-desc,
.service-card:hover .service-icon { color: var(--white); }

.service-icon {
  font-size: 50px;
  color: var(--primary);
  margin-bottom: 20px;
  display: inline-block;
  transition: color .35s ease;
}
.service-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 10px;
  transition: color .35s ease;
}
.service-desc {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  transition: color .35s ease;
}
.service-watermark {
  position: absolute;
  bottom: -20px; right: -10px;
  font-size: 120px;
  color: rgba(255,255,255,0.1);
  pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  margin-top: 70px;
  padding-top: 0;
  position: relative;
}

.footer-cta {
  background: var(--primary);
  border-radius: 50px;
  margin: -80px auto 80px;
  max-width: var(--content-width);
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.footer-cta-text h5 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-cta-text h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.footer-cta .btn { flex-shrink: 0; }

.footer-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-col { flex: 1 1 33.3%; min-width: 250px; }
.footer-col-logo img { width: 75%; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-list { list-style: none; }
.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: 16px;
  color: var(--white);
}
.footer-list li i {
  color: var(--primary);
  font-size: 14px;
  margin-top: 6px;
  flex-shrink: 0;
}
.footer-list li a { color: var(--white); }
.footer-list li a:hover { color: var(--primary); }

.footer-col-services { padding-left: 60px; }
.footer-col-contact { padding-left: 40px; }

.footer-bottom {
  border-top: 1px solid var(--border-2);
  margin: 80px 20px 0;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-footer);
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-footer);
}
.footer-links a:hover { color: var(--primary); }

/* ============================================
   PARTNERS PAGE
   ============================================ */
.partners-page {
  padding: 160px 0 80px;
  background: var(--white);
  text-align: center;
}
.partners-page .container {
  max-width: 1000px;
}
.partners-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 20px;
}
.partners-intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--bodytext);
  max-width: 760px;
  margin: 0 auto 60px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  text-align: left;
  margin-bottom: 80px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(113,124,144,0.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.partner-diamond {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(30,112,234,0.18);
}
.partner-diamond::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, #b9e0ff 50%, var(--primary) 100%);
}
.partner-badge {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(90deg, var(--primary) 0%, #b9e0ff 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 4px;
}
.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(30,112,234,0.15);
  border-color: var(--primary);
}
.partner-header {
  display: flex;
  align-items: center;
  gap: 20px;
}
.partner-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 18px;
  transition: background .3s ease;
}
.partner-logo i {
  font-size: 32px;
  color: var(--primary);
  transition: color .3s ease;
}
.partner-logo-img {
  background: var(--secondary);
  padding: 14px;
}
.partner-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.partner-card:hover .partner-logo-img { background: var(--primary); }
.partner-card:hover .partner-logo { background: var(--primary); }
.partner-card:hover .partner-logo i { color: var(--white); }
.partner-info h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 4px;
}
.partner-tagline {
  font-size: 14px;
  color: var(--bodytext);
  font-weight: 400;
}
.partner-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bodytext);
  flex: 1;
}
.partner-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.partner-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.partner-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--bodytext);
}
.partner-details li i {
  color: var(--primary);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.partner-details li a {
  color: var(--bodytext);
  text-decoration: none;
}
.partner-details li a:hover { color: var(--primary); }

.partners-cta {
  background: var(--bg-soft);
  border-radius: 30px;
  padding: 60px 40px;
  text-align: center;
}
.partners-cta h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 15px;
}
.partners-cta p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--bodytext);
  max-width: 560px;
  margin: 0 auto 30px;
}

@media (max-width: 768px) {
  .partners-page { padding: 120px 0 60px; }
  .partners-title { font-size: 30px; }
  .partners-intro { font-size: 16px; }
  .partners-grid { grid-template-columns: 1fr; gap: 16px; }
  .partner-card { padding: 30px 24px; }
  .partners-cta { padding: 40px 24px; }
  .partners-cta h2 { font-size: 24px; }
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.product-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-overlay) 100%);
  padding: 160px 0 100px;
  text-align: center;
  color: var(--white);
}
.product-hero-alt {
  background: linear-gradient(135deg, var(--bg-overlay) 0%, var(--primary) 100%);
}
.product-hero .badge {
  display: inline-block;
  background: rgba(30,112,234,0.25);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.product-hero h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.product-tagline {
  font-size: 18px;
  color: var(--text-footer);
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.product-tagline a { color: var(--primary); text-decoration: underline; }
.product-intro {
  font-size: 16px;
  color: var(--text-footer);
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.product-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--secondary); }

.product-modules {
  background: var(--bg-soft);
  padding: 100px 0;
  text-align: center;
}
.product-modules .section-label,
.product-modules .section-title { text-align: center; }
.product-modules .section-title { margin-bottom: 60px; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  text-align: left;
}
.module-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(113,124,144,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid var(--border);
}
.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(30,112,234,0.15);
  border-color: var(--primary);
}
.module-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 16px;
  margin-bottom: 20px;
  transition: background .3s ease;
}
.module-icon i {
  font-size: 28px;
  color: var(--primary);
  transition: color .3s ease;
}
.module-card:hover .module-icon { background: var(--primary); }
.module-card:hover .module-icon i { color: var(--white); }
.module-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.module-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bodytext);
}

@media (max-width: 768px) {
  .product-hero { padding: 120px 0 80px; }
  .product-hero h1 { font-size: 36px; }
  .product-tagline { font-size: 16px; }
  .product-intro { font-size: 15px; }
  .product-modules { padding: 60px 0; }
  .modules-grid { grid-template-columns: 1fr; gap: 16px; }
  .module-card { padding: 30px 24px; }
}

/* ============================================
   HEADER (solid variant for sub-pages)
   ============================================ */
.site-header-solid {
  position: relative;
  background: var(--secondary);
  margin-bottom: 0;
}
.site-header-solid .nav-list a { color: var(--white); }
.site-header-solid .nav-list a:hover { color: var(--primary); }

/* ============================================
   LEGAL PAGE
   ============================================ */
.legal-page {
  padding: 120px 0 80px;
  background: var(--white);
}
.legal-page .container {
  max-width: 800px;
}
.legal-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 10px;
}
.legal-updated {
  font-size: 14px;
  color: var(--bodytext);
  font-style: italic;
  margin-bottom: 40px;
}
.legal-section {
  margin-bottom: 40px;
}
.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-section p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}
.legal-section a {
  color: var(--primary);
  text-decoration: underline;
}
.legal-section a:hover { color: var(--secondary); }
.legal-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}
.legal-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.8;
}
.legal-list li::before {
  content: '\2022';
  position: absolute;
  left: 5px;
  top: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}
.legal-list li strong { color: var(--secondary); }

@media (max-width: 768px) {
  .legal-page { padding: 100px 0 60px; }
  .legal-title { font-size: 30px; }
  .legal-section h2 { font-size: 20px; }
  .legal-section p { font-size: 15px; }
}
@media (max-width: 1024px) {
  .header-logo { flex-basis: 25%; }
  .header-nav { flex-basis: 75%; }
  .header-cta { display: none; }
  .hero { padding: 140px 0 200px; }
  .hero p { padding-right: 10px; }
  .about { padding: 40px 10px 80px; }
  .about-grid { flex-direction: column; align-items: center; }
  .about-image { flex: 1 1 100%; width: 100%; max-width: 460px; margin: 0 0 20px; }
  .about-content { padding: 80px 10px 0; }
  .services { padding: 80px 20px; }
  .service-card { flex: 1 1 calc(50% - 10px); }
  .footer-cta { margin: -80px 20px 40px; padding: 40px; }
}

@media (max-width: 768px) {
  .header-nav .nav-list { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-nav.open .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fafafa;
    padding: 20px;
    gap: 10px;
  }
  .header-nav.open .nav-list a { color: var(--secondary); }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 14px; }
  .section-title { font-size: 24px; }
  .service-card { flex: 1 1 100%; }
  .service-title { font-size: 20px; }
  .service-desc { font-size: 14px; }
  .footer-cta { flex-direction: column; text-align: center; }
  .footer-cta-text h2 { font-size: 24px; }
  .footer-col-services,
  .footer-col-contact { padding-left: 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: 140px 0 180px; }
  .hero h1 { font-size: 28px; }
  .about-image { max-width: 320px; }
  .about-quote-box { padding: 20px; left: 20px; right: 0; max-width: none; }
  .services { padding: 40px 10px; }
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  position: relative;
  margin-left: 10px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}
.lang-toggle .lang-flag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.lang-toggle .lang-caret {
  font-size: 9px;
  transition: transform .2s ease;
}
.lang-switcher.open .lang-toggle .lang-caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(7,41,90,0.15);
  list-style: none;
  padding: 6px;
  min-width: 160px;
  display: none;
  z-index: 100;
}
.lang-switcher.open .lang-menu {
  display: block;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease;
}
.lang-option:hover { background: var(--bg-soft); }
.lang-option.active {
  background: var(--primary);
  color: var(--white);
}
.lang-option .lang-flag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: 28px;
  text-align: center;
}
@media (max-width: 768px) {
  .lang-switcher { margin-left: 0; margin-top: 10px; }
  .header-nav.open .lang-toggle { background: var(--primary); }
  .lang-toggle { width: 100%; justify-content: space-between; }
  .lang-menu { left: 0; right: 0; }
}

/* ============================================
   SOPHIE CHAT WIDGET
   ============================================ */
.sophie-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(7,41,90,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 9998;
  transition: transform .3s ease, box-shadow .3s ease;
}
.sophie-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(30,112,234,0.45);
}
.sophie-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sophie-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #94C8A0;
  border: 2px solid var(--white);
  border-radius: 50%;
  animation: sophiePulse 2s ease-in-out infinite;
}
@keyframes sophiePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.sophie-chat {
  position: fixed;
  bottom: 104px;
  right: 28px;
  width: 380px;
  max-width: calc(100vw - 56px);
  height: 540px;
  max-height: calc(100vh - 160px);
  background: #1A0B1F;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  border: 1px solid #3D1A47;
}
.sophie-chat.open {
  display: flex;
  animation: sophieSlideUp .3s ease;
}
@keyframes sophieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sophie-chat-header {
  background: #3D1A47;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #3D1A47;
}
.sophie-chat-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E879F9;
}
.sophie-chat-header-info {
  flex: 1;
}
.sophie-chat-header-info h4 {
  color: #FBF7F1;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.sophie-chat-header-info span {
  color: #94C8A0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sophie-chat-header-info span::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #94C8A0;
  border-radius: 50%;
  display: inline-block;
}
.sophie-chat-close {
  background: none;
  border: none;
  color: #FBF7F1;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background .2s ease;
}
.sophie-chat-close:hover { background: rgba(255,255,255,0.1); }

.sophie-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #1A0B1F;
}
.sophie-chat-messages::-webkit-scrollbar { width: 6px; }
.sophie-chat-messages::-webkit-scrollbar-track { background: #1A0B1F; }
.sophie-chat-messages::-webkit-scrollbar-thumb { background: #3D1A47; border-radius: 3px; }

.sophie-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  animation: sophieMsgIn .3s ease;
}
@keyframes sophieMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sophie-msg-bot {
  background: #3D1A47;
  color: #FBF7F1;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.sophie-msg-user {
  background: #E879F9;
  color: #1A0B1F;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
.sophie-msg-typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}
.sophie-msg-typing span {
  width: 8px;
  height: 8px;
  background: #94A3B8;
  border-radius: 50%;
  animation: sophieTyping 1.4s ease-in-out infinite;
}
.sophie-msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.sophie-msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes sophieTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.sophie-chat-input {
  padding: 12px 16px;
  background: #0A0710;
  border-top: 1px solid #3D1A47;
  display: flex;
  gap: 10px;
}
.sophie-chat-footer {
  background: #0A0710;
  border-top: 1px solid #3D1A47;
  padding: 6px 12px;
  display: flex;
  justify-content: flex-end;
}
.sophie-chat-clear {
  background: none;
  border: 1px solid #3D1A47;
  color: #94A3B8;
  font-size: 11px;
  font-family: 'Heebo', Helvetica, sans-serif;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .2s ease;
}
.sophie-chat-clear:hover {
  background: #3D1A47;
  color: #F87171;
  border-color: #F87171;
}
.sophie-chat-clear i { font-size: 10px; }
.sophie-chat-input input {
  flex: 1;
  background: #3D1A47;
  border: 1px solid #3D1A47;
  border-radius: 12px;
  padding: 10px 14px;
  color: #FBF7F1;
  font-size: 14px;
  font-family: 'Heebo', Helvetica, sans-serif;
  outline: none;
  transition: border-color .2s ease;
}
.sophie-chat-input input:focus { border-color: #E879F9; }
.sophie-chat-input input::placeholder { color: #94A3B8; }
.sophie-chat-input button {
  background: #E879F9;
  color: #1A0B1F;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sophie-chat-input button:hover { background: #FBF7F1; }
.sophie-chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 480px) {
  .sophie-fab { bottom: 20px; right: 20px; width: 56px; height: 56px; }
  .sophie-chat { bottom: 88px; right: 20px; width: calc(100vw - 40px); height: calc(100vh - 140px); }
}