/* ===================== CSS VARIABLES ===================== */
:root {
  --color-1: #005d57;
  --color-2: #02A499;
  --color-3: #004343;
  --color-4: #6a9e97;
  --color-5: #e1e8ed;
  --color-6: #f2f5f7;
  --color-7: #FAFBFC;
  --color-8: #ffffff;
  --header-gradient: linear-gradient(to top, #0ba360 0%, #3cba92 100%);
  --hero-overlay: #198947;
  --font: 'Roboto', sans-serif;
  --max-width: 1300px;
  --header-height: 120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--color-3);
  background-color: var(--color-7);
  line-height: 1.65;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-gradient);
  height: var(--header-height);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.site-logo img {
  height: 72px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.site-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-8);
  line-height: 1.25;
  white-space: normal;
}

.site-tagline {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
}

/* Ghost LOGIN button */
.btn-login-ghost {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-8);
  border: 2px solid var(--color-8);
  padding: 8px 24px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-login-ghost:hover {
  background: var(--color-8);
  color: var(--color-1);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font);
  font-size: 20px;
  line-height: 30px;
  word-spacing: 3px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 0;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn i {
  font-size: 16px;
}

.btn-primary {
  background-color: var(--color-2);
  color: var(--color-5);
  margin-top: 10px;
  text-shadow: 2px 2px 1px #F80000;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-1);
  color: var(--color-8);
}

.btn-feature {
  background-color: var(--color-2);
  color: var(--color-5);
}

.btn-feature:hover,
.btn-feature:focus {
  background-color: var(--color-1);
  color: var(--color-8);
}

/* ===================== HERO ===================== */
.hero-section {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  background-image: url('images/nacris-bg.jpg');
  background-position: center -200px;
  background-size: cover;
  background-attachment: fixed;
  margin-top: var(--header-height);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--hero-overlay);
  opacity: 0.65;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 60px 30px;
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-content {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 30px;
}

.hero-title {
  font-size: 100px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-1);
  text-transform: capitalize;
  text-shadow: 1px 1px 1px #EAFFFE;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-3);
  text-shadow: 1px 1px 1px #FFFFFF;
  margin-top: 10px;
}

.hero-right {
  flex: 0 0 50%;
  max-width: 50%;
}

/* ===================== FEATURE BOXES ===================== */
.feature-boxes {
  display: flex;
  max-width: var(--max-width);
  margin: -80px auto 0;
  position: relative;
  z-index: 3;
  padding: 0 30px;
  gap: 24px;
}

.feature-box {
  flex: 1;
  min-height: 35vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--color-2);
  overflow: hidden;
}

.feature-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-7);
  background-position: center center;
  background-size: cover;
  transition: transform 0.4s ease;
}

.feature-box:hover .feature-bg {
  transform: scale(1.04);
}

.feature-footer {
  position: relative;
  z-index: 2;
  padding: 5px 0 30px 20px;
}

/* ===================== PHOTO GALLERY ===================== */
.photo-gallery {
  display: flex;
  max-width: var(--max-width);
  margin: 50px auto 0;
  padding: 0 30px;
  gap: 40px;
}

.gallery-item {
  flex: 1;
  overflow: hidden;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

/* ===================== PARTNER LOGOS CAROUSEL ===================== */
.partners-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 30px 40px;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-track-container {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 20px;
}

.carousel-slide {
  flex: 0 0 calc((100% - 80px) / 5);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
}

.carousel-slide img {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.carousel-slide img:hover {
  filter: grayscale(0%);
}

.carousel-btn {
  background: var(--color-2);
  color: var(--color-8);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: var(--color-1);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--header-gradient);
  color: var(--color-8);
  text-align: center;
  padding: 28px 20px;
  font-size: 15px;
  line-height: 1.3;
  font-family: var(--font);
  font-weight: 400;
  margin-top: 60px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  :root { --header-height: 100px; }

  .site-logo img { height: 62px; }
  .site-title { font-size: 17px; }

  .hero-section {
    min-height: 320px;
    background-attachment: scroll;
    background-position: center 30%;
  }

  .hero-title { font-size: 65px; }
  .hero-subtitle { font-size: 12px; }

  .feature-boxes {
    flex-wrap: wrap;
    margin-top: -40px;
    gap: 20px;
  }

  .feature-box { flex: 0 0 calc(50% - 10px); }

  .photo-gallery { gap: 10px; padding: 0 15px; }
  .gallery-item img { height: 180px; }

  .carousel-slide { flex: 0 0 calc((100% - 60px) / 4); }
}

@media (max-width: 767px) {
  :root { --header-height: 100px; }

  .header-inner { padding: 0 16px; gap: 10px; }

  .site-logo { gap: 10px; }
  .site-logo img { height: 50px; }
  .site-title { font-size: 14px; line-height: 1.2; max-width: 180px; }
  .site-tagline { display: none; }

  .btn-login-ghost { font-size: 12px; padding: 6px 12px; }

  .hero-section {
    min-height: 260px;
    background-attachment: scroll;
    background-position: center 30%;
  }

  .hero-inner {
    flex-direction: column;
    padding: 40px 20px;
  }

  .hero-content,
  .hero-right {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding-right: 0;
    align-items: center;
    text-align: center;
  }

  .hero-title { font-size: 52px; }
  .hero-subtitle { font-size: 18px; text-align: center; }

  .feature-boxes {
    flex-direction: column;
    margin-top: 20px;
    padding: 0 20px;
    gap: 20px;
  }

  .feature-box { flex: none; min-height: 220px; }

  .photo-gallery {
    flex-direction: column;
    padding: 0 20px;
    gap: 10px;
    margin-top: 30px;
  }

  .gallery-item img { height: 200px; }

  .carousel-slide { flex: 0 0 calc((100% - 20px) / 2); }
  .partners-section { padding: 40px 20px 30px; }
}
