/* ========================================
   SAFOOD - Success/Thank You Page
   Fully Responsive Design
   ======================================== */

/* ===== BASE VARIABLES ===== */
:root {
  --dark-brown: #2C2416;
  --gold: #B8954A;
  --gold-active: #AF8A1F;
  --gold-btn-start: #FFD700;
  --gold-btn-end: #6F4E37;
  --light-gold: #D4B575;
  --cream: #FBF8F0;
  --text-dark: #2C2416;
  --text-medium: #6B5D4F;
  --white: #FFFFFF;
  --font-inter: 'Inter', sans-serif;
  --max-width: 1512px;
  --container-padding: 104px;
}

/* ===== BASE RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font-inter);
  color: var(--text-dark);
  line-height: 1.6;
  overflow: hidden;
  background: var(--white);
  height: 100vh;
  width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* ===== SUCCESS SECTION ===== */
.success-section {
  /* height: 100vh; */
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 20px var(--container-padding); */
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Background Glow Effect */
.success-bg-glow {
  position: absolute;
  width: 1013px;
  height: 985px;
  left: 50%;
  top: -300px;
  transform: translateX(-50%);
  background: rgba(255, 215, 0, 0.10);
  border-radius: 9999px;
  filter: blur(254.50px);
  pointer-events: none;
  z-index: 0;
}

.success-container {
  width: 100%;
  max-width: 1440px;
  position: relative;
  z-index: 1;
}

/* Logo Styles */
.success-logo {
  position: absolute;
  top: 30px;
  left: 54px;
}

.logo-link {
  /* display: inline-flex; */
  display: inline-table;
  align-items: center;
  gap: 2px;
  font-size: 24px;
  font-weight: 700;
  line-height: 46.85px;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-s {
  color: var(--gold);
  letter-spacing: 0.10px;
}

.logo-a {
  color: var(--gold);
  letter-spacing: 1.57px;
}

.logo-dark {
  color: var(--text-dark);
}

/* Success Content */
.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 463px;
  margin: 0 auto;
  padding-top: 130px;
}

/* Success Image */
.success-image {
  width: 200px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Success Text */
.success-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.success-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  text-align: center;
}

.success-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--text-medium);
  text-align: center;
  max-width: 433px;
}

/* Back to Home Button */
.btn-back-home {
  width: 400px;
  height: 56px;
  background: linear-gradient(135deg, #B5911C 0%, #B7931A 50%, #9D7A26 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-inter);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-back-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(175, 138, 31, 0.3);
}

.btn-back-home:active {
  transform: translateY(0);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Desktop Large */
@media (max-width: 1400px) {
  :root { --container-padding: 60px; }
}

/* Desktop Medium */
@media (max-width: 1199px) {
  :root { --container-padding: 40px; }
  
  .success-logo {
    left: 40px;
  }
  
  .success-content {
    padding-top: 100px;
  }
}

/* Tablet & Mobile Large */
@media (max-width: 767px) {
  :root { --container-padding: 24px; }
  
  .success-section {
    padding: 80px 24px;
    height: 100vh;
  }
  
  .success-logo {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 20px;
  }
  
  .logo-link {
    font-size: 28px;
    line-height: 38px;
  }
  
  .success-content {
    padding-top: 0;
    gap: 20px;
  }
  
  .success-image {
    width: 160px;
    height: 170px;
  }
  
  .success-title {
    font-size: 24px;
  }
  
  .success-subtitle {
    font-size: 15px;
    line-height: 24px;
  }
  
  .btn-back-home {
    width: 100%;
    max-width: 350px;
    height: 52px;
    font-size: 16px;
  }
}

/* Small Mobile */
@media (max-width: 479px) {
  .success-section {
    padding: 80px 20px;
  }
  
  .logo-link {
    font-size: 24px;
    line-height: 32px;
  }
  
  .success-image {
    width: 180px;
    height: 190px;
  }
  
  .success-title {
    font-size: 24px;
  }
  
  .success-subtitle {
    font-size: 15px;
    line-height: 24px;
  }
  
  .btn-back-home {
    height: 56px;
    font-size: 16px;
  }
}

/* ===== ACCESSIBILITY ===== */
a:focus, button:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--container-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.logo-gold {
  color: var(--gold);
}

.logo-white {
  color: var(--text-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-menu li a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-medium);
  transition: color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #B5911C 0%, #B7931A 50%, #9D7A26 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(175, 138, 31, 0.3);
}

/* Language Selector */
.language-selector {
  position: relative;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.language-selector:hover {
  background: rgba(0,0,0,0.04);
}

.language-selector .lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.language-selector .lang-current img {
  width: 18px;
  height: 18px;
}

.language-selector .lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  list-style: none;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.language-selector.active .lang-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-selector .lang-options li {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-dark);
  transition: background 0.3s ease;
}

.language-selector .lang-options li:first-child {
  border-radius: 8px 8px 0 0;
}

.language-selector .lang-options li:last-child {
  border-radius: 0 0 8px 8px;
}

.language-selector .lang-options li:hover {
  background: rgba(0,0,0,0.04);
}

.language-selector .lang-options li.active {
  color: var(--gold);
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
}

/* ===== RTL SUPPORT ===== */
html[dir="rtl"] .language-selector .lang-options {
  right: auto;
  left: 0;
}

html[dir="rtl"] .success-logo {
  left: auto;
  right: 54px;
}

html[dir="rtl"] .nav-menu li a {
  text-align: right;
}

@media (max-width: 767px) {
  html[dir="rtl"] .success-logo {
    left: auto;
    right: 0;
  }
}

/* ===== SUCCESS SECTION WITH NAV ===== */
.success-section {
  /* padding-top: 80px; */
}