/* ==========================================================
   Allbeans.vn – Stylesheet
   ========================================================== */
:root {
	--coffee-900: #2b1a12;
	--coffee-800: #3d2518;
	--coffee-700: #5a3825;
	--coffee-500: #8b5a3c;
	--cream-100: #fbf6ef;
	--cream-200: #f3e9dc;
	--gold: #c8913a;
	--green: #4f7a3a;
	--text: #2e2420;
	--muted: #7a6a60;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(43, 26, 18, .12);
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background: var(--cream-100);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coffee-500); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--coffee-900); }
h1, h2 { font-family: var(--font-display); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }

.eyebrow {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .78rem;
	font-weight: 600;
	color: var(--gold);
	margin-bottom: .8em;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: .85em 1.7em;
	border-radius: 999px;
	background: var(--coffee-700);
	color: #fff;
	font-weight: 600;
	border: 2px solid var(--coffee-700);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--coffee-900); border-color: var(--coffee-900); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--coffee-700); }
.btn-outline:hover { background: var(--coffee-700); color: #fff; }
.btn-sm { padding: .5em 1.2em; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 246, 239, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(90, 56, 37, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; color: var(--coffee-900); font-family: var(--font-display); }
.brand strong { color: var(--gold); }
.brand:hover { color: var(--coffee-900); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { color: var(--text); font-weight: 500; }
.main-nav a:not(.btn):hover { color: var(--gold); }
.main-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--coffee-900); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
	background:
		radial-gradient(circle at 85% 30%, rgba(200, 145, 58, .18), transparent 45%),
		linear-gradient(180deg, var(--cream-100), var(--cream-200));
	padding: 80px 0 100px;
	overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--coffee-500); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 40px; }
.hero-stats { display: flex; gap: 40px; list-style: none; padding: 0; margin: 0; }
.hero-stats strong { display: block; font-size: 1.7rem; color: var(--coffee-900); font-family: var(--font-display); }
.hero-stats span { font-size: .9rem; color: var(--muted); }

/* Ly cà phê vẽ bằng CSS */
.hero-visual { display: flex; justify-content: center; }
.cup { position: relative; width: 260px; height: 300px; }
.cup-body {
	position: absolute; bottom: 40px; left: 20px;
	width: 180px; height: 160px;
	background: linear-gradient(135deg, #fff, #eadfd2);
	border-radius: 0 0 90px 90px;
	box-shadow: var(--shadow);
}
.cup-body::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px;
	background: radial-gradient(ellipse at center, var(--coffee-500), var(--coffee-800));
	border-radius: 50%;
	border: 6px solid #fff;
}
.cup-handle {
	position: absolute; bottom: 110px; left: 182px;
	width: 60px; height: 60px;
	border: 14px solid #eadfd2; border-left: 0;
	border-radius: 0 40px 40px 0;
}
.saucer {
	position: absolute; bottom: 22px; left: -10px;
	width: 240px; height: 30px;
	background: linear-gradient(#fff, #e3d5c5);
	border-radius: 50%;
	box-shadow: 0 12px 24px rgba(43, 26, 18, .15);
}
.steam { position: absolute; top: 20px; left: 70px; display: flex; gap: 18px; }
.steam span {
	width: 10px; height: 70px;
	background: linear-gradient(transparent, rgba(139, 90, 60, .35), transparent);
	border-radius: 10px;
	filter: blur(3px);
	animation: steam 3s ease-in-out infinite;
}
.steam span:nth-child(2) { animation-delay: .6s; }
.steam span:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam {
	0% { transform: translateY(20px) scaleY(.6); opacity: 0; }
	50% { opacity: 1; }
	100% { transform: translateY(-30px) scaleY(1.2); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--cream-200); }
.section-dark { background: var(--coffee-900); color: var(--cream-200); }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* About art */
.about-art {
	position: relative; aspect-ratio: 1 / 1; max-width: 420px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, var(--coffee-500), var(--coffee-900));
	box-shadow: var(--shadow);
}
.bean {
	position: absolute; width: 90px; height: 120px;
	background: linear-gradient(135deg, #7a4a2c, #3a2114);
	border-radius: 50%;
	box-shadow: inset -8px -8px 20px rgba(0, 0, 0, .35);
}
.bean::after {
	content: ""; position: absolute; top: 12%; bottom: 12%; left: 48%;
	width: 6px; border-radius: 6px;
	background: #2b1a12;
	transform: rotate(8deg);
}
.b1 { top: 18%; left: 22%; transform: rotate(-25deg); }
.b2 { top: 40%; left: 52%; transform: rotate(20deg); }
.b3 { top: 58%; left: 18%; transform: rotate(-60deg) scale(.8); }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checklist li::before {
	content: "✓"; position: absolute; left: 0; top: 1px;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--green); color: #fff;
	font-size: .75rem; display: grid; place-items: center;
}

/* Products */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card {
	background: #fff; border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow);
	display: flex; flex-direction: column;
	transition: transform .25s;
}
.card:hover { transform: translateY(-6px); }
.card-img { height: 170px; }
.c1 { background: linear-gradient(135deg, #3a2114, #6b3f26); }
.c2 { background: linear-gradient(135deg, #8b5a3c, #c8913a); }
.c3 { background: linear-gradient(135deg, #5a3825, #a0704d); }
.c4 { background: linear-gradient(135deg, #4f7a3a, #8b5a3c); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; color: var(--coffee-900); }
.price small { font-weight: 400; color: var(--muted); }
.link { font-weight: 600; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: #fff; padding: 28px 24px; border-radius: var(--radius); border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.step-no { font-family: var(--font-display); font-size: 2rem; color: var(--gold); display: block; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quotes blockquote {
	margin: 0; padding: 28px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: var(--radius);
}
.quotes p { font-size: 1.05rem; font-style: italic; }
.quotes cite { color: var(--gold); font-style: normal; font-size: .9rem; }

/* Contact */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 8px; }
.contact-form {
	background: #fff; padding: 32px; border-radius: var(--radius);
	box-shadow: var(--shadow); display: grid; gap: 16px;
}
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.contact-form input, .contact-form textarea {
	font: inherit; padding: 12px 14px;
	border: 1px solid #e0d4c6; border-radius: 10px;
	background: var(--cream-100);
	transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
	outline: none; border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(200, 145, 58, .2);
}
.contact-form .invalid { border-color: #c0392b; }
.form-note { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form-note.ok { color: var(--green); }
.form-note.err { color: #c0392b; }

/* ---------- Footer (theo bố cục footer Zetamail) ---------- */
#wrapper-footer { background: var(--coffee-900); color: #d9c9b8; font-size: .93rem; }
#wrapper-footer .footer {
	display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 40px;
	padding: 56px 0 40px;
}
.brand-light, .brand-light:hover { color: #fff; }
.footer-slogan { margin-top: 12px; color: #b9a593; }
#wrapper-footer h3 { color: #fff; font-family: var(--font); font-size: 1rem; margin-bottom: 14px; }
#wrapper-footer .address span, #wrapper-footer .track a { display: block; line-height: 1.9; }
#wrapper-footer .track a { color: #d9c9b8; }
#wrapper-footer .track a:hover { color: var(--gold); text-decoration: underline; }

.footer_content { background: #F2F2F2; color: #555; padding: 15px 0; font-size: 12px; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer_content p { margin: 0; }
.footer-menu { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; }
.footer-menu li:not(:last-child) { border-right: 1px solid #cecece; }
.footer-menu a { color: #444; padding: 0 10px; }
.footer-menu li:first-child a { padding-left: 0; }
.footer-menu a:hover { text-decoration: underline; color: var(--coffee-700); }
.badges { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ssl-badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border-radius: 999px;
	background: #e7f3e1; color: var(--green);
	font-weight: 600; font-size: 12px;
}

/* Thanh liên hệ mobile */
.bottom-contact { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.hero-inner, .grid-2 { grid-template-columns: 1fr; }
	.hero-visual { order: -1; }
	.cup { transform: scale(.75); height: 240px; }
	.about-art { max-width: 300px; margin: 0 auto; }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.quotes { grid-template-columns: 1fr; }
	#wrapper-footer .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute; top: 68px; left: 0; right: 0;
		flex-direction: column; gap: 0; align-items: stretch;
		background: var(--cream-100);
		border-bottom: 1px solid rgba(90, 56, 37, .1);
		max-height: 0; overflow: hidden;
		transition: max-height .3s ease;
	}
	.main-nav.open { max-height: 400px; }
	.main-nav a { padding: 14px 20px; }
	.main-nav .btn { margin: 10px 20px 16px; text-align: center; }
	.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.section { padding: 64px 0; }
	.hero { padding: 40px 0 64px; }
	.hero-stats { gap: 24px; }
	.steps { grid-template-columns: 1fr; }
	#wrapper-footer .footer { grid-template-columns: 1fr; gap: 28px; }
	.footer-legal { flex-direction: column; align-items: flex-start; }
	.footer-menu { flex-direction: column; }
	.footer-menu li { border: 0 !important; }
	.footer-menu a { padding: 2px 0; }

	body { padding-bottom: 56px; }
	.bottom-contact {
		display: grid; grid-template-columns: repeat(3, 1fr);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		background: var(--coffee-700);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
	}
	.bottom-contact a {
		color: #fff; text-align: center; padding: 16px 4px;
		font-weight: 600; font-size: .9rem;
	}
	.bottom-contact a:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, .15); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Trang chính sách ---------- */
.page-narrow { max-width: 800px; }
.page-title { font-size: 2.2rem; }
.page-narrow h2 { font-size: 1.35rem; margin-top: 1.6em; }
.site-header .btn { color: #fff; }
