
/* style.css */

/* === Reset & Global Styles === */
:root {
    --primary-green: #6CA516;
    --dark-green: #4f7a28;
    --text-color: #000000;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e9e9e9;
    --border-radius-main: 24px;
    --font-family: 'DM Sans', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2 {
    font-weight: 900;
    color: var(--dark-green);
    text-align: center;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 30px;
}

section {
    padding: 80px 0;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius-main);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* === Animasi Scroll === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Hero Grid Section === */
.hero-grid-section {
    background-color: var(--primary-green);
    padding: 20px 0 100px 0px;
}

.hero-top-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 0px;
    padding: 0 10px;
}

.link-top-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-bottom: 50px;
    flex-direction: column;
}

.hero-logo {
    height: 75px;
    width: auto;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    text-align: left;
}

.hero-company-info {
    font-size: 0.7rem;
    font-weight: 300;
    color: #ffffff;
    text-align: right;
}

.hero-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    min-height: 600px;
}

.grid-card {
    border-radius: var(--border-radius-main);
    overflow: hidden;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    position: relative;
}
.text-content-overlay {
    position: absolute;
    bottom: 8px;
    left: 16px;
    right: 5px;
    
}

.grid-card.image-card {
    padding: 0;
}

.grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-card .quote {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-color);
}

.grid-card cite {
    font-style: normal;
    font-size: 0.7rem;
    
}

.grid-card .illustration {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 15px auto;
    opacity: 0.5;
}


.grid-card.logo-card {
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-card img {
    width: 50%;
    height: auto;
    object-fit: contain;
}

.photo-caption {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: rgb(0, 0, 0);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
}
/* ============================================= */
/* === STYLES UNTUK PRODUK BARU (LAYOUT KOLOM) === */
/* ============================================= */

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

.products-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.product-narration {
    flex: 1; /* Mengambil 1 bagian dari ruang */    
}

.product-narration h2 {
    margin-top: 25px;
    margin-bottom: 50px;
    text-align: left;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    color: #000000;
}

.product-narration p {
    font-size: 1rem;
    color: #000000;
    margin-top: 50px;
    line-height: 1.5rem;
    margin-right: 80px;
}

.product-grid-wrapper {
    flex: 3; /* Mengambil 2 bagian dari ruang, lebih besar */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.product-card-small {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-main);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-card-small img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    padding: 4px;
    border-radius: calc(var(--border-radius-main));
}

.product-info-small {
    padding: 0 15px 15px 15px;
}

.product-info-small h3 {
    font-size: 18px;
    font-weight: 400;
    
}

.product-info-small p {
    font-size: 8px;
    margin-bottom: 10px;
}

.product-info-small a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 12px;
    background-color: var(--primary-green);
    padding: 8px;
    border-radius: 10px;
}

/* === Order Section === */
.order{
  background:#B1D551;
  padding:56px 0 120px;
}

.order .container{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar 3 kolom: title – logo – tagline */
.order-top{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:20px;
  margin-bottom: 28px;
}
.order-title{
  color:#295403;
  font-weight:800;
  font-size: clamp(24px, 3vw, 40px);
  line-height:1.1;
  margin:0;
}
.order-logo{
  width: 170px; height:auto; display:block; margin-inline:auto;
}
.order-tagline{
  color:#295403;
  font-weight:700;
  text-align:right;
  margin:0;
  font-size: clamp(14px, 1.4vw, 22px);
}

/* Button list */
.order-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin: 30px 250px 0px;
}

/* Single button */
.order-link{
  display:flex;
  align-items:center;         /* pastikan icon & teks center vertikal */
  justify-content:center;     /* teks rata tengah horizontal di dalam button */
  gap:10px;
  padding:5px 20px;
  border-radius:28px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-size:18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.order-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* Left icon box */
.order-link .icon{
  width:56px; height:56px;
  border-radius:16px;
  
  display:flex; 
  align-items:center; 
  justify-content:center;     /* icon betul2 center */
  flex-shrink:0;
}
.order-link .icon img{
  width:28px; height:auto; object-fit:contain;
}
.order-link .label{
  line-height:1;              /* biar teks tidak “tinggi” */
  flex:1;                     /* isi ruang tersisa */
  text-align:left; 
  
}

/* Color variants to match mock */
.order-link.shopeefood { background:#EF9D3C; }
.order-link.gofood     { background:#E04038; }
.order-link.whatsapp   { background:#6CA516; }
.order-link.grabfood   { background:#163F07; }   /* hijau tua */
.order-link.disabled{
  background:#EDEDED;
  color:#6CA516;
  pointer-events:none;
}

/* Responsive */
@media (max-width: 820px){
  .order-top{ grid-template-columns: 1fr; text-align:center; }
  .order-tagline{ text-align:center; }
  .order-logo{ width:150px; }
}


/* === Contact Section === */
.contact {
    background-color: #295403;
    color: var(--bg-color);
    padding: 50px 0px;
}

.contact-logo {
    display: flex;
    justify-content: center;
    align-items: center;   
}
.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.contact-text {
    flex-basis: 30%;
    padding-right: 40px;
}
.contact-text p {
    margin: 20px 0;
    font-size: 12px;
    text-align: left;
}

.contact-copyright {
    margin: 20px 0;
    font-size: 12px;
    padding: 40px 0px 5px 0px;
    
}

.contact-button {
    display: inline-block;
    color: var(--dark-green);
    padding: 15px 30px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 900;
    transition: background-color 0.3s ease;
}
.contact-button:hover {
    background-color: #c6f29d;
}
.social-links {
    display: flex;
    flex-direction: row;
    gap: 50px;
}
.social-links a {
    color: var(--bg-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

/* === Footer === */
footer {
    background-color: #295403;
    text-align: center;
    padding: 30px 0;
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .hero-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-top-bar {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-container {
        flex-direction: column;
    }
    .product-narration h2 {
        text-align: left;
    }
    .contact-content {
        flex-direction: column;
        text-align: center;
        margin-top: 50px;
    }
    .product-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .order-links {
        grid-template-columns: 1fr;
        margin: 0px 0px;
    }
    .contact-text {
    padding-right: 0px;}
    .social-links {
    gap: 15px;
    }
}



