/* =========================================================
   SAMANDALI WEBSITE - FINAL STYLE
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f8f5ef;
  color: #243127;
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 92px;
  padding: 16px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 28, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 999;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 6px;
  white-space: nowrap;
}

.logo {
  width: auto;
  height: 58px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.navbar nav {
  display: flex;
  align-items: center;
}

.navbar nav a {
  position: relative;
  margin-left: 24px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.25s ease;
}

.navbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: #d5b16d;
  transition: width 0.25s ease;
}

.navbar nav a:hover {
  color: #d5b16d;
}

.navbar nav a:hover::after {
  width: 100%;
}

.lang-btn {
  margin-left: 10px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: 0.25s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: #d5b16d;
  color: #183a2a;
  border-color: #d5b16d;
}

.menu-toggle {
  display: none;
  min-width: 46px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   HERO
========================================================= */

.hero,
.page-hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 140px 7% 90px;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/assets/img/hero-samosir.jpeg");
  background-size: cover;
  background-position: center;
}

.product-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url("/assets/img/product-bulk.jpg");
  background-size: cover;
  background-position: center;
}

.story-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url("/assets/img/farmer.png");
  background-size: cover;
  background-position: center;
}

.gallery-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url("/assets/img/hero-samosir.jpeg");
  background-size: cover;
  background-position: center;
}

.contact-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url("/assets/img/andaliman-tree.png");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 980px;
}

.kicker {
  margin-bottom: 18px;
  color: #d5b16d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
}

h2 {
  color: #183a2a;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  color: #183a2a;
  font-size: 25px;
}

.hero p,
.page-hero p {
  max-width: 780px;
  margin-bottom: 35px;
  font-size: 21px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

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

.btn-gold {
  background: #d5b16d;
  color: #183a2a;
  box-shadow: 0 12px 28px rgba(213, 177, 109, 0.2);
}

.btn-gold:hover {
  background: #e0bd78;
  box-shadow: 0 16px 34px rgba(213, 177, 109, 0.3);
}

.btn-glass {
  margin-left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

/* =========================================================
   HOME
========================================================= */

.intro {
  padding: 110px 10%;
  background: #fff;
  text-align: center;
}

.intro p {
  max-width: 980px;
  margin: 25px auto 0;
  font-size: 20px;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 80px 7%;
}

.card,
.product-card,
.timeline-item,
.contact-box {
  padding: 34px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.partner-band {
  padding: 100px 10%;
  background: #f8f5ef;
  text-align: center;
}

.partner-band p {
  max-width: 900px;
  margin: 25px auto 0;
  font-size: 20px;
}

.cta {
  padding: 100px 7%;
  background: #183a2a;
  color: #fff;
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  max-width: 760px;
  margin: 20px auto 30px;
  font-size: 19px;
}

/* =========================================================
   PRODUCT SHOP
========================================================= */

.shop-intro {
  padding: 100px 10% 50px;
  background: #fff;
  text-align: center;
}

.shop-intro p {
  max-width: 900px;
  margin: 22px auto 0;
  font-size: 19px;
}

.shop-section {
  padding: 50px 7% 110px;
  background: #fff;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.shop-card {
  overflow: hidden;
  background: #f8f5ef;
  border: 1px solid rgba(24, 58, 42, 0.1);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.shop-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}


.shop-image-wrap{
    height:500px;
    display:flex;
    justify-content:center;
    align-items:flex-end;
    overflow:hidden;
    padding:28px;
    background:radial-gradient(circle at center,#fff 0%,#f4efe5 72%);
}

.shop-image{
    width:100%;
    height:340px;
    max-width:none;
    max-height:none;
    display:block;
    object-fit:contain;
    object-position:center bottom;
    transform-origin:center bottom;
    transition:transform .3s ease;
    filter:drop-shadow(0 18px 22px rgba(0,0,0,.18));
}

/* Visual size */
.shop-card:nth-child(1) .shop-image{transform:scale(.58);}
.shop-card:nth-child(2) .shop-image{transform:scale(.78);}
.shop-card:nth-child(3) .shop-image{transform:scale(1.05);}
.shop-card:nth-child(4) .shop-image{transform:scale(1.45);}

.shop-card:nth-child(1):hover .shop-image{transform:scale(.61);}
.shop-card:nth-child(2):hover .shop-image{transform:scale(.82);}
.shop-card:nth-child(3):hover .shop-image{transform:scale(1.10);}
.shop-card:nth-child(4):hover .shop-image{transform:scale(1.50);}

.shop-card-body {
  padding: 26px;
}

.product-size {
  display: inline-block;
  margin-bottom: 9px;
  color: #c29b53;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.shop-card-body h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.shop-card-body > p:not(.product-size) {
  min-height: 87px;
  color: #536157;
  line-height: 1.65;
}

.qty-control {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 9px;
  margin-top: 22px;
}

.qty-btn,
.qty-input {
  height: 46px;
  border: 1px solid rgba(24, 58, 42, 0.18);
  border-radius: 13px;
  background: #fff;
  color: #183a2a;
  font-size: 18px;
  font-weight: 900;
}

.qty-btn {
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.qty-btn:hover {
  background: #183a2a;
  color: #fff;
}

.qty-btn:active {
  transform: scale(0.94);
}

.qty-input {
  width: 100%;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input:focus {
  outline: 2px solid rgba(213, 177, 109, 0.45);
  border-color: #d5b16d;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* =========================================================
   ORDER PANEL
========================================================= */

.order-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 110px 7%;
  background: #f8f5ef;
}

.order-panel-copy p {
  margin-top: 20px;
  font-size: 19px;
}

.order-summary-box {
  padding: 34px;
  background: #183a2a;
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.13);
}

.order-summary {
  min-height: 100px;
  margin-bottom: 24px;
}

.order-summary p {
  color: rgba(255, 255, 255, 0.76);
}

.order-summary-list {
  list-style: none;
}

.order-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.order-summary-list strong {
  color: #d5b16d;
  white-space: nowrap;
}

.order-whatsapp-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}

.order-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  text-align: center;
}

/* =========================================================
   PRODUCT FACTS
========================================================= */

.product-facts {
  padding: 100px 7%;
  background: #183a2a;
  color: #fff;
  text-align: center;
}

.product-facts h2 {
  margin-bottom: 45px;
  color: #fff;
}

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

.facts-grid div {
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
}

.facts-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #d5b16d;
  font-size: 28px;
}

.facts-grid span {
  display: block;
  font-size: 16px;
}

/* =========================================================
   LAB RESULT
========================================================= */

.lab-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 110px 7%;
  background: #fff;
}

.lab-text p {
  margin-top: 22px;
  font-size: 19px;
}

.lab-card {
  padding: 34px;
  background: #183a2a;
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.13);
}

.lab-location {
  margin-bottom: 22px;
  color: #d5b16d;
  font-weight: 900;
  line-height: 1.5;
}

.lab-table-html {
  width: 100%;
  border-collapse: collapse;
}

.lab-table-html th {
  padding: 14px 0;
  color: #d5b16d;
  font-size: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.lab-table-html td {
  padding: 11px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lab-table-html td:last-child,
.lab-table-html th:last-child {
  text-align: right;
  font-weight: 900;
}

.lab-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

/* =========================================================
   LEGACY PRODUCT GRID
========================================================= */

.product-grid-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 100px 7%;
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-photo {
  height: 320px;
  background-size: cover;
  background-position: center;
}

.seed {
  background-image: url("/assets/img/andaliman-seed.png");
}

.powder {
  background-image: url("/assets/img/andaliman-powder.png");
}

.bulk {
  background-image: url("/assets/img/product-bulk.jpg");
}

.product-card h3 {
  padding: 25px 28px 8px;
}

.product-card p {
  padding: 0 28px 30px;
}

/* =========================================================
   STORY
========================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}

.split-image {
  background-size: cover;
  background-position: center;
}

.land-img {
  background-image: url("/assets/img/andaliman-tree.png");
}

.farmer-img {
  background-image: url("/assets/img/farmer.png");
}

.split-text {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 11%;
}

.split-text p {
  margin-top: 24px;
  font-size: 20px;
}

.timeline-section {
  padding: 110px 7%;
  background: #f8f5ef;
}

.section-head {
  margin-bottom: 60px;
  text-align: center;
}

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

.timeline-item span {
  color: #c9a65f;
  font-weight: 900;
}

/* =========================================================
   GALLERY
========================================================= */

.gallery-section {
  padding: 110px 7%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.gallery-img {
  min-height: 440px;
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

.g1 {
  grid-row: span 2;
  background-image: url("/assets/img/hero-samosir.jpeg");
}

.g2 {
  background-image: url("/assets/img/andaliman-tree.png");
}

.g3 {
  background-image: url("/assets/img/farmer.png");
}

.g4 {
  background-image: url("/assets/img/product-bulk.jpg");
}

.g5 {
  background-image: url("/assets/img/andaliman-seed.png");
}

.g6 {
  background-image: url("/assets/img/andaliman-powder.png");
}

/* =========================================================
   CONTACT
========================================================= */

.contact-section {
  padding: 110px 7%;
}

.contact-box {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.contact-list {
  margin: 30px 0;
  font-size: 18px;
}

.contact-list a {
  color: #183a2a;
  font-weight: 900;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 48px 7%;
  background: #0e2419;
  color: #fff;
  text-align: center;
}

footer h3 {
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: 6px;
}

.footer-logo {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

footer a {
  color: #d5b16d;
  text-decoration: none;
}

footer small {
  display: block;
  margin-top: 14px;
  color: #cfcfcf;
}

/* =========================================================
   ANIMATION
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 1100px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .navbar {
    min-height: 76px;
    padding: 12px 5%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .navbar nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 5%;
    width: min(280px, 90vw);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(14, 36, 25, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  }

  .navbar nav.open {
    display: flex;
  }

  .navbar nav a {
    display: block;
    margin: 4px 0;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .navbar nav a::after {
    display: none;
  }

  .navbar nav a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .navbar nav .lang-btn {
    width: 100%;
    margin: 8px 0 0;
  }

  .brand {
    gap: 10px;
    font-size: 17px;
    letter-spacing: 3px;
  }

  .logo {
    height: 44px;
  }

  .hero,
  .page-hero {
    min-height: 72vh;
    padding: 120px 6% 70px;
  }

  h1 {
    font-size: 45px;
  }

  .hero p,
  .page-hero p {
    font-size: 18px;
  }

  .btn-glass {
    margin-top: 12px;
    margin-left: 0;
  }

  .home-cards,
  .product-grid-section,
  .split,
  .gallery-grid,
  .facts-grid,
  .lab-section,
  .order-panel {
    grid-template-columns: 1fr;
  }

  .split {
    min-height: auto;
  }

  .split-image {
    min-height: 420px;
  }

  .reverse .split-text {
    order: 2;
  }

  .reverse .split-image {
    order: 1;
  }

  .g1 {
    grid-row: auto;
  }

  .lab-card {
    padding: 24px;
    overflow-x: auto;
  }

  .order-panel {
    gap: 32px;
  }

  .shop-image-wrap {
    height: 340px;
  }
}

/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 600px) {
  .navbar {
    padding: 10px 4%;
  }

  .brand {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .logo {
    height: 40px;
  }

  .menu-toggle {
    min-width: 42px;
    height: 40px;
    font-size: 21px;
  }

  .hero,
  .page-hero {
    padding: 110px 5% 60px;
  }

  .home-hero {
    min-height: 88vh;
  }

  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 34px;
  }

  .hero p,
  .page-hero p,
  .intro p,
  .partner-band p,
  .split-text p,
  .lab-text p,
  .order-panel-copy p,
  .shop-intro p {
    font-size: 17px;
  }

  .intro,
  .partner-band,
  .cta,
  .product-facts,
  .lab-section,
  .timeline-section,
  .gallery-section,
  .contact-section,
  .order-panel {
    padding-right: 5%;
    padding-left: 5%;
  }

  .shop-intro {
    padding: 80px 5% 35px;
  }

  .shop-section {
    padding: 35px 5% 85px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-image-wrap {
    height: 420px;
  }

  .shop-card-body > p:not(.product-size) {
    min-height: auto;
  }

  .order-summary-box {
    padding: 24px;
  }

  .order-summary-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .facts-grid {
    gap: 14px;
  }

  .facts-grid div {
    padding: 24px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    width: 130px;
  }

  footer {
    padding: 42px 5%;
  }
}