/* ==========================================================================
   LEGEND COFFEE - Master Warm Chocolate Stylesheet
   Celebrating Heritage, Harmony & Memories
   Palette: Dark Espresso, Rich Chocolate, Cream Mocha, Warm Caramel, Latte
   ========================================================================== */

:root {
  --bg-espresso: #1A0D0A;       /* Espresso Gelat / Black Coffee */
  --bg-chocolate: #2C160F;      /* Cokelat Tua Warm */
  --card-bg: rgba(44, 22, 15, 0.85); /* Card Cokelat */
  --accent-caramel: #C88A4B;    /* Karamel Hangat */
  --accent-caramel-hover: #E3A869;
  --accent-cream: #F3E5D8;      /* Krim Mocha / Susu */
  --text-main: #F7EFE9;         /* Warna Teks Utama (Busa Latte) */
  --text-muted: #C4B2A5;        /* Teks Muted Cokelat Muda */
  --border-caramel: rgba(200, 138, 75, 0.3);
  --shadow-warm: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(200, 138, 75, 0.15);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-espresso);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, rgba(74, 40, 25, 0.4) 0%, transparent 75%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-espresso);
}
::-webkit-scrollbar-thumb {
  background: var(--border-caramel);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-caramel);
}

/* Header & Navigation */
header {
  background: rgba(26, 13, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-caramel);
  padding: 1.2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-caramel);
  text-decoration: none;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo span {
  color: var(--accent-cream);
  font-weight: 300;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  padding: 0.3rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-caramel);
  transition: var(--transition);
}

nav a:hover, nav a.active {
  color: var(--accent-caramel);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(26, 13, 10, 0.5) 0%, rgba(26, 13, 10, 0.95) 100%), 
              url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem 2rem;
  position: relative;
}

.hero-badge {
  background: rgba(200, 138, 75, 0.15);
  border: 1px solid var(--accent-caramel);
  color: var(--accent-cream);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 4.2rem;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero h1 span {
  color: var(--accent-caramel);
  font-style: italic;
}

.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.cta-group {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-caramel), #A36B33);
  color: #110806;
  box-shadow: 0 4px 15px rgba(200, 138, 75, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(200, 138, 75, 0.5);
  background: linear-gradient(135deg, var(--accent-caramel-hover), var(--accent-caramel));
}

.btn-outline {
  border: 1px solid var(--border-caramel);
  color: var(--text-main);
  background: rgba(255,255,255,0.03);
}

.btn-outline:hover {
  border-color: var(--accent-caramel);
  color: var(--accent-caramel);
  background: rgba(200, 138, 75, 0.15);
  transform: translateY(-3px);
}

/* Common Section Layout */
section {
  padding: 7rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--accent-caramel);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-main);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Card Styling */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-caramel);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-warm);
  border-color: rgba(200, 138, 75, 0.6);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-size: 0.75rem;
  color: var(--accent-caramel);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--accent-cream);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent-caramel);
  font-weight: 700;
}

/* Feature Grid / Heritage Highlights */
.heritage-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.heritage-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-caramel);
  box-shadow: var(--shadow-warm);
}

/* Process Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-caramel);
  transform: translateX(-50%);
}

.timeline-item {
  padding: 2rem 3rem;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  top: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-espresso);
  border: 2px solid var(--accent-caramel);
  color: var(--accent-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 10;
}

.timeline-item.left .timeline-badge { right: -20px; }
.timeline-item.right .timeline-badge { left: -20px; }

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  background: var(--card-bg);
  border: 1px solid var(--border-caramel);
  border-radius: 16px;
  padding: 3.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item h4 {
  color: var(--accent-caramel);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(26, 13, 10, 0.9);
  border: 1px solid var(--border-caramel);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-caramel);
  box-shadow: 0 0 10px rgba(200, 138, 75, 0.25);
}

/* Footer */
footer {
  background: #110806;
  padding: 4rem 4rem 2rem 4rem;
  border-top: 1px solid var(--border-caramel);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--accent-caramel);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-links h4 {
  color: var(--accent-cream);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-caramel);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  header { padding: 1.2rem 2rem; }
  section { padding: 5rem 2rem; }
  .heritage-container, .contact-wrapper { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; padding-left: 60px; padding-right: 0; }
  .timeline-item.left, .timeline-item.right { left: 0; text-align: left; }
  .timeline-item.left .timeline-badge, .timeline-item.right .timeline-badge { left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.8rem; }
  nav ul { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
