/* ===================================
   CSS VARIABLES
   =================================== */
:root {
  --brazil-blue: #009739;
  --brazil-green: #FEDD00;
  --croatia-red: #FF0000;
  --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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===================================
   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;
}

.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;
}

.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: 600px;
  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: top;
}

.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;
  }
}

.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-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: #CC0000;
  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);
}

.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: 60px 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

.about-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.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: 42px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-dark);
}

/* ===================================
   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: #CC0000;
  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: #CC0000;
  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;
}

.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;
  }

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

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

  .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;
  }
}
