/* ================= ROOT VARIABLES & GLOBAL ================= */

:root {
  --primary-blue: #0b3c6f;
  --primary-yellow: #f2c94c;
  --light-bg: #f5f7fb;
  --white: #ffffff;
  --text-main: #222222;
  --text-muted: #555555;
  --border-soft: #dde3ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 0.7em;
}

/* ================= LAYOUT HELPERS ================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 40px 0;
  scroll-margin-top: 90px;
  background-color: var(--light-bg);
}

.section-alt {
  background-color: var(--white);
}

/* margin utilities */
.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

/* ================= HEADER & NAVBAR ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 60, 111, 0.98);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* Brand block */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-yellow);
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

/* Navigation menu */

.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.nav-link {
  color: #e8f1ff;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--primary-yellow);
  color: #1a2a3a;
}

/* ================= HERO SECTION ================= */

.hero {
  background: linear-gradient(135deg, #0b3c6f 0%, #145fa8 60%, #2274c9 100%);
  color: var(--white);
  padding: 60px 0 70px;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.hero-text {
  flex: 1 1 360px;
}

.hero-title {
  font-size: 26px;
  margin: 0 0 10px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 20px;
  color: #337ade;
}

.hero-text p {
  color: #e9f2ff;
}

/* Hero buttons */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--primary-yellow);
  color: #1a2a3a;
  font-weight: 600;
  border-color: #e5b930;
}

.btn-primary:hover {
  background: #ffd84c;
}

.btn-outline {
  background: transparent;
  color: #f3f7ff;
  border-color: #f3f7ff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero side box */

.hero-side {
  flex: 1 1 280px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.hero-side-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffef9a;
  margin-bottom: 8px;
  font-weight: 600;
}

.hero-side-list {
  margin: 0;
  padding-left: 16px;
  color: #eef4ff;
}

/* ================= GENERIC SECTION STYLES ================= */

.section-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--primary-blue);
}

.sub-title {
  font-size: 16px;
  margin-bottom: 8px;
  margin-top: 4px;
  color: #1c3554;
}

.section-intro {
  max-width: 800px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Two-column layout */

.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}

.col {
  flex: 1 1 280px;
}

/* Card */

.card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 16px 18px;
  font-size: 14px;
}

/* Text helpers */

.text-sm {
  font-size: 13px;
}

.muted-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Lists */

.list-dot {
  padding-left: 18px;
  margin: 6px 0;
}

.list-dot li {
  margin-bottom: 4px;
}

.list-dash {
  padding-left: 18px;
  margin: 6px 0;
}

.list-dash li {
  margin-bottom: 4px;
}

.list-numbered {
  padding-left: 18px;
  margin: 10px 0;
  font-size: 14px;
}

.list-numbered li {
  margin-bottom: 4px;
}

/* ================= BUSINESS SECTION ================= */

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.ted-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.business-item-title {
  font-size: 15px;
  margin: 0 0 6px;
  color: #1c3554;
}

/* ================= SUPPLY CHAIN SECTION ================= */

.flow-chart-wrapper {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.flow-chart-text {
  flex: 1 1 260px;
  font-size: 14px;
}

.flow-chart-image {
  flex: 1 1 260px;
}

.flow-chart-image img {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
}

/* ================= RISK & COMPLIANCE ================= */

.risk-list {
  font-size: 14px;
  margin-top: 10px;
  padding-left: 18px;
}

.risk-list li {
  margin-bottom: 4px;
}

/* ================= CONTACT SECTION ================= */

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 12px;
  font-size: 14px;
}

.contact-label {
  margin: 8px 0 4px;
}

.contact-address {
  font-style: normal;
  white-space: pre-line;
}

.contact-details {
  margin: 0;
}

.contact-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 600px;
}

/* ================= PRODUCT GALLERY ================= */

.product-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 12px;
  font-size: 13px;
}

.product-card-caption {
  margin-top: 6px;
  color: var(--text-muted);
}

/* ================= AGARWOOD SECTION ================= */

.agarwood-section {
  margin-top: 16px;
}

.agarwood-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.agarwood-text {
  flex: 1 1 340px;
}

.agarwood-gallery {
  flex: 1 1 340px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.agarwood-img-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 10px;
  font-size: 12px;
}

.agarwood-img-card img {
  border-radius: 6px;
}

.agarwood-img-card .product-card-caption {
  margin-top: 6px;
  font-size: 11px;
}

.agarwood-inline-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
  max-width: 500px;
}

.agarwood-inline-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}

.agarwood-inline-gallery01 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.agarwood-inline-gallery01 img {
  width: 260px;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}

/* ================= FOOTER ================= */

.site-footer {
  background: #0b223a;
  color: #e1e8f5;
  font-size: 12px;
  padding: 14px 0;
  text-align: center;
  margin-top: 10px;
}

/* ================= RESPONSIVE ================= */

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 24px;
  }
}

/* Tablet (Portrait and Landscape) */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .nav-list {
    gap: 12px;
    font-size: 13px;
  }
  
  .hero {
    padding: 50px 0 60px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .hero-subtitle {
    font-size: 17px;
  }
  
  .section {
    padding: 35px 0;
  }
  
  .business-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  .ted-group-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Small Tablet */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .section {
    scroll-margin-top: 0;
    padding: 30px 0;
  }

  .navbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
    gap: 10px;
  }
  
  .nav-list {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    font-size: 13px;
  }
  
  .nav-link {
    padding: 8px 12px;
  }
  
  .brand {
    gap: 8px;
  }
  
  .brand-logo {
    width: 80px;
    height: 80px;
  }
  
  .brand-title {
    font-size: 13px;
  }
  
  .brand-subtitle {
    font-size: 11px;
  }

  .hero {
    padding: 40px 0 50px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-inner {
    gap: 24px;
  }
  
  .hero-side {
    padding: 16px;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  .sub-title {
    font-size: 15px;
  }
  
  .two-column {
    gap: 20px;
  }
  
  .business-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .ted-group-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .product-gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
  
  .agarwood-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .contact-box {
    gap: 20px;
  }
}

/* Mobile Phone */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .section {
    padding: 25px 0;
  }
  
  .navbar {
    padding: 10px 0;
  }
  
  .brand {
    gap: 6px;
  }
  
  .brand-logo {
    width: 70px;
    height: 70px;
  }
  
  .brand-title {
    font-size: 12px;
    line-height: 1.3;
  }
  
  .brand-subtitle {
    font-size: 10px;
  }
  
  .nav-list {
    justify-content: center;
    gap: 6px;
  }
  
  .nav-link {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  .hero {
    padding: 30px 0 40px;
  }
  
  .hero-title {
    font-size: 20px;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.4;
  }
  
  .hero-text p {
    font-size: 13px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
  
  .hero-side {
    padding: 14px;
    font-size: 12px;
  }
  
  .section-title {
    font-size: 17px;
    text-align: center;
  }
  
  .sub-title {
    font-size: 14px;
  }
  
  .section-intro {
    font-size: 13px;
    text-align: center;
  }
  
  .two-column {
    flex-direction: column;
    gap: 16px;
  }
  
  .card {
    padding: 14px 16px;
  }
  
  .product-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .agarwood-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .agarwood-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .agarwood-inline-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .agarwood-inline-gallery01 {
    flex-direction: column;
    gap: 8px;
  }
  
  .agarwood-inline-gallery01 img {
    width: 100%;
    height: 200px;
  }
  
  .contact-box {
    flex-direction: column;
    gap: 16px;
  }
  
  .flow-chart-wrapper {
    flex-direction: column;
    gap: 16px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .section-title {
    font-size: 16px;
  }

  p {
    font-size: 13px;
  }

  .brand-title {
    font-size: 11px;
  }

  .nav-link {
    font-size: 11px;
    padding: 5px 6px;
  }
}

/* ================= LIGHTBOX / IMAGE MODAL ================= */

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  z-index: 10000;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary-yellow);
  transform: scale(1.1);
}

/* Mobile lightbox improvements */
@media (max-width: 768px) {
  .lightbox-overlay {
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 28px;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
  }

  .lightbox-close:active {
    background: rgba(255, 255, 255, 0.3);
  }

  .lightbox-content {
    max-width: 98%;
    max-height: 80vh;
    touch-action: pinch-zoom;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .lightbox-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .lightbox-content {
    max-width: 100%;
    max-height: 75vh;
  }
}

/* Clickable images in products section */
.zoomable-img {
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(242, 201, 76, 0.3);
  outline: 3px solid transparent;
  outline-offset: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.zoomable-img:active {
  transform: scale(0.98);
  opacity: 0.8;
}

/* Hover effects only for desktop with mouse */
@media (hover: hover) and (pointer: fine) {
  .zoomable-img {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease,
                filter 0.3s ease,
                outline 0.3s ease;
  }

  .zoomable-img:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(11, 60, 111, 0.3),
                0 6px 12px rgba(0, 0, 0, 0.15);
    filter: brightness(1.08) saturate(1.1);
    outline: 3px solid var(--primary-yellow);
    outline-offset: 3px;
  }

  .zoomable-img:active {
    transform: scale(1.02);
    filter: brightness(0.95);
    opacity: 1;
  }
}