/* ==========================================================================
   ETSCO SÀI GÒN - MAIN THEME STYLESHEET
   ========================================================================== */

:root {
  --color-navy: #1B2A5E;
  --color-navy-dark: #121d42;
  --color-green: #3DA829;
  --color-green-hover: #34941f;
  --color-bg-light: #F5F7FB;
  --color-text-dark: #1B2A5E;
  --color-text-muted: rgba(27, 42, 94, 0.75);
  --color-border: rgba(0, 0, 0, 0.08);
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-width: 1280px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: #ffffff;
  color: var(--color-text-dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
}

.brand-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-navy);
}

.brand-text .accent {
  color: var(--color-green);
}

.brand-tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--color-green);
  margin-top: 2px;
}

.main-navigation {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .main-navigation {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-hotline {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: var(--color-green);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-hotline:hover {
  background-color: var(--color-green-hover);
}

@media (min-width: 640px) {
  .btn-hotline {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: var(--color-navy);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  border-top: 1px solid var(--color-border);
  background-color: #ffffff;
  padding: 1rem 1.5rem;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: var(--color-green);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-green-hover);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 2px solid var(--color-navy);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-navy);
  color: #ffffff;
}

/* Badges & Section Headings */
.badge-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.badge-wrapper.center {
  justify-content: center;
}

.badge-line {
  height: 2px;
  width: 2.5rem;
  background-color: var(--color-green);
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-navy);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27, 42, 94, 0.95), rgba(27, 42, 94, 0.8), rgba(27, 42, 94, 0.4));
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding-top: 6rem;
  padding-bottom: 6rem;
  color: #ffffff;
}

@media (min-width: 1024px) {
  .hero-content {
    min-height: 640px;
  }
}

.hero-title {
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-desc {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta {
  margin-top: 2.25rem;
}

/* Section Spacing */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.bg-light {
  background-color: var(--color-bg-light);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-img-wrap {
  position: relative;
}

.about-img {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.about-stat-badge {
  display: none;
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  border-radius: 0.75rem;
  background-color: var(--color-green);
  padding: 1.25rem 1.75rem;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .about-stat-badge {
    display: block;
  }
}

.about-stat-num {
  font-size: 1.875rem;
  font-weight: 800;
}

.about-stat-lbl {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.about-points {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
}

@media (min-width: 640px) {
  .about-points {
    grid-template-columns: 1fr 1fr;
  }
}

.about-point-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.about-point-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-green);
  flex-shrink: 0;
}

/* Fields / Services Cards */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .fields-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.field-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.field-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.field-card-img-wrap {
  position: relative;
  height: 12rem;
  width: 100%;
  overflow: hidden;
}

.field-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.field-card:hover .field-card-img {
  transform: scale(1.05);
}

.field-card-img-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(27, 42, 94, 0.25);
}

.field-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.field-card-icon {
  margin-bottom: 1rem;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: var(--color-green);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.field-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.field-card-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.field-card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.field-card-bullet {
  margin-top: 0.4rem;
  height: 0.375rem;
  width: 0.375rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--color-green);
}

/* Projects Cards */
.projects-header {
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .projects-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.project-card-img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-img {
  transform: scale(1.1);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 42, 94, 0.95), rgba(27, 42, 94, 0.3), transparent);
}

.project-card-info {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  padding: 1.5rem;
}

.project-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  border-radius: 9999px;
  background-color: var(--color-green);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.project-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.project-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-navy);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-arrow {
  opacity: 1;
}

/* Partners Section */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.partner-item {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #9ca3af;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.partner-item:hover {
  color: var(--color-navy);
  border-color: rgba(27, 42, 94, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Page Templates (About, Services, Projects, Contact) */
.page-hero {
  background-color: var(--color-navy);
  color: #ffffff;
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
}

.page-breadcrumb {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
  list-style: none;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  color: var(--color-text-dark);
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-green);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 0.875rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(61, 168, 41, 0.15);
}

/* Footer */
.site-footer {
  width: 100%;
  background-color: var(--color-navy);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-company-name {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-info-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  list-style: none;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-green);
  flex-shrink: 0;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
}

.footer-nav {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: var(--color-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
