/* ===================================
   FONTS
   =================================== */
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/Outfit/Outfit-VariableFont_wght.ttf') format('truetype-variations'),
       url('/assets/fonts/Outfit/Outfit-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
  --brazil-blue: #009739;
  --brazil-green: #FEDD00;
  --croatia-red: #CC2936;
  --croatia-red-dark: #A3212B;
  --croatia-blue: #171796;
  --bg-light: #F5F7FA;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-muted: #666666;
  --border: #E0E0E0;
}

/* ===================================
   GLOBAL RESET & BASE STYLES
   =================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.25s ease;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--croatia-red);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--croatia-red);
}

.nav-links a.active {
  color: var(--croatia-red);
  font-weight: 700;
}

.nav-links a.nav-cta {
  background: var(--croatia-red);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s;
}

.nav-links a.nav-cta:hover {
  background: var(--croatia-red-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 41, 54, 0.3);
}

/* Floating Apply Button */
.floating-apply {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}

.floating-apply.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-apply a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--croatia-red);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(204, 41, 54, 0.4);
  transition: all 0.3s;
}

.floating-apply a:hover {
  background: var(--croatia-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 41, 54, 0.5);
}

.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-switcher a {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  color: var(--text-dark);
}

.lang-switcher a.active {
  background: var(--brazil-blue);
  color: var(--bg-white);
}

.lang-switcher a:hover:not(.active) {
  background: var(--bg-light);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   HERO SECTION (Index Page)
   =================================== */
.hero-section {
  margin-top: 70px;
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  max-height: 800px;
  overflow: hidden;
}

.hero-slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  right: 0;
}

.hero-slide.active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide img.focus-top {
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  bottom: 50px;
  right: 0;
  padding: 40px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.hero-overlay * {
  pointer-events: auto;
}

@media (min-width: 768px) {
  .hero-overlay {
    max-width: 50%;
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: auto;
    aspect-ratio: 2 / 3;
    min-height: unset;
    max-height: none;
  }
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}

.hero-title br.mobile-only { display: none; }

.hero-salary {
  font-size: 18px;
  font-weight: 500;
  color: #FFFFFF;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 20px;
  opacity: 0.95;
}

.hero-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--croatia-red);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-btn:hover {
  background: var(--croatia-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.hero-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  left: 0;
  right: 0;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 20;
}

.hero-arrow {
  pointer-events: auto;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 21;
  position: relative;
}

.hero-arrow:hover {
  background: var(--croatia-red);
  color: #FFFFFF;
}

.hero-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background: var(--croatia-red);
  border-color: var(--croatia-red);
}

/* ===================================
   GENERAL SECTIONS (Index Page)
   =================================== */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
  text-align: center;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

/* ===================================
   HOW IT WORKS SECTION (Index Page)
   =================================== */
.process-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.process-step {
  background: var(--bg-white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
  border-top: 4px solid var(--brazil-green);
}

.process-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--croatia-red);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

.process-title {
  font-size: 22px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text-dark);
  line-height: 1.2;
}

.process-description {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================
   BENEFITS GRID (Index Page)
   =================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.benefit-card:hover {
  transform: translateY(-4px);
}

.benefit-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.benefit-content {
  padding: 24px;
}

.benefit-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.benefit-text {
  color: var(--text-muted);
  line-height: 1.6;
}

.benefit-text a {
  color: var(--croatia-red);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.benefit-text a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===================================
   ABOUT PAGE
   =================================== */
.about-section {
  margin-top: 100px;
  padding: 40px 24px 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-content {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.about-body {
  padding: 32px;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.about-text p + p {
  margin-top: 16px;
}

.about-text a {
  color: var(--croatia-red);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.about-text a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.about-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-contact {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.8;
}

.about-contact a {
  color: var(--croatia-red);
  text-decoration: none;
  font-weight: 600;
}

.about-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .about-section {
    padding: 30px 16px 40px;
  }
  .about-image {
    height: 200px;
  }
  .about-body {
    padding: 24px 16px;
  }
  .about-title {
    font-size: 24px;
  }
}

/* ===================================
   WORK AND LIVE IN CROATIA PAGE
   =================================== */
.content-section {
  margin-top: 0;
  padding: 60px 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.content-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.content-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.content-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: var(--croatia-red);
  margin-top: 48px;
  margin-bottom: 16px;
}

.section-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--croatia-red);
  padding-bottom: 8px;
}

.subsection-heading {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.benefits-list li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  font-size: 18px;
  line-height: 1.8;
}

.benefits-list li:before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--croatia-red);
  font-weight: 700;
  font-size: 20px;
}

.benefits-list a {
  color: var(--croatia-red);
  text-decoration: none;
  font-weight: 600;
}

.benefits-list a:hover {
  text-decoration: underline;
}

.highlight-box {
  background: var(--bg-white);
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid var(--croatia-red);
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cta-section {
  text-align: center;
  margin-top: 48px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--croatia-red);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s;
}

.cta-btn:hover {
  background: var(--croatia-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===================================
   APPLICATION PAGE
   =================================== */
.application-section {
  margin-top: 100px;
  padding: 60px 24px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.application-header {
  text-align: center;
  margin-bottom: 48px;
}

.application-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.application-subtitle {
  font-size: 20px;
  color: var(--text-muted);
}

.position-image-container {
  width: 100vw;
  height: 345px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: 40px;
  margin-top: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.application-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  background: var(--bg-white);
  color: var(--text-dark);
  min-height: 48px;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--croatia-red);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.consent-section {
  margin: 24px 0;
  padding: 20px;
  background: #F9FAFB;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.consent-checkbox label {
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
}

.consent-checkbox label a {
  color: var(--croatia-red);
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--croatia-red);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.submit-btn:disabled {
  background: #CCCCCC;
  cursor: not-allowed;
  opacity: 0.6;
}

.submit-btn:not(:disabled):hover {
  background: var(--croatia-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.construction-knowledge {
  display: none;
  margin-bottom: 24px;
  padding: 24px;
  background: #F9FAFB;
  border-radius: 8px;
  border: 2px solid var(--border);
}

.construction-knowledge.active {
  display: block;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-item label {
  cursor: pointer;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.knowledge-subsection {
  margin-bottom: 24px;
}

.knowledge-subsection-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--croatia-red);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--croatia-red);
}

.knowledge-item-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-item input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.radio-item label {
  cursor: pointer;
  font-weight: 500;
}

.phone-group {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}

.phone-code-select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  background: var(--bg-white);
  color: var(--text-dark);
}

.phone-code-select:focus {
  outline: none;
  border-color: var(--croatia-red);
}

/* ===================================
   PRIVACY POLICY PAGE
   =================================== */
.privacy-section {
  margin-top: 100px;
  padding: 60px 24px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--text-dark);
}

.privacy-content {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.privacy-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--croatia-red);
}

.privacy-content h2:first-of-type {
  margin-top: 0;
}

.privacy-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.privacy-content ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.privacy-content li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.privacy-content strong {
  color: var(--croatia-red);
}

/* ===================================
   TERMS AND CONDITIONS PAGE
   =================================== */
.terms-section {
  margin-top: 100px;
  padding: 60px 24px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.terms-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--text-dark);
}

.terms-content {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.terms-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--croatia-red);
}

.terms-content h2:first-of-type {
  margin-top: 0;
}

.terms-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.terms-content ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.terms-content li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.terms-content strong {
  color: var(--croatia-red);
}

/* ===================================
   FOOTER
   =================================== */
footer {
  background: var(--text-dark);
  color: #FFFFFF;
  padding: 40px 24px;
  text-align: center;
  margin-top: auto;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-block;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  text-transform: lowercase;
  transition: opacity 0.3s;
}

.footer-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-separator {
  color: #FFFFFF;
  opacity: 0.6;
}

/* ===================================
   MOBILE RESPONSIVE STYLES
   =================================== */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .nav-links.active {
    max-height: 500px;
    padding: 16px 0;
  }

  .nav-links a {
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a.nav-cta {
    background: var(--croatia-red);
    color: #FFFFFF;
    margin: 8px 24px;
    padding: 12px 24px;
    border-radius: 8px;
    text-align: center;
    border-bottom: none;
  }

  /* Floating Apply - full width on mobile */
  .floating-apply {
    bottom: 0;
    right: 0;
    left: 0;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
  }

  .floating-apply a {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 18px;
  }

  .lang-switcher {
    margin: 12px 24px;
    justify-content: center;
  }

  /* Hero Section Mobile */
  .hero-title {
    font-size: 32px;
  }

  .hero-title br.mobile-only {
    display: inline;
  }

  .hero-overlay {
    padding: 24px;
  }

  .hero-controls {
    display: none;
  }

  /* Section Titles Mobile */
  .section-title {
    font-size: 32px;
  }

  /* Process Container Mobile */
  .process-container {
    grid-template-columns: 1fr;
  }

  /* Form Row Mobile */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Phone Group Mobile */
  .phone-group {
    grid-template-columns: 1fr;
  }

  /* Privacy/Terms Mobile */
  .privacy-title,
  .terms-title {
    font-size: 32px;
  }

  .privacy-content,
  .terms-content {
    padding: 24px;
  }

  .privacy-content h2,
  .terms-content h2 {
    font-size: 24px;
  }
}

header .logo img {
  display: block;
  height: 49px;
  width: auto;
  transition: height 0.25s ease;
}

@media (max-width: 768px) {
  header.scrolled {
    padding: 8px 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  }
  header.scrolled .logo img {
    height: 34px;
  }
}

/* ================================================================
   Lavora-redesign additions (homepage, About, sectors, registration)
   ================================================================ */

/* Hero video slide */
.hero-slide .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .hero-slide .hero-video-desktop { display: none; }
}
@media (min-width: 768px) {
  .hero-slide .hero-video-mobile { display: none; }
}

/* Why Lavora comparison table */
.section-why-lavora { background: var(--bg-white); }
.why-lavora-table-wrap { overflow-x: auto; margin: 1.5rem auto; max-width: 960px; }
.why-lavora-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.why-lavora-table th,
.why-lavora-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.why-lavora-table thead th {
  background: #f6f7f9;
  font-weight: 600;
}
.why-lavora-table tbody th[scope="row"] {
  font-weight: 500;
  white-space: nowrap;
}
.why-lavora-supporting {
  max-width: 720px;
  margin: 1.5rem auto 0;
  text-align: center;
  color: #4b5563;
}
@media (max-width: 768px) {
  .why-lavora-table-wrap { overflow-x: visible; }
  .why-lavora-table { font-size: 0.85rem; }
  .why-lavora-table th,
  .why-lavora-table td { padding: 0.55rem 0.5rem; }
  .why-lavora-table tbody th[scope="row"] { white-space: normal; }
}

/* Free for candidates */
.section-free-for-candidates { background: #fdf2f1; }
.free-body { max-width: 720px; margin: 0 auto; }
.free-body p + p { margin-top: 1rem; }
.free-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.free-points li {
  background: #ffffff;
  border: 1px solid #f3c5c1;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 500;
}

/* About: how-we-work pillars + values */
.how-we-work-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.how-card,
.value-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
}
.how-title,
.value-title { margin: 0 0 0.5rem; font-size: 1.1rem; }
.about-body { max-width: 760px; margin: 0 auto; }
.about-body p + p { margin-top: 1rem; }
.about-hero { text-align: center; }
.section-cta { text-align: center; }

/* Sectors page */
.sectors-hero { text-align: center; }
.sector-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 2rem;
  max-width: 1100px;
  border: 1px solid #e5e7eb;
}
.sector-card picture,
.sector-card img { display: block; width: 100%; height: auto; }
.sector-body { padding: 1.25rem 1.5rem 1.5rem; }
.sector-title { margin: 0 0 0.5rem; font-size: 1.4rem; }
.sector-positions {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sector-positions li {
  background: #f3f4f6;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.92rem;
}
.reassurance-points {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  color: #4b5563;
}
@media (min-width: 768px) {
  .sector-card { grid-template-columns: 5fr 7fr; }
  .sector-body { padding: 2rem; }
}

/* Registration: card-based layout (mirrors trabalho wizard step 1). */
.register-section {
  background: #f5f7fa;
  padding: 2rem 1rem 4rem;
}
.register-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}
.register-hero { display: block; }
.register-hero-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.register-banner {
  background: var(--croatia-red);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.register-card-body { padding: 1.75rem 1.75rem 1.5rem; }
.register-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #1a1a1a;
}
.register-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.register-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  align-items: start;
  position: relative;
  padding-bottom: 1rem;
}
.register-step:last-child { padding-bottom: 0; }
.register-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--croatia-red);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.register-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 4px;
  width: 2px;
  background: #d1d5db;
}
.register-step-text {
  padding-top: 4px;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
}
.register-form { display: grid; gap: 0.5rem; }
.register-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #1a1a1a;
}
.register-required { color: var(--croatia-red); margin-left: 2px; }
.register-form input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--croatia-red);
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  color: #1a1a1a;
  outline: none;
}
.register-form input[type="email"]:focus {
  border-color: var(--croatia-red-dark);
  box-shadow: 0 0 0 3px rgba(204, 41, 54, 0.12);
}
.register-form .field-error {
  color: var(--croatia-red);
  font-size: 0.85rem;
  min-height: 1em;
}
.register-reassurance {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  margin: 0.25rem 0 0;
}
.register-submit {
  display: block;
  width: 100%;
  background: var(--croatia-red);
  color: #ffffff;
  font-weight: 700;
  padding: 1.1rem 1rem;
  border: none;
  border-radius: 0 0 16px 16px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s;
}
.register-submit:hover { background: var(--croatia-red-dark); }
@media (max-width: 600px) {
  .register-section { padding: 1rem 0.5rem 3rem; }
  .register-card-body { padding: 1.25rem 1.25rem 1rem; }
  .register-hero-image { height: 160px; }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
