/* =========================================================
   Betai S.K.U.S. Ltd — static site stylesheet
   ========================================================= */

:root {
  --blue: #01aeee;
  --blue-dark: #095497;
  --navy: #24315e;
  --coral: #f76d6d;
  --text: #555555;
  --heading: #222222;
  --light: #f5f8fb;
  --border: rgba(0, 0, 0, 0.1);
  --white: #ffffff;
  --container: 1170px;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(36, 49, 94, 0.1);
  --font-body: "Roboto", Arial, sans-serif;
  --font-alt: "Raleway", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

svg {
  fill: currentColor;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--blue-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 16px;
  color: var(--heading);
  line-height: 1.3;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
}

.skip-link:focus {
  left: 16px;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: 0 0 auto;
}

/* ---------- Top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.topbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.topbar li,
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
}

.topbar a:hover {
  color: var(--blue-dark);
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
}

.logo img {
  width: 260px;
  height: auto;
}

.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--blue);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-dark);
}

.main-nav .caret {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}

.main-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--blue-dark);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.main-nav .sub-menu a {
  color: var(--white);
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: none;
  font-size: 14px;
}

.main-nav .sub-menu li:last-child a {
  border-bottom: 0;
}

.main-nav .sub-menu a:hover,
.main-nav .sub-menu a.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.main-nav .has-sub:hover > .sub-menu,
.main-nav .has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--coral);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: #e45555;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-blue {
  background: var(--blue);
}

.btn-blue:hover {
  background: var(--blue-dark);
}

.main-nav .btn {
  margin-left: 10px;
  color: var(--white);
  text-transform: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--blue);
  cursor: pointer;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* ---------- Page banner ---------- */

.page-banner {
  position: relative;
  padding: 110px 0;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  min-height: 500px;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36, 49, 94, 0.6);
}

.page-banner .container {
  position: relative;
}

.page-banner h1 {
  color: var(--white);
  font-size: 44px;
  margin-bottom: 8px;
}

.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--white);
}

.breadcrumb a:hover {
  color: var(--blue);
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--light);
}

.section-title {
  font-size: 36px;
  color: var(--blue);
  margin-bottom: 24px;
}

.section-title.center {
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.split.top {
  align-items: start;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.text-justify {
  text-align: justify;
}

.check-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px dashed var(--border);
  font-weight: 500;
  color: var(--heading);
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.alpha-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.alpha-list li {
  padding: 6px 0;
}

/* ---------- Home: slider ---------- */

.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 1170 / 536;
  max-height: 640px;
  width: 100%;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slider .slide.is-active {
  opacity: 1;
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.slider-arrow:hover {
  background: var(--blue);
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slider-dots button.is-active {
  background: var(--white);
}

/* ---------- Home: announcement badge (static, over slider) ---------- */

.slider-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 27%;
  max-width: 400px;
  min-width: 150px;
  background: var(--white);
  pointer-events: none;
}

.slider-badge img {
  width: 100%;
  height: auto;
}

/* ---------- Home: services ---------- */

.service-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.service-cols h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 400;
  color: var(--heading);
}

.service-cols h3 .icon {
  color: var(--blue);
}

.farm-banner img {
  width: 100%;
}

/* ---------- Reviews ---------- */

.review-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 20px;
  margin-bottom: 20px;
}

.review-strip a {
  scroll-snap-align: start;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.review-strip img {
  width: 100%;
  aspect-ratio: 290 / 385;
  object-fit: cover;
  transition: transform 0.3s;
}

.review-strip a:hover img {
  transform: scale(1.04);
}

.center {
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s;
}

.review-card:hover {
  transform: translateY(-4px);
}

.review-card a {
  display: block;
  overflow: hidden;
}

.review-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.review-card h2 {
  font-size: 18px;
  margin: 0;
  padding: 18px 16px;
  color: var(--navy);
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--light);
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery a:hover img {
  transform: scale(1.06);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox button:hover {
  background: var(--blue);
}

.lightbox button svg {
  width: 20px;
  height: 20px;
}

.lightbox .lb-close {
  top: 14px;
  right: 14px;
}

.lightbox .lb-prev {
  left: 14px;
  top: 50%;
  margin-top: -23px;
}

.lightbox .lb-next {
  right: 14px;
  top: 50%;
  margin-top: -23px;
}

.lightbox .lb-caption {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-size: 15px;
}

/* ---------- Table (BOD) ---------- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: var(--white);
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border: 1px solid #e3e8ef;
  text-align: left;
}

.data-table th {
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.data-table tbody tr:nth-child(even) {
  background: var(--light);
}

.data-table td:first-child {
  text-align: center;
  width: 70px;
}

.note {
  padding: 20px 24px;
  border-left: 4px solid var(--blue);
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--heading);
}

/* ---------- Accordion (Services) ---------- */

.accordion details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 17px;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--light);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-size: 22px;
  color: var(--blue);
  line-height: 1;
}

.accordion details[open] summary {
  background: var(--blue);
  color: var(--white);
}

.accordion details[open] summary::after {
  content: "\2212";
  color: var(--white);
}

.accordion .panel {
  padding: 10px 20px;
}

/* ---------- Downloads / notice ---------- */

.file-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--heading);
  font-weight: 600;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.file-card:hover {
  color: var(--blue-dark);
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.file-card .file-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(1, 174, 238, 0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.file-card .file-icon svg {
  width: 26px;
  height: 26px;
}

.file-card .file-icon i {
  font-size: 22px;
  line-height: 1;
}

.file-card small {
  display: block;
  font-weight: 400;
  color: var(--text);
  font-size: 13px;
}

/* ---------- Contact ---------- */

.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--blue);
}

.map-frame {
  width: 100%;
  min-height: 420px;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-alt);
  font-size: 15px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px 16px 40px;
}

.site-footer h2 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 100px;
  margin-bottom: 16px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--blue);
}

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

.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  line-height: 1.5;
}

.footer-contacts .icon {
  margin-top: 3px;
  color: var(--blue);
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3b5998;
  color: var(--white) !important;
  transition: transform 0.2s;
}

.social:hover {
  transform: translateY(-2px);
}

.social svg {
  width: 18px;
  height: 18px;
}

.footer-map {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: var(--shadow);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .main-nav a {
    padding: 10px 8px;
    font-size: 13px;
  }

  .logo img {
    width: 210px;
  }
}

@media (max-width: 991px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .main-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
  }

  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    min-width: 0;
  }

  .main-nav .has-sub.is-open > .sub-menu {
    display: block;
  }

  .main-nav .has-sub.is-open > a .caret {
    transform: rotate(180deg);
  }

  .main-nav .sub-menu a {
    padding-left: 18px;
  }

  .main-nav .btn {
    margin: 14px 0 0;
    justify-content: center;
    border-bottom: 0;
  }

  .split,
  .service-cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card-grid,
  .file-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .topbar .container {
    justify-content: center;
    text-align: center;
  }

  .topbar ul {
    justify-content: center;
  }

  .site-header .container {
    min-height: 70px;
  }

  .logo img {
    width: 180px;
  }

  .page-banner {
    padding: 70px 0;
  }

  .page-banner h1 {
    font-size: 30px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .card-grid,
  .file-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .slider-arrow {
    display: none;
  }

  .lightbox {
    padding: 60px 10px;
  }

  .lightbox .lb-prev,
  .lightbox .lb-next {
    top: auto;
    bottom: 10px;
    margin-top: 0;
  }
}
