/* Header styles */
.header {
  background: white;
  border-bottom: 1px solid #E2DBD1;
  padding: 17px 0 11px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header .container {
  padding: 0 60px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: #87735C;
  font-size: 15px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: 0.15px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #642D0E;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  gap: 17px;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Mobile menu styles */
.nav-mobile {
  display: none;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #642D0E;
  transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid #E2DBD1;
  margin-bottom: 30px;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  width: 40px;
  height: 40px;
}

.close-line {
  position: absolute;
  width: 24px;
  height: 2px;
  background: #642D0E;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-line:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.mobile-nav-link {
  color: #642D0E;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 15px 0;
  border-bottom: 1px solid #F9F7F4;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #C49D5C;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: auto;
}

/* Footer styles */
.footer {
  background: #642D0E;
  padding: 40px 0 15px 0;
  color: white;
}

.footer .container {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.footer-logo .logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.social-icons {
  display: flex;
  gap: 20px;
}

.footer-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer-column-title {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 7px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: 0.14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.50);
  font-size: 12px;
  font-weight: 400;
  margin: 0;
}

/* Mission Section */
.mission-section {
  padding: 64px 0;
}

.mission-section .container {
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 28px;
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: center;
}

.mission-text {
  text-align: left;
}

.mission-title {
  color: #1F2937;
  font-size: 48px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.48px;
  margin-bottom: 80px;
  position: relative;
}

.mission-title::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 20%;
  height: 3px;
  background: #1F2937;
  border-radius: 2px;
}

.mission-description {
  color: #1F2937;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.16px;
  margin-bottom: 25px;
}

.mission-description:last-child {
  margin-bottom: 0;
}

.mission-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mission-image img {
  width: 100%;
  height: auto;
}

/* History Section */
.history-section {
  padding: 68px 0;
  background: white;
}

.history-section .container {
  max-width: 1300px;
  margin: 0 auto;
}

.history-title {
  color: #1F2937;
  font-size: 48px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  margin-bottom: 65px;
}

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  margin: 0 187px;
  height: 2px;
  background: #642D0E;
  z-index: 1;
}

.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.timeline-year {
  background: #CD9C50;
  border: 1px solid #642D0E;
  color: #FFF;
  font-size: 16px;
  font-weight: 700;
  padding: 22px 17px;
  border-radius: 35px;
  margin-bottom: 30px;
  position: relative;
  z-index: 3;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #F2F5F7;
  padding: 0 35px;
  height: 297px;
  border-radius: 20px;
  text-align: center;
  width: 100%;
  max-width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-title {
  color: #642D0E;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  margin-bottom: 25px;
}

.timeline-description {
  color: #1F2937;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.14px;
  margin: 0;
}

/* Values Section */
.values-section {
  padding: 50px 0;
  background: transparent;
}

.values-section .container {
  max-width: 1300px;
  margin: 0 auto;
}

.values-title {
  color: #1F2937;
  font-size: 48px;
  font-weight: 600;
  line-height: 26px;
  margin-bottom: 67px;
  position: relative;
}

.values-title::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 7%;
  height: 3px;
  background: #1F2937;
  border-radius: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.value-item {
  background: white;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 29px 45px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 49px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-content {
  flex: 1;
}

.value-title {
  color: #1F2937;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.14px;
}

.value-description {
  color: #1F2937;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.14px;
  margin: 0;
}

/* Expertise Section */
.expertise-section {
  padding: 45px 0;
  background: #642D0E;
  color: white;
}

.expertise-section .container {
  max-width: 1300px;
  margin: 0 auto;
}

.expertise-header {
  text-align: center;
  margin-bottom: 62px;
}

.expertise-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0.48px;
  margin-bottom: 51px;
  color: white;
}

.expertise-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.14px;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.expertise-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.expertise-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  border-radius: 25px;
  padding: 0 35px;
  height: 288px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.expertise-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.expertise-card-title {
  color: #1F2937;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.16px;
}

.expertise-card-description {
  color: #1F2937;
  font-family: "Poppins";
  font-size: 14px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.14px;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: transparent;
}

.cta-container {
  max-width: 1300px;
  margin: 0 auto;
}

.cta-content {
  border-radius: 20px;
  border: 1px solid #E5E7EB;
  background: #FFF;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
  height: 297px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 150px;
  padding: 0 58px;
  align-items: center;
}

.cta-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-image img {
  width: 100%;
  height: auto;
}

.cta-text {
  text-align: left;
}

.cta-title {
  color: #1F2937;
  font-size: 32px;
  font-weight: 700;
  line-height: 51px;
  letter-spacing: 0.32px;
  margin-bottom: 11px;
}

.cta-description {
  color: #1F2937;
  font-family: "Poppins";
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.14px;
  margin-bottom: 46px;
}

.btn-success {
  background-color: #3AA645;
  color: white;
  border: none;
  padding: 10px 58px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* About Hero Section */
.about-hero-section {
  padding: 87px 0 0 0;
}

.about-hero-section .container {
  max-width: 1300px;
  margin: 0 auto;
}

.about-hero-content {
  background: #642D0E;
  text-align: center;
  color: white;
  width: 100%;
  animation: fadeInUp 1s ease-out;
  padding: 46px 40px 64px 40px;
  border-radius: 0 0 25px 25px;
  box-shadow: 0 8px 25px rgba(100, 45, 14, 0.3);
}

/* Mobile optimizations for images */
@media (max-width: 768px) {
  .mission-image img,
  .cta-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .value-icon img,
  .expertise-icon img {
    max-width: 100%;
    height: auto;
  }
  
  /* Improve touch targets */
  .btn-success {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Better spacing for mobile */
  .mission-image {
    order: 2;
  }
  
  .mission-text {
    order: 1;
  }
  
  /* Optimize timeline for mobile */
  .timeline-item {
    margin-bottom: 20px;
  }
  
  .timeline-year {
    position: relative;
    z-index: 3;
  }
  
  /* Improve card layouts */
  .value-item,
  .expertise-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Better text readability */
  .mission-description,
  .timeline-description,
  .value-description,
  .expertise-card-description,
  .cta-description {
    text-align: left;
  }
  
  /* Optimize animations for mobile */
  .about-hero-content,
  .timeline-content,
  .value-item,
  .expertise-card {
    will-change: transform;
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    .about-hero-content,
    .timeline-content,
    .value-item,
    .expertise-card {
      animation: none;
      transition: none;
    }
  }
  
  /* Better focus states for accessibility */
  .btn-success:focus,
  .nav-link:focus,
  .mobile-nav-link:focus {
    outline: 2px solid #642D0E;
    outline-offset: 2px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-hero-icon {
  margin-bottom: 34px;
  animation: fadeInScale 0.8s ease-out 0.2s both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.about-hero-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 26px;
  margin-bottom: 34px;
  color: white;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.about-hero-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: white;
  max-width: 600px;
  letter-spacing: 0.16px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Responsive */
@media (max-width: 768px) {
  .header .container {
    padding: 0 20px;
  }
  
  .nav {
    justify-content: space-between;
  }
  
  .nav-right {
    display: none;
  }
  
  .nav-mobile {
    display: block;
  }
  
  /* Improve mobile navigation */
  .nav-link {
    font-size: 16px;
    padding: 12px 8px;
  }
  
  /* Better mobile menu */
  .mobile-nav-link {
    font-size: 20px;
    padding: 20px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Improve mobile menu close button */
  .close-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  .about-hero-section {
    padding: 120px 0 40px 0;
    margin-top: 60px;
    min-height: 60vh;
  }
  
  .about-hero-content {
    padding: 30px 15px 40px 15px;
    border-radius: 0 0 20px 20px;
  }
  
  .about-hero-section .container {
    padding: 0 15px;
  }
  
  .about-hero-icon img {
    width: 70px;
    height: auto;
  }
  
  .about-hero-title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 20px;
  }
  
  .about-hero-description {
    font-size: 15px;
    line-height: 26px;
    max-width: 100%;
  }
  
  .mission-section {
    padding: 40px 0;
  }
  
  .mission-section .container {
    padding: 0 15px;
  }
  
  .mission-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .mission-title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 25px;
  }
  
  .mission-title::after {
    width: 30%;
    bottom: -20px;
  }
  
  .mission-description {
    font-size: 14px;
    line-height: 24px;
  }
  
  .history-section {
    padding: 40px 0;
  }
  
  .history-section .container {
    padding: 0 15px;
  }
  
  .history-title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 30px;
  }
  
  .timeline {
    flex-direction: column;
    gap: 25px;
  }
  
  .timeline::before {
    display: none;
  }
  
  .timeline-item {
    width: 100%;
  }
  
  .timeline-year {
    padding: 15px 12px;
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .timeline-content {
    max-width: 100%;
    height: auto;
    min-height: 200px;
    padding: 25px 20px;
  }
  
  .timeline-title {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .timeline-description {
    font-size: 13px;
    line-height: 22px;
  }
  
  .values-section {
    padding: 40px 0;
  }
  
  .values-section .container {
    padding: 0 15px;
  }
  
  .values-title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 30px;
  }
  
  .values-title::after {
    width: 20%;
    bottom: -20px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .value-item {
    padding: 25px 20px;
    gap: 15px;
    flex-direction: column;
    text-align: center;
  }
  
  .value-icon {
    width: 110px;
    height: 110px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .value-icon img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  
  .value-title {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 10px;
  }
  
  .value-description {
    font-size: 14px;
    line-height: 22px;
  }
  
  .expertise-section {
    padding: 40px 0;
  }
  
  .expertise-section .container {
    padding: 0 15px;
  }
  
  .expertise-title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 20px;
  }
  
  .expertise-description {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 30px;
  }
  
  .expertise-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .expertise-card {
    padding: 25px 20px;
    height: auto;
    min-height: 200px;
  }
  
  .expertise-icon {
    width: 70px;
    height: 70px;
    padding: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .expertise-icon img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  
  .expertise-card-title {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 10px;
  }
  
  .expertise-card-description {
    font-size: 13px;
    line-height: 20px;
  }
  
  .cta-section {
    padding: 40px 0;
  }
  
  .cta-container {
    padding: 0 15px;
  }
  
  .cta-content {
    padding: 30px 20px;
    grid-template-columns: 1fr;
    gap: 25px;
    height: auto;
    min-height: 250px;
  }
  
  .cta-image {
    order: 2;
  }
  
  .cta-text {
    order: 1;
    text-align: center;
  }
  
  .cta-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 15px;
  }
  
  .cta-description {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 25px;
  }
  
  .btn-success {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    font-size: 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }
  
  .footer-right {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer {
    padding: 25px 0 15px 0;
  }
  
  .footer .container {
    padding: 0 15px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .about-hero-section {
    padding: 100px 0 30px 0;
    min-height: 50vh;
  }
  
  .about-hero-content {
    padding: 25px 10px 35px 10px;
  }
  
  .about-hero-title {
    font-size: 24px;
    line-height: 32px;
  }
  
  .about-hero-description {
    font-size: 14px;
    line-height: 24px;
  }
  
  .mission-section,
  .history-section,
  .values-section,
  .expertise-section,
  .cta-section {
    padding: 30px 0;
  }
  
  .mission-title,
  .history-title,
  .values-title,
  .expertise-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 20px;
  }
  
  .timeline-content {
    padding: 20px 15px;
    min-height: 180px;
  }
  
  .timeline-title {
    font-size: 16px;
  }
  
  .timeline-description {
    font-size: 12px;
    line-height: 20px;
  }
  
  .value-item {
    padding: 20px 15px;
  }
  
  .value-icon {
    width: 110px;
    height: 110px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .value-title {
    font-size: 16px;
  }
  
  .value-description {
    font-size: 13px;
    line-height: 20px;
  }
  
  .expertise-card {
    padding: 20px 15px;
    min-height: 180px;
  }
  
  .expertise-icon {
    width: 80px;
    height: 80px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .expertise-card-title {
    font-size: 15px;
  }
  
  .expertise-card-description {
    font-size: 12px;
    line-height: 18px;
  }
  
  .cta-content {
    padding: 25px 15px;
    min-height: 220px;
  }
  
  .cta-title {
    font-size: 20px;
    line-height: 28px;
  }
  
  .cta-description {
    font-size: 13px;
    line-height: 22px;
  }
  
  .btn-success {
    padding: 12px 15px;
    font-size: 14px;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .about-hero-section {
    min-height: 40vh;
    padding: 80px 0 30px 0;
  }
  
  .about-hero-content {
    padding: 20px 15px 30px 15px;
  }
  
  .about-hero-title {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 15px;
  }
  
  .about-hero-description {
    font-size: 14px;
    line-height: 22px;
  }
  
  .mission-section,
  .history-section,
  .values-section,
  .expertise-section,
  .cta-section {
    padding: 25px 0;
  }
  
  .timeline-content {
    min-height: 160px;
  }
  
  .expertise-card {
    min-height: 160px;
  }
  
  .cta-content {
    min-height: 200px;
  }
}
